2021-08-30 13:11:42 +02:00
|
|
|
subdir('man')
|
|
|
|
|
|
|
|
|
|
ifaces_refs = []
|
|
|
|
|
|
2022-05-10 15:39:24 +02:00
|
|
|
dbus_dir = join_paths(meson.project_source_root(), 'dbus')
|
2021-08-30 13:11:42 +02:00
|
|
|
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@'],
|
2022-02-07 15:56:25 +01:00
|
|
|
# gnome.gtkdoc dependencies don't work properly
|
|
|
|
|
# https://github.com/mesonbuild/meson/pull/9960
|
2021-08-30 13:11:42 +02:00
|
|
|
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)
|
|
|
|
|
|
2022-03-20 15:32:55 -07:00
|
|
|
if get_option('gtk-doc')
|
|
|
|
|
gnome.gtkdoc('UPower',
|
|
|
|
|
main_xml: 'upower-docs.xml',
|
2022-05-10 15:39:24 +02:00
|
|
|
src_dir: meson.project_source_root() / 'libupower-glib',
|
2022-03-20 15:32:55 -07:00
|
|
|
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
|