From ba96ccc61587b7b6c31b94826ee7a3c44d795364 Mon Sep 17 00:00:00 2001 From: Dylan Van Assche Date: Mon, 25 Jul 2022 09:18:29 +0200 Subject: 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 --- libmm-glib/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libmm-glib') 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 -- cgit v1.2.1