summaryrefslogtreecommitdiff
path: root/src/controls
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2017-03-07 12:00:08 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2017-04-11 11:12:09 +0000
commit751f08cf46f505980b8ebe9a228a6c229b470152 (patch)
tree83e52996c3969ad34dd7d9552757c2e022484444 /src/controls
parentda9183da38513d5531af3753d14d040991e04132 (diff)
downloadqtquickcontrols-751f08cf46f505980b8ebe9a228a6c229b470152.tar.gz
Enable the use of QML caching at build timev5.9.0-beta2
Task-number: QTBUG-58571 Change-Id: I11c9dfb4e0fad93b2961db4213f934eca7d214df Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/controls')
-rw-r--r--src/controls/controls.pro10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/controls/controls.pro b/src/controls/controls.pro
index 63d055d6..5f40c0a3 100644
--- a/src/controls/controls.pro
+++ b/src/controls/controls.pro
@@ -40,8 +40,12 @@ CONTROLS_QML_FILES = \
ToolBar.qml \
ToolButton.qml
-!qtquickcompiler: QML_FILES += $$CONTROLS_QML_FILES
-qtquickcompiler: DEFINES += ALWAYS_LOAD_FROM_RESOURCES
+qtquickcompiler {
+ DEFINES += ALWAYS_LOAD_FROM_RESOURCES
+} else {
+ QML_FILES += $$CONTROLS_QML_FILES
+ !static: CONFIG += qmlcache
+}
SOURCES += $$PWD/plugin.cpp
HEADERS += $$PWD/plugin.h
@@ -55,7 +59,7 @@ include(Shaders/shaders.pri)
osx: LIBS_PRIVATE += -framework Carbon
-!static {
+!qmlcache {
# Create the resource file
GENERATED_RESOURCE_FILE = $$OUT_PWD/controls.qrc