diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-08-11 04:12:46 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-08-11 04:32:34 +0530 |
commit | c54e4b630516ba763c047d5f742af35a6d7d01f2 (patch) | |
tree | 6085c1a96b0eb4d3724409c079ba61fdc19a598d | |
parent | c73abb0c71b6ea4fb268f9d99fda63fd6aac8eef (diff) |
meson: Add gnustl dep for webrtcdsp on Android
Needed for C++ headers. Without this, webrtcdsp can't find <algorithm>
-rw-r--r-- | ext/webrtcdsp/meson.build | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/webrtcdsp/meson.build b/ext/webrtcdsp/meson.build index 678d128bd..a0e09a02d 100644 --- a/ext/webrtcdsp/meson.build +++ b/ext/webrtcdsp/meson.build @@ -6,13 +6,18 @@ webrtc_sources = [ webrtc_dep = dependency('webrtc-audio-processing', version : ['>= 0.2', '< 0.4'], required : get_option('webrtcdsp')) -if webrtc_dep.found() +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() 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], + dependencies : [gstbase_dep, gstaudio_dep, gstbadaudio_dep, webrtc_dep, gnustl_dep], install : true, install_dir : plugins_install_dir, ) |