Skip to contentSkip to conversation

libtraceevent: add option to disable documentation

PATCH New Giulio Benetti 1 participant 1 message Sep 30, 2023 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libtraceevent: add option to disable documentation

On some Linux environment builder(i.e. Buildroot) host asciidoc is not provided since by default all man/docs are not installed to target but meson.build at the moment build ascii and html documentation and requires asciidoc making the building to fail. So let's add doc option set to true by default to let the user to override it and not produce the documentation.

---
V1->V2:
* improve commit log as suggested by Steve Rostedt

---
 meson.build       | 3 +++
 meson_options.txt | 2 ++
 2 files changed, 5 insertions(+)
meson.build +3 -0
index b61c873..9a18e02 100644
@@ -45,6 +45,8 @@ if cunit_dep.found()
     subdir('utest')
 endif
 subdir('samples')
+
+if get_option('doc')
 subdir('Documentation')
 
 custom_target(
@@ -52,3 +54,4 @@ custom_target(
     output: 'docs',
     depends: [html, man],
     command: ['echo'])
+endif
meson_options.txt +2 -0
index b2294f6..9a40dad 100644
@@ -16,3 +16,5 @@ option('man-bold-literal', type : 'boolean', value : false,
        description : 'enable bold literals')
 option('docbook-suppress-sp', type : 'boolean', value : false,
        description : 'docbook suppress sp')
+option('doc', type : 'boolean', value: true,
+       description : 'produce documentation')
Signature · 1 line
2.34.1