mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-03-22 05:33:59 -04:00
build-sys: make sndfile optional when daemon and utils are disabled
This commit is contained in:
parent
81e5bfcec3
commit
ce649b0967
4 changed files with 37 additions and 7 deletions
15
meson.build
15
meson.build
|
|
@ -602,7 +602,7 @@ if glib_dep.found()
|
|||
cdata.set('HAVE_GLIB20', 1) # to match the AM_CONDITIONAL for CMake file generation
|
||||
endif
|
||||
|
||||
sndfile_dep = dependency('sndfile', version : '>= 1.0.20')
|
||||
sndfile_dep = dependency('sndfile', version : '>= 1.0.20', required : get_option('sndfile'))
|
||||
|
||||
libsystemd_dep = dependency('libsystemd', required : get_option('systemd'))
|
||||
if libsystemd_dep.found()
|
||||
|
|
@ -641,6 +641,14 @@ if get_option('client')
|
|||
endif
|
||||
endif
|
||||
|
||||
# Utils dependencies
|
||||
|
||||
if get_option('utils')
|
||||
if not sndfile_dep.found()
|
||||
error('Utils enabled but sndfile disabled or not found!')
|
||||
endif
|
||||
endif
|
||||
|
||||
# Daemon and module dependencies
|
||||
|
||||
if get_option('daemon')
|
||||
|
|
@ -815,6 +823,10 @@ if get_option('daemon')
|
|||
cdata.set('HAVE_GSTLDAC', 1)
|
||||
cdata.set('HAVE_GSTAPTX', 1)
|
||||
endif
|
||||
|
||||
if not sndfile_dep.found()
|
||||
error('Daemon enabled but sndfile disabled or not found!')
|
||||
endif
|
||||
endif
|
||||
|
||||
# These are required for the CMake file generation
|
||||
|
|
@ -949,6 +961,7 @@ summary = [
|
|||
'Enable X11: @0@'.format(x11_dep.found()),
|
||||
'Enable D-Bus: @0@'.format(dbus_dep.found()),
|
||||
'Enable GLib 2: @0@'.format(glib_dep.found()),
|
||||
'Enable libsndfile: @0@'.format(sndfile_dep.found()),
|
||||
'Enable systemd integration: @0@'.format(libsystemd_dep.found()),
|
||||
'Enable FFTW: @0@'.format(fftw_dep.found()),
|
||||
'Enable IPv6: @0@'.format(get_option('ipv6')),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue