2020-06-25 16:15:02 +00:00
|
|
|
docs_html_gen = []
|
|
|
|
docs_html_dep = []
|
|
|
|
|
|
|
|
index_api_gen = custom_target(
|
2020-06-18 00:28:33 +00:00
|
|
|
'index-api',
|
|
|
|
input: [
|
|
|
|
newapi_xsl,
|
|
|
|
docs_api_xml,
|
|
|
|
],
|
|
|
|
output: [
|
|
|
|
'index.html',
|
|
|
|
'libvirt-libvirt-common.html',
|
|
|
|
'libvirt-libvirt-domain.html',
|
|
|
|
'libvirt-libvirt-domain-checkpoint.html',
|
|
|
|
'libvirt-libvirt-domain-snapshot.html',
|
|
|
|
'libvirt-libvirt-event.html',
|
|
|
|
'libvirt-libvirt-host.html',
|
|
|
|
'libvirt-libvirt-interface.html',
|
|
|
|
'libvirt-libvirt-network.html',
|
|
|
|
'libvirt-libvirt-nodedev.html',
|
|
|
|
'libvirt-libvirt-nwfilter.html',
|
|
|
|
'libvirt-libvirt-secret.html',
|
|
|
|
'libvirt-libvirt-storage.html',
|
|
|
|
'libvirt-libvirt-stream.html',
|
|
|
|
'libvirt-virterror.html',
|
|
|
|
],
|
|
|
|
command: [
|
|
|
|
xsltproc_prog, '--nonet', '-o', docs_builddir,
|
2022-10-07 07:31:32 +00:00
|
|
|
'--stringparam', 'builddir', meson.project_build_root(),
|
2020-06-18 00:28:33 +00:00
|
|
|
'--stringparam', 'timestamp', docs_timestamp,
|
2022-11-03 12:16:31 +00:00
|
|
|
'--stringparam', 'indexfile', 'index.html',
|
2020-06-18 00:28:33 +00:00
|
|
|
'@INPUT@',
|
|
|
|
],
|
|
|
|
install: true,
|
|
|
|
install_dir: docs_html_dir / 'html',
|
|
|
|
depend_files: [
|
|
|
|
page_xsl,
|
|
|
|
],
|
|
|
|
)
|
2020-06-18 00:29:04 +00:00
|
|
|
|
2020-06-25 16:15:02 +00:00
|
|
|
docs_html_gen += index_api_gen.to_list()
|
|
|
|
docs_html_dep += index_api_gen
|
|
|
|
|
2023-02-21 14:54:36 +00:00
|
|
|
foreach name : [ 'admin', 'lxc', 'qemu' ]
|
2020-06-25 16:15:02 +00:00
|
|
|
index_api_gen = custom_target(
|
2020-06-18 00:29:04 +00:00
|
|
|
'index-@0@-api'.format(name),
|
|
|
|
input: [
|
|
|
|
newapi_xsl,
|
|
|
|
get_variable('docs_@0@_api_xml'.format(name)),
|
|
|
|
],
|
|
|
|
output: [
|
|
|
|
'libvirt-libvirt-@0@.html'.format(name),
|
|
|
|
],
|
|
|
|
command: [
|
|
|
|
xsltproc_prog, '--nonet', '-o', docs_builddir,
|
2022-10-07 07:31:32 +00:00
|
|
|
'--stringparam', 'builddir', meson.project_build_root(),
|
2020-06-18 00:29:04 +00:00
|
|
|
'--stringparam', 'timestamp', docs_timestamp,
|
|
|
|
'@INPUT@',
|
|
|
|
],
|
|
|
|
install: true,
|
|
|
|
install_dir: docs_html_dir / 'html',
|
|
|
|
depend_files: [
|
|
|
|
page_xsl,
|
|
|
|
],
|
|
|
|
)
|
2020-06-25 16:15:02 +00:00
|
|
|
|
|
|
|
docs_html_gen += index_api_gen.to_list()
|
|
|
|
docs_html_dep += index_api_gen
|
2020-06-18 00:29:04 +00:00
|
|
|
endforeach
|
2020-06-25 16:15:02 +00:00
|
|
|
|
|
|
|
docs_html_paths = []
|
|
|
|
|
2020-07-23 16:40:12 +00:00
|
|
|
install_web_deps += docs_html_dep
|
|
|
|
|
2020-06-25 16:15:02 +00:00
|
|
|
foreach file : docs_html_gen
|
|
|
|
docs_html_paths += file.full_path()
|
2020-07-23 16:40:12 +00:00
|
|
|
install_web_files += '@0@:@1@'.format(file.full_path(), docs_html_dir / 'html')
|
2020-06-25 16:15:02 +00:00
|
|
|
endforeach
|
|
|
|
|
|
|
|
test(
|
|
|
|
'check-html',
|
|
|
|
xmllint_prog,
|
|
|
|
args: [
|
|
|
|
'--nonet', '--noout', docs_html_paths,
|
|
|
|
],
|
|
|
|
depends: docs_html_dep,
|
|
|
|
)
|