meson: Disable plugins and related outputs if features are disabled

Previously, there was no check performed on features of plugins if these
specify GStreamer plugins. This commit adds that, and ensures that the
plugins and pkg-config targets are skipped if no outputs are to be
generated (this is already done for examples).

Closes #369

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1331>
This commit is contained in:
L. E. Segovia 2023-08-17 22:09:10 -03:00 committed by Sebastian Dröge
parent 2c34193590
commit 6c5c4205a4

View file

@ -343,7 +343,7 @@ foreach plugin_name, details: plugins
plugin_features = details.get('features', [])
if plugin_deps_found
# Validate gst-plugin features
foreach feature: features
foreach feature: plugin_features
if feature.startswith('gst-plugin') and not packages.contains(feature)
plugin_deps_found = false
break