The custom_target() function accepts an install_dir parameter. Along with setting install to true, this can be used to replace the install_subdir() function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
20 lines
623 B
Meson
20 lines
623 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: true,
|
|
install_dir: 'share/doc/libcamera-@0@'.format(api_version))
|
|
endif
|