aboutsummaryrefslogtreecommitdiffstats
path: root/doc/cpp/xml/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'doc/cpp/xml/meson.build')
-rw-r--r--doc/cpp/xml/meson.build19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/cpp/xml/meson.build b/doc/cpp/xml/meson.build
new file mode 100644
index 00000000..afc187d0
--- /dev/null
+++ b/doc/cpp/xml/meson.build
@@ -0,0 +1,19 @@
+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')