2
0

meson.build 559 B

12345678910111213141516171819202122
  1. # libSRTP documentation
  2. doxygen = find_program('doxygen', required: get_option('doc'))
  3. if not doxygen.found()
  4. subdir_done()
  5. endif
  6. doc_config = configuration_data()
  7. doc_config.set('LIBSRTPVERSIONNUMBER', meson.project_version())
  8. doxyfile = configure_file(input: 'Doxyfile.in',
  9. output: 'Doxyfile',
  10. configuration: doc_config)
  11. # can be built on demand with ninja -C builddir doc/html
  12. doxygen_html_docs = custom_target('doc',
  13. build_by_default: false,
  14. command: [doxygen, doxyfile],
  15. output: ['html'])
  16. alias_target('libsrtp2doc', doxygen_html_docs)