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