1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
subdir('man')
ifaces_refs = []
dbus_dir = join_paths(meson.project_source_root(), 'dbus')
spec_to_docbook = files('spec-to-docbook.xsl')
foreach iface: upowerd_dbus_interfaces
iface = iface[1]
iface_ref = iface + '.ref.xml'
ifaces_refs += custom_target(
iface_ref,
input: files(dbus_dir / iface + '.xml'),
output: iface_ref,
command: [xsltproc, '--output', '@OUTPUT@', spec_to_docbook, '@INPUT@'],
# gnome.gtkdoc dependencies don't work properly
# https://github.com/mesonbuild/meson/pull/9960
build_by_default: get_option('gtk-doc'),
)
endforeach
cdata = configuration_data()
cdata.set('VERSION', meson.project_version())
version_xml = configure_file(
output: 'version.xml',
input: 'version.xml.in',
configuration: cdata)
if get_option('gtk-doc')
gnome.gtkdoc('UPower',
main_xml: 'upower-docs.xml',
src_dir: meson.project_source_root() / 'libupower-glib',
dependencies: [ libupower_glib_dep ],
scan_args: ['--rebuild-types', '--rebuild-sections'],
content_files: [
version_xml,
ifaces_refs,
'man/UPower.xml',
'man/upowerd.xml',
'man/upower.xml',
'../COPYING',
],
ignore_headers: [
'config.h',
],
install: true
)
endif
|