[PATCH] libtracefs: add option to disable samples

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Giulio Benetti <giulio.benetti@xxxxxxxxxxxxxxxxxxxxxx>
---
 meson.build       | 2 ++
 meson_options.txt | 2 ++
 2 files changed, 4 insertions(+)

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')
-- 
2.34.1





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux