Browse Source

fixup! WIP: Switch to Meson

zrythm_meson
David Robillard 1 year ago
parent
commit
d63c31df0d
  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. 1
      meson.build

5
doc/c/Doxyfile.in

@ -29,7 +29,8 @@ PREDEFINED = SERD_ALLOCATED \ @@ -29,7 +29,8 @@ PREDEFINED = SERD_ALLOCATED \
SERD_NULLABLE= \
SERD_PURE_FUNC=
RECURSIVE = YES
STRIP_FROM_PATH = @SERD_SRCDIR@
INPUT = @SERD_HEADERS@
INPUT = @SERD_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_serd_rst = custom_target(
'C API ReST Documentation',
command: [dox_to_sphinx, '-f', '@INPUT0@', 'doc/c/api'],
'Serd C API ReST Documentation',
command: [dox_to_sphinx, '-f', '@INPUT0@', meson.current_build_dir()],
input: [c_index_xml] + c_rst_files,
output: 'serd.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 serd',
command: [sphinx_build, '-M', 'singlehtml',
meson.current_build_dir(), meson.current_build_dir(),
'-E', '-q', '-t', 'singlehtml'],
input: [c_rst_files, c_serd_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 / 'serd-0')
docs = custom_target(
'C API Documentation (html)',
command: [sphinx_build, '-M', 'html', 'doc/c/', 'doc/c/', '-E', '-q', '-t', 'html'],
'html documentation for serd',
command: [sphinx_build, '-M', 'html',
meson.current_build_dir(), meson.current_build_dir(),
'-E', '-q', '-t', 'html'],
input: [c_rst_files, c_serd_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('SERD_HEADERS', ' '.join(c_doxygen_input))
config.set('SERD_SRCDIR', serd_src_root)
config.set('DOX_OUTPUT', meson.current_build_dir() / '..')
c_doxyfile = configure_file(configuration: config,
input: '../Doxyfile.in',

1
meson.build

@ -88,6 +88,7 @@ endif @@ -88,6 +88,7 @@ endif
c_headers = ['include/serd/serd.h']
c_header_files = files(c_headers)
c_header = files('include/serd/serd.h')
sources = [
'src/base64.c',

Loading…
Cancel
Save