qt5base-lts/qmake/generators/win32
Joerg Bornemann 1456b8091a Make it possible to undefine NDEBUG for nmake and VS projects
For nmake and VS projects we added the NDEBUG define for the release
configuration unconditionally within the qmake generators. To undefine
it, users had to use a nasty work-around.

Now, define NDEBUG within the MSVC mkspecs. In order to do that we
introduce the DEFINES_RELEASE and DEFINES_DEBUG variables that are
merged into DEFINES in default_pre.prf.

Users can unset NDEBUG by writing
    DEFINES -= NDEBUG
in their .pro file.

Note that DEFINES_RELEASE and DEFINES_DEBUG are merged in
default_pre.prf in order to give extra compilers (like moc) the chance
to see the fully resolved DEFINES variable. This is different from the
QMAKE_CFLAGS_(DEBUG|RELEASE) variables that get merged in default_post.prf.

Fixes: QTBUG-78071
Change-Id: I381770a1d2f974fbae9b09a2254e3f2fc7842b68
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2019-09-18 08:24:38 +02:00
..
mingw_make.cpp qmake: Use a simple response file for ar on mingw 2019-07-29 08:41:27 +00:00
mingw_make.h qmake: Apply modernize-use-override 2018-08-08 17:30:23 +00:00
msbuild_objectmodel.cpp Merge remote-tracking branch 'origin/5.12' into 5.13 2019-04-24 01:00:13 +02:00
msbuild_objectmodel.h qmake: Apply modernize-use-override 2018-08-08 17:30:23 +00:00
msvc_nmake.cpp Make it possible to undefine NDEBUG for nmake and VS projects 2019-09-18 08:24:38 +02:00
msvc_nmake.h Make the Makefile a dependency of default targets for nmake 2019-02-04 08:10:25 +00:00
msvc_objectmodel.cpp Make it possible to undefine NDEBUG for nmake and VS projects 2019-09-18 08:24:38 +02:00
msvc_objectmodel.h Merge remote-tracking branch 'origin/5.12' into 5.13 2019-04-24 01:00:13 +02:00
msvc_vcproj.cpp Make it possible to undefine NDEBUG for nmake and VS projects 2019-09-18 08:24:38 +02:00
msvc_vcproj.h Merge remote-tracking branch 'origin/5.12' into 5.13 2019-06-07 13:19:27 +02:00
msvc_vcxproj.cpp Updated license headers 2016-01-21 18:55:18 +00:00
msvc_vcxproj.h qmake: Apply modernize-use-override 2018-08-08 17:30:23 +00:00
winmakefile.cpp Merge remote-tracking branch 'origin/5.12' into 5.13 2019-06-07 13:19:27 +02:00
winmakefile.h qmake: Apply modernize-use-override 2018-08-08 17:30:23 +00:00