meson: Add gnustl dep for webrtcdsp on Android
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 10 Aug 2018 22:42:46 +0000 (04:12 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Fri, 10 Aug 2018 23:02:34 +0000 (04:32 +0530)
Needed for C++ headers. Without this, webrtcdsp can't find <algorithm>

ext/webrtcdsp/meson.build

index 678d128..a0e09a0 100644 (file)
@@ -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,
   )