mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-25 09:05:57 -04:00
Merge branch 'systemd' into 'master'
systemd: Allow installation of systemd services without libsystemd See merge request pipewire/pipewire!2717
This commit is contained in:
commit
73d3bfd460
2 changed files with 24 additions and 6 deletions
|
|
@ -1,13 +1,22 @@
|
|||
systemd = dependency('systemd', required : get_option('systemd-system-service'))
|
||||
if not systemd.found()
|
||||
systemd_system_services_dir = ''
|
||||
|
||||
systemd = dependency('systemd', required : false)
|
||||
if systemd.found()
|
||||
systemd_system_services_dir = systemd.get_variable('systemdsystemunitdir', pkgconfig_define : [ 'rootprefix', prefix])
|
||||
endif
|
||||
|
||||
if get_option('systemd-system-service').disabled() or (get_option('systemd-system-service').auto() and not systemd.found())
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
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
|
||||
|
||||
if systemd_system_services_dir == ''
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
install_data(sources : ['pipewire.socket', 'pipewire-manager.socket', 'pipewire-pulse.socket' ],
|
||||
install_dir : systemd_system_services_dir)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,22 @@
|
|||
systemd = dependency('systemd', required : get_option('systemd-user-service'))
|
||||
if not systemd.found()
|
||||
systemd_user_services_dir = ''
|
||||
|
||||
systemd = dependency('systemd', required : false)
|
||||
if systemd.found()
|
||||
systemd_user_services_dir = systemd.get_variable('systemduserunitdir', pkgconfig_define : [ 'prefix', prefix])
|
||||
endif
|
||||
|
||||
if get_option('systemd-user-service').disabled() or (get_option('systemd-user-service').auto() and not systemd.found())
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
systemd_user_services_dir = systemd.get_variable('systemduserunitdir', pkgconfig_define : [ 'prefix', prefix])
|
||||
if get_option('systemd-user-unit-dir') != ''
|
||||
systemd_user_services_dir = get_option('systemd-user-unit-dir')
|
||||
endif
|
||||
|
||||
if systemd_user_services_dir == ''
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
install_data(
|
||||
sources : ['pipewire.socket', 'pipewire-pulse.socket'],
|
||||
install_dir : systemd_user_services_dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue