diff options
-rw-r--r-- | src/qml/Qt6QmlMacros.cmake | 5 | ||||
-rw-r--r-- | tools/qmlcachegen/qmlcachegen.cpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake index 3f23a4f63d..9d17dfd501 100644 --- a/src/qml/Qt6QmlMacros.cmake +++ b/src/qml/Qt6QmlMacros.cmake @@ -947,6 +947,11 @@ function(_qt_internal_quick_compiler_process_resources target resource_name) list(APPEND qmlcachegen_extra_args "--direct-calls") endif() + get_target_property(qmljs_runtime ${target} QT_QMLCACHEGEN_QMLJS_RUNTIME) + if (qmljs_runtime) + list(APPEND qmlcachegen_extra_args "--qmljs-runtime") + endif() + foreach(file IN LISTS qml_files) get_filename_component(file_absolute ${file} ABSOLUTE) file(RELATIVE_PATH file_relative ${CMAKE_CURRENT_SOURCE_DIR} ${file_absolute}) diff --git a/tools/qmlcachegen/qmlcachegen.cpp b/tools/qmlcachegen/qmlcachegen.cpp index e4077f0831..c56b647c9a 100644 --- a/tools/qmlcachegen/qmlcachegen.cpp +++ b/tools/qmlcachegen/qmlcachegen.cpp @@ -105,6 +105,8 @@ int main(int argc, char **argv) parser.addOption(resourceNameOption); QCommandLineOption directCallsOption(QStringLiteral("direct-calls"), QCoreApplication::translate("main", "This option is ignored.")); parser.addOption(directCallsOption); + QCommandLineOption qmlJSRuntimeOption(QStringLiteral("qmljs-runtime"), QCoreApplication::translate("main", "This option is ignored.")); + parser.addOption(qmlJSRuntimeOption); QCommandLineOption outputFileOption(QStringLiteral("o"), QCoreApplication::translate("main", "Output file name"), QCoreApplication::translate("main", "file name")); parser.addOption(outputFileOption); |