Skip to content

Commit

Permalink
meson: add a plugin summary
Browse files Browse the repository at this point in the history
This summary displays a list of plugins which
have been enabled.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/765>
  • Loading branch information
Stéphane Cerveau authored and GStreamer Merge Bot committed Jul 23, 2020
1 parent 1cead20 commit 22827e8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions meson.build
Expand Up @@ -459,3 +459,18 @@ endif
configure_file(output : 'config.h', configuration : core_conf)

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

0 comments on commit 22827e8

Please sign in to comment.