summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-07-30 15:45:52 +0200
committerOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-07-30 15:55:13 +0200
commit1a1da56e2925389ed8a47f3c7d5e17a9dc8a4b55 (patch)
treef35cb31e568b29b608220c4a2d01f91201d78c08
parenta7d5e67556bd32496ce0a0f98a5ee225e00977e0 (diff)
parent4b711fec48c395ab4e486dd1a789309d4d488e9d (diff)
downloadqttools-1a1da56e2925389ed8a47f3c7d5e17a9dc8a4b55.tar.gz
Merge remote-tracking branch 'origin/stable' into 5.3
Change-Id: I8c3a43456ee3e378adbbda0d528d06201fd87256
-rw-r--r--src/macdeployqt/shared/shared.cpp18
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)