meson: Set install_tag on all tools

Those tools are not needed at runtime for typical applications,
distributions typically package them separately.

This makes `meson install --tag runtime` skip installation of those
tools. Omitting `--tag` argument will still install them, as well as
with `--tag bin,bin-devel`.

See https://mesonbuild.com/Installing.html#installation-tags.
This commit is contained in:
Xavier Claessens
2022-09-09 13:56:35 -04:00
parent 24572c93c2
commit a1c78d63ef
5 changed files with 15 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ foreach tool: python_tools
output : tool,
configuration : python_tools_conf,
install_dir : glib_bindir,
install_tag : 'bin-devel',
)
# Set variables for later use
@@ -154,6 +155,7 @@ meson.override_dependency('gobject-2.0', libgobject_dep)
executable('gobject-query', 'gobject-query.c',
install : true,
install_tag : 'bin-devel',
dependencies : [libglib_dep, libgobject_dep])
install_data('gobject_gdb.py', install_dir : join_paths(glib_pkgdatadir, 'gdb'))