Debian Codegraph @

doc/dbus/meson.build

raw
1 docbook_xml_header = custom_target('docbook_xml_header',
2 output: 'docbook-xml-header.xml',
3 command: [
4 'echo', '-n',
5 '<?xml version="1.0"?>\n',
6 '<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">\n',
7 ],
8 capture: true,
9 )
10
11 dbus_interfaces_refs = []
12 foreach interface_file: dbus_interfaces
13 basename = run_command('basename', interface_file, '.xml', check: true).stdout().strip()
14 dbus_interfaces_refs += custom_target(basename + '_ref',
15 input: docbook_xml_header,
16 output: basename + '.ref.xml',
17 build_by_default: true,
18 depend_files: interface_file,
19 capture: true,
20 command: [
21 sh, '-c',
22 'cat "$1"; "$2" "$3" "$4" | tail -n +2',
23 '_', # argv0 ignored
24 '@INPUT@',
25 xsltproc, files('spec-to-docbook.xsl')[0], interface_file
26 ],
27 )
28 endforeach