This patch implement the bearer plugins deployement
[ChangeLog][OS X][macdeployqt] Now correctly deploys the network related
plugins
Change-Id: I37e8a7033bc4d7d41fe34314ddac7b441696c5b7
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
// Cocoa print support
pluginList.append("printsupport/libcocoaprintersupport.dylib");
+ // Network
+ if (deploymentInfo.deployedFrameworks.contains(QStringLiteral("QtNetwork.framework"))) {
+ QStringList bearerPlugins = QDir(pluginSourcePath + QStringLiteral("/bearer")).entryList(QStringList() << QStringLiteral("*.dylib"));
+ foreach (const QString &plugin, bearerPlugins) {
+ if (!plugin.endsWith(QStringLiteral("_debug.dylib")))
+ pluginList.append(QStringLiteral("bearer/") + plugin);
+ }
+ }
+
// Accessibility
if (deploymentInfo.deployedFrameworks.contains(QStringLiteral("QtWidgets.framework")))
pluginList.append("accessible/libqtaccessiblewidgets.dylib");