mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-11 19:35:32 +00:00
This makes the path in `com.keyman.SystemService1.service` configurable when using basu (e.g. Gentoo Linux).
26 lines
925 B
Meson
26 lines
925 B
Meson
# This file will be appended to meson.build by build.sh
|
|
cfg = configuration_data()
|
|
cfg.set('LIBEXECDIR', get_option('prefix') / get_option('libexecdir'))
|
|
|
|
install_data('com.keyman.SystemService1.conf', install_dir: get_option('datadir') / 'dbus-1/system.d/')
|
|
|
|
if systemd.name() == 'libsystemd'
|
|
install_data('com.keyman.SystemService1.service.systemd', install_dir: get_option('datadir') / 'dbus-1/system-services/', rename: ['com.keyman.SystemService1.service'])
|
|
else
|
|
# libelogind or basu
|
|
configure_file(
|
|
configuration: cfg,
|
|
input: 'com.keyman.SystemService1.service.basu',
|
|
output: 'com.keyman.SystemService1.service',
|
|
install: true,
|
|
install_dir: get_option('datadir') / 'dbus-1/system-services/'
|
|
)
|
|
endif
|
|
|
|
configure_file(
|
|
configuration: cfg,
|
|
input: 'systemd-keyman.service.in',
|
|
output: 'systemd-keyman.service',
|
|
install: true,
|
|
install_dir: get_option('prefix') / 'lib/systemd/system/'
|
|
)
|