Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guy1524
gst-plugins-ugly
Commits
d454f95a
Commit
d454f95a
authored
Jul 25, 2020
by
Stéphane Cerveau
🤸🏻
Committed by
Tim-Philipp Müller
Jul 25, 2020
Browse files
meson: add a plugin summary
This summary displays a list of plugins which have been enabled. Part-of: <
!65
>
parent
ed0470e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
meson.build
View file @
d454f95a
...
...
@@ -286,3 +286,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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment