I tried to configure the build process using the release/debug scopes in the qmake project file. For example I wanted to include some files and add a define in debug mode:
But even with "CONFIG += qt release uitools warn_on" the define and include from the debug scope are added to the Makefile.xxx.release. I had to add a "CONFIG -= debug" to the release project file as a workaround.Qt Code:
debug { DEFINES += MODELTEST_RULETABLEMODEL INCLUDEPATH += 3rdparty/modeltest }To copy to clipboard, switch view to plain text mode
Am I misunderstanding/-using the release/debug scope??
Another problem: I wanted to disable debuging output by adding the define QT_NO_DEBUG_OUTPUT to the release scope. But then my app won't compile anymore as I used qDebug() << ...; often instead of qDebug("...", ...);. If I had known this in advance... I had thought that all qDebug("...", ...) and qDebug << ... calls would not be compiled in when not compiling the project in debug mode... and disabling does not work as expected...
Any workaround for this issue?
Thanks in advance,
-Jens
Bookmarks