Revert of Don't link with audio codecs that we don't use (patchset #4 id:60001 of https://codereview.webrtc.org/1349393003/ )
Reason for revert: Breaking Chromium FYI bots. Original issue's description: > 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 > > Committed: https://crrev.com/f66a9251424351ea6d631c54dd1feb64cc13d809 > Cr-Commit-Position: refs/heads/master@{#10046} TBR=henrik.lundin@webrtc.org,tina.legrand@webrtc.org,kjellander@webrtc.org,kwiberg@webrtc.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=webrtc:4557 Review URL: https://codereview.webrtc.org/1368933002 Cr-Commit-Position: refs/heads/master@{#10069}
This commit is contained in:
@ -67,8 +67,13 @@ source_set("audio_coding") {
|
||||
deps = [
|
||||
":cng",
|
||||
":g711",
|
||||
":g722",
|
||||
":ilbc",
|
||||
":isac",
|
||||
":isac_fix",
|
||||
":neteq",
|
||||
":pcm16b",
|
||||
":red",
|
||||
"../..:rtc_event_log",
|
||||
"../..:webrtc_common",
|
||||
"../../common_audio",
|
||||
@ -79,27 +84,6 @@ source_set("audio_coding") {
|
||||
defines += [ "WEBRTC_CODEC_OPUS" ]
|
||||
deps += [ ":webrtc_opus" ]
|
||||
}
|
||||
if (!build_with_mozilla) {
|
||||
if (current_cpu == "arm") {
|
||||
defines += [ "WEBRTC_CODEC_ISACFX" ]
|
||||
deps += [ ":isac_fix" ]
|
||||
} else {
|
||||
defines += [ "WEBRTC_CODEC_ISAC" ]
|
||||
deps += [ ":isac" ]
|
||||
}
|
||||
defines += [ "WEBRTC_CODEC_G722" ]
|
||||
deps += [ ":g722" ]
|
||||
}
|
||||
if (!build_with_mozilla && !build_with_chromium) {
|
||||
defines += [
|
||||
"WEBRTC_CODEC_ILBC",
|
||||
"WEBRTC_CODEC_RED",
|
||||
]
|
||||
deps += [
|
||||
":ilbc",
|
||||
":red",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
source_set("audio_decoder_interface") {
|
||||
@ -804,6 +788,10 @@ source_set("neteq") {
|
||||
":audio_decoder_interface",
|
||||
":cng",
|
||||
":g711",
|
||||
":g722",
|
||||
":ilbc",
|
||||
":isac",
|
||||
":isac_fix",
|
||||
":pcm16b",
|
||||
"../..:webrtc_common",
|
||||
"../../common_audio",
|
||||
@ -816,19 +804,4 @@ source_set("neteq") {
|
||||
defines += [ "WEBRTC_CODEC_OPUS" ]
|
||||
deps += [ ":webrtc_opus" ]
|
||||
}
|
||||
if (!build_with_mozilla) {
|
||||
if (current_cpu == "arm") {
|
||||
defines += [ "WEBRTC_CODEC_ISACFX" ]
|
||||
deps += [ ":isac_fix" ]
|
||||
} else {
|
||||
defines += [ "WEBRTC_CODEC_ISAC" ]
|
||||
deps += [ ":isac" ]
|
||||
}
|
||||
defines += [ "WEBRTC_CODEC_G722" ]
|
||||
deps += [ ":g722" ]
|
||||
}
|
||||
if (!build_with_mozilla && !build_with_chromium) {
|
||||
defines += [ "WEBRTC_CODEC_ILBC" ]
|
||||
deps += [ ":ilbc" ]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user