cdata = configuration_data()
cdata.set('VERSION', meson.project_version())

cdata.set('TOP_SRCDIR', meson.project_source_root())
cdata.set('DOCDIR', meson.current_source_dir())
cdata.set('DOCBUILDDIR', meson.current_build_dir() / 'doc')
cdata.set('TAGDIR', meson.project_build_root())

doxyfile = configure_file(
  input: 'Doxyfile.in',
  output: 'Doxyfile',
  configuration: cdata,
  install: false
)

oroshi_docs = custom_target(
  'oroshi-docs',
  input: doxyfile,
  output: 'doc',
  command: [doxygen, doxyfile],
  depends: [hurricane_docs, viewer_docs, crlcore_docs],
  install: true,
  install_dir: htmldir
)