diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2016-03-19 18:40:22 +0300 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-10-28 19:59:08 +0300 |
commit | c2b542b6c02bafbe7a83b2eeec6cb5a0bfa3ed0d (patch) | |
tree | d788ad2c57bd1ccaae6aa73dced21c83c59df1b1 /doc | |
parent | 034c1b61a250457649d788bbf983b3f0fb63f02e (diff) |
Add support for Meson build system
Tested on:
- Linux/x86* with gcc
- Android armv7 arm64 x86 x86_64 with clang
- Windows x86 x86_64 with Visual Studio 2017
- Windows x86 x86_64 with MinGW
- macOS x86_64 with clang
- iOS arm64 x86_64 with clang
Co-authored by: Nirbheek Chauhan <nirbheek@centricular.com>
https://gitlab.xiph.org/xiph/opus/-/merge_requests/13
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Doxyfile.in | 3 | ||||
-rw-r--r-- | doc/meson.build | 36 |
2 files changed, 39 insertions, 0 deletions
diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index 6d25f1fb..6eef650b 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -335,3 +335,6 @@ PREDEFINED = OPUS_EXPORT= \ # configure time. # HAVE_DOT = @HAVE_DOT@ + +# move docs to the correct place +OUTPUT_DIRECTORY = @top_builddir@/doc diff --git a/doc/meson.build b/doc/meson.build new file mode 100644 index 00000000..8f967a51 --- /dev/null +++ b/doc/meson.build @@ -0,0 +1,36 @@ +top_srcdir = meson.source_root() +top_builddir = meson.build_root() + +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) |