summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-04-29 16:18:57 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-04-30 10:13:56 +0200
commit14c713e759af7e3f19042da1952969fcba3968db (patch)
tree54545c5ccf93a79cf443ab629c066f93f4608290 /util
parent1af7fb5ed86c659ebea53e6f0316cac008cb89ed (diff)
pro2cmake: convert QMLTYPES_FILENAME to QT_QMLTYPES_FILENAME
Change-Id: I9afc6d4c0c9b3fd87ef28f15da0a984d778b83ac Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 4d7c6960cf..dc6c961cc2 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -3800,6 +3800,10 @@ def handle_app_or_lib(
if import_name:
cm_fh.write(f"{spaces(indent+1)}QT_QML_MODULE_URI {import_name}\n")
+ json_output_filename = scope.expandString("QMLTYPES_FILENAME")
+ if json_output_filename:
+ cm_fh.write(f"{spaces(indent+1)}QT_QMLTYPES_FILENAME {json_output_filename}\n")
+
target_path = scope.get("TARGETPATH")
if target_path:
cm_fh.write(f"{spaces(indent+1)}QT_QML_MODULE_TARGET_PATH {target_path}\n")