aboutsummaryrefslogtreecommitdiffstats
path: root/doc/c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/c')
-rw-r--r--doc/c/Doxyfile.in10
-rw-r--r--doc/c/meson.build12
-rw-r--r--doc/c/xml/meson.build2
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',