summaryrefslogtreecommitdiffstats
path: root/cmake/QtPriHelpers.cmake
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-27 16:49:34 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-28 16:52:32 +0100
commit5c2656cfb60a3308fde3802825176fc80ed1a262 (patch)
treecfd055efde955c4fa4c097d08863f0913b575777 /cmake/QtPriHelpers.cmake
parent53da9f58163f5132c257dda718862626e29edd7a (diff)
cmake: Allow specifying module 'uses' entries
Change-Id: Iee02654e0f52e36e026b8074e0eacb0ea1804685 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtPriHelpers.cmake')
-rw-r--r--cmake/QtPriHelpers.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/QtPriHelpers.cmake b/cmake/QtPriHelpers.cmake
index 3601d55735..2b5669fa65 100644
--- a/cmake/QtPriHelpers.cmake
+++ b/cmake/QtPriHelpers.cmake
@@ -146,8 +146,11 @@ function(qt_generate_module_pri_file target)
get_target_property(module_internal_config "${target}"
"${property_prefix}QT_MODULE_INTERNAL_CONFIG")
+ get_target_property(module_uses "${target}"
+ "${property_prefix}QT_MODULE_USES")
- foreach(var enabled_features disabled_features enabled_private_features disabled_private_features module_internal_config)
+ foreach(var enabled_features disabled_features enabled_private_features disabled_private_features
+ module_internal_config module_uses)
if(${var} STREQUAL "${var}-NOTFOUND")
set(${var} "")
else()
@@ -258,7 +261,7 @@ QT.${config_module_name}.frameworks = ${public_module_frameworks}
QT.${config_module_name}.bins = $$QT_MODULE_BIN_BASE
QT.${config_module_name}.plugin_types = ${module_plugin_types}
QT.${config_module_name}.depends = ${public_module_dependencies}
-QT.${config_module_name}.uses =
+QT.${config_module_name}.uses = ${module_uses}
QT.${config_module_name}.module_config = ${joined_module_internal_config}
QT.${config_module_name}.DEFINES = ${joined_target_defines}
QT.${config_module_name}.enabled_features = ${enabled_features}