CMake: Generate qrc files at configure time and make them traceable
Having the qrc files at configure time allows qmlimportscanner to scan them when invoked with -qrcFiles argument. The traceability part is done via _qt_generated_qrc_files property. Task-number: QTBUG-85994 Change-Id: I75c252a987cd1c1f49ba73ec9d100edc73c23486 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
b5af140809
commit
113f1ad324
@ -1175,7 +1175,10 @@ function(_qt_internal_process_resource target resourceName)
|
||||
# </qresource></RCC>
|
||||
string(APPEND qrcContents " </qresource>\n</RCC>\n")
|
||||
|
||||
file(GENERATE OUTPUT "${generatedResourceFile}" CONTENT "${qrcContents}")
|
||||
file(WRITE "${generatedResourceFile}.in" "${qrcContents}")
|
||||
configure_file("${generatedResourceFile}.in" "${generatedResourceFile}")
|
||||
|
||||
set_property(TARGET ${target} APPEND PROPERTY _qt_generated_qrc_files "${generatedResourceFile}")
|
||||
|
||||
set(rccArgs --name "${newResourceName}"
|
||||
--output "${generatedSourceCode}" "${generatedResourceFile}")
|
||||
|
Loading…
Reference in New Issue
Block a user