libcamera/Documentation/meson.build
Kieran Bingham c60069241f Documentation: Introduce sphinx documentation
Utilise sphinx-build to generate documentation in HTML form, and
populate with some initial content.

An initial conf.py is generated from sphinx-quickstart and answering
initial questions.

Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2018-11-28 11:10:11 +00:00

21 lines
648 B
Meson

sphinx = find_program('sphinx-build-3', required: false)
if not sphinx.found()
sphinx = find_program('sphinx-build', required: false)
endif
if sphinx.found()
docs_sources = [
'conf.py',
'contributing.rst',
'index.rst',
]
custom_target('documentation',
command: [sphinx, '-W', '-b', 'html', meson.current_source_dir(), '@OUTPUT@'],
input: docs_sources,
output: 'html',
build_by_default: true)
install_subdir(meson.current_build_dir() + '/html',
install_dir: 'share/doc/libcamera-@0@'.format(api_version))
endif