mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-20 21:08:18 +02:00
30 lines
878 B
Meson
30 lines
878 B
Meson
if systemd.found()
|
|
systemd_config = configuration_data()
|
|
systemd_config.set('WP_BINARY', wireplumber_bin_dir / 'wireplumber')
|
|
|
|
# system service
|
|
if get_option('systemd-system-service')
|
|
systemd_system_unit_dir = systemd.get_variable(
|
|
pkgconfig: 'systemdsystemunitdir',
|
|
pkgconfig_define: ['prefix', get_option('prefix')])
|
|
|
|
if get_option('systemd-system-unit-dir') != ''
|
|
systemd_system_unit_dir = get_option('systemd-system-unit-dir')
|
|
endif
|
|
|
|
subdir('system')
|
|
endif
|
|
|
|
# user service
|
|
if get_option('systemd-user-service')
|
|
systemd_user_unit_dir = systemd.get_variable(
|
|
pkgconfig: 'systemduserunitdir',
|
|
pkgconfig_define: ['prefix', get_option('prefix')])
|
|
|
|
if get_option('systemd-user-unit-dir') != ''
|
|
systemd_user_unit_dir = get_option('systemd-user-unit-dir')
|
|
endif
|
|
|
|
subdir('user')
|
|
endif
|
|
endif
|