mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
add systemd socket activation
This commit is contained in:
parent
9fdb8a0e5f
commit
e5dcacdefb
5 changed files with 52 additions and 31 deletions
10
meson.build
10
meson.build
|
|
@ -125,6 +125,16 @@ if cc.has_function('memfd_create', prefix : '#include <sys/mman.h>', args : [ '-
|
|||
cdata.set('HAVE_MEMFD_CREATE', 1)
|
||||
endif
|
||||
|
||||
if get_option('systemd')
|
||||
systemd = dependency('systemd', required: false)
|
||||
systemd_dep = dependency('libsystemd', required: false)
|
||||
if systemd.found()
|
||||
cdata.set('HAVE_SYSTEMD_DAEMON', 1)
|
||||
else
|
||||
warning('Systemd integration was enabled, but systemd is not available')
|
||||
endif
|
||||
endif
|
||||
|
||||
configure_file(input : 'config.h.meson',
|
||||
output : 'config.h',
|
||||
configuration : cdata)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue