[vlc-devel] [PATCH 1/3] contrib: add generic meson support

Hugo Beauzée-Luyssen hugo at beauzee.fr
Tue Sep 25 18:11:05 CEST 2018


From: Steve Lhomme <robux4 at ycbcr.xyz>

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 ddd8b16aaa..0f8b51088f 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -355,6 +355,14 @@ ifeq ($(V),1)
 CMAKE += -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
 endif
 
+MESON = meson --default-library static --prefix "$(PREFIX)" --backend ninja
+ifndef WITH_OPTIMIZATION
+MESON += --buildtype debug
+else
+MESON += --buildtype release
+endif
+
+
 
 ifdef GPL
 REQUIRE_GPL =
-- 
2.18.0



More information about the vlc-devel mailing list