aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build11
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