macdeployqt: Remove optional plugins
This commit is contained in:
parent
9ada35c3a3
commit
94cf1f8698
|
@ -1270,7 +1270,6 @@ void deployPlugins(const ApplicationBundleInfo &appBundleInfo, const QString &pl
|
||||||
|
|
||||||
// GStreamer plugins.
|
// GStreamer plugins.
|
||||||
QStringList gstreamer_plugins = QStringList()
|
QStringList gstreamer_plugins = QStringList()
|
||||||
<< "libgstaes.dylib"
|
|
||||||
<< "libgstaiff.dylib"
|
<< "libgstaiff.dylib"
|
||||||
<< "libgstapetag.dylib"
|
<< "libgstapetag.dylib"
|
||||||
<< "libgstapp.dylib"
|
<< "libgstapp.dylib"
|
||||||
|
@ -1324,8 +1323,6 @@ void deployPlugins(const ApplicationBundleInfo &appBundleInfo, const QString &pl
|
||||||
<< "libgstwavparse.dylib"
|
<< "libgstwavparse.dylib"
|
||||||
<< "libgstxingmux.dylib";
|
<< "libgstxingmux.dylib";
|
||||||
|
|
||||||
QStringList gstreamer_plugins_optional = QStringList();
|
|
||||||
|
|
||||||
QString gstreamer_plugins_dir = qgetenv("GST_PLUGIN_PATH");
|
QString gstreamer_plugins_dir = qgetenv("GST_PLUGIN_PATH");
|
||||||
if (gstreamer_plugins_dir.isEmpty()) {
|
if (gstreamer_plugins_dir.isEmpty()) {
|
||||||
if (QDir().exists("/usr/local/lib/gstreamer-1.0")) {
|
if (QDir().exists("/usr/local/lib/gstreamer-1.0")) {
|
||||||
|
@ -1357,24 +1354,6 @@ void deployPlugins(const ApplicationBundleInfo &appBundleInfo, const QString &pl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const QString &plugin : gstreamer_plugins_optional) {
|
|
||||||
QFileInfo info(gstreamer_plugins_dir + "/" + plugin);
|
|
||||||
if (!info.exists()) {
|
|
||||||
info.setFile(gstreamer_plugins_dir + "/" + info.baseName() + QString(".so"));
|
|
||||||
if (!info.exists()) {
|
|
||||||
LogWarning() << "Skip missing gstreamer plugin" << info.baseName();
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const QString &sourcePath = info.filePath();
|
|
||||||
const QString destinationPath = appBundleInfo.path + "/Contents/PlugIns/gstreamer/" + info.fileName();
|
|
||||||
if (QDir().mkpath(QFileInfo(destinationPath).path()) && copyFilePrintStatus(sourcePath, destinationPath)) {
|
|
||||||
runStrip(destinationPath);
|
|
||||||
QList<FrameworkInfo> frameworks = getQtFrameworks(destinationPath, appBundleInfo.path, deploymentInfo.rpathsUsed, useDebugLibs);
|
|
||||||
deployQtFrameworks(frameworks, appBundleInfo.path, QStringList() << destinationPath, useDebugLibs, deploymentInfo.useLoaderPath);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void createQtConf(const QString &appBundlePath)
|
void createQtConf(const QString &appBundlePath)
|
||||||
|
|
Loading…
Reference in New Issue