mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
5ecdcf8541
The build_root() method is deprecated in 0.56.0 and we're recommended to use project_build_root() instead. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
76 lines
1.6 KiB
Meson
76 lines
1.6 KiB
Meson
docs_kbase_files = [
|
|
'backing_chains',
|
|
'debuglogs',
|
|
'domainstatecapture',
|
|
'index',
|
|
'kvm-realtime',
|
|
'launch_security_sev',
|
|
'live_full_disk_backup',
|
|
'locking-lockd',
|
|
'locking',
|
|
'locking-sanlock',
|
|
'memorydevices',
|
|
'merging_disk_image_chains',
|
|
'qemu-core-dump',
|
|
'qemu-passthrough-security',
|
|
'rpm-deployment',
|
|
's390_protected_virt',
|
|
'secureboot',
|
|
'secureusage',
|
|
'snapshots',
|
|
'systemtap',
|
|
'tlscerts',
|
|
'virtiofs',
|
|
]
|
|
|
|
html_xslt_gen_install_dir = docs_html_dir / 'kbase'
|
|
html_xslt_gen = []
|
|
|
|
foreach name : docs_kbase_files
|
|
rst_file = '@0@.rst'.format(name)
|
|
|
|
html_xslt_gen += {
|
|
'name': name,
|
|
'file': docs_rst2html5_gen.process(rst_file),
|
|
'source': 'docs' / 'kbase' / rst_file,
|
|
'href_base': '../',
|
|
}
|
|
endforeach
|
|
|
|
|
|
# --- begin of XSLT processing ---
|
|
|
|
foreach data : html_xslt_gen
|
|
html_filename = data['name'] + '.html'
|
|
|
|
html_file = custom_target(
|
|
html_filename,
|
|
input: data.get('file', data['name'] + '.html.in'),
|
|
output: html_filename,
|
|
command: [
|
|
xsltproc_prog,
|
|
'--stringparam', 'pagesrc', data.get('source', ''),
|
|
'--stringparam', 'builddir', meson.project_build_root(),
|
|
'--stringparam', 'timestamp', docs_timestamp,
|
|
'--stringparam', 'href_base', data.get('href_base', ''),
|
|
'--nonet',
|
|
site_xsl,
|
|
'@INPUT@',
|
|
],
|
|
depends: data.get('depends', []),
|
|
depend_files: [ page_xsl ],
|
|
capture: true,
|
|
install: true,
|
|
install_dir: html_xslt_gen_install_dir,
|
|
)
|
|
|
|
install_web_deps += html_file
|
|
install_web_files += html_file.full_path() + ':' + html_xslt_gen_install_dir
|
|
endforeach
|
|
|
|
html_xslt_gen = []
|
|
|
|
# --- end of XSLT processing ---
|
|
|
|
subdir('internals')
|