meson: doxygen and tests to feature options

Allows build to continue without passing extra options.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2025-10-21 13:17:10 -07:00
parent 88e850fd4b
commit a8d7d2f732
5 changed files with 14 additions and 9 deletions

View file

@ -1,3 +1,8 @@
doxygen = find_program('doxygen', required: get_option('doxygen'))
if not doxygen.found()
subdir_done()
endif
cdata.set('DOXYGEN_OUTPUT_DIRECTORY', meson.current_build_dir())
doxygen_conf = configure_file(
@ -7,4 +12,4 @@ doxygen_conf = configure_file(
)
run_target('doxygen',
command : ['doxygen', doxygen_conf])
command : [doxygen, doxygen_conf])