voamrwbenc: Do not install anything unless dependency found

If the dependency for the plugin is not found then nothing should be
installed, neither the element nor documentation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8586>
This commit is contained in:
Branko Subasic 2025-03-04 14:33:29 +01:00 committed by GStreamer Marge Bot
parent ee6618d9ba
commit f37b820060

View file

@ -29,9 +29,9 @@ if voamrwbenc_dep.found()
install_dir: plugins_install_dir,
)
plugins += [gstvoamrwbenc]
endif
install_data('GstVoAmrwbEnc.prs', install_dir: presetdir)
env = environment()
env.prepend('GST_PRESET_PATH', meson.current_source_dir())
meson.add_devenv(env)
endif