[vlc-devel] [PATCH 2/4] contrib: add generic meson support

Zhao Zhili quinkblack at foxmail.com
Mon Oct 29 11:00:23 CET 2018


On 2018年10月28日 15:10, Steve Lhomme wrote:
> to differentiate optimized and debug builds
> ---
>   contrib/src/main.mak | 8 ++++++++
>   1 file changed, 8 insertions(+)
>
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index 02316f41b7..8c68b0aa57 100644
> --- a/contrib/src/main.mak
> +++ b/contrib/src/main.mak
> @@ -359,6 +359,14 @@ ifeq ($(V),1)
>   CMAKE += -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
>   endif
>   
> +MESON = meson --default-library static --prefix "$(PREFIX)" --backend ninja

Separate the command name 'meson' from its default options can be 
useful, for example, use
meson.py in the source directory without install it first.

> +ifndef WITH_OPTIMIZATION
> +MESON += --buildtype debug
> +else
> +MESON += --buildtype release
> +endif
> +
> +
>   
>   ifdef GPL
>   REQUIRE_GPL =



More information about the vlc-devel mailing list