summaryrefslogtreecommitdiffstats
path: root/tools/macdeployqt
diff options
context:
space:
mode:
authorMorten Johan Sorvig <morten.sorvig@nokia.com>2012-05-24 11:23:10 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-07-05 10:16:20 (GMT)
commitf531f865084d6858ac5de19bf99b4bdabb39e735 (patch)
treedf2f62304be1d70ccacae13fbe9b877c99b18e04 /tools/macdeployqt
parentfc90624f4651913c7dd0fa52db9b126d7e08f6b0 (diff)
downloadQt-f531f865084d6858ac5de19bf99b4bdabb39e735.zip
Qt-f531f865084d6858ac5de19bf99b4bdabb39e735.tar.gz
Qt-f531f865084d6858ac5de19bf99b4bdabb39e735.tar.bz2
Update macdeployqt plugin deployment logic.
Handle qmltooling, graphics system and bearer plugins. Change-Id: I6f75dc600255013b88558d265a1b1ed25369f8e9 Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'tools/macdeployqt')
-rw-r--r--tools/macdeployqt/shared/shared.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/macdeployqt/shared/shared.cpp b/tools/macdeployqt/shared/shared.cpp
index 39e98f6..6d601da 100644
--- a/tools/macdeployqt/shared/shared.cpp
+++ b/tools/macdeployqt/shared/shared.cpp
@@ -503,10 +503,18 @@ void deployPlugins(const ApplicationBundleInfo &appBundleInfo, const QString &pl
if (useDebugLibs && !pluginName.endsWith("_debug.dylib"))
continue;
+ // Skip the qmltooling plugins in release mode or when QtDeclarative is not used.
+ if (pluginSourcePath.contains("qmltooling") && (!useDebugLibs || deployedFrameworks.indexOf("QtDeclarative.framework") == -1))
+ continue;
+
// Skip the designer plugins
if (pluginSourcePath.contains("plugins/designer"))
continue;
+ // Skipt the tracing graphics system
+ if (pluginName.contains("libqtracegraphicssystem"))
+ continue;
+
#ifndef QT_GRAPHICSSYSTEM_OPENGL
// SKip the opengl graphicssystem plugin when not in use.
if (pluginName.contains("libqglgraphicssystem"))
@@ -531,6 +539,10 @@ void deployPlugins(const ApplicationBundleInfo &appBundleInfo, const QString &pl
// Deploy the script plugins if QtScript.framework is in use
if (deployedFrameworks.indexOf("QtScript.framework") == -1 && pluginName.contains("script"))
continue;
+
+ // Deploy the bearer plugins if QtNetwork.framework is in use
+ if (deployedFrameworks.indexOf("QtNetwork.framework") == -1 && pluginName.contains("bearer"))
+ continue;
}
QDir dir;