2019-09-24 13:43:43 +00:00
|
|
|
# Copyright 2018-2019, Collabora, Ltd.
|
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
|
|
|
doxyconf = configuration_data()
|
|
|
|
doxyconf.set('SRCDIR', meson.source_root())
|
|
|
|
doxyconf.set('BUILDDIR', meson.build_root())
|
|
|
|
doxyconf.set('CURBUILDDIR', meson.current_build_dir())
|
|
|
|
|
|
|
|
if get_option('doxygen-warn-undocumented') and get_option('doxygen-extract-all')
|
|
|
|
error('doxygen-warn-undocumented and doxygen-extract-all are mutually incompatible')
|
|
|
|
endif
|
|
|
|
|
|
|
|
if get_option('doxygen-warn-undocumented')
|
|
|
|
doxyconf.set('DOXYGEN_WARN_UNDOCUMENTED', 'YES')
|
|
|
|
else
|
|
|
|
doxyconf.set('DOXYGEN_WARN_UNDOCUMENTED', 'NO')
|
|
|
|
endif
|
|
|
|
|
|
|
|
if get_option('doxygen-extract-all')
|
|
|
|
doxyconf.set('DOXYGEN_EXTRACT_ALL', 'YES')
|
|
|
|
else
|
|
|
|
doxyconf.set('DOXYGEN_EXTRACT_ALL', 'NO')
|
|
|
|
endif
|
|
|
|
|
2020-03-23 20:28:53 +00:00
|
|
|
doxyfile = configure_file(input: 'Doxyfile.in',
|
2020-03-31 16:15:42 +00:00
|
|
|
output: 'Doxyfile', configuration: doxyconf)
|
2019-09-24 13:43:43 +00:00
|
|
|
|
|
|
|
html = custom_target('docs',
|
|
|
|
input: doxyfile, output: 'html', command: [doxygen, doxyfile],
|
|
|
|
build_by_default: true)
|