mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson.build: separate options for installing man pages or docs
This commit is contained in:
parent
d0ec322434
commit
ffa52fdbc1
3 changed files with 20 additions and 10 deletions
20
meson.build
20
meson.build
|
|
@ -485,18 +485,24 @@ if alsa_dep.found()
|
|||
subdir('pipewire-alsa/tests')
|
||||
endif
|
||||
|
||||
doxygen = find_program('doxygen', required : get_option('docs'))
|
||||
pymod = import('python')
|
||||
python = pymod.find_installation('python3', required: get_option('docs'))
|
||||
generate_docs = doxygen.found() and python.found()
|
||||
generate_docs = get_option('man').enabled() or get_option('docs').enabled()
|
||||
if get_option('man').allowed() or get_option('docs').allowed()
|
||||
doxygen = find_program('doxygen', required : generate_docs)
|
||||
pymod = import('python')
|
||||
python = pymod.find_installation('python3', required: generate_docs)
|
||||
generate_docs = doxygen.found() and python.found()
|
||||
endif
|
||||
|
||||
install_docs = get_option('docs').require(generate_docs).allowed()
|
||||
install_man = get_option('man').require(generate_docs).allowed()
|
||||
|
||||
summary({'Documentation ': install_docs}, bool_yn: true)
|
||||
summary({'Man pages ': install_man}, bool_yn: true)
|
||||
|
||||
if generate_docs
|
||||
subdir('doc')
|
||||
endif
|
||||
|
||||
summary({'Documentation and man pages ': generate_docs}, bool_yn: true)
|
||||
|
||||
|
||||
setenv = find_program('pw-uninstalled.sh')
|
||||
run_target('pw-uninstalled',
|
||||
command : [setenv,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue