From 41464c6133ef95173e477ae2f1d85285548dc24e Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Mon, 27 Mar 2017 21:15:32 -0400 Subject: [PATCH] webrtcdsp: Add support to build with meson --- ext/meson.build | 2 +- ext/webrtcdsp/meson.build | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 ext/webrtcdsp/meson.build diff --git a/ext/meson.build b/ext/meson.build index eba12d7a9b..f6ec86421a 100644 --- a/ext/meson.build +++ b/ext/meson.build @@ -62,7 +62,7 @@ subdir('voaacenc') #subdir('voamrwbenc') subdir('vulkan') subdir('wayland') -#subdir('webrtcdsp') +subdir('webrtcdsp') subdir('webp') subdir('x265') subdir('zbar') diff --git a/ext/webrtcdsp/meson.build b/ext/webrtcdsp/meson.build new file mode 100644 index 0000000000..600bb1961a --- /dev/null +++ b/ext/webrtcdsp/meson.build @@ -0,0 +1,23 @@ +webrtc_sources = [ + 'gstwebrtcdsp.cpp', + 'gstwebrtcechoprobe.cpp' +] + +webrtc_dep = dependency('webrtc-audio-processing', version : '>= 0.2', required : false) +webrtc_max_dep = dependency('webrtc-audio-processing', version : '>= 0.4', required : false) + +if (webrtc_max_dep.found()) + message('WebRTC Audio Processing library is not API stable,' + + ' we cannot support newer version ' + webrtc_max_dep.version() + + ' (we only support 0.2 and 0.3)') +elif (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, webrtc_dep], + install : true, + install_dir : plugins_install_dir, + ) +endif