diff options
author | David Robillard <d@drobilla.net> | 2022-07-17 17:45:43 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-18 21:06:35 -0400 |
commit | 68293752dbfd80016dc7543b88f22c602427fa75 (patch) | |
tree | 4c3e93bb6f345de27e0e8b7403fea50d54639ff8 /doc/c/meson.build | |
parent | 0d018befdaa9b59ddcc53d21b01bef1439a237e3 (diff) | |
download | suil-68293752dbfd80016dc7543b88f22c602427fa75.tar.gz suil-68293752dbfd80016dc7543b88f22c602427fa75.tar.bz2 suil-68293752dbfd80016dc7543b88f22c602427fa75.zip |
Switch to meson build system
Diffstat (limited to 'doc/c/meson.build')
-rw-r--r-- | doc/c/meson.build | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/doc/c/meson.build b/doc/c/meson.build new file mode 100644 index 0000000..64d1f4c --- /dev/null +++ b/doc/c/meson.build @@ -0,0 +1,48 @@ +config = configuration_data() +config.set('SUIL_VERSION', meson.project_version()) + +conf_py = configure_file( + configuration: config, + input: files('../conf.py.in'), + output: 'conf.py', +) + +configure_file( + copy: true, + input: files('../summary.rst'), + output: 'summary.rst', +) + +c_rst_files = files( + 'index.rst', + 'overview.rst', +) + +foreach f : c_rst_files + configure_file(copy: true, input: f, output: '@PLAINNAME@') +endforeach + +subdir('xml') +subdir('api') + +docs = custom_target( + 'singlehtml', + build_by_default: true, + command: [sphinx_build, '-M', 'singlehtml', '@OUTDIR@', '@OUTDIR@', + '-E', '-q', '-t', 'singlehtml'], + input: [c_rst_files, c_suil_rst, c_index_xml], + install: true, + install_dir: docdir / 'suil-0', + output: 'singlehtml', +) + +docs = custom_target( + 'html', + build_by_default: true, + command: [sphinx_build, '-M', 'html', '@OUTDIR@', '@OUTDIR@', + '-E', '-q', '-t', 'html'], + input: [c_rst_files, c_suil_rst, c_index_xml], + install: true, + install_dir: docdir / 'suil-0', + output: 'html', +) |