diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2024-01-08 00:07:33 +0100 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-01-08 14:34:09 -0500 |
commit | 173ffc0b4b21da3c8b341c33e69b7b5f910f9d3c (patch) | |
tree | f7c4812a0e161960fe638419fe8a92fab09b6bc7 | |
parent | a55e2e8c7271e67f8853efcb4f00d3059b3eb4a5 (diff) | |
download | libtracefs-173ffc0b4b21da3c8b341c33e69b7b5f910f9d3c.tar.gz |
libtracefs meson: Add option to disable samples
On some Linux environment builder(i.e. Buildroot) we don't want to produce
sample to reduce size usage and dependencies count. So let's add samples
option set to true by default to let the user to override it and not
build samples.
Link: https://lore.kernel.org/linux-trace-devel/20240107230733.456099-1-giulio.benetti@benettiengineering.com
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | meson_options.txt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 57ffe20..f7d3da6 100644 --- a/meson.build +++ b/meson.build @@ -38,7 +38,9 @@ subdir('include') if cunit_dep.found() subdir('utest') endif +if get_option('samples') subdir('samples') +endif if get_option('doc') subdir('Documentation') diff --git a/meson_options.txt b/meson_options.txt index 5533a88..8450992 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -16,3 +16,5 @@ option('docbook-suppress-sp', type : 'boolean', value : false, description : 'docbook suppress sp') option('doc', type : 'boolean', value: true, description : 'produce documentation') +option('samples', type : 'boolean', value: true, + description : 'build samples') |