aboutsummaryrefslogtreecommitdiff
path: root/webrtc/engine_configurations.h
diff options
context:
space:
mode:
authorkwiberg <kwiberg@webrtc.org>2015-09-24 03:18:40 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-24 10:18:48 +0000
commitf66a9251424351ea6d631c54dd1feb64cc13d809 (patch)
treed6f21ac17b6bad95763c383264e86d00b7cd0b56 /webrtc/engine_configurations.h
parent61e933eac7673feb2f8663c3e71e503b714b350f (diff)
downloadwebrtc-f66a9251424351ea6d631c54dd1feb64cc13d809.tar.gz
Don't link with audio codecs that we don't use
We used to link with all audio codecs unconditionally (except Opus); this patch makes gyp and gn only link to the ones that are used. (This unfortunately fails to have a measurable impact on Chromium binary size, at least on x86_64 Linux; it turns out that iLBC and iSAC fix were already being excluded from Chromium by some other means (likely just the linker omitting compilation units with no incoming references).) BUG=webrtc:4557 Review URL: https://codereview.webrtc.org/1349393003 Cr-Commit-Position: refs/heads/master@{#10046}
Diffstat (limited to 'webrtc/engine_configurations.h')
-rw-r--r--webrtc/engine_configurations.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/webrtc/engine_configurations.h b/webrtc/engine_configurations.h
index f59fd3ec26..c832d9acb3 100644
--- a/webrtc/engine_configurations.h
+++ b/webrtc/engine_configurations.h
@@ -18,27 +18,6 @@
// ============================================================================
// ----------------------------------------------------------------------------
-// [Voice] Codec settings
-// ----------------------------------------------------------------------------
-
-// iSAC and G722 are not included in the Mozilla build, but in all other builds.
-#ifndef WEBRTC_MOZILLA_BUILD
-#ifdef WEBRTC_ARCH_ARM
-#define WEBRTC_CODEC_ISACFX // Fix-point iSAC implementation.
-#else
-#define WEBRTC_CODEC_ISAC // Floating-point iSAC implementation (default).
-#endif // WEBRTC_ARCH_ARM
-#define WEBRTC_CODEC_G722
-#endif // !WEBRTC_MOZILLA_BUILD
-
-// iLBC and Redundancy coding are excluded from Chromium and Mozilla
-// builds to reduce binary size.
-#if !defined(WEBRTC_CHROMIUM_BUILD) && !defined(WEBRTC_MOZILLA_BUILD)
-#define WEBRTC_CODEC_ILBC
-#define WEBRTC_CODEC_RED
-#endif // !WEBRTC_CHROMIUM_BUILD && !WEBRTC_MOZILLA_BUILD
-
-// ----------------------------------------------------------------------------
// [Video] Codec settings
// ----------------------------------------------------------------------------