diff options
author | David Robillard <d@drobilla.net> | 2021-05-24 09:16:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-05-24 09:42:59 -0400 |
commit | 5cd46c6ff5e5fb187fc01cc938a6a09aa9c4d24c (patch) | |
tree | 8f0dd3efab47f933b18e53439d57607b651d8645 /doc/c | |
parent | 3d78a073d90d8f232604fbdc76a6a583ffab364b (diff) | |
download | pugl-5cd46c6ff5e5fb187fc01cc938a6a09aa9c4d24c.tar.gz pugl-5cd46c6ff5e5fb187fc01cc938a6a09aa9c4d24c.tar.bz2 pugl-5cd46c6ff5e5fb187fc01cc938a6a09aa9c4d24c.zip |
Fix documentation build as a subproject
Diffstat (limited to 'doc/c')
-rw-r--r-- | doc/c/Doxyfile.in | 10 | ||||
-rw-r--r-- | doc/c/meson.build | 12 | ||||
-rw-r--r-- | doc/c/xml/meson.build | 2 |
3 files changed, 16 insertions, 8 deletions
diff --git a/doc/c/Doxyfile.in b/doc/c/Doxyfile.in index 96bbf63..d119015 100644 --- a/doc/c/Doxyfile.in +++ b/doc/c/Doxyfile.in @@ -20,9 +20,13 @@ XML_PROGRAMLISTING = NO SHOW_FILES = NO MACRO_EXPANSION = YES -PREDEFINED = PUGL_API PUGL_DISABLE_DEPRECATED PUGL_CONST_API= PUGL_CONST_FUNC= +PREDEFINED = PUGL_API \ + PUGL_DISABLE_DEPRECATED \ + PUGL_CONST_API= \ + PUGL_CONST_FUNC= +RECURSIVE = YES STRIP_FROM_PATH = @PUGL_SRCDIR@ -INPUT = @PUGL_HEADERS@ +INPUT = @PUGL_SRCDIR@/include -OUTPUT_DIRECTORY = doc/c +OUTPUT_DIRECTORY = @DOX_OUTPUT@ diff --git a/doc/c/meson.build b/doc/c/meson.build index df9363e..65302b3 100644 --- a/doc/c/meson.build +++ b/doc/c/meson.build @@ -26,8 +26,10 @@ subdir('xml') subdir('api') docs = custom_target( - 'C API Documentation (singlehtml)', - command: [sphinx_build, '-M', 'singlehtml', 'doc/c/', 'doc/c/', '-E', '-q', '-t', 'singlehtml'], + 'singlehtml C documentation for pugl', + command: [sphinx_build, '-M', 'singlehtml', + meson.current_build_dir(), meson.current_build_dir(), + '-E', '-q', '-t', 'singlehtml'], input: [c_rst_files, c_pugl_rst, c_index_xml], output: 'singlehtml', build_by_default: true, @@ -35,8 +37,10 @@ docs = custom_target( install_dir: docdir / 'pugl-0') docs = custom_target( - 'C API Documentation (html)', - command: [sphinx_build, '-M', 'html', 'doc/c/', 'doc/c/', '-E', '-q', '-t', 'html'], + 'html C documentation for pugl', + command: [sphinx_build, '-M', 'html', + meson.current_build_dir(), meson.current_build_dir(), + '-E', '-q', '-t', 'html'], input: [c_rst_files, c_pugl_rst, c_index_xml], output: 'html', build_by_default: true, diff --git a/doc/c/xml/meson.build b/doc/c/xml/meson.build index d79d59a..ea5df9c 100644 --- a/doc/c/xml/meson.build +++ b/doc/c/xml/meson.build @@ -6,8 +6,8 @@ foreach h : c_headers endforeach config = configuration_data() -config.set('PUGL_HEADERS', ' '.join(c_doxygen_input)) config.set('PUGL_SRCDIR', pugl_src_root) +config.set('DOX_OUTPUT', meson.current_build_dir() / '..') c_doxyfile = configure_file(configuration: config, input: '../Doxyfile.in', |