vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Wed Oct 24 10:25:27 
2018 +0200| [868f1cc977234ecd210ef153d5612000c6379662] | committer: Thomas 
Guillem

contrib: add generic meson support

to differentiate optimized and debug builds

Signed-off-by: Thomas Guillem <tho...@gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=868f1cc977234ecd210ef153d5612000c6379662
---

 contrib/src/main.mak | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 02316f41b7..acb40c074c 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -359,6 +359,15 @@ ifeq ($(V),1)
 CMAKE += -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
 endif
 
+MESON = meson --default-library static --prefix "$(PREFIX)" --backend ninja \
+       -Dlibdir=lib
+ifndef WITH_OPTIMIZATION
+MESON += --buildtype debug
+else
+MESON += --buildtype release
+endif
+
+
 
 ifdef GPL
 REQUIRE_GPL =

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to