From 694f783e1b0299d5d74d871ba33d5a1d9ab3452e Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 9 Jul 2012 16:25:41 +0200 Subject: "export" the qml tools for qtPrepareTool() use notably, this disables the build of qmlplugindumpd.exe under windows - it is not clear to me why somebody would want to do that, as both sets of libraries would be available, and the output from both variants should be the same. Change-Id: I95c77b2aa32f17f9d6df0e5d4b9d11f456d860f6 Reviewed-by: Rohan McGovern --- tools/qmlbundle/qmlbundle.pro | 7 +------ tools/qmlmin/qmlmin.pro | 6 +----- tools/qmlplugindump/qmlplugindump.pro | 24 +----------------------- tools/qmlprofiler/qmlprofiler.pro | 11 ++--------- tools/qmlscene/qmlscene.pro | 11 ++--------- tools/qmltestrunner/qmltestrunner.pro | 10 ++-------- 6 files changed, 9 insertions(+), 60 deletions(-) diff --git a/tools/qmlbundle/qmlbundle.pro b/tools/qmlbundle/qmlbundle.pro index 6a89418630..237f933b8b 100644 --- a/tools/qmlbundle/qmlbundle.pro +++ b/tools/qmlbundle/qmlbundle.pro @@ -1,12 +1,7 @@ -TEMPLATE = app -TARGET = qmlbundle DESTDIR= $$QT.qml.bins QT = core qml-private v8-private core-private -CONFIG += console -CONFIG -= app_bundle SOURCES += main.cpp -target.path = $$[QT_INSTALL_BINS] -INSTALLS += target +load(qt_tool) diff --git a/tools/qmlmin/qmlmin.pro b/tools/qmlmin/qmlmin.pro index c57ec29d5b..c8df227765 100644 --- a/tools/qmlmin/qmlmin.pro +++ b/tools/qmlmin/qmlmin.pro @@ -1,9 +1,5 @@ QT = core qmldevtools-private -CONFIG += console -CONFIG -= app_bundle DESTDIR = $$QT.qml.bins SOURCES += main.cpp -target.path = $$[QT_INSTALL_BINS] -INSTALLS += target - +load(qt_tool) diff --git a/tools/qmlplugindump/qmlplugindump.pro b/tools/qmlplugindump/qmlplugindump.pro index 9cda82588f..03256309b6 100644 --- a/tools/qmlplugindump/qmlplugindump.pro +++ b/tools/qmlplugindump/qmlplugindump.pro @@ -1,11 +1,7 @@ -TEMPLATE = app -CONFIG += qt uic console DESTDIR = $$QT.qml.bins QT += qml qml-private quick-private core-private -TARGET = qmlplugindump - SOURCES += \ main.cpp \ qmlstreamwriter.cpp @@ -16,22 +12,4 @@ 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 - CONFIG(debug, debug|release) { - win32: TARGET = $$join(TARGET,,,d) - } - } else { - contains(QT_CONFIG,debug): CONFIG += debug - contains(QT_CONFIG,release): CONFIG += release - } -} - - -target.path = $$[QT_INSTALL_BINS] -INSTALLS += target +load(qt_tool) diff --git a/tools/qmlprofiler/qmlprofiler.pro b/tools/qmlprofiler/qmlprofiler.pro index 7ab61e7a96..70dc53bfcb 100644 --- a/tools/qmlprofiler/qmlprofiler.pro +++ b/tools/qmlprofiler/qmlprofiler.pro @@ -1,16 +1,7 @@ -TEMPLATE = app -TARGET = qmlprofiler DESTDIR = $$QT.qml.bins QT += qml qml-private v8-private network core-private -target.path = $$[QT_INSTALL_BINS] -INSTALLS += target - -macx: CONFIG -= app_bundle - -CONFIG += console - SOURCES += main.cpp \ qmlprofilerapplication.cpp \ commandlistener.cpp \ @@ -28,3 +19,5 @@ HEADERS += \ qmlprofilereventlocation.h \ qqmldebugclient.h \ qpacketprotocol.h + +load(qt_tool) diff --git a/tools/qmlscene/qmlscene.pro b/tools/qmlscene/qmlscene.pro index 1cf7b3c577..0d41e1f87e 100644 --- a/tools/qmlscene/qmlscene.pro +++ b/tools/qmlscene/qmlscene.pro @@ -1,17 +1,10 @@ -TEMPLATE = app -TARGET = qmlscene DESTDIR= $$QT.qml.bins QT += qml quick core-private !contains(QT_CONFIG, no-widgets):QT += widgets -target.path = $$[QT_INSTALL_BINS] -INSTALLS += target - -macx: CONFIG -= app_bundle - SOURCES += main.cpp -CONFIG += console - DEFINES += QML_RUNTIME_TESTING QT_QML_DEBUG_NO_WARNING + +load(qt_tool) diff --git a/tools/qmltestrunner/qmltestrunner.pro b/tools/qmltestrunner/qmltestrunner.pro index a6c9533e0a..efa0e96890 100644 --- a/tools/qmltestrunner/qmltestrunner.pro +++ b/tools/qmltestrunner/qmltestrunner.pro @@ -1,13 +1,7 @@ -TEMPLATE = app -TARGET = qmltestrunner DESTDIR= $$QT.qml.bins -CONFIG += warn_on -SOURCES += main.cpp +SOURCES += main.cpp QT += qml qmltest -macx: CONFIG -= app_bundle - -target.path = $$[QT_INSTALL_BINS] -INSTALLS += target +load(qt_tool) -- cgit v1.2.3