mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 15:22:11 +02:00
Daemon is responsible for starting and later watching over spawned "broadwayd" and "remote" app needed for remote playback control. We cannot use systemd n Flatpak, so we make do with running optional background subprocesses.
25 lines
915 B
Meson
25 lines
915 B
Meson
clapper_apps = ['', 'Remote', 'Daemon']
|
|
|
|
foreach id_postfix : clapper_apps
|
|
app_postfix = (id_postfix != '') ? '.' + id_postfix : ''
|
|
template_type = (id_postfix != '') ? '.Subprocess' : ''
|
|
|
|
bin_conf = configuration_data()
|
|
bin_conf.set('GJS', find_program('gjs').path())
|
|
bin_conf.set('PACKAGE_NAME', meson.project_name())
|
|
bin_conf.set('PACKAGE_VERSION', meson.project_version())
|
|
bin_conf.set('ID_POSTFIX', id_postfix)
|
|
bin_conf.set('prefix', get_option('prefix'))
|
|
bin_conf.set('libdir', join_paths(get_option('prefix'), get_option('libdir')))
|
|
bin_conf.set('datadir', join_paths(get_option('prefix'), get_option('datadir')))
|
|
|
|
configure_file(
|
|
input: 'com.github.rafostar.Clapper' + template_type + '.in',
|
|
output: 'com.github.rafostar.Clapper' + app_postfix,
|
|
configuration: bin_conf,
|
|
install: true,
|
|
install_dir: get_option('bindir'),
|
|
install_mode: 'rwxr-xr-x'
|
|
)
|
|
endforeach
|