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