1From 8490a7ac101d4ee0a78c44b252d3b7a6c2508c74 Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Sat, 21 Aug 2021 11:55:48 +0200 4Subject: [PATCH] meson: add tests option 5 6Add tests option to allow the user to disable them 7 8Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 9[Retrieved from: 10https://gitlab.freedesktop.org/spice/usbredir/-/commit/8490a7ac101d4ee0a78c44b252d3b7a6c2508c74] 11--- 12 meson.build | 4 +++- 13 meson_options.txt | 5 +++++ 14 2 files changed, 8 insertions(+), 1 deletion(-) 15 16diff --git a/meson.build b/meson.build 17index 6e773a7..a6d21b8 100644 18--- a/meson.build 19+++ b/meson.build 20@@ -106,7 +106,9 @@ if host_machine.system() != 'windows' 21 subdir('fuzzing') 22 endif 23 endif 24-subdir('tests') 25+if get_option('tests').enabled() 26+ subdir('tests') 27+endif 28 subdir('data') 29 30 summary(summary_info, bool_yn: true) 31diff --git a/meson_options.txt b/meson_options.txt 32index b35732b..63e8c85 100644 33--- a/meson_options.txt 34+++ b/meson_options.txt 35@@ -21,3 +21,8 @@ option('tools', 36 type : 'feature', 37 value : 'enabled', 38 description : 'Build usbredir\'s tools such as usbredirect') 39+ 40+option('tests', 41+ type : 'feature', 42+ value : 'enabled', 43+ description : 'Build usbredir\'s tests such as filter') 44-- 45GitLab 46 47