diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2020-07-23 17:58:00 +0300 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-07-23 18:41:43 +0300 |
commit | ca3b10a0f002a528f6f7710e170e501bb5dd37b1 (patch) | |
tree | 9a94d122e61774774176142255608b1ea8f9cf42 | |
parent | 0a453cc4a4a17df669ff725e2f66dcac4ae78b3e (diff) |
meson: add a plugin summary
This summary displays a list of plugins which
have been enabled.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/679>
-rw-r--r-- | meson.build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 3a4ac3166..4c3262d1c 100644 --- a/meson.build +++ b/meson.build @@ -461,3 +461,18 @@ endif configure_file(output : 'config.h', configuration : cdata) run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")') + +if meson.version().version_compare('>= 0.54') + plugin_names = [] + foreach plugin: plugins + # FIXME: Use str.subtring() when we can depend on Meson 0.56 + split = plugin.name().split('gst') + if split.length() == 2 + plugin_names += [split[1]] + else + warning('Need substring API in meson >= 0.56 to properly parse plugin name: ' + plugin.name()) + plugin_names += [plugin.name()] + endif + endforeach + summary({'Plugins':plugin_names}, list_sep: ', ') +endif |