Browse Source

Attempt to close #30 by deploying the xcbglintegrations plugins together with libQt5OpenGL

master
probonopd 8 years ago
committed by GitHub
parent
commit
a4217a1ad0
  1. 9
      shared/shared.cpp

9
shared/shared.cpp

@ -749,7 +749,6 @@ void deployPlugins(const AppDirInfo &appDirInfo, const QString &pluginSourcePath
LogDebug() << "deploymentInfo.deployedLibraries before attempting to bundle required plugins:" << deploymentInfo.deployedLibraries; LogDebug() << "deploymentInfo.deployedLibraries before attempting to bundle required plugins:" << deploymentInfo.deployedLibraries;
// Platform plugin: // Platform plugin:
if (containsHowOften(deploymentInfo.deployedLibraries, "libQt5Gui")) { if (containsHowOften(deploymentInfo.deployedLibraries, "libQt5Gui")) {
LogDebug() << "libQt5Gui detected"; LogDebug() << "libQt5Gui detected";
pluginList.append("platforms/libqxcb.so"); pluginList.append("platforms/libqxcb.so");
@ -765,6 +764,14 @@ void deployPlugins(const AppDirInfo &appDirInfo, const QString &pluginSourcePath
} }
} }
// Platform OpenGL context
if (containsHowOften(deploymentInfo.deployedLibraries, "libQt5OpenGL")) {
QStringList xcbglintegrationPlugins = QDir(pluginSourcePath + QStringLiteral("/xcbglintegrations")).entryList(QStringList() << QStringLiteral("*.so"));
foreach (const QString &plugin, xcbglintegrationPlugins) {
pluginList.append(QStringLiteral("xcbglintegrations/") + plugin);
}
}
// CUPS print support // CUPS print support
if (containsHowOften(deploymentInfo.deployedLibraries, "libQt5PrintSupport")) { if (containsHowOften(deploymentInfo.deployedLibraries, "libQt5PrintSupport")) {
pluginList.append("printsupport/libcupsprintersupport.so"); pluginList.append("printsupport/libcupsprintersupport.so");

Loading…
Cancel
Save