message: scripts: filter more qt plugins we don't use in macdeployqtplus
  phonon is no longer a part of Qt as of version 5
diff: @@ -373,9 +373,11 @@ def deployPlugins(appBundleInfo: ApplicationBundleInfo, deploymentInfo: Deployme
  if pluginDirectory == "designer":
  # Skip designer plugins
  continue
  - elif pluginDirectory == "phonon" or pluginDirectory == "phonon_backend":
  - # Deploy the phonon plugins only if phonon is in use
  - if not deploymentInfo.usesFramework("phonon"):
  + elif pluginDirectory == "printsupport":
  + # Skip printsupport plugins
  + continue
  + elif pluginDirectory == "imageformats":
  + # Skip imageformats plugins
  continue
  elif pluginDirectory == "sqldrivers":
  # Deploy the sql plugins only if QtSql is in use
  @@ -409,6 +411,42 @@ def deployPlugins(appBundleInfo: ApplicationBundleInfo, deploymentInfo: Deployme
  # Deploy the mediaservice plugins only if QtMultimediaWidgets is in use
  if not deploymentInfo.usesFramework("QtMultimediaWidgets"):
  continue
  + elif pluginDirectory == "canbus":
  + # Deploy the canbus plugins only if QtSerialBus is in use
  + if not deploymentInfo.usesFramework("QtSerialBus"):
  + continue
  + elif pluginDirectory == "webview":
  + # Deploy the webview plugins only if QtWebView is in use
  + if not deploymentInfo.usesFramework("QtWebView"):
  + continue
  + elif pluginDirectory == "gamepads":
  + # Deploy the webview plugins only if QtGamepad is in use
  + if not deploymentInfo.usesFramework("QtGamepad"):
  + continue
  + elif pluginDirectory == "geoservices":
  + # Deploy the webview plugins only if QtLocation is in use
  + if not deploymentInfo.usesFramework("QtLocation"):
  + continue
  + elif pluginDirectory == "texttospeech":
  + # Deploy the texttospeech plugins only if QtTextToSpeech is in use
  + if not deploymentInfo.usesFramework("QtTextToSpeech"):
  + continue
  + elif pluginDirectory == "virtualkeyboard":
  + # Deploy the virtualkeyboard plugins only if QtVirtualKeyboard is in use
  + if not deploymentInfo.usesFramework("QtVirtualKeyboard"):
  + continue
  + elif pluginDirectory == "sceneparsers":
  + # Deploy the virtualkeyboard plugins only if Qt3DCore is in use
  + if not deploymentInfo.usesFramework("Qt3DCore"):
  + continue
  + elif pluginDirectory == "renderplugins":
  + # Deploy the renderplugins plugins only if Qt3DCore is in use
  + if not deploymentInfo.usesFramework("Qt3DCore"):
  + continue
  + elif pluginDirectory == "geometryloaders":
  + # Deploy the geometryloaders plugins only if Qt3DCore is in use
  + if not deploymentInfo.usesFramework("Qt3DCore"):
  + continue
  for pluginName in filenames:
  pluginPath = os.path.join(pluginDirectory, pluginName)
  @@ -431,6 +469,10 @@ def deployPlugins(appBundleInfo: ApplicationBundleInfo, deploymentInfo: Deployme
  # Deploy the accessible qtquick plugin only if QtQuick is in use
  if not deploymentInfo.usesFramework("QtQuick"):
  continue
  + elif pluginPath == "platforminputcontexts/libqtvirtualkeyboardplugin.dylib":
  + # Deploy the virtualkeyboardplugin plugin only if QtVirtualKeyboard is in use
  + if not deploymentInfo.usesFramework("QtVirtualKeyboard"):
  + continue
  plugins.append((pluginDirectory, pluginName))
  