diff options
author | Dylan Van Assche <me@dylanvanassche.be> | 2022-07-25 09:18:29 +0200 |
---|---|---|
committer | Dylan Van Assche <me@dylanvanassche.be> | 2022-07-25 11:01:51 +0200 |
commit | ba96ccc61587b7b6c31b94826ee7a3c44d795364 (patch) | |
tree | 6924ba6a4cd89c8500a9e7826074df5b23616b65 /meson_options.txt | |
parent | 041f53af8b138fda6242ad1381fd3cd1c2ff6c81 (diff) |
build: make tests optional
Add a meson option -Dtests and --without-tests automake option
to disable the compilation of all available testcases.
This is useful for compiling projects with Flatpak such as
GNOME Control Center which disables all possible integrations since they
only need the DBus part of ModemManager.
Contributes to https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1392
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index fa8d209e..da105e1d 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -4,6 +4,8 @@ option('udev', type: 'boolean', value: true, description: 'enable udev support') option('udevdir', type: 'string', value: '', description: 'udev base directory') +option('tests', type: 'boolean', value: true, description: 'enable tests') + option('dbus_policy_dir', type: 'string', value: '', description: 'd-bus system policy directory') option('systemdsystemunitdir', type: 'string', value: '', description: 'systemd system units directory') |