meson: Add doxygen target

The documentation can be generated with "ninja -C build doxygen". The
output will go to "doxygen/html" under the build directory.
This commit is contained in:
Tanu Kaskinen 2020-08-10 19:47:45 +03:00
parent 6fce5b2eac
commit 2c790e1937
2 changed files with 12 additions and 0 deletions

10
doxygen/meson.build Normal file
View file

@ -0,0 +1,10 @@
cdata.set('DOXYGEN_OUTPUT_DIRECTORY', meson.current_build_dir())
doxygen_conf = configure_file(
input : 'doxygen.conf.in',
output : 'doxygen.conf',
configuration : cdata,
)
run_target('doxygen',
command : ['doxygen', doxygen_conf])