diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2014-07-31 11:50:00 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-07-31 14:01:23 +0200 |
commit | f0d30e71e8ded49c359fd58d6659c5d9e7eadb43 (patch) | |
tree | 277cf96f0b7524dfeb1083704b24357df431174b | |
parent | 73e4f9593abecad68b39bbf68564a92dff5222e6 (diff) | |
parent | 1a1da56e2925389ed8a47f3c7d5e17a9dc8a4b55 (diff) | |
download | qttools-f0d30e71e8ded49c359fd58d6659c5d9e7eadb43.tar.gz |
Merge "Merge remote-tracking branch 'origin/stable' into 5.3" into refs/staging/5.3
-rw-r--r-- | src/macdeployqt/shared/shared.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/macdeployqt/shared/shared.cpp b/src/macdeployqt/shared/shared.cpp index 722f1be3a..bf93898b6 100644 --- a/src/macdeployqt/shared/shared.cpp +++ b/src/macdeployqt/shared/shared.cpp @@ -716,6 +716,24 @@ void deployQmlImports(const QString &appBundlePath, QStringList &qmlDirs) QJsonObject import = importValue.toObject(); QString name = import["name"].toString(); QString path = import["path"].toString(); + QString type = import["type"].toString(); + + LogNormal() << "Deploying QML import" << name; + + // Skip imports with missing info - path will be empty if the import is not found. + if (name.isEmpty() || path.isEmpty()) { + LogNormal() << " Skip import: name or path is empty"; + LogNormal() << ""; + continue; + } + + // Deploy module imports only, skip directory (local/remote) and js imports. These + // should be deployed as a part of the application build. + if (type != QStringLiteral("module")) { + LogNormal() << " Skip non-module import"; + LogNormal() << ""; + continue; + } // Create the destination path from the name // and version (grabbed from the source path) |