summaryrefslogtreecommitdiffstats
path: root/tools/qmlplugindump
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-06-22 12:59:48 (GMT)
committerChristian Kamm <christian.d.kamm@nokia.com>2011-06-23 08:42:23 (GMT)
commit19b666195e293a71ef918f4a7f91d7f8be5f69bc (patch)
tree403018b274a7ed8494f2202687fd7d586abea027 /tools/qmlplugindump
parent80f14fb7b13eac4b6ae4cdf11795723254103a58 (diff)
downloadQt-19b666195e293a71ef918f4a7f91d7f8be5f69bc.zip
Qt-19b666195e293a71ef918f4a7f91d7f8be5f69bc.tar.gz
Qt-19b666195e293a71ef918f4a7f91d7f8be5f69bc.tar.bz2
qmlplugindump: Build debug version if possible.
Done-with: owolff
Diffstat (limited to 'tools/qmlplugindump')
-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 53827e2..e9fcdc7 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