2020-07-06 12:37:41 +02:00
|
|
|
content_files = files()
|
|
|
|
|
|
|
|
|
|
version_conf = configuration_data()
|
|
|
|
|
version_conf.set('VERSION', meson.project_version())
|
|
|
|
|
|
|
|
|
|
content_files += configure_file(
|
|
|
|
|
input: 'version.xml.in',
|
|
|
|
|
output: 'version.xml',
|
|
|
|
|
configuration: version_conf,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
content_files += gnome.gdbus_codegen(
|
|
|
|
|
meson.project_name(),
|
2024-02-13 20:28:22 +01:00
|
|
|
sources: dbus_xml['org.freedesktop.UPower.PowerProfiles'],
|
|
|
|
|
interface_prefix: 'org.freedesktop.UPower',
|
2020-07-06 12:37:41 +02:00
|
|
|
namespace: 'PowerProfiles',
|
|
|
|
|
docbook: 'docs',
|
|
|
|
|
build_by_default: true,
|
|
|
|
|
)
|
|
|
|
|
|
2020-09-04 15:35:56 +02:00
|
|
|
private_headers = [
|
|
|
|
|
'power-profiles-daemon.h',
|
|
|
|
|
'ppd-action-trickle-charge.h',
|
2024-01-24 20:47:40 -06:00
|
|
|
'ppd-action-amdgpu-panel-power.h',
|
2020-09-04 15:35:56 +02:00
|
|
|
'ppd-driver-fake.h',
|
2020-09-04 16:18:31 +02:00
|
|
|
'ppd-driver-intel-pstate.h',
|
2023-04-16 08:21:20 +00:00
|
|
|
'ppd-driver-amd-pstate.h',
|
2021-07-05 10:59:56 +02:00
|
|
|
'ppd-driver-placeholder.h',
|
2021-02-08 16:01:18 +01:00
|
|
|
'ppd-driver-platform-profile.h',
|
2020-09-04 15:35:56 +02:00
|
|
|
'ppd-utils.h',
|
|
|
|
|
'power-profiles-daemon-resources.h',
|
|
|
|
|
]
|
|
|
|
|
|
2020-07-06 12:37:41 +02:00
|
|
|
gnome.gtkdoc(
|
|
|
|
|
meson.project_name(),
|
|
|
|
|
main_xml: meson.project_name() + '-docs.xml',
|
|
|
|
|
content_files: content_files,
|
2020-09-04 15:35:56 +02:00
|
|
|
dependencies: libpower_profiles_daemon_dep,
|
|
|
|
|
gobject_typesfile: [join_paths(meson.current_source_dir(), 'power-profiles-daemon.types')],
|
2020-07-06 12:37:41 +02:00
|
|
|
src_dir: [
|
2024-02-13 18:43:38 +01:00
|
|
|
meson.project_source_root() /'src',
|
|
|
|
|
meson.project_build_root() / 'src',
|
2020-07-06 12:37:41 +02:00
|
|
|
],
|
2020-09-04 15:35:56 +02:00
|
|
|
ignore_headers: private_headers,
|
2020-07-06 12:37:41 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
man1_dir = join_paths(get_option('prefix'), get_option('mandir'), 'man1')
|
|
|
|
|
|
|
|
|
|
xsltproc = find_program('xsltproc', required : true)
|
|
|
|
|
xsltproc_command = [
|
|
|
|
|
xsltproc,
|
|
|
|
|
'--nonet',
|
|
|
|
|
'--stringparam', 'man.output.quietly', '1',
|
|
|
|
|
'--stringparam', 'funcsynopsis.style', 'ansi',
|
|
|
|
|
'--stringparam', 'man.th.extra1.suppress', '1',
|
|
|
|
|
'--stringparam', 'man.authors.section.enabled', '0',
|
|
|
|
|
'--stringparam', 'man.copyright.section.enabled', '0',
|
|
|
|
|
'-o', '@OUTPUT@',
|
|
|
|
|
'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
|
|
|
|
|
'@INPUT@',
|
|
|
|
|
]
|