summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qml_plugin.prf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/features/qml_plugin.prf')
-rw-r--r--mkspecs/features/qml_plugin.prf16
1 files changed, 10 insertions, 6 deletions
diff --git a/mkspecs/features/qml_plugin.prf b/mkspecs/features/qml_plugin.prf
index f161a71ef9..bfd01c6eda 100644
--- a/mkspecs/features/qml_plugin.prf
+++ b/mkspecs/features/qml_plugin.prf
@@ -75,18 +75,22 @@ load(qt_common)
}
load(resolve_target)
- qml1_target: \
+ qml1_target {
qmlplugindump = qml1plugindump
- else: \
+ importpath.name = QML_IMPORT_PATH
+ } else {
qmlplugindump = qmlplugindump
+ importpath.name = QML2_IMPORT_PATH
+ }
qtPrepareTool(QMLPLUGINDUMP, $$qmlplugindump)
importpath.value =
- for(qmod, QMAKEMODULES) {
- qmod = $$section(qmod, /, 0, -3)/imports
- qml1_target: qmod = $$qmod/QtDeclarative
+ for(qmod, QTREPOS) {
+ qml1_target: \
+ qmod = $$qmod/imports
+ else: \
+ qmod = $$qmod/qml
exists($$qmod): importpath.value += $$shell_path($$qmod)
}
- importpath.name = QML_IMPORT_PATH
importpath.value = $$unique(importpath.value)
qtAddToolEnv(QMLPLUGINDUMP, importpath)
TARGETPATHBASE = $$replace(TARGETPATH, \\.\\d+\$, )