macdeployqt: Adapt upstream change
This commit is contained in:
10
3rdparty/macdeployqt/shared.cpp
vendored
10
3rdparty/macdeployqt/shared.cpp
vendored
@@ -1435,12 +1435,10 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf
|
|||||||
LogNormal() << "Application QML file path(s) is" << qmlDirs;
|
LogNormal() << "Application QML file path(s) is" << qmlDirs;
|
||||||
LogNormal() << "QML module search path(s) is" << qmlImportPaths;
|
LogNormal() << "QML module search path(s) is" << qmlImportPaths;
|
||||||
|
|
||||||
// Use qmlimportscanner from QLibraryInfo::BinariesPath
|
// Use qmlimportscanner from QLibraryInfo::LibraryExecutablesPath
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
QString qmlImportScannerPath =
|
||||||
QString qmlImportScannerPath = QDir::cleanPath(QLibraryInfo::path(QLibraryInfo::BinariesPath) + "/qmlimportscanner");
|
QDir::cleanPath(QLibraryInfo::path(QLibraryInfo::LibraryExecutablesPath)
|
||||||
#else
|
+ "/qmlimportscanner");
|
||||||
QString qmlImportScannerPath = QDir::cleanPath(QLibraryInfo::location(QLibraryInfo::BinariesPath) + "/qmlimportscanner");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Fallback: Look relative to the macdeployqt binary
|
// Fallback: Look relative to the macdeployqt binary
|
||||||
if (!QFile(qmlImportScannerPath).exists())
|
if (!QFile(qmlImportScannerPath).exists())
|
||||||
|
|||||||
Reference in New Issue
Block a user