[vlc-commits] contrib: add generic meson support

Steve Lhomme git at videolan.org
Tue Oct 30 11:51:26 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at 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 <thomas at 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 =



More information about the vlc-commits mailing list