mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-26 07:58:03 -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'))
|
systemd_system_services_dir = ''
|
||||||
if not systemd.found()
|
|
||||||
|
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()
|
subdir_done()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
systemd_system_services_dir = systemd.get_variable('systemdsystemunitdir', pkgconfig_define : [ 'rootprefix', prefix])
|
|
||||||
if get_option('systemd-system-unit-dir') != ''
|
if get_option('systemd-system-unit-dir') != ''
|
||||||
systemd_system_services_dir = get_option('systemd-system-unit-dir')
|
systemd_system_services_dir = get_option('systemd-system-unit-dir')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if systemd_system_services_dir == ''
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
install_data(sources : ['pipewire.socket', 'pipewire-manager.socket', 'pipewire-pulse.socket' ],
|
install_data(sources : ['pipewire.socket', 'pipewire-manager.socket', 'pipewire-pulse.socket' ],
|
||||||
install_dir : systemd_system_services_dir)
|
install_dir : systemd_system_services_dir)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,22 @@
|
||||||
systemd = dependency('systemd', required : get_option('systemd-user-service'))
|
systemd_user_services_dir = ''
|
||||||
if not systemd.found()
|
|
||||||
|
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()
|
subdir_done()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
systemd_user_services_dir = systemd.get_variable('systemduserunitdir', pkgconfig_define : [ 'prefix', prefix])
|
|
||||||
if get_option('systemd-user-unit-dir') != ''
|
if get_option('systemd-user-unit-dir') != ''
|
||||||
systemd_user_services_dir = get_option('systemd-user-unit-dir')
|
systemd_user_services_dir = get_option('systemd-user-unit-dir')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if systemd_user_services_dir == ''
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
install_data(
|
install_data(
|
||||||
sources : ['pipewire.socket', 'pipewire-pulse.socket'],
|
sources : ['pipewire.socket', 'pipewire-pulse.socket'],
|
||||||
install_dir : systemd_user_services_dir)
|
install_dir : systemd_user_services_dir)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue