summaryrefslogtreecommitdiff
path: root/libmm-glib
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 /libmm-glib
parent041f53af8b138fda6242ad1381fd3cd1c2ff6c81 (diff)
downloadModemManager-ba96ccc61587b7b6c31b94826ee7a3c44d795364.tar.gz
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 'libmm-glib')
-rw-r--r--libmm-glib/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmm-glib/meson.build b/libmm-glib/meson.build
index 645184399..42f8ac612 100644
--- a/libmm-glib/meson.build
+++ b/libmm-glib/meson.build
@@ -196,4 +196,6 @@ if enable_gir
endif
endif
-subdir('tests')
+if enable_tests
+ subdir('tests')
+endif