| 1 |
# Copyright 2020-2023 David Robillard <[email protected]> |
| 2 |
# SPDX-License-Identifier: 0BSD OR ISC |
| 3 |
|
| 4 |
config = configuration_data() |
| 5 |
config.set('SRATOM_SRCDIR', sratom_src_root) |
| 6 |
config.set('DOX_OUTPUT', meson.current_build_dir() / '..') |
| 7 |
|
| 8 |
doxyfile = configure_file( |
| 9 |
configuration: config, |
| 10 |
input: files('../Doxyfile.in'), |
| 11 |
output: 'Doxyfile', |
| 12 |
) |
| 13 |
|
| 14 |
doxygen_xml = custom_target( |
| 15 |
'index.xml', |
| 16 |
command: [doxygen, '@INPUT0@'], |
| 17 |
input: [doxyfile] + c_headers, |
| 18 |
output: [ |
| 19 |
'index.xml', |
| 20 |
|
| 21 |
'group__sratom.xml', |
| 22 |
'sratom_8h.xml', |
| 23 |
], |
| 24 |
) |