gstreamer/subprojects/gst-plugins-bad/ext/webrtcdsp/meson.build
Arun Raghavan 9b647a0bbd webrtcdsp: Bump to WebRTC AudioProcessing 2.1
Keep 1.0 support around so distros can manage this bump more easily.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8270>
2025-01-24 15:53:36 -05:00

50 lines
1.4 KiB
Meson

webrtc_sources = [
'gstwebrtcdsp.cpp',
'gstwebrtcechoprobe.cpp',
'gstwebrtcdspplugin.cpp'
]
webrtc_headers = [
'gstwebrtcechoprobe.h',
'gstwebrtcdsp.h',
]
doc_sources = []
foreach s: webrtc_sources + webrtc_headers
doc_sources += meson.current_source_dir() / s
endforeach
plugin_sources += {
'webrtcdsp': pathsep.join(doc_sources)
}
webrtc_dep = dependency('webrtc-audio-processing-2', version : ['>= 2.0'],
required : false)
if not webrtc_dep.found()
webrtc_dep = dependency('webrtc-audio-processing-1', version : ['>= 1.0'],
required : false)
if webrtc_dep.found()
cdata.set('HAVE_WEBRTC1', 1)
endif
endif
if not webrtc_dep.found()
# Try again, and this time use fallback if requested and possible
webrtc_dep = dependency('webrtc-audio-processing-2', version : ['>= 2.0'],
allow_fallback : true,
required : get_option('webrtcdsp'))
endif
if webrtc_dep.found()
gstwebrtcdsp = library('gstwebrtcdsp',
webrtc_sources,
cpp_args : gst_plugins_bad_args,
link_args : noseh_link_args,
include_directories : [configinc],
dependencies : [gstbase_dep, gstaudio_dep, gstbadaudio_dep, webrtc_dep],
install : true,
install_dir : plugins_install_dir,
override_options : ['cpp_std=c++17'],
)
plugins += [gstwebrtcdsp]
endif