Getting meson to error out if plugin not built
In the README, it says:
The plugin will be automatically enabled if possible, but you can ensure that it is built by passing
-Dgst-plugins-good:qt5=enabled
tomeson
. This will cause Meson to error out if the plugin could not be enabled. This also works for all plugins in all GStreamer repositories.
I was trying to ensure the srtp
plugin from gst-plugins-bad
so I used the following meson command:
meson -Dgst-plugins-bad:srtp=enabled build/
However, even though I was missing the libsrtp2
dependency, meson finished successfully and just recorded in the log at the end that gst-plugins-bad
was not built.
In order to get meson to error out, I had to use the following command:
meson -Dbad=enabled -Dgst-plugins-bad:srtp=enabled build/
I'm pretty new to meson and gst-build
, but is this expected? If so, should the README be updated for how to ensure a plugin is built?