summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2013-01-04 12:35:20 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-09 14:35:39 +0100
commit591c040dcd190fa31f91e6f21afe8a9f742e999c (patch)
tree66b15564772bde1feda3fdc500a5c2fb9e6a565a /src
parent2b844b37bbb12c1588b1ee3eae6ee6553c6fef91 (diff)
downloadqttools-591c040dcd190fa31f91e6f21afe8a9f742e999c.tar.gz
Deploy the mediaservice plugins if QtMultimedia is used
Change-Id: Iac597d5216a5750850ee8132cbf4a609c032700a Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/macdeployqt/shared/shared.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/macdeployqt/shared/shared.cpp b/src/macdeployqt/shared/shared.cpp
index d2a1bb17c..5eb146421 100644
--- a/src/macdeployqt/shared/shared.cpp
+++ b/src/macdeployqt/shared/shared.cpp
@@ -528,6 +528,14 @@ void deployPlugins(const ApplicationBundleInfo &appBundleInfo, const QString &pl
}
}
+ if (deploymentInfo.deployedFrameworks.contains(QStringLiteral("QtMultimedia.framework"))) {
+ QStringList sqlPlugins = QDir(pluginSourcePath + QStringLiteral("/mediaservice")).entryList(QStringList() << QStringLiteral("*.dylib"));
+ foreach (const QString &plugin, sqlPlugins) {
+ if (!plugin.endsWith(QStringLiteral("_debug.dylib")))
+ pluginList.append(QStringLiteral("mediaservice/") + plugin);
+ }
+ }
+
foreach (const QString &plugin, pluginList) {
QString sourcePath = pluginSourcePath + "/" + plugin;