2024-01-02 11:29:13 +00:00
|
|
|
From c00e310092d9aeb48adf21dd22f1ee4dbdbf5ebb Mon Sep 17 00:00:00 2001
|
2023-10-19 13:55:26 +00:00
|
|
|
From: Nick Cao <nickcao@nichi.co>
|
|
|
|
Date: Tue, 10 Oct 2023 10:17:00 -0400
|
2024-01-02 11:29:13 +00:00
|
|
|
Subject: [PATCH 10/11] qtbase: check in the QML folder of this library does
|
2023-10-19 13:55:26 +00:00
|
|
|
actually exist
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
In a modularized installation, this folder will be the location where
|
|
|
|
`qtbase` itself is installed, but `qtbase` does not have any QML
|
|
|
|
code, and `qmlimportscanner` will complain that it does not exist.
|
|
|
|
---
|
|
|
|
src/tools/macdeployqt/shared/shared.cpp | 7 +++++--
|
|
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/tools/macdeployqt/shared/shared.cpp b/src/tools/macdeployqt/shared/shared.cpp
|
2024-01-02 11:29:13 +00:00
|
|
|
index 320095a972d..87ba0d4e24b 100644
|
2023-08-22 20:05:09 +00:00
|
|
|
--- a/src/tools/macdeployqt/shared/shared.cpp
|
|
|
|
+++ b/src/tools/macdeployqt/shared/shared.cpp
|
2024-01-02 11:29:13 +00:00
|
|
|
@@ -1297,9 +1297,12 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf
|
2023-08-22 20:05:09 +00:00
|
|
|
}
|
|
|
|
for (const QString &importPath : qmlImportPaths)
|
|
|
|
argumentList << "-importPath" << importPath;
|
|
|
|
+
|
|
|
|
QString qmlImportsPath = QLibraryInfo::path(QLibraryInfo::QmlImportsPath);
|
|
|
|
- argumentList.append( "-importPath");
|
|
|
|
- argumentList.append(qmlImportsPath);
|
|
|
|
+ if (QFile::exists(qmlImportsPath)) {
|
|
|
|
+ argumentList.append( "-importPath");
|
|
|
|
+ argumentList.append(qmlImportsPath);
|
|
|
|
+ }
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
// In a modularized installation of qt as we have in Nix, instead, we will
|
|
|
|
// read the paths from the environment, as they are spread in multiple
|
2023-08-22 20:05:09 +00:00
|
|
|
--
|
2023-10-19 13:55:26 +00:00
|
|
|
2.42.0
|
2023-08-22 20:05:09 +00:00
|
|
|
|