[vlc-devel] [PATCH] contrib: qt: don't build release build in debug mode

Steve Lhomme robux4 at videolabs.io
Wed Oct 26 17:41:20 CEST 2016


---
 contrib/src/qt/rules.mak | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/contrib/src/qt/rules.mak b/contrib/src/qt/rules.mak
index 3bfde9f..a086d38 100644
--- a/contrib/src/qt/rules.mak
+++ b/contrib/src/qt/rules.mak
@@ -32,11 +32,17 @@ QT_SPEC := win32-g++
 QT_PLATFORM := -xplatform win32-g++ -device-option CROSS_COMPILE=$(HOST)-
 endif
 
-QT_CONFIG := -static -release -opensource -confirm-license -no-pkg-config \
+QT_CONFIG := -static -opensource -confirm-license -no-pkg-config \
 	-no-sql-sqlite -no-gif -qt-libjpeg -no-openssl -no-opengl -no-dbus \
 	-no-qml-debug -no-audio-backend -no-sql-odbc -no-pch \
 	-no-compile-examples -nomake examples
-
+    
+ifndef WITH_OPTIMIZATION
+QT_CONFIG += -debug
+else
+QT_CONFIG += -release
+endif
+ 
 .qt: qt
 	cd $< && ./configure $(QT_PLATFORM) $(QT_CONFIG) -prefix $(PREFIX)
 	# Make && Install libraries
-- 
2.8.2



More information about the vlc-devel mailing list