mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 06:50:05 +01:00
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>
This commit is contained in:
parent
088c3ea16b
commit
cca3b5f630
2 changed files with 6 additions and 3 deletions
|
|
@ -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',
|
||||||
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]')
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue