From 12c058bc49026fde12458d99ed31acff63979cc6 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 29 Nov 2022 18:48:03 +0200 Subject: [PATCH] meson: Fix build of static plugins While we were correctly skipping the plugins that couldn't be built statically, we were still adding their names to the list and the .pc list causing them to still get built. Part-of: --- ci/generate-static-test.py | 2 +- meson.build | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ci/generate-static-test.py b/ci/generate-static-test.py index b4c75d8e..065beb5c 100755 --- a/ci/generate-static-test.py +++ b/ci/generate-static-test.py @@ -7,7 +7,7 @@ import os from utils import iterate_plugins # the csound version used on ci does not ship a .pc file -IGNORE = ['csound'] +IGNORE = ['csound', 'threadshare'] outdir = sys.argv[1] diff --git a/meson.build b/meson.build index d76f8770..ce7846e5 100644 --- a/meson.build +++ b/meson.build @@ -282,13 +282,13 @@ foreach plugin : plugins warning('Static plugin @0@ is known to fail. It will not be included in libgstreamer-full.'.format(plugin_name)) else gst_plugins += dep - endif - pc_files += [plugin_name + '.pc'] - if plugin_name.startswith('gst') - plugin_names += [plugin_name.substring(3)] - else - plugin_names += [plugin_name] + pc_files += [plugin_name + '.pc'] + if plugin_name.startswith('gst') + plugin_names += [plugin_name.substring(3)] + else + plugin_names += [plugin_name] + endif endif endforeach