[vlc-devel] [PATCH] meson: add support for cross-compilation to linux

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Jan 21 12:20:18 CET 2019


On Sun, Jan 20, 2019, at 6:30 PM, Alexandre Janniaux wrote:
> Define host system to linux when needed as it is not directly infered by
> meson and generates a python error. It is used for example to
> cross-compile to non-android ARM linux.
> ---
>  contrib/src/main.mak | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index 84205dcf66..d613add97a 100644
> --- a/contrib/src/main.mak
> +++ b/contrib/src/main.mak
> @@ -564,7 +564,8 @@ else
>  ifdef HAVE_IOS
>  	echo "system = 'darwin'" >> $@
>  else
> -ifdef HAVE_ANDROID
> +ifdef HAVE_LINUX
> +	# android has also system = linux and defines HAVE_LINUX
>  	echo "system = 'linux'" >> $@
>  endif
>  endif
> -- 
> 2.20.1
> 

LGTM

-- 
  Hugo Beauzée-Luyssen
  hugo at beauzee.fr


More information about the vlc-devel mailing list