Commit cdca8a5a authored by Christian Strømme's avatar Christian Strømme Committed by Christian Stromme
Browse files

macdeployqt: Handle deployment of QtWebView's plugins


This change makes sure that the plugins are deployed correctly

Change-Id: Ia967525bcbdf97f86385b68e5a4039f5b5f8ee20
Reviewed-by: default avatarMorten Johan Sørvig <morten.sorvig@qt.io>
Showing with 14 additions and 0 deletions
......@@ -1079,6 +1079,20 @@ void deployPlugins(const ApplicationBundleInfo &appBundleInfo, const QString &pl
});
}
// WebView plugins if QtWebView.framework is in use
if (deploymentInfo.deployedFrameworks.contains(QStringLiteral("QtWebView") + libInfixWithFramework)) {
addPlugins(QStringLiteral("webview"), [](const QString &lib) {
if (lib.startsWith(QStringLiteral("libqtwebview_webengine"))) {
LogWarning() << "Plugin" << lib << "uses QtWebEngine and is not Mac App store compliant.";
if (appstoreCompliant) {
LogWarning() << "Skip plugin" << lib;
return false;
}
}
return true;
});
}
static const std::map<QString, std::vector<QString>> map {
{QStringLiteral("QtMultimedia"), {QStringLiteral("mediaservice"), QStringLiteral("audio")}},
{QStringLiteral("Qt3DRender"), {QStringLiteral("sceneparsers"), QStringLiteral("geometryloaders")}},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment