diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2024-04-18 11:05:44 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-04-18 16:16:20 +0000 |
commit | 1da2932f37f40b8ed602de4a777d622c07f9cbc3 (patch) | |
tree | c96382bb0d1680a2564ff8a32100dd2c1d72a6b9 | |
parent | 0fe4ab9db21b93c2cb398710dbd8166cfe23a1b8 (diff) |
qmlcachegen: Add hidden --static option
We want qmlcachegen to accept the same arguments as qmlsc so that people
don't have to fiddle with the build system when they need to switch
between them.
Pick-to: 6.5
Change-Id: If21cbd262104c68c96649b4b0882c079c3862f05
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 1e0db4577a8a2a4fca008d9dd58becb5ebf09757)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tools/qmlcachegen/qmlcachegen.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qmlcachegen/qmlcachegen.cpp b/tools/qmlcachegen/qmlcachegen.cpp index da30307466..b40f362c78 100644 --- a/tools/qmlcachegen/qmlcachegen.cpp +++ b/tools/qmlcachegen/qmlcachegen.cpp @@ -83,6 +83,9 @@ int main(int argc, char **argv) QCommandLineOption directCallsOption("direct-calls"_L1, QCoreApplication::translate("main", "This option is ignored.")); directCallsOption.setFlags(QCommandLineOption::HiddenFromHelp); parser.addOption(directCallsOption); + QCommandLineOption staticOption("static"_L1, QCoreApplication::translate("main", "This option is ignored.")); + staticOption.setFlags(QCommandLineOption::HiddenFromHelp); + parser.addOption(staticOption); QCommandLineOption importsOption("i"_L1, QCoreApplication::translate("main", "Import extra qmldir"), QCoreApplication::translate("main", "qmldir file")); parser.addOption(importsOption); QCommandLineOption importPathOption("I"_L1, QCoreApplication::translate("main", "Look for QML modules in specified directory"), QCoreApplication::translate("main", "import directory")); |