aboutsummaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorPer Åhgren <peah@webrtc.org>2020-04-26 23:56:17 +0200
committerCommit Bot <commit-bot@chromium.org>2020-04-26 23:06:44 +0000
commitcc73ed3e70d1968f8e2bc365880d8273028e14a6 (patch)
treee26c3f0be0eeac5eadd10d8e65499729d1864959 /BUILD.gn
parent86bd33a1e77efc85383c61589dacd4310fdcb50e (diff)
downloadwebrtc-cc73ed3e70d1968f8e2bc365880d8273028e14a6.tar.gz
APM: Add build flag to allow building WebRTC without APM
This CL adds a build flag to allow building the non-test parts of WebRTC without the audio processing module. The CL also ensures that the WebRTC code correctly handles the case when no APM is available. Bug: webrtc:5298 Change-Id: I5c8b5d1f7115e5cce2af4c2b5ff701fa1c54e49e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/171509 Commit-Queue: Per Åhgren <peah@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31133}
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn4
1 files changed, 4 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 16ff6970bd..85c428d08c 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -281,6 +281,10 @@ config("common_config") {
defines += [ "WEBRTC_EXCLUDE_TRANSIENT_SUPPRESSOR" ]
}
+ if (rtc_exclude_audio_processing_module) {
+ defines += [ "WEBRTC_EXCLUDE_AUDIO_PROCESSING_MODULE" ]
+ }
+
cflags = []
if (build_with_chromium) {