Skip to content

Commit

Permalink
meson: make a Speex audio processor a feature
Browse files Browse the repository at this point in the history
Change-Id: I6542e049809ab2526fa652986a4078f3a9969733
  • Loading branch information
H5117 committed Aug 11, 2022
1 parent 8105fa0 commit 5d3412e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ deplibavformat = dependency('libavformat', version: '>= 56.40.101')
deplibswscale = dependency('libswscale', version: '>= 3.1.101')
deplibswresample = dependency('libswresample', version: '>= 1.2.101')
deplibavutil = dependency('libavutil', version: '>= 55.75.100')

depfmt = dependency('fmt', version: '>= 5.3')

depyamlcpp = dependency('yaml-cpp', version: '>= 0.5.1', required: false)
Expand Down Expand Up @@ -110,10 +109,10 @@ conf.set10('HAVE_LIBNATPMP', depnatpmp.found())
depopenssl = dependency('openssl', required: get_option('name_service'))
conf.set10('HAVE_RINGNS', depopenssl.found())

depwebrtcap = dependency('webrtc-audio-processing', required: get_option('aec'))
depwebrtcap = dependency('webrtc-audio-processing', required: get_option('webrtc_ap'))
conf.set10('HAVE_WEBRTC_AP', depwebrtcap.found())

depspeexdsp = dependency('speexdsp')
depspeexdsp = dependency('speexdsp', required: get_option('speex_ap'))
conf.set10('HAVE_SPEEXDSP', depspeexdsp.found())

if get_option('video')
Expand Down Expand Up @@ -161,7 +160,6 @@ endif
if get_option('tracepoints')
conf.set('ENABLE_TRACEPOINTS', true)
deplttngust = dependency('lttng-ust', version: '>= 2.13')
#depliburcu = dependency('liburcu', version: '>= 0.13.1')
else
conf.set('ENABLE_TRACEPOINTS', false)
endif
Expand Down
3 changes: 2 additions & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ option('jack', type: 'feature', value: 'auto', description: 'Enable support for
option('portaudio', type: 'feature', value: 'auto', description: 'Enable support for PortAudio')
option('upnp', type: 'feature', value: 'auto', description: 'Enable support for UPnP')
option('natpmp', type: 'feature', value: 'auto', description: 'Enable support for NAT-PMP')
option('aec', type: 'feature', value: 'auto', description: 'Enable Acoustic Echo Cancellation')
option('webrtc_ap', type: 'feature', value: 'auto', description: 'Enable support for WebRTC audio processing')
option('speex_ap', type: 'feature', value: 'auto', description: 'Enable support for Speex audio processing')

option('natpmp_prefix', type: 'string', value: '', description: 'Override a system directory to search for the library "natpmp"')
option('tests', type: 'boolean', value: false, description: 'Build tests')
Expand Down
1 change: 0 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ libjami_dependencies = [
deplibswscale,
deplibswresample,
deplibavutil,
depspeexdsp,
depfmt,
depyamlcpp,
depjsoncpp,
Expand Down

0 comments on commit 5d3412e

Please sign in to comment.