aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDylan Van Assche <me@dylanvanassche.be>2022-07-25 09:18:29 +0200
committerDylan Van Assche <me@dylanvanassche.be>2022-07-25 11:01:51 +0200
commitba96ccc61587b7b6c31b94826ee7a3c44d795364 (patch)
tree6924ba6a4cd89c8500a9e7826074df5b23616b65 /src
parent041f53af8b138fda6242ad1381fd3cd1c2ff6c81 (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 'src')
-rw-r--r--src/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/meson.build b/src/meson.build
index 2d1faed7..fdcfdebd 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -329,4 +329,6 @@ install_data(
install_dir: udev_rulesdir,
)
-subdir('tests')
+if enable_tests
+ subdir('tests')
+endif