meson.build 907 B

123456789101112131415161718192021222324252627282930313233
  1. have_dot = find_program('dot', required: false).found()
  2. doxyfile_conf = configuration_data()
  3. doxyfile_conf.set('VERSION', opus_version)
  4. doxyfile_conf.set('HAVE_DOT', have_dot)
  5. doxyfile_conf.set('top_srcdir', top_srcdir)
  6. doxyfile_conf.set('top_builddir', top_builddir)
  7. doxyfile = configure_file(input: 'Doxyfile.in',
  8. output: 'Doxyfile',
  9. configuration: doxyfile_conf,
  10. install: false)
  11. docdir = join_paths(get_option('datadir'), get_option('docdir'))
  12. doc_inputs = [
  13. 'customdoxygen.css',
  14. 'footer.html',
  15. 'header.html',
  16. 'opus_logo.svg',
  17. top_srcdir + '/include/opus.h',
  18. top_srcdir + '/include/opus_multistream.h',
  19. top_srcdir + '/include/opus_defines.h',
  20. top_srcdir + '/include/opus_types.h',
  21. top_srcdir + '/include/opus_custom.h',
  22. ]
  23. custom_target('doc',
  24. input: [ doxyfile ] + doc_inputs,
  25. output: [ 'html' ],
  26. command: [ doxygen, doxyfile ],
  27. install_dir: docdir,
  28. install: true)