diff options
author | Daniel Wagner <dwagner@suse.de> | 2022-11-24 09:17:45 +0100 |
---|---|---|
committer | Daniel Wagner <dwagner@suse.de> | 2023-01-04 09:35:06 +0100 |
commit | afb5bbaba40c5ba8d99c276ed42f2a043574f694 (patch) | |
tree | eb485cd564ad4344427b17f8049714309236a438 /meson_options.txt | |
parent | 6a774fbb79904b5b01aeefdc712c65de1019f170 (diff) | |
download | dbus-afb5bbaba40c5ba8d99c276ed42f2a043574f694.tar.gz |
meson: Introduce message_bus and tools command line option
To make the consume libdbus via Meson's subproject use case more useful,
introduce message_bus and tools command line options which control if
the D-Bus daemon and/or the tools are build. The idea here is that
depending projects are interested only in the library.
The strong recommendation is only to build libdbus as static library:
libdbus_dep = dependency(
'dbus-1',
required: get_option('libdbus'),
fallback: ['dbus', 'libdbus_dep'],
default_options: [
'default_library=static',
'embedded_tests=false',
'message_bus=false',
'modular_tests=disabled',
'tools=false',
],
)
This ensures that any installed D-Bus infrastructure on the target
system is not overwritten.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 68f91f19..83c1c921 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -144,6 +144,13 @@ option( ) option( + 'message_bus', + type: 'boolean', + value: 'true', + description: 'Enable dbus-daemon' +) + +option( 'modular_tests', type: 'feature', value: 'auto', @@ -251,6 +258,13 @@ option( ) option( + 'tools', + type: 'boolean', + value: 'true', + description: 'Enable CLI tools such as dbus-send and dbus-monitor' +) + +option( 'traditional_activation', type: 'boolean', value: true, |