aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltyperegistrar
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-11-11 11:37:42 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-11-11 11:59:36 +0100
commit21109eb56758a85832ee5f81d4dd84738c0eed58 (patch)
tree50a8a75469ff3d6ca36600577435edf12a790a55 /src/qmltyperegistrar
parent8b709c0779ffd6d6d9fa9322e7cff46f51076848 (diff)
In case of prefix build, copy qmltypes.prf to build dir
Otherwise we cannot use it when compiling QML itself. Change-Id: I79dd77f56ffcb61a89109829824958b1d6bd6583 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qmltyperegistrar')
-rw-r--r--src/qmltyperegistrar/qmltyperegistrar.pro12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/qmltyperegistrar/qmltyperegistrar.pro b/src/qmltyperegistrar/qmltyperegistrar.pro
index 8f4235c015..dff8f00ca3 100644
--- a/src/qmltyperegistrar/qmltyperegistrar.pro
+++ b/src/qmltyperegistrar/qmltyperegistrar.pro
@@ -18,7 +18,15 @@ HEADERS += \
build_integration.files = qmltypes.prf
build_integration.path = $$[QT_HOST_DATA]/mkspecs/features
-prefix_build: INSTALLS += build_integration
-else: COPIES += build_integration
+
+prefix_build {
+ load(qt_build_paths)
+ qmltypes_to_builddir.files = qmltypes.prf
+ qmltypes_to_builddir.path = $$MODULE_BASE_OUTDIR/mkspecs/features
+ COPIES += qmltypes_to_builddir
+ INSTALLS += build_integration
+} else {
+ COPIES += build_integration
+}
load(qt_tool)