Skip to contentSkip to conversation

libtracefs: add option to disable samples

PATCH New Giulio Benetti 1 participant 1 message Jan 7, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtracefs: 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.

---
 meson.build       | 2 ++
 meson_options.txt | 2 ++
 2 files changed, 4 insertions(+)
meson.build +2 -0
index 57ffe20..f7d3da6 100644
@@ -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')
meson_options.txt +2 -0
index 5533a88..8450992 100644
@@ -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')
Signature · 1 line
2.34.1