summaryrefslogtreecommitdiff
path: root/introspection
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 /introspection
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 'introspection')
-rw-r--r--introspection/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/introspection/meson.build b/introspection/meson.build
index b1da7ee56..6f45c185e 100644
--- a/introspection/meson.build
+++ b/introspection/meson.build
@@ -3,7 +3,9 @@
# DBus Introspection files
mm_ifaces_all = files('all.xml')
-mm_ifaces_test = files('tests/org.freedesktop.ModemManager1.Test.xml')
+if enable_tests
+ mm_ifaces_test = files('tests/org.freedesktop.ModemManager1.Test.xml')
+endif
mm_ifaces = files('org.freedesktop.ModemManager1.xml')