From 9aba23c99ed59765a6991089c05c98f35e549c51 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 1 Dec 2020 14:33:13 +0100 Subject: Allow passing --qmljs-runtime to the qmlcachegen implementation This signals qmlcachegenplus to not paste the whole JavaScript type system into each generated file. In turn, user projects need to add a dependency in order to build against the JS runtime. qmlcachegen ignores the option. Change-Id: I0f87dedb969e99e94fbb712b7faa23d84f76dfbe Reviewed-by: Fabian Kosmale Reviewed-by: Alexandru Croitor --- tools/qmlcachegen/qmlcachegen.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/qmlcachegen') 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); -- cgit v1.2.3