mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
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-bad/-/merge_requests/1460>
This commit is contained in:
parent
7db147e9aa
commit
64cc3b77b1
1 changed files with 15 additions and 0 deletions
15
meson.build
15
meson.build
|
@ -495,3 +495,18 @@ configure_file(output : 'config.h', configuration : cdata)
|
||||||
run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')
|
run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')
|
||||||
|
|
||||||
subdir('docs')
|
subdir('docs')
|
||||||
|
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue