summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
authorFawzi Mohamed <[email protected]>2020-11-10 21:35:19 +0100
committerFawzi Mohamed <[email protected]>2020-11-11 20:50:58 +0100
commitd8bd8308f8a0139711ea7d801eeae4ab2228c528 (patch)
tree8ceb605c728a75f5ed8ef84fd8d8e11bf053eebc /util/cmake/pro2cmake.py
parenta299f337c5680dbfbf9756b54daf82271423d06e (diff)
pro2cmake.py: support for PAST_MAJOR_VERSIONS in qml_modules
maps qmake QML_PAST_MAJOR_VERSIONS to PAST_MAJOR_VERSIONS in cmake qml modules, introduced in qtdeclarative qmltyperegistrar: Add past-major-version option Change-Id: Ifbee7c87318cc9dc7d7961db80cad518e67ecffe Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: Alexandru Croitor <[email protected]>
Diffstat (limited to 'util/cmake/pro2cmake.py')
-rwxr-xr-xutil/cmake/pro2cmake.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index f2d5c7562d2..06141cf69eb 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -3904,6 +3904,11 @@ def write_plugin(cm_fh, scope, *, indent: int = 0) -> str:
extra.append(f'INSTALL_DIRECTORY "{target_path}"')
else:
extra.append("SKIP_INSTALL")
+
+ past_major_versions = scope.expandString("QML_PAST_MAJOR_VERSIONS")
+ if past_major_versions:
+ extra.append(f"PAST_MAJOR_VERSIONS {past_major_versions}")
+
if "qmltypes" in scope.get("CONFIG"):
extra.append("GENERATE_QMLTYPES")