diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-11-05 13:29:19 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-11-06 10:16:30 +0100 |
commit | 83982ac1c5f2222e762944279fe7d126ac62a026 (patch) | |
tree | 29a579d0b03be63ce2e39bddd0fbf13ec6a5dbcf /util | |
parent | ca59c20939a09587662fa8fecd4e480b68244541 (diff) |
pro2cmake: Support QML_PAST_MAJOR_VERSIONS
Change-Id: I47504d6c032c9a6ace7440580f0081cc5f254038
Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-x | util/cmake/pro2cmake.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index a2ee168035..12b52a6c18 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -4182,6 +4182,11 @@ def handle_app_or_lib( if import_version: cm_fh.write(f"{spaces(indent+1)}QT_QML_MODULE_VERSION {import_version}\n") + past_major_versions = scope.expandString("QML_PAST_MAJOR_VERSIONS") + if past_major_versions: + cm_fh.write(f"{spaces(indent+1)}QT_QML_PAST_MAJOR_VERSIONS {past_major_versions}\n") + + import_name = scope.expandString("QML_IMPORT_NAME") if import_name: cm_fh.write(f"{spaces(indent+1)}QT_QML_MODULE_URI {import_name}\n") |