Windeployqt: Multiple directory use warning
Added a warning for when windeployqt is used with multiple binaries which are in different directories. Change-Id: Ic43aa9847eb2bf6927cebf5d457595eed6b16b5a Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> (cherry picked from commit a67607480d7cddf604d885532c4359b8c041fd11) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1cf359def7
commit
4897ea9c6b
@ -678,6 +678,7 @@ static inline int parseArguments(const QStringList &arguments, QCommandLineParse
|
||||
} // directory.
|
||||
|
||||
// Remaining files or plugin directories
|
||||
bool multipleDirs = false;
|
||||
for (int i = 1; i < posArgs.size(); ++i) {
|
||||
const QFileInfo fi(QDir::cleanPath(posArgs.at(i)));
|
||||
const QString path = fi.absoluteFilePath();
|
||||
@ -691,9 +692,13 @@ static inline int parseArguments(const QStringList &arguments, QCommandLineParse
|
||||
for (const QString &library : libraries)
|
||||
options->binaries.append(path + u'/' + library);
|
||||
} else {
|
||||
if (fi.absolutePath() != options->directory)
|
||||
multipleDirs = true;
|
||||
options->binaries.append(path);
|
||||
}
|
||||
}
|
||||
if (multipleDirs)
|
||||
std::wcerr << "Warning: using binaries from different directories\n";
|
||||
options->translationsDirectory = options->directory + "/translations"_L1;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user