Skip to content

Commit fc5b970

Browse files
Fawzi MohamedThe Qt Project
authored andcommitted
qmlplugindump: add an explicit -relocatable flag
* explicit -relocatable will allows us to change the default to nonrelocatable. * add support for both -notrelocatable and the grammatically correct -nonrelocatable. * backport from qt5 Change-Id: I0f5335e2cf86ba2eda7ad80b4f7271b8b6ddcada Reviewed-by: Kai Koehne <[email protected]>
1 parent c0688f4 commit fc5b970

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tools/qmlplugindump/main.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ void sigSegvHandler(int) {
482482
void printUsage(const QString &appName)
483483
{
484484
qWarning() << qPrintable(QString(
485-
"Usage: %1 [-v] [-notrelocatable] module.uri version [module/import/path]\n"
485+
"Usage: %1 [-v] [-[non]relocatable] module.uri version [module/import/path]\n"
486486
" %1 [-v] -path path/to/qmldir/directory [version]\n"
487487
" %1 [-v] -builtins\n"
488488
"Example: %1 Qt.labs.particles 4.7 /home/user/dev/qt-install/imports").arg(
@@ -529,8 +529,13 @@ int main(int argc, char *argv[])
529529
}
530530

531531
if (arg == QLatin1String("--notrelocatable")
532-
|| arg == QLatin1String("-notrelocatable")) {
532+
|| arg == QLatin1String("-notrelocatable")
533+
|| arg == QLatin1String("--nonrelocatable")
534+
|| arg == QLatin1String("-nonrelocatable")) {
533535
relocatable = false;
536+
} else if (arg == QLatin1String("--relocatable")
537+
|| arg == QLatin1String("-relocatable")) {
538+
relocatable = true;
534539
} else if (arg == QLatin1String("--path")
535540
|| arg == QLatin1String("-path")) {
536541
action = Path;

0 commit comments

Comments
 (0)