doc: add docdir option

As patched in Gentoo.

Fixes #1057
This commit is contained in:
Niklāvs Koļesņikovs 2021-04-15 21:45:53 +03:00 committed by Wim Taymans
parent 74140abada
commit 4bfa4a3964
2 changed files with 8 additions and 2 deletions

View file

@ -24,11 +24,14 @@ doxyfile = configure_file(input: 'Doxyfile.in',
output: 'Doxyfile',
configuration: doxyfile_conf)
docdir = pipewire_datadir / 'doc'
docdir = get_option('docdir')
if docdir == ''
docdir = pipewire_datadir / 'doc' / meson.project_name()
endif
html_target = custom_target('pipewire-docs',
input: [ doxyfile ],
output: [ 'html' ],
command: [ doxygen, doxyfile ],
install: true,
install_dir: docdir / 'pipewire')
install_dir: docdir)

View file

@ -1,3 +1,6 @@
option('docdir',
type : 'string',
description : 'Directory for installing documentation to (defaults to pipewire_datadir/doc/meson.project_name() )')
option('docs',
description: 'Build documentation',
type: 'feature',