Made modules/audio_processing/vad its own target.

WHAT: made a BUILD.gn with library and tests in the Audio Processing
Module Voice Activity Detector directory. Updated depending
code. Fixed a Clang warning.

WHY: to make it possible for a target to depend on just the VAD and
not the whole APM. There are other benefits:

* Sometimes faster compilation.

* The VAD takes up 28000 bytes of libjingle_peerconnection_so.so. Making
  a peerconnection shared object file without the VAD has to be done in
  steps. The first step is a custom target for the VAD. Hence this Cl.

Change-Id: Iea0207a0b5979db26baaf46b24beaefbb1c431af
BUG: webrtc:5716, webrtc:7494
Reviewed-on: https://webrtc-review.googlesource.com/47521
Commit-Queue: Alex Loiko <aleloi@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Reviewed-by: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21893}
This commit is contained in:
Alex Loiko
2018-02-05 11:15:23 +01:00
committed by Commit Bot
parent 824ef89757
commit 0488fcf293
5 changed files with 75 additions and 30 deletions

View File

@ -289,6 +289,7 @@ if (rtc_include_tests) {
deps = [
"../modules:module_api",
"../modules/audio_processing",
"../modules/audio_processing/vad",
"../rtc_base:rtc_base_approved",
"../system_wrappers:metrics_default",
"../test:test_support",