summaryrefslogtreecommitdiff
path: root/src/controls/controls.pro
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/controls.pro')
-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