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

@ -252,6 +252,11 @@ if gtk_dep.found()
cdata.set('HAVE_GTK', 1)
endif
samplerate_dep = dependency('samplerate', version : '>= 0.1.0', required : get_option('samplerate'))
if samplerate_dep.found()
cdata.set('HAVE_LIBSAMPLERATE', 1)
endif
soxr_dep = dependency('soxr', version : '>= 0.1.1', required : get_option('soxr'))
if soxr_dep.found()
cdata.set('HAVE_SOXR', 1)