mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
meson: Add optional libsamplerate support
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
b839d3fb59
commit
104b21f227
3 changed files with 13 additions and 1 deletions
|
|
@ -252,6 +252,11 @@ if gtk_dep.found()
|
||||||
cdata.set('HAVE_GTK', 1)
|
cdata.set('HAVE_GTK', 1)
|
||||||
endif
|
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'))
|
soxr_dep = dependency('soxr', version : '>= 0.1.1', required : get_option('soxr'))
|
||||||
if soxr_dep.found()
|
if soxr_dep.found()
|
||||||
cdata.set('HAVE_SOXR', 1)
|
cdata.set('HAVE_SOXR', 1)
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,9 @@ option('lirc',
|
||||||
option('openssl',
|
option('openssl',
|
||||||
type : 'feature', value : 'auto',
|
type : 'feature', value : 'auto',
|
||||||
description : 'Optional OpenSSL support (used for Airtunes/RAOP)')
|
description : 'Optional OpenSSL support (used for Airtunes/RAOP)')
|
||||||
|
option('samplerate',
|
||||||
|
type : 'feature', value : 'disabled',
|
||||||
|
description : 'Optional libsamplerate support (DEPRECATED)')
|
||||||
option('soxr',
|
option('soxr',
|
||||||
type : 'feature', value : 'auto',
|
type : 'feature', value : 'auto',
|
||||||
description : 'Optional SoXR support (resampling)')
|
description : 'Optional SoXR support (resampling)')
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,10 @@ if dbus_dep.found()
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if samplerate_dep.found()
|
||||||
|
libpulsecore_sources += ['resampler/libsamplerate.c']
|
||||||
|
endif
|
||||||
|
|
||||||
if soxr_dep.found()
|
if soxr_dep.found()
|
||||||
libpulsecore_sources += ['resampler/soxr.c']
|
libpulsecore_sources += ['resampler/soxr.c']
|
||||||
endif
|
endif
|
||||||
|
|
@ -167,7 +171,7 @@ libpulsecore = shared_library('pulsecore-' + pa_version_major_minor,
|
||||||
c_args : [pa_c_args, server_c_args],
|
c_args : [pa_c_args, server_c_args],
|
||||||
install : true,
|
install : true,
|
||||||
link_with : libpulsecore_simd_lib,
|
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)
|
implicit_include_directories : false)
|
||||||
|
|
||||||
libpulsecore_dep = declare_dependency(link_with: libpulsecore)
|
libpulsecore_dep = declare_dependency(link_with: libpulsecore)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue