Files
libvirt/docs/kbase/meson.build
T

76 lines
1.6 KiB
Meson
Raw Normal View History

2020-06-18 02:30:40 +02:00
docs_kbase_files = [
'backing_chains',
'debuglogs',
2020-06-18 02:30:40 +02:00
'domainstatecapture',
2020-11-04 15:18:29 +01:00
'index',
2020-06-18 02:30:40 +02:00
'kvm-realtime',
'launch_security_sev',
'live_full_disk_backup',
2020-06-18 02:30:40 +02:00
'locking-lockd',
'locking',
'locking-sanlock',
2021-02-07 20:52:08 +01:00
'memorydevices',
'merging_disk_image_chains',
'qemu-core-dump',
2020-06-18 02:30:40 +02:00
'qemu-passthrough-security',
'rpm-deployment',
's390_protected_virt',
2022-06-22 12:08:04 +02:00
'secureboot',
2020-06-18 02:30:40 +02:00
'secureusage',
'snapshots',
'systemtap',
2022-04-04 16:40:45 +02:00
'tlscerts',
2020-06-18 02:30:40 +02:00
'virtiofs',
]
html_xslt_gen_install_dir = docs_html_dir / 'kbase'
html_xslt_gen = []
2020-06-18 02:30:40 +02:00
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 ---
2020-06-18 02:30:40 +02:00
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,
2020-06-18 02:30:40 +02:00
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,
2020-06-18 02:30:40 +02:00
'@INPUT@',
],
depends: data.get('depends', []),
2020-06-18 02:30:40 +02:00
depend_files: [ page_xsl ],
capture: true,
2020-06-18 02:30:40 +02:00
install: true,
install_dir: html_xslt_gen_install_dir,
2020-06-18 02:30:40 +02:00
)
install_web_deps += html_file
install_web_files += html_file.full_path() + ':' + html_xslt_gen_install_dir
2020-06-18 02:30:40 +02:00
endforeach
html_xslt_gen = []
# --- end of XSLT processing ---
subdir('internals')