Browse Source

fixup! WIP: Switch to Meson

zrythm_meson
David Robillard 2 years ago
parent
commit
c51023693b
  1. 5
      doc/c/Doxyfile.in
  2. 4
      doc/c/api/meson.build
  3. 12
      doc/c/meson.build
  4. 2
      doc/c/xml/meson.build

5
doc/c/Doxyfile.in

@ -21,7 +21,8 @@ SHOW_FILES = NO @@ -21,7 +21,8 @@ SHOW_FILES = NO
MACRO_EXPANSION = YES
PREDEFINED = SRATOM_API
RECURSIVE = YES
STRIP_FROM_PATH = @SRATOM_SRCDIR@
INPUT = @SRATOM_HEADERS@
INPUT = @SRATOM_SRCDIR@/include
OUTPUT_DIRECTORY = doc/c
OUTPUT_DIRECTORY = @DOX_OUTPUT@

4
doc/c/api/meson.build

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
c_sratom_rst = custom_target(
'C API ReST Documentation',
command: [dox_to_sphinx, '-f', '@INPUT0@', 'doc/c/api'],
'Sratom C API ReST Documentation',
command: [dox_to_sphinx, '-f', '@INPUT0@', meson.current_build_dir()],
input: [c_index_xml] + c_rst_files,
output: 'sratom.rst')

12
doc/c/meson.build

@ -20,8 +20,10 @@ subdir('xml') @@ -20,8 +20,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 documentation for sratom',
command: [sphinx_build, '-M', 'singlehtml',
meson.current_build_dir(), meson.current_build_dir(),
'-E', '-q', '-t', 'singlehtml'],
input: [c_rst_files, c_sratom_rst, c_index_xml],
output: 'singlehtml',
build_by_default: true,
@ -29,8 +31,10 @@ docs = custom_target( @@ -29,8 +31,10 @@ docs = custom_target(
install_dir: docdir / 'sratom-0')
docs = custom_target(
'C API Documentation (html)',
command: [sphinx_build, '-M', 'html', 'doc/c/', 'doc/c/', '-E', '-q', '-t', 'html'],
'html documentation for sratom',
command: [sphinx_build, '-M', 'html',
meson.current_build_dir(), meson.current_build_dir(),
'-E', '-q', '-t', 'html'],
input: [c_rst_files, c_sratom_rst, c_index_xml],
output: 'html',
build_by_default: true,

2
doc/c/xml/meson.build

@ -6,8 +6,8 @@ foreach h : c_headers @@ -6,8 +6,8 @@ foreach h : c_headers
endforeach
config = configuration_data()
config.set('SRATOM_HEADERS', ' '.join(c_doxygen_input))
config.set('SRATOM_SRCDIR', sratom_src_root)
config.set('DOX_OUTPUT', meson.current_build_dir() / '..')
c_doxyfile = configure_file(configuration: config,
input: '../Doxyfile.in',

Loading…
Cancel
Save