doc: fix up example dependencies in meson

This commit is contained in:
Pauli Virtanen 2024-02-24 16:49:09 +02:00
parent 86af9de739
commit 75eec2ae85

View file

@ -150,11 +150,17 @@ example_files = [
'tutorial5.c', 'tutorial5.c',
'tutorial6.c', 'tutorial6.c',
] ]
example_dep_files = []
foreach h : example_files
example_dep_files += ['examples/' + h]
endforeach
foreach h : examples foreach h : examples
example_files += [h + '.c'] example_files += [h + '.c']
example_dep_files += ['../src/examples/' + h + '.c']
endforeach endforeach
foreach h : spa_examples foreach h : spa_examples
example_files += ['spa/examples/' + h + '.c'] example_files += ['spa/examples/' + h + '.c']
example_dep_files += ['../spa/examples/' + h + '.c']
endforeach endforeach
example_doxygen = [] example_doxygen = []
@ -228,7 +234,8 @@ index_json = custom_target('index.json',
) )
html_target = custom_target('pipewire-docs', html_target = custom_target('pipewire-docs',
input: [ doxyfile, doxygen_layout, examples_dox, doxygen_filter_c, doxygen_filter_h, index_json ] + inputs + cssfiles, input: [ doxyfile, doxygen_layout, example_dep_files, examples_dox,
doxygen_filter_c, doxygen_filter_h, index_json ] + inputs + cssfiles,
output: [ 'html' ], output: [ 'html' ],
command: [ doxygen, doxyfile ], command: [ doxygen, doxyfile ],
env: doxygen_env, env: doxygen_env,