Commit cca3b5f6 authored by Peter Hutterer's avatar Peter Hutterer

meson: build docs by default, but allow disabling it

This is the behavior of configure as well.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@imgtec.com>
parent 088c3ea1
...@@ -222,9 +222,8 @@ pkgconfig.generate( ...@@ -222,9 +222,8 @@ pkgconfig.generate(
############ documentation ############ ############ documentation ############
doxygen = find_program('doxygen', if get_option('documentation')
required : false) doxygen = find_program('doxygen')
if doxygen.found()
doxygen_version_cmd = run_command(doxygen.path(), '--version') doxygen_version_cmd = run_command(doxygen.path(), '--version')
if doxygen_version_cmd.returncode() != 0 if doxygen_version_cmd.returncode() != 0
error('Command "doxygen --version" failed.') error('Command "doxygen --version" failed.')
......
...@@ -14,3 +14,7 @@ option('tests', ...@@ -14,3 +14,7 @@ option('tests',
type: 'boolean', type: 'boolean',
default: true, default: true,
description: 'Build the tests [default=true]') description: 'Build the tests [default=true]')
option('documentation',
type: 'boolean',
default: true,
description: 'Build the documentation [default=true]')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment