scripts: filter more qt plugins we don't use in macdeployqtplus
phonon is no longer a part of Qt as of version 5
This commit is contained in:
parent
57cdd0697d
commit
1ac7b7f66b
1 changed files with 46 additions and 4 deletions
|
@ -373,10 +373,12 @@ def deployPlugins(appBundleInfo: ApplicationBundleInfo, deploymentInfo: Deployme
|
||||||
if pluginDirectory == "designer":
|
if pluginDirectory == "designer":
|
||||||
# Skip designer plugins
|
# Skip designer plugins
|
||||||
continue
|
continue
|
||||||
elif pluginDirectory == "phonon" or pluginDirectory == "phonon_backend":
|
elif pluginDirectory == "printsupport":
|
||||||
# Deploy the phonon plugins only if phonon is in use
|
# Skip printsupport plugins
|
||||||
if not deploymentInfo.usesFramework("phonon"):
|
continue
|
||||||
continue
|
elif pluginDirectory == "imageformats":
|
||||||
|
# Skip imageformats plugins
|
||||||
|
continue
|
||||||
elif pluginDirectory == "sqldrivers":
|
elif pluginDirectory == "sqldrivers":
|
||||||
# Deploy the sql plugins only if QtSql is in use
|
# Deploy the sql plugins only if QtSql is in use
|
||||||
if not deploymentInfo.usesFramework("QtSql"):
|
if not deploymentInfo.usesFramework("QtSql"):
|
||||||
|
@ -409,6 +411,42 @@ def deployPlugins(appBundleInfo: ApplicationBundleInfo, deploymentInfo: Deployme
|
||||||
# Deploy the mediaservice plugins only if QtMultimediaWidgets is in use
|
# Deploy the mediaservice plugins only if QtMultimediaWidgets is in use
|
||||||
if not deploymentInfo.usesFramework("QtMultimediaWidgets"):
|
if not deploymentInfo.usesFramework("QtMultimediaWidgets"):
|
||||||
continue
|
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:
|
for pluginName in filenames:
|
||||||
pluginPath = os.path.join(pluginDirectory, pluginName)
|
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
|
# Deploy the accessible qtquick plugin only if QtQuick is in use
|
||||||
if not deploymentInfo.usesFramework("QtQuick"):
|
if not deploymentInfo.usesFramework("QtQuick"):
|
||||||
continue
|
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))
|
plugins.append((pluginDirectory, pluginName))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue