2017-03-28 01:15:32 +00:00
|
|
|
webrtc_sources = [
|
|
|
|
'gstwebrtcdsp.cpp',
|
2021-02-25 07:18:54 +00:00
|
|
|
'gstwebrtcechoprobe.cpp',
|
|
|
|
'gstwebrtcdspplugin.cpp'
|
2017-03-28 01:15:32 +00:00
|
|
|
]
|
|
|
|
|
2025-01-13 17:10:31 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2025-01-09 16:37:05 +00:00
|
|
|
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
|
2017-03-28 01:15:32 +00:00
|
|
|
|
2023-05-30 05:31:47 +00:00
|
|
|
if webrtc_dep.found()
|
2017-03-28 01:15:32 +00:00
|
|
|
gstwebrtcdsp = library('gstwebrtcdsp',
|
|
|
|
webrtc_sources,
|
|
|
|
cpp_args : gst_plugins_bad_args,
|
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories : [configinc],
|
2023-05-30 05:31:47 +00:00
|
|
|
dependencies : [gstbase_dep, gstaudio_dep, gstbadaudio_dep, webrtc_dep],
|
2017-03-28 01:15:32 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
2020-12-02 23:31:44 +00:00
|
|
|
override_options : ['cpp_std=c++17'],
|
2017-03-28 01:15:32 +00:00
|
|
|
)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstwebrtcdsp]
|
2017-03-28 01:15:32 +00:00
|
|
|
endif
|
2025-01-13 17:10:31 +00:00
|
|
|
|