]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: docs/kbase: build html files
authorPavel Hrdina <phrdina@redhat.com>
Thu, 18 Jun 2020 00:30:40 +0000 (02:30 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:06 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
docs/Makefile.am
docs/kbase/meson.build [new file with mode: 0644]
docs/meson.build

index 6b2ee2747e22e82814ba43ca3a5a985cc41cc2bb..a25fe49b6b763d03c6e4bbec2fbec45fb53a4c9d 100644 (file)
@@ -48,19 +48,6 @@ logofiles = \
 logofilesdir = $(HTML_DIR)/logos
 logofiles_DATA = $(logofiles)
 
-kbase_html_in = \
-  $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/kbase/*.html.in))
-kbase_rst = \
-  $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/kbase/*.rst))
-kbase_rst_html_in = \
-  $(kbase_rst:%.rst=%.html.in)
-kbase_html = \
-  $(kbase_html_in:%.html.in=%.html) \
-  $(kbase_rst_html_in:%.html.in=%.html)
-
-kbasedir = $(HTML_DIR)/kbase
-kbase_DATA = $(kbase_html)
-
 # Sync with src/util/
 KEYCODES = linux osx atset1 atset2 atset3 xtkbd usb win32 qnum
 KEYNAMES = linux osx win32
diff --git a/docs/kbase/meson.build b/docs/kbase/meson.build
new file mode 100644 (file)
index 0000000..98b12e4
--- /dev/null
@@ -0,0 +1,46 @@
+docs_kbase_files = [
+  'backing_chains',
+  'domainstatecapture',
+  'incrementalbackupinternals',
+  'kvm-realtime',
+  'launch_security_sev',
+  'locking-lockd',
+  'locking',
+  'locking-sanlock',
+  'migrationinternals',
+  'qemu-passthrough-security',
+  'rpm-deployment',
+  's390_protected_virt',
+  'secureusage',
+  'virtiofs',
+]
+
+foreach name : docs_kbase_files
+  rst_file = '@0@.rst'.format(name)
+  html_file = '@0@.html'.format(name)
+
+  html_in = docs_rst2html_gen.process(rst_file)
+
+  custom_target(
+    html_file,
+    input: html_in,
+    output: html_file,
+    command: [
+      meson_python_prog,
+      python3_prog.path(),
+      meson_html_gen_prog.path(),
+      xsltproc_prog.path(),
+      xmllint_prog.path(),
+      meson.build_root(),
+      docs_timestamp,
+      subsite_xsl,
+      '@INPUT@',
+      '@OUTPUT@',
+      'kbase' / rst_file,
+    ],
+    depends: [ aclperms_gen ],
+    depend_files: [ page_xsl ],
+    install: true,
+    install_dir: docs_html_dir / 'kbase',
+  )
+endforeach
index 39d12b5dfd004ac80c58edf111c55429c764f0d3..a3d01e4ceb4125145419df75df0603687d7b509b 100644 (file)
@@ -295,6 +295,7 @@ subdir('fonts')
 subdir('html')
 subdir('internals')
 subdir('js')
+subdir('kbase')
 
 
 # This hack enables us to view the web pages