aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-04-18 11:05:44 +0200
committerUlf Hermann <ulf.hermann@qt.io>2024-04-18 14:42:40 +0200
commit1e0db4577a8a2a4fca008d9dd58becb5ebf09757 (patch)
tree8ad6380a28aee934a09c59799cd560d1a02ac8a4
parent5ce8fd73430c86cc0b52f8eaf5dbfc000605b6a0 (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.7 6.5 Change-Id: If21cbd262104c68c96649b4b0882c079c3862f05 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r--tools/qmlcachegen/qmlcachegen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qmlcachegen/qmlcachegen.cpp b/tools/qmlcachegen/qmlcachegen.cpp
index bcd6a7387f..1180931d9f 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"));