[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] build-sys: meson: support elogind alternative for module-systemd-login
PulseAudio Marge Bot
gitlab at gitlab.freedesktop.org
Sun Feb 14 13:34:19 UTC 2021
PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio
Commits:
de8b7c0d by Igor V. Kovalenko at 2021-02-12T20:34:11+03:00
build-sys: meson: support elogind alternative for module-systemd-login
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/502>
- - - - -
3 changed files:
- meson.build
- meson_options.txt
- src/modules/meson.build
Changes:
=====================================
meson.build
=====================================
@@ -655,6 +655,11 @@ if systemd_dep.found() and systemduserunitdir == ''
systemduserunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir')
endif
+libelogind_dep = dependency('libelogind', required : get_option('elogind'))
+if libelogind_dep.found()
+ cdata.set('HAVE_SYSTEMD_LOGIN', 1)
+endif
+
tcpwrap_dep = cc.find_library('wrap', required: get_option('tcpwrap'))
if cc.has_header('tcpd.h') and cc.has_function('hosts_access', dependencies : tcpwrap_dep)
cdata.set('HAVE_LIBWRAP', 1)
@@ -899,6 +904,7 @@ summary = [
'Enable udev: @0@'.format(udev_dep.found()),
' Enable HAL->udev compat: @0@'.format(get_option('hal-compat')),
'Enable systemd: @0@'.format(libsystemd_dep.found()),
+ 'Enable elogind: @0@'.format(libelogind_dep.found()),
'Enable TCP Wrappers: @0@'.format(tcpwrap_dep.found()),
'Enable libsamplerate: @0@'.format(samplerate_dep.found()),
'Enable IPv6: @0@'.format(get_option('ipv6')),
=====================================
meson_options.txt
=====================================
@@ -93,6 +93,9 @@ option('bluez5-ofono-headset',
option('dbus',
type : 'feature', value : 'auto',
description : 'Optional D-Bus support')
+option('elogind',
+ type : 'feature', value : 'auto',
+ description : 'Optional elogind support')
option('fftw',
type : 'feature', value : 'auto',
description : 'Optional FFTW support')
=====================================
src/modules/meson.build
=====================================
@@ -203,9 +203,9 @@ if openssl_dep.found()
endif
endif
-if libsystemd_dep.found()
+if libsystemd_dep.found() or libelogind_dep.found()
all_modules += [
- [ 'module-systemd-login', 'module-systemd-login.c', [], [], [libsystemd_dep] ],
+ [ 'module-systemd-login', 'module-systemd-login.c', [], [], [libsystemd_dep, libelogind_dep] ],
]
endif
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/de8b7c0d8f3e486f1c853fe5049124ae0416dc4d
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/de8b7c0d8f3e486f1c853fe5049124ae0416dc4d
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20210214/dcec3bb3/attachment-0001.htm>
More information about the pulseaudio-commits
mailing list