From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: linux-trace-devel@vger.kernel.org
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Subject: [PATCH] meson: add utest option
Date: Sun, 25 Feb 2024 21:47:58 +0100 [thread overview]
Message-ID: <20240225204759.3263-1-fontaine.fabrice@gmail.com> (raw)
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
reply other threads:[~2024-02-25 20:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240225204759.3263-1-fontaine.fabrice@gmail.com \
--to=fontaine.fabrice@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.