[glib: 1/2] meson: Set install_tag on all tools
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] meson: Set install_tag on all tools
- Date: Mon, 12 Sep 2022 14:22:05 +0000 (UTC)
commit a1c78d63ef758df68d01d43d3be8d7c3cb600bea
Author: Xavier Claessens <xavier claessens collabora com>
Date: Fri Sep 9 13:56:35 2022 -0400
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.
gio/gdbus-2.0/codegen/meson.build | 1 +
gio/meson.build | 9 +++++++++
glib/meson.build | 2 ++
gobject/meson.build | 2 ++
tools/meson.build | 1 +
5 files changed, 15 insertions(+)
---
diff --git a/gio/gdbus-2.0/codegen/meson.build b/gio/gdbus-2.0/codegen/meson.build
index bf25cdaebb..f0a256898a 100644
--- a/gio/gdbus-2.0/codegen/meson.build
+++ b/gio/gdbus-2.0/codegen/meson.build
@@ -20,6 +20,7 @@ gdbus_codegen_conf.set('DATADIR', glib_datadir)
gdbus_codegen = configure_file(input : 'gdbus-codegen.in',
output : 'gdbus-codegen',
install_dir : get_option('bindir'),
+ install_tag : 'bin-devel',
configuration : gdbus_codegen_conf
)
# Provide tools for others when we're a subproject and they use the Meson GNOME module
diff --git a/gio/meson.build b/gio/meson.build
index 69bb0603eb..fdd2528dfd 100644
--- a/gio/meson.build
+++ b/gio/meson.build
@@ -410,6 +410,7 @@ if host_system != 'windows'
include_directories : glibinc,
install : true,
install_dir : multiarch_libexecdir,
+ install_tag : 'bin',
c_args : gio_c_args,
# intl.lib is not compatible with SAFESEH
link_args : noseh_link_args)
@@ -959,6 +960,7 @@ gio_tool_sources = [
executable('gio', gio_tool_sources,
install : true,
+ install_tag : 'bin',
c_args : gio_c_args,
# intl.lib is not compatible with SAFESEH
link_args : noseh_link_args,
@@ -966,6 +968,7 @@ executable('gio', gio_tool_sources,
executable('gresource', 'gresource-tool.c',
install : true,
+ install_tag : 'bin',
# intl.lib is not compatible with SAFESEH
link_args : noseh_link_args,
dependencies : [libelf, libgio_dep, libgobject_dep, libgmodule_dep, libglib_dep])
@@ -973,6 +976,7 @@ executable('gresource', 'gresource-tool.c',
gio_querymodules = executable('gio-querymodules', 'gio-querymodules.c', 'giomodule-priv.c',
install : true,
install_dir : multiarch_bindir,
+ install_tag : 'bin',
c_args : gio_c_args,
# intl.lib is not compatible with SAFESEH
link_args : noseh_link_args,
@@ -982,6 +986,7 @@ glib_compile_schemas = executable('glib-compile-schemas',
['glib-compile-schemas.c'],
install : true,
install_dir : multiarch_bindir,
+ install_tag : 'bin',
# intl.lib is not compatible with SAFESEH
link_args : noseh_link_args,
dependencies : [libgio_dep, libgobject_dep, libgmodule_dep, libglib_dep, gvdb_dep])
@@ -989,6 +994,7 @@ glib_compile_schemas = executable('glib-compile-schemas',
glib_compile_resources = executable('glib-compile-resources',
[gconstructor_as_data_h, 'glib-compile-resources.c'],
install : true,
+ install_tag : 'bin-devel',
c_args : gio_c_args,
# intl.lib is not compatible with SAFESEH
link_args : noseh_link_args,
@@ -1005,6 +1011,7 @@ endif
executable('gsettings', 'gsettings-tool.c',
install : true,
+ install_tag : 'bin',
c_args : gio_c_args,
# intl.lib is not compatible with SAFESEH
link_args : noseh_link_args,
@@ -1017,6 +1024,7 @@ install_data(['gschema.loc', 'gschema.its'],
executable('gdbus', 'gdbus-tool.c',
install : true,
+ install_tag : 'bin',
c_args : gio_c_args,
# intl.lib is not compatible with SAFESEH
link_args : noseh_link_args,
@@ -1025,6 +1033,7 @@ executable('gdbus', 'gdbus-tool.c',
if host_system != 'windows' and not glib_have_cocoa
executable('gapplication', 'gapplication-tool.c',
install : true,
+ install_tag : 'bin',
c_args : gio_c_args,
# intl.lib is not compatible with SAFESEH
link_args : noseh_link_args,
diff --git a/glib/meson.build b/glib/meson.build
index bcfcba94f7..1e6dc36be6 100644
--- a/glib/meson.build
+++ b/glib/meson.build
@@ -435,6 +435,7 @@ if host_system == 'windows'
else
gtester = executable('gtester', 'gtester.c',
install : true,
+ install_tag : 'bin-devel',
c_args : ['-UG_DISABLE_ASSERT'],
include_directories : configinc,
dependencies : [libglib_dep])
@@ -447,6 +448,7 @@ configure_file(
input: 'gtester-report.in',
output: 'gtester-report',
install_dir: get_option('bindir'),
+ install_tag : 'bin-devel',
configuration: report_conf,
install_mode: 'rwxr-xr-x'
)
diff --git a/gobject/meson.build b/gobject/meson.build
index 07d096f36e..a994eb5918 100644
--- a/gobject/meson.build
+++ b/gobject/meson.build
@@ -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'))
diff --git a/tools/meson.build b/tools/meson.build
index d550a0e372..0542fb89b1 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -9,6 +9,7 @@ if have_sh
gettextize_conf.set('datadir', glib_datadir)
configure_file(input : 'glib-gettextize.in',
install_dir : glib_bindir,
+ install_tag : 'bin-devel',
output : 'glib-gettextize',
configuration : gettextize_conf)
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]