monado/doc/meson.build

31 lines
929 B
Meson
Raw Normal View History

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
doxyfile = configure_file(input: 'Doxyfile.in',
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)