diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2021-08-17 20:15:11 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2021-09-09 17:10:36 +0200 |
commit | 3a9b5162e6983c1fe825e50988f953895a3a9838 (patch) | |
tree | e980065eaf1d3cc6a95d69160b13005dc78ebefb /src/corelib | |
parent | 9a602e68cf9dd29638027894032b6052c0526426 (diff) | |
download | qtbase-3a9b5162e6983c1fe825e50988f953895a3a9838.tar.gz |
Collect QT_QML_ROOT_PATH based from the project resources
Use the _qt_internal_collect_qml_root_paths function to collect qml
files from the resources. The function is called only if Qml module is
found.
Pick-to: 6.2
Task-number: QTBUG-93340
Change-Id: I2b5f51e3d7fb8aa82f46e88b2aac5e52bf0930d5
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/Qt6CoreMacros.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index 6170615d5e..390ff27e1c 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -1738,6 +1738,12 @@ function(_qt_internal_process_resource target resourceName) endforeach() endif() + if(ANDROID) + if(COMMAND _qt_internal_collect_qml_root_paths) + _qt_internal_collect_qml_root_paths(${target} ${resource_files}) + endif() + endif() + if(NOT rcc_PREFIX) get_target_property(rcc_PREFIX ${target} QT_RESOURCE_PREFIX) if (NOT rcc_PREFIX) |