summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-06-22 14:59:48 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2011-06-23 10:47:58 +0200
commit597cbf30f35eea9b0dbc584040f2f9699eb5af29 (patch)
treea0c28bd89c3aa87f0240f5c251a1b06d60b5aa3a /tools
parentd02339836410c82c45bbd5a0e1fb31444432fbbe (diff)
qmlplugindump: Build debug version if possible.
Done-with: owolff (cherry picked from commit 19b666195e293a71ef918f4a7f91d7f8be5f69bc)
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlplugindump/qmlplugindump.pro17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/qmlplugindump/qmlplugindump.pro b/tools/qmlplugindump/qmlplugindump.pro
index b9fc0fc0ad..2e5ac5e366 100644
--- a/tools/qmlplugindump/qmlplugindump.pro
+++ b/tools/qmlplugindump/qmlplugindump.pro
@@ -16,5 +16,22 @@ HEADERS += \
OTHER_FILES += Info.plist
macx: QMAKE_INFO_PLIST = Info.plist
+# Build debug and release versions of the tool on Windows -
+# if debug and release versions of Qt have been built.
+!build_pass:win32 {
+ CONFIG -= debug release debug_and_release build_all
+
+ contains(QT_CONFIG,debug):contains(QT_CONFIG,release) {
+ CONFIG += debug_and_release build_all
+ } else {
+ contains(QT_CONFIG,debug): CONFIG += debug
+ contains(QT_CONFIG,release): CONFIG += release
+ }
+}
+
+CONFIG(debug, debug|release) {
+ win32: TARGET = $$join(TARGET,,,d)
+}
+
target.path = $$[QT_INSTALL_BINS]
INSTALLS += target