Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: webrtc/modules/audio_coding/BUILD.gn

Issue 1578953003: Add a gyp/gn variable for whether to use iLBC or not (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: New and improved version Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/build/webrtc.gni ('k') | webrtc/modules/audio_coding/audio_coding.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/BUILD.gn
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index 000dd394dfaba62beb566967547999151de6da04..38080af2f795e6ca20cb864559b2c255efc259c8 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -23,6 +23,9 @@ source_set("rent_a_codec") {
]
defines = []
+ if (rtc_include_ilbc) {
+ defines += [ "WEBRTC_CODEC_ILBC" ]
+ }
if (rtc_include_opus) {
defines += [ "WEBRTC_CODEC_OPUS" ]
}
@@ -35,10 +38,7 @@ source_set("rent_a_codec") {
defines += [ "WEBRTC_CODEC_G722" ]
}
if (!build_with_mozilla && !build_with_chromium) {
- defines += [
- "WEBRTC_CODEC_ILBC",
- "WEBRTC_CODEC_RED",
- ]
+ defines += [ "WEBRTC_CODEC_RED" ]
}
}
@@ -103,6 +103,10 @@ source_set("audio_coding") {
"../../system_wrappers",
]
+ if (rtc_include_ilbc) {
+ defines += [ "WEBRTC_CODEC_ILBC" ]
+ deps += [ ":ilbc" ]
+ }
if (rtc_include_opus) {
defines += [ "WEBRTC_CODEC_OPUS" ]
deps += [ ":webrtc_opus" ]
@@ -119,14 +123,8 @@ source_set("audio_coding") {
deps += [ ":g722" ]
}
if (!build_with_mozilla && !build_with_chromium) {
- defines += [
- "WEBRTC_CODEC_ILBC",
- "WEBRTC_CODEC_RED",
- ]
- deps += [
- ":ilbc",
- ":red",
- ]
+ defines += [ "WEBRTC_CODEC_RED" ]
+ deps += [ ":red" ]
}
}
@@ -850,6 +848,10 @@ source_set("neteq") {
defines = []
+ if (rtc_include_ilbc) {
+ defines += [ "WEBRTC_CODEC_ILBC" ]
+ deps += [ ":ilbc" ]
+ }
if (rtc_include_opus) {
defines += [ "WEBRTC_CODEC_OPUS" ]
deps += [ ":webrtc_opus" ]
@@ -865,8 +867,4 @@ source_set("neteq") {
defines += [ "WEBRTC_CODEC_G722" ]
deps += [ ":g722" ]
}
- if (!build_with_mozilla && !build_with_chromium) {
- defines += [ "WEBRTC_CODEC_ILBC" ]
- deps += [ ":ilbc" ]
- }
}
« no previous file with comments | « webrtc/build/webrtc.gni ('k') | webrtc/modules/audio_coding/audio_coding.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698