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
|
|
|
]
|
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
webrtc_dep = dependency('webrtc-audio-processing', version : ['>= 0.2', '< 0.4'],
|
|
|
|
required : get_option('webrtcdsp'))
|
2017-03-28 01:15:32 +00:00
|
|
|
|
2018-11-12 10:23:37 +00:00
|
|
|
if not gnustl_dep.found() and get_option('webrtcdsp').enabled()
|
|
|
|
error('webrtcdsp plugin enabled but could not find gnustl dep for Android c++ support')
|
2018-08-10 22:42:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if webrtc_dep.found() and gnustl_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],
|
2018-08-10 22:42:46 +00:00
|
|
|
dependencies : [gstbase_dep, gstaudio_dep, gstbadaudio_dep, webrtc_dep, gnustl_dep],
|
2017-03-28 01:15:32 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
2019-04-13 20:50:25 +00:00
|
|
|
override_options : ['cpp_std=c++11'],
|
2017-03-28 01:15:32 +00:00
|
|
|
)
|
2018-04-24 18:05:30 +00:00
|
|
|
pkgconfig.generate(gstwebrtcdsp, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstwebrtcdsp]
|
2017-03-28 01:15:32 +00:00
|
|
|
endif
|