Documentation: Set install_dir in custom_target()
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>
This commit is contained in:
parent
830031892b
commit
66bb4d388d
1 changed files with 3 additions and 4 deletions
|
@ -14,8 +14,7 @@ if sphinx.found()
|
||||||
command: [sphinx, '-W', '-b', 'html', meson.current_source_dir(), '@OUTPUT@'],
|
command: [sphinx, '-W', '-b', 'html', meson.current_source_dir(), '@OUTPUT@'],
|
||||||
input: docs_sources,
|
input: docs_sources,
|
||||||
output: 'html',
|
output: 'html',
|
||||||
build_by_default: true)
|
build_by_default: true,
|
||||||
|
install: true,
|
||||||
install_subdir(meson.current_build_dir() + '/html',
|
|
||||||
install_dir: 'share/doc/libcamera-@0@'.format(api_version))
|
install_dir: 'share/doc/libcamera-@0@'.format(api_version))
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue