CMake: Extract resource object file recording into new function
This function will be used by qtdeclarative CMake functions to record resource object file information for Qml-specific generated resources (like the ones containing qmldir and qml files). Task-number: QTBUG-87702 Change-Id: I17c295821775d005dea82d9fbdf83d7ee613f615 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
f9dcade5e7
commit
b233b5f31e
@ -21,7 +21,13 @@ function(qt_internal_add_resource target resourceName)
|
||||
EXPORT "${INSTALL_CMAKE_NAMESPACE}${target}Targets"
|
||||
DESTINATION ${INSTALL_LIBDIR}
|
||||
)
|
||||
foreach(out_target ${out_targets})
|
||||
|
||||
qt_internal_record_rcc_object_files("${target}" "${out_targets}")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(qt_internal_record_rcc_object_files target resource_targets)
|
||||
foreach(out_target ${resource_targets})
|
||||
get_target_property(resource_name ${out_target} QT_RESOURCE_NAME)
|
||||
if(NOT resource_name)
|
||||
continue()
|
||||
@ -43,6 +49,4 @@ function(qt_internal_add_resource target resourceName)
|
||||
# flags, needed for building iOS apps with qmake where bitcode is involved.
|
||||
target_link_libraries("${out_target}" PRIVATE Qt::PlatformModuleInternal)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
endfunction()
|
||||
|
Loading…
Reference in New Issue
Block a user