diff options
author | Morten Johan Sorvig <morten.sorvig@nokia.com> | 2012-05-24 13:23:10 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-05 12:16:20 +0200 |
commit | f531f865084d6858ac5de19bf99b4bdabb39e735 (patch) | |
tree | df2f62304be1d70ccacae13fbe9b877c99b18e04 /tools/macdeployqt | |
parent | fc90624f4651913c7dd0fa52db9b126d7e08f6b0 (diff) | |
download | qt4-tools-f531f865084d6858ac5de19bf99b4bdabb39e735.tar.gz |
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.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/macdeployqt/shared/shared.cpp b/tools/macdeployqt/shared/shared.cpp index 39e98f6cc6..6d601da0bc 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; |