aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/cpp/doc/xml/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/cpp/doc/xml/meson.build')
-rw-r--r--bindings/cpp/doc/xml/meson.build26
1 files changed, 26 insertions, 0 deletions
diff --git a/bindings/cpp/doc/xml/meson.build b/bindings/cpp/doc/xml/meson.build
new file mode 100644
index 00000000..ff4771b0
--- /dev/null
+++ b/bindings/cpp/doc/xml/meson.build
@@ -0,0 +1,26 @@
+# Copyright 2020-2022 David Robillard <d@drobilla.net>
+# SPDX-License-Identifier: 0BSD OR ISC
+
+doxygen = find_program('doxygen')
+
+cpp_doxygen_input = []
+foreach h : cpp_headers
+ cpp_doxygen_input += ['..' / h]
+endforeach
+
+config = configuration_data()
+config.set('SERD_SRCDIR', serd_src_root)
+config.set('DOX_OUTPUT', meson.current_build_dir() / '..')
+
+cpp_doxyfile = configure_file(
+ configuration: config,
+ input: files('../Doxyfile.in'),
+ output: 'Doxyfile',
+)
+
+cpp_index_xml = custom_target(
+ 'serd-cpp-index.xml',
+ command: [doxygen, '@INPUT0@'],
+ input: [cpp_doxyfile] + cpp_header_files,
+ output: 'index.xml',
+)