* [PATCH] meson: add utest option
@ 2024-02-25 20:47 Fabrice Fontaine
0 siblings, 0 replies; only message in thread
From: Fabrice Fontaine @ 2024-02-25 20:47 UTC (permalink / raw)
To: linux-trace-devel; +Cc: Fabrice Fontaine
Add utest option to allow the user to disable utest
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
meson.build | 2 +-
meson_options.txt | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 3156f1c..d4cfd53 100644
--- a/meson.build
+++ b/meson.build
@@ -35,7 +35,7 @@ incdir = include_directories(['include'])
subdir('src')
subdir('include')
-if cunit_dep.found()
+if get_option('utest') and cunit_dep.found()
subdir('utest')
endif
if get_option('samples')
diff --git a/meson_options.txt b/meson_options.txt
index 8450992..a48efea 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -18,3 +18,5 @@ option('doc', type : 'boolean', value: true,
description : 'produce documentation')
option('samples', type : 'boolean', value: true,
description : 'build samples')
+option('utest', type : 'boolean', value: true,
+ description : 'build utest')
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-25 20:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-25 20:47 [PATCH] meson: add utest option Fabrice Fontaine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).