mirror of
https://github.com/xiph/opus.git
synced 2025-05-15 07:58:29 +00:00

meson.source_root() and meson.build_root() have been deprecated in latest Meson release because they are a trap. They point to the root of parent project instead of root of current subproject. Meson 0.56.0 added meson.project_source/build_root() but it is just as easy to use meson.current_source/build_dir() in the root meson.build file and avoids bumping required meson version. Signed-off-by: Ralph Giles <giles@thaumas.net>
33 lines
907 B
Meson
33 lines
907 B
Meson
have_dot = find_program('dot', required: false).found()
|
|
|
|
doxyfile_conf = configuration_data()
|
|
doxyfile_conf.set('VERSION', opus_version)
|
|
doxyfile_conf.set('HAVE_DOT', have_dot)
|
|
doxyfile_conf.set('top_srcdir', top_srcdir)
|
|
doxyfile_conf.set('top_builddir', top_builddir)
|
|
|
|
doxyfile = configure_file(input: 'Doxyfile.in',
|
|
output: 'Doxyfile',
|
|
configuration: doxyfile_conf,
|
|
install: false)
|
|
|
|
docdir = join_paths(get_option('datadir'), get_option('docdir'))
|
|
|
|
doc_inputs = [
|
|
'customdoxygen.css',
|
|
'footer.html',
|
|
'header.html',
|
|
'opus_logo.svg',
|
|
top_srcdir + '/include/opus.h',
|
|
top_srcdir + '/include/opus_multistream.h',
|
|
top_srcdir + '/include/opus_defines.h',
|
|
top_srcdir + '/include/opus_types.h',
|
|
top_srcdir + '/include/opus_custom.h',
|
|
]
|
|
|
|
custom_target('doc',
|
|
input: [ doxyfile ] + doc_inputs,
|
|
output: [ 'html' ],
|
|
command: [ doxygen, doxyfile ],
|
|
install_dir: docdir,
|
|
install: true)
|