meson: Add optional libsamplerate support

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-21 17:00:25 +07:00 committed by Arun Raghavan
parent b839d3fb59
commit 104b21f227
3 changed files with 13 additions and 1 deletions

View file

@ -126,6 +126,10 @@ if dbus_dep.found()
]
endif
if samplerate_dep.found()
libpulsecore_sources += ['resampler/libsamplerate.c']
endif
if soxr_dep.found()
libpulsecore_sources += ['resampler/soxr.c']
endif
@ -167,7 +171,7 @@ libpulsecore = shared_library('pulsecore-' + pa_version_major_minor,
c_args : [pa_c_args, server_c_args],
install : true,
link_with : libpulsecore_simd_lib,
dependencies : [libm_dep, libpulsecommon_dep, libpulse_dep, ltdl_dep, shm_dep, sndfile_dep, database_dep, dbus_dep, soxr_dep, speex_dep, x11_dep],
dependencies : [libm_dep, libpulsecommon_dep, libpulse_dep, ltdl_dep, shm_dep, sndfile_dep, database_dep, dbus_dep, samplerate_dep, soxr_dep, speex_dep, x11_dep],
implicit_include_directories : false)
libpulsecore_dep = declare_dependency(link_with: libpulsecore)