power-profiles-daemon/data/meson.build
Bastien Nocera 9d6e1735f3 data: Add polkit policy description
Describe and set defaults for switching and holding power profiles.
2021-09-28 12:55:59 +02:00

36 lines
787 B
Meson

data_conf = configuration_data()
data_conf.set('libexecdir', libexecdir)
configure_file(
input: 'power-profiles-daemon.service.in',
output: 'power-profiles-daemon.service',
configuration: data_conf,
install_dir: systemd_system_unit_dir,
)
configure_file(
input: 'net.hadess.PowerProfiles.conf.in',
output: 'net.hadess.PowerProfiles.conf',
configuration: data_conf,
install_dir: dbusconfdir
)
install_data(
'net.hadess.PowerProfiles.service',
install_dir: dbusservicedir
)
polkit_policy = 'net.hadess.PowerProfiles.policy'
if xmllint.found()
test(polkit_policy,
xmllint,
args: [
'--noout',
meson.source_root() / 'data' / polkit_policy,
])
endif
install_data(
polkit_policy,
install_dir: polkit_policy_directory,
)