@@ -140,9 +140,11 @@ subdir('lib/trace-cmd')
# trace-cmd
subdir('tracecmd')
subdir('python')
-if cunit_dep.found()
+if get_option('utest') and cunit_dep.found()
subdir('utest')
endif
+
+if get_option('doc')
subdir('Documentation/trace-cmd')
custom_target(
@@ -150,3 +152,4 @@ custom_target(
output: 'docs',
depends: [html, man],
command: ['echo'])
+endif
@@ -21,3 +21,7 @@ option('docbook-suppress-sp', type : 'boolean', value : false,
description : 'docbook suppress sp')
option('python', type : 'combo', choices : ['auto', 'true', 'false'],
description : 'Generate trac-cmd Python bindings')
+option('doc', type : 'boolean', value: true,
+ description : 'produce documentation')
+option('utest', type : 'boolean', value: true,
+ description : 'build utest')
In some cases building documentation or utest is not desired. Add meson options to allow skipping those build targets. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> --- meson.build | 5 ++++- meson_options.txt | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-)