summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_plugin.prf
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2012-10-24 14:03:47 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-29 22:21:32 +0100
commitb493e1ec6f6dd9fffdbb9dc1a8ecedf2e72f3d2e (patch)
treeacb5cf7d789735c3a8a0849ee551b8ab2469cc75 /mkspecs/features/qt_plugin.prf
parentf0ee55c00a51a2677477de18405b4f61c9142157 (diff)
introduce tool_plugin CONFIG flag
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>
Diffstat (limited to 'mkspecs/features/qt_plugin.prf')
-rw-r--r--mkspecs/features/qt_plugin.prf4
1 files changed, 3 insertions, 1 deletions
diff --git a/mkspecs/features/qt_plugin.prf b/mkspecs/features/qt_plugin.prf
index 6c12a9c9b3..b6036dda42 100644
--- a/mkspecs/features/qt_plugin.prf
+++ b/mkspecs/features/qt_plugin.prf
@@ -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
}