[vlc-devel] [PATCH 04/19] contrib: only force CMAKE_RC_COMPILER when cross compiling

Hugo Beauzée-Luyssen hugo at beauzee.fr
Wed Jun 14 15:32:51 CEST 2017



On Wed, Jun 14, 2017, at 02:01 PM, Steve Lhomme wrote:
> The default rule (does) work on mingw
> ---
>  contrib/src/main.mak | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index 96306153f8..39b18f0c47 100644
> --- a/contrib/src/main.mak
> +++ b/contrib/src/main.mak
> @@ -472,8 +472,10 @@ ifndef WITH_OPTIMIZATION
>  else
>  	echo "set(CMAKE_BUILD_TYPE Release)" >> $@
>  endif
> +ifdef HAVE_CROSS_COMPILE
>  	echo "set(CMAKE_RC_COMPILER $(HOST)-windres)" >> $@
>  endif
> +endif
>  ifdef HAVE_DARWIN_OS
>  	echo "set(CMAKE_SYSTEM_NAME Darwin)" >> $@
>  	echo "set(CMAKE_C_FLAGS $(CFLAGS) $(EXTRA_CFLAGS))" >> $@
> -- 
> 2.12.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

LGTM

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


More information about the vlc-devel mailing list