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/1303>
This commit is contained in:
L. E. Segovia 2023-08-17 22:09:10 -03:00 committed by L. E. Segovia
parent 4ff681e0bb
commit 7cf48db2fb

View file

@ -344,7 +344,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