qmlplugindump: Build debug version if possible.
authorChristian Kamm <christian.d.kamm@nokia.com>
Wed, 22 Jun 2011 12:59:48 +0000 (14:59 +0200)
committerChristian Kamm <christian.d.kamm@nokia.com>
Thu, 23 Jun 2011 08:47:58 +0000 (10:47 +0200)
Done-with: owolff
(cherry picked from commit 19b666195e293a71ef918f4a7f91d7f8be5f69bc)

tools/qmlplugindump/qmlplugindump.pro

index b9fc0fc..2e5ac5e 100644 (file)
@@ -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