start building doxygen documentation

This commit is contained in:
Chris Cromer 2022-12-09 23:25:36 -03:00
parent 1d5870f025
commit 9e6772cb59
Signed by: cromer
GPG Key ID: FA91071797BEEEC2
3 changed files with 2693 additions and 0 deletions

2661
doc/doxygen.conf.in Normal file

File diff suppressed because it is too large Load Diff

16
doc/meson.build Normal file
View File

@ -0,0 +1,16 @@
cdata.set('TOP_SRCDIR', meson.source_root())
cdata.set('TOP_BUILDDIR', meson.build_root())
doxyfile = configure_file(input: 'doxygen.conf.in',
output: 'doxygen.conf',
configuration: cdata,
install: false)
datadir = join_paths(get_option('datadir'), 'doc', 'obelisk')
html_target = custom_target('obelisk-docs',
input: doxyfile,
output: 'html',
command: [doxygen, doxyfile],
install: true,
install_dir: datadir)

View File

@ -8,4 +8,20 @@ project('obelisk',
]
)
doxygen = find_program('doxygen', required : false)
if not doxygen.found()
error('MESON_SKIP_TEST doxygen not found.')
endif
cdata = configuration_data()
cdata.set('VERSION', meson.project_version())
if find_program('dot', required : false).found()
cdata.set('HAVE_DOT', 'YES')
else
cdata.set('HAVE_DOT', 'NO')
endif
subdir('doc')
subdir('src')