mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-23 22:08:15 +02:00
36 lines
787 B
Meson
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,
|
|
)
|