introduce tool_plugin CONFIG flag
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Wed, 24 Oct 2012 12:03:47 +0000 (14:03 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 29 Oct 2012 21:21:32 +0000 (22:21 +0100)
while plugins for libraries need to follow the -debug-and-release switch,
plugins for tools must follow the single-config approach of tools.

Change-Id: I8a79e98034d2ff8b5d4e6191a9143c9472a5aa02
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
mkspecs/features/qt_plugin.prf

index 6c12a9c..b6036dd 100644 (file)
@@ -1,7 +1,9 @@
 TEMPLATE = lib
 CONFIG += qt plugin
 
-if(win32|mac):!macx-xcode {
+tool_plugin {
+    !build_pass:contains(QT_CONFIG, build_all): CONFIG += release
+} else:if(win32|mac):!macx-xcode {
     contains(QT_CONFIG, debug_and_release):CONFIG += debug_and_release
     contains(QT_CONFIG, build_all):CONFIG += build_all
 }