summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-06-20 11:17:39 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-06-20 16:43:49 +1000
commitcca3b5f630fc30c312a27e9f375dd1fdf7bbfc9c (patch)
tree671ca215467ce157715456373a5724e0ae7e20d6
parent088c3ea16b7ca8f108d67182bcf32293a93a5c63 (diff)
meson: build docs by default, but allow disabling it
This is the behavior of configure as well. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
-rw-r--r--meson.build5
-rw-r--r--meson_options.txt4
2 files changed, 6 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index aba7f48..217bf82 100644
--- a/meson.build
+++ b/meson.build
@@ -222,9 +222,8 @@ pkgconfig.generate(
############ documentation ############
-doxygen = find_program('doxygen',
- required : false)
-if doxygen.found()
+if get_option('documentation')
+ doxygen = find_program('doxygen')
doxygen_version_cmd = run_command(doxygen.path(), '--version')
if doxygen_version_cmd.returncode() != 0
error('Command "doxygen --version" failed.')
diff --git a/meson_options.txt b/meson_options.txt
index ad3095e..9861d2d 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -14,3 +14,7 @@ option('tests',
type: 'boolean',
default: true,
description: 'Build the tests [default=true]')
+option('documentation',
+ type: 'boolean',
+ default: true,
+ description: 'Build the documentation [default=true]')