meson: build html-docs

This allows us to build our Sphinx-based documentation from the meson
build system.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11494>
This commit is contained in:
Erik Faye-Lund
2021-06-21 13:07:54 +02:00
committed by Marge Bot
parent 69809a0384
commit c26d4ee44f
3 changed files with 28 additions and 0 deletions

View File

@@ -2304,6 +2304,12 @@ subdir('src')
meson.add_devenv(devenv)
sphinx = find_program('sphinx-build', version : '>= 4.3',
required: get_option('html-docs'))
if sphinx.found()
subdir('docs')
endif
summary(
{
'prefix': get_option('prefix'),