2017-03-28 01:15:32 +00:00
|
|
|
webrtc_sources = [
|
|
|
|
'gstwebrtcdsp.cpp',
|
|
|
|
'gstwebrtcechoprobe.cpp'
|
|
|
|
]
|
|
|
|
|
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-08-10 22:42:46 +00:00
|
|
|
gnustl_dep = declare_dependency()
|
|
|
|
if host_system == 'android'
|
|
|
|
gnustl_dep = dependency('gnustl', required : get_option('webrtcdsp'))
|
|
|
|
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,
|
|
|
|
)
|
2018-04-24 18:05:30 +00:00
|
|
|
pkgconfig.generate(gstwebrtcdsp, install_dir : plugins_pkgconfig_install_dir)
|
2017-03-28 01:15:32 +00:00
|
|
|
endif
|