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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/994>
This commit is contained in:
Jordan Petridis 2022-11-29 18:48:03 +02:00
parent 76eeaffbb2
commit 12c058bc49
2 changed files with 7 additions and 7 deletions

View file

@ -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]

View file

@ -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