mirror of
https://github.com/pulseaudio/pulseaudio.git
synced 2024-11-27 03:43:52 +08:00
build-sys: meson: add tcp-wrappers
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/498>
This commit is contained in:
parent
f7f9c70b0f
commit
156e16f941
@ -655,6 +655,11 @@ if systemd_dep.found() and systemduserunitdir == ''
|
||||
systemduserunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir')
|
||||
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)
|
||||
endif
|
||||
|
||||
x11_dep = dependency('x11-xcb', required : get_option('x11'))
|
||||
if x11_dep.found()
|
||||
xcb_dep = dependency('xcb', required : true, version : '>= 1.6')
|
||||
@ -894,7 +899,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 TCP Wrappers: @0@'.format(${ENABLE_TCPWRAP}),
|
||||
'Enable TCP Wrappers: @0@'.format(tcpwrap_dep.found()),
|
||||
'Enable libsamplerate: @0@'.format(samplerate_dep.found()),
|
||||
'Enable IPv6: @0@'.format(get_option('ipv6')),
|
||||
'Enable OpenSSL (for Airtunes): @0@'.format(openssl_dep.found()),
|
||||
|
@ -141,6 +141,9 @@ option('speex',
|
||||
option('systemd',
|
||||
type : 'feature', value : 'auto',
|
||||
description : 'Optional systemd support')
|
||||
option('tcpwrap',
|
||||
type : 'feature', value : 'auto',
|
||||
description : 'Optional TCP wrappers support')
|
||||
option('udev',
|
||||
type : 'feature', value : 'auto',
|
||||
description : 'Optional udev support')
|
||||
|
@ -201,7 +201,7 @@ libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
|
||||
dependencies : [
|
||||
libm_dep, thread_dep, dl_dep, shm_dep, iconv_dep, sndfile_dep, dbus_dep,
|
||||
x11_dep, libsystemd_dep, glib_dep, gtk_dep, asyncns_dep, libintl_dep,
|
||||
platform_dep, platform_socket_dep, execinfo_dep,
|
||||
platform_dep, tcpwrap_dep, platform_socket_dep, execinfo_dep,
|
||||
],
|
||||
implicit_include_directories : false)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user