CMake: Write QT.XXX.plugin_types to qt_lib_XXX.pri files
This is needed for building Qt plugins with qmake against other CMake-built modules. Change-Id: Ibd6ad0b08645c798be74285b24f71add947bea88 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
29bb6311e3
commit
b530ddf795
@ -607,6 +607,13 @@ function(qt_generate_module_pri_file target target_path config_module_name pri_f
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT ${arg_INTERNAL_MODULE})
|
if (NOT ${arg_INTERNAL_MODULE})
|
||||||
|
if(arg_HEADER_MODULE)
|
||||||
|
set(module_plugin_types "")
|
||||||
|
else()
|
||||||
|
get_target_property(module_plugin_types ${target} MODULE_PLUGIN_TYPES)
|
||||||
|
list(JOIN module_plugin_types " " module_plugin_types)
|
||||||
|
endif()
|
||||||
|
|
||||||
qt_path_join(pri_file_name "${target_path}" "qt_lib_${config_module_name}.pri")
|
qt_path_join(pri_file_name "${target_path}" "qt_lib_${config_module_name}.pri")
|
||||||
list(APPEND pri_files "${pri_file_name}")
|
list(APPEND pri_files "${pri_file_name}")
|
||||||
|
|
||||||
@ -620,6 +627,7 @@ QT.${config_module_name}.libs = $$QT_MODULE_LIB_BASE
|
|||||||
QT.${config_module_name}.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/${module}
|
QT.${config_module_name}.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/${module}
|
||||||
QT.${config_module_name}.frameworks =
|
QT.${config_module_name}.frameworks =
|
||||||
QT.${config_module_name}.bins = $$QT_MODULE_BIN_BASE
|
QT.${config_module_name}.bins = $$QT_MODULE_BIN_BASE
|
||||||
|
QT.${config_module_name}.plugin_types = ${module_plugin_types}
|
||||||
QT.${config_module_name}.depends =
|
QT.${config_module_name}.depends =
|
||||||
QT.${config_module_name}.uses =
|
QT.${config_module_name}.uses =
|
||||||
QT.${config_module_name}.module_config = ${joined_module_internal_config}
|
QT.${config_module_name}.module_config = ${joined_module_internal_config}
|
||||||
|
Loading…
Reference in New Issue
Block a user