diff options
author | Shawn Rutledge <[email protected]> | 2013-10-16 15:39:06 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-10-17 17:39:08 +0200 |
commit | 799e2bb8ba300d5e9c3174299a9e5383469a9eb2 (patch) | |
tree | dbc46990ac968066f06b05a1582d73d319772461 /src | |
parent | 9c5ff1e673828448d5b7c4c327618e2fb9ce67da (diff) |
QtQuick.Dialogs: deploy qml files only for debug builds
QML_FILES are installed with the qml plugin they belong to. This is
helpful for debugging, but redundant because the same QML is also
packaged as resources (after 8780af05b1bc63aa71c3a318972465ffdb830070).
Task-number: QTBUG-31565
Change-Id: I0b277b62b48e0a742f3ef2ff6ee2a81cc071295e
Reviewed-by: Caroline Chao <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/dialogs/dialogs.pro | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/imports/dialogs/dialogs.pro b/src/imports/dialogs/dialogs.pro index d1ae8fb80c..e6ca7a2147 100644 --- a/src/imports/dialogs/dialogs.pro +++ b/src/imports/dialogs/dialogs.pro @@ -37,7 +37,7 @@ HEADERS += \ qquickfontdialog_p.h \ qquickabstractdialog_p.h -QML_FILES += \ +DIALOGS_QML_FILES += \ DefaultMessageDialog.qml \ WidgetMessageDialog.qml \ DefaultFileDialog.qml \ @@ -76,7 +76,7 @@ RESOURCE_CONTENT = \ "<RCC>" \ "<qresource prefix=\"/QtQuick/Dialogs\">" -for(resourcefile, QML_FILES) { +for(resourcefile, DIALOGS_QML_FILES) { resourcefileabsolutepath = $$absolute_path($$resourcefile) relativepath_in = $$relative_path($$resourcefileabsolutepath, $$_PRO_FILE_PWD_) relativepath_out = $$relative_path($$resourcefileabsolutepath, $$OUT_PWD) @@ -91,4 +91,7 @@ write_file($$GENERATED_RESOURCE_FILE, RESOURCE_CONTENT)|error("Aborting.") RESOURCES += $$GENERATED_RESOURCE_FILE +# In case of a debug build, deploy the QML files too +CONFIG(debug, debug|release): QML_FILES += $$DIALOGS_QML_FILES + load(qml_plugin) |