From 591c040dcd190fa31f91e6f21afe8a9f742e999c Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Fri, 4 Jan 2013 12:35:20 +0100 Subject: Deploy the mediaservice plugins if QtMultimedia is used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iac597d5216a5750850ee8132cbf4a609c032700a Reviewed-by: Morten Johan Sørvig --- src/macdeployqt/shared/shared.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- cgit v1.2.3