dox: keep the doxygen input files as array in meson

Keep all files as strings in an array so we can add them to the custom command
input list - this way meson will correctly rebuild documentation on changes.
This commit is contained in:
Peter Hutterer 2021-05-07 08:53:51 +10:00
parent 1fd56a6d26
commit d10381dfc3

View file

@ -10,15 +10,15 @@ else
doxyfile_conf.set('HAVE_DOT', 'NO')
endif
inputs = ''
inputs = []
foreach h : pipewire_headers
inputs += ' ' + meson.source_root() / 'src' / 'pipewire' / h
inputs += meson.source_root() / 'src' / 'pipewire' / h
endforeach
foreach h : pipewire_sources
inputs += ' ' + meson.source_root() / 'src' / 'pipewire' / h
inputs += meson.source_root() / 'src' / 'pipewire' / h
endforeach
doxyfile_conf.set('inputs', inputs)
doxyfile_conf.set('inputs', ' '.join(inputs))
doxyfile = configure_file(input: 'Doxyfile.in',
output: 'Doxyfile',
@ -30,7 +30,7 @@ if docdir == ''
endif
html_target = custom_target('pipewire-docs',
input: [ doxyfile ],
input: [ doxyfile ] + inputs,
output: [ 'html' ],
command: [ doxygen, doxyfile ],
install: true,