for DEBUG only activate qDebug()

(cherry picked from commit bbcb992b6c8089b2251c82da4154d63e4b83b7f5)
This commit is contained in:
Eduard Kalinowski 2017-05-08 18:02:09 +02:00 committed by Claudio Lanconelli
parent c23785411f
commit 23a008db62

View File

@ -214,6 +214,18 @@ win32:LIBS += -L$$PWD/windows/
RESOURCES += SrcPony/ponyprog.qrc
QMAKE_CXXFLAGS += -std=c++11
QMAKE_CXXFLAGS_RELEASE += -DQT_NO_DEBUG_OUTPUT
CONFIG(debug, debug|release) {
# debug configuration
# QMAKE_CXXFLAGS_DEBUG += ...
} else {
# release configuration
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3
QMAKE_CXXFLAGS_RELEASE += -fno-exceptions -fno-rtti
DEFINES += QT_NO_DEBUG_OUTPUT
}
QMAKE_CXXFLAGS += -std=c++11