summaryrefslogtreecommitdiffstats
path: root/src/daemon/systemd/system/meson.build
blob: 84ca0b068c7514377aea9b99f171ea0825ed83c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
systemd_system_services_dir = systemd.get_variable('systemdsystemunitdir', pkgconfig_define : [ 'rootprefix', prefix])
if get_option('systemd-system-unit-dir') != ''
  systemd_system_services_dir = get_option('systemd-system-unit-dir')
endif

install_data(sources : 'pipewire.socket',
             install_dir : systemd_system_services_dir)

systemd_config = configuration_data()
systemd_config.set('PW_BINARY', pipewire_bindir / 'pipewire')

configure_file(input : 'pipewire.service.in',
               output : 'pipewire.service',
               configuration : systemd_config,
               install_dir : systemd_system_services_dir)