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(
############ 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.')
......
......@@ -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]')
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