command: [
xsltproc_prog, '--nonet', '-o', docs_builddir,
'--stringparam', 'builddir', meson.project_build_root(),
+ '--stringparam', 'aclxmlpath', docs_acl_xml.full_path(),
'--stringparam', 'timestamp', docs_timestamp,
'--stringparam', 'indexfile', 'index.html',
'@INPUT@',
],
install: true,
install_dir: docs_html_dir / 'html',
+ depends: docs_acl_xml,
depend_files: [
page_xsl,
],
docs_html_gen += index_api_gen.to_list()
docs_html_dep += index_api_gen
-foreach name : [ 'admin', 'lxc', 'qemu' ]
+foreach name : [ 'lxc', 'qemu' ]
index_api_gen = custom_target(
'index-@0@-api'.format(name),
input: [
command: [
xsltproc_prog, '--nonet', '-o', docs_builddir,
'--stringparam', 'builddir', meson.project_build_root(),
+ '--stringparam', 'aclxmlpath', get_variable('docs_acl_@0@_xml'.format(name)).full_path(),
'--stringparam', 'timestamp', docs_timestamp,
'@INPUT@',
],
install: true,
install_dir: docs_html_dir / 'html',
+ depends: get_variable('docs_acl_@0@_xml'.format(name)),
depend_files: [
page_xsl,
],
docs_html_dep += index_api_gen
endforeach
+index_api_gen = custom_target(
+ 'index-admin-api'.format(name),
+ input: [
+ newapi_xsl,
+ docs_admin_api_xml,
+ ],
+ output: [
+ 'libvirt-libvirt-admin.html'
+ ],
+ command: [
+ xsltproc_prog, '--nonet', '-o', docs_builddir,
+ '--stringparam', 'builddir', meson.project_build_root(),
+ '--stringparam', 'aclxmlpath', '',
+ '--stringparam', 'timestamp', docs_timestamp,
+ '@INPUT@',
+ ],
+ install: true,
+ install_dir: docs_html_dir / 'html',
+ depend_files: [
+ page_xsl,
+ ],
+ )
+
+docs_html_gen += index_api_gen.to_list()
+docs_html_dep += index_api_gen
+
docs_html_paths = []
install_web_deps += docs_html_dep
<xsl:param name="indexfile" select="''"/>
+ <xsl:param name="aclxmlpath" select="''"/>
+
<!-- the target directory for the HTML output -->
<xsl:variable name="htmldir">html</xsl:variable>
<xsl:variable name="href_base">../</xsl:variable>
<xsl:variable name="acls">
- <xsl:copy-of select="document('{$builddir}/src/libvirt_access.xml')/aclinfo/api"/>
- </xsl:variable>
- <xsl:variable name="qemuacls">
- <xsl:copy-of select="document('{$builddir}/src/libvirt_access_qemu.xml')/aclinfo/api"/>
- </xsl:variable>
- <xsl:variable name="lxcacls">
- <xsl:copy-of select="document('{$builddir}/src/libvirt_access_lxc.xml')/aclinfo/api"/>
+ <xsl:if test="$aclxmlpath != ''">
+ <xsl:copy-of select="document($aclxmlpath)/aclinfo/api"/>
+ </xsl:if>
</xsl:variable>
<xsl:template name="aclinfo">