mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: docs: build hvsupport.html
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
47b4217365
commit
e4616c5834
@ -277,10 +277,6 @@ manpages/virkeyname-%.rst: $(top_srcdir)/src/keycodemapdb/data/keymaps.csv \
|
|||||||
manpagesdir = $(HTML_DIR)/manpages
|
manpagesdir = $(HTML_DIR)/manpages
|
||||||
manpages_DATA = $(manpages_html)
|
manpages_DATA = $(manpages_html)
|
||||||
|
|
||||||
# Generate hvsupport.html first, since it takes one extra step.
|
|
||||||
dot_html_generated_in = \
|
|
||||||
hvsupport.html.in \
|
|
||||||
$(NULL)
|
|
||||||
dot_rst_html_in = \
|
dot_rst_html_in = \
|
||||||
news.html.in \
|
news.html.in \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
@ -295,15 +291,6 @@ html_DATA = $(dot_html)
|
|||||||
schemadir = $(pkgdatadir)/schemas
|
schemadir = $(pkgdatadir)/schemas
|
||||||
schema_DATA = $(wildcard $(srcdir)/schemas/*.rng)
|
schema_DATA = $(wildcard $(srcdir)/schemas/*.rng)
|
||||||
|
|
||||||
hvsupport.html: hvsupport.html.in
|
|
||||||
|
|
||||||
hvsupport.html.in: $(top_srcdir)/scripts/hvsupport.py $(api_DATA) \
|
|
||||||
$(top_srcdir)/src/libvirt_public.syms \
|
|
||||||
$(top_srcdir)/src/libvirt_qemu.syms $(top_srcdir)/src/libvirt_lxc.syms \
|
|
||||||
$(top_srcdir)/src/driver.h
|
|
||||||
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/hvsupport.py \
|
|
||||||
$(top_srcdir) $(top_builddir) > $@ || { rm $@ && exit 1; }
|
|
||||||
|
|
||||||
manpages/%.html.in: manpages/%.rst
|
manpages/%.html.in: manpages/%.rst
|
||||||
$(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
|
$(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
|
||||||
grep -v '^:Manual ' < $< | \
|
grep -v '^:Manual ' < $< | \
|
||||||
|
@ -228,6 +228,32 @@ foreach name : docs_rst_files
|
|||||||
}
|
}
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
hvsupport_html_in = custom_target(
|
||||||
|
'hvsupport.html.in',
|
||||||
|
output: 'hvsupport.html.in',
|
||||||
|
command: [
|
||||||
|
meson_python_prog,
|
||||||
|
python3_prog.path(),
|
||||||
|
hvsupport_prog.path(),
|
||||||
|
meson.source_root(),
|
||||||
|
meson.build_root(),
|
||||||
|
],
|
||||||
|
capture: true,
|
||||||
|
depend_files: [
|
||||||
|
public_sym_file,
|
||||||
|
libvirt_qemu_syms,
|
||||||
|
libvirt_lxc_syms,
|
||||||
|
driver_header,
|
||||||
|
],
|
||||||
|
depends: [
|
||||||
|
docs_api_generated,
|
||||||
|
],
|
||||||
|
)
|
||||||
|
docs_html_in_gen += {
|
||||||
|
'name': 'hvsupport',
|
||||||
|
'file': hvsupport_html_in,
|
||||||
|
}
|
||||||
|
|
||||||
foreach data : docs_html_in_gen
|
foreach data : docs_html_in_gen
|
||||||
html_file = '@0@.html'.format(data['name'])
|
html_file = '@0@.html'.format(data['name'])
|
||||||
rst_in_file = '@0@.rst'.format(data['name'])
|
rst_in_file = '@0@.rst'.format(data['name'])
|
||||||
|
@ -89,7 +89,7 @@ rpc_probe_files = []
|
|||||||
|
|
||||||
# symbol files
|
# symbol files
|
||||||
|
|
||||||
public_sym_file = 'libvirt_public.syms'
|
public_sym_file = files('libvirt_public.syms')
|
||||||
|
|
||||||
used_sym_files = [
|
used_sym_files = [
|
||||||
'libvirt_private.syms',
|
'libvirt_private.syms',
|
||||||
@ -305,6 +305,8 @@ driver_headers = [
|
|||||||
'driver-stream.h',
|
'driver-stream.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
driver_header = files('driver.h')
|
||||||
|
|
||||||
driver_lib = static_library(
|
driver_lib = static_library(
|
||||||
'virt_driver',
|
'virt_driver',
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user