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

Steve Lhomme robux4 at ycbcr.xyz
Sun Oct 28 08:10:50 CET 2018


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
+ifndef WITH_OPTIMIZATION
+MESON += --buildtype debug
+else
+MESON += --buildtype release
+endif
+
+
 
 ifdef GPL
 REQUIRE_GPL =
-- 
2.17.0



More information about the vlc-devel mailing list