diff options
author | Martin Blanchard <tchaik@gmx.com> | 2018-09-07 00:07:19 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2018-09-28 14:48:33 +0100 |
commit | 4a6a5daec0384aa91ab142b5f6f4e1b3def7160c (patch) | |
tree | e57c027ef025cd770b6e4f01f2e1db6d65b7062d /meson.build | |
parent | 161fffd979a51da1991276bc50d48237eda831b1 (diff) | |
download | libfuse-4a6a5daec0384aa91ab142b5f6f4e1b3def7160c.tar.gz |
Add build options for utils and examples
Allow skipping utils build & installation (-Dutils=false) and examples
build (-Dexamples=false). By default behaviour is unchanged (both are
true: utils and examples get build).
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 6d4aef7..7df434b 100644 --- a/meson.build +++ b/meson.build @@ -92,10 +92,15 @@ thread_dep = dependency('threads') # # Read build files from sub-directories # -subdirs = [ 'lib', 'include', 'example', 'doc', 'test' ] -if not platform.endswith('bsd') and platform != 'dragonfly' - subdirs += 'util' +subdirs = [ 'lib', 'include', 'test' ] +if get_option('utils') and not platform.endswith('bsd') and platform != 'dragonfly' + subdirs += [ 'util', 'doc' ] endif + +if get_option('examples') + subdirs += 'example' +endif + foreach n : subdirs subdir(n) endforeach |