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

Side by Side Diff: webrtc/modules/audio_coding/BUILD.gn

Issue 1368933002: Revert of Don't link with audio codecs that we don't use (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@dmove-clean
Patch Set: Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « webrtc/engine_configurations.h ('k') | webrtc/modules/audio_coding/main/acm2/codec_owner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("//build/config/arm.gni") 9 import("//build/config/arm.gni")
10 import("../../build/webrtc.gni") 10 import("../../build/webrtc.gni")
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 if (is_clang) { 61 if (is_clang) {
62 # Suppress warnings from Chrome's Clang plugins. 62 # Suppress warnings from Chrome's Clang plugins.
63 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 63 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
64 configs -= [ "//build/config/clang:find_bad_constructs" ] 64 configs -= [ "//build/config/clang:find_bad_constructs" ]
65 } 65 }
66 66
67 deps = [ 67 deps = [
68 ":cng", 68 ":cng",
69 ":g711", 69 ":g711",
70 ":g722",
71 ":ilbc",
72 ":isac",
73 ":isac_fix",
70 ":neteq", 74 ":neteq",
71 ":pcm16b", 75 ":pcm16b",
76 ":red",
72 "../..:rtc_event_log", 77 "../..:rtc_event_log",
73 "../..:webrtc_common", 78 "../..:webrtc_common",
74 "../../common_audio", 79 "../../common_audio",
75 "../../system_wrappers", 80 "../../system_wrappers",
76 ] 81 ]
77 82
78 if (rtc_include_opus) { 83 if (rtc_include_opus) {
79 defines += [ "WEBRTC_CODEC_OPUS" ] 84 defines += [ "WEBRTC_CODEC_OPUS" ]
80 deps += [ ":webrtc_opus" ] 85 deps += [ ":webrtc_opus" ]
81 } 86 }
82 if (!build_with_mozilla) {
83 if (current_cpu == "arm") {
84 defines += [ "WEBRTC_CODEC_ISACFX" ]
85 deps += [ ":isac_fix" ]
86 } else {
87 defines += [ "WEBRTC_CODEC_ISAC" ]
88 deps += [ ":isac" ]
89 }
90 defines += [ "WEBRTC_CODEC_G722" ]
91 deps += [ ":g722" ]
92 }
93 if (!build_with_mozilla && !build_with_chromium) {
94 defines += [
95 "WEBRTC_CODEC_ILBC",
96 "WEBRTC_CODEC_RED",
97 ]
98 deps += [
99 ":ilbc",
100 ":red",
101 ]
102 }
103 } 87 }
104 88
105 source_set("audio_decoder_interface") { 89 source_set("audio_decoder_interface") {
106 sources = [ 90 sources = [
107 "codecs/audio_decoder.cc", 91 "codecs/audio_decoder.cc",
108 "codecs/audio_decoder.h", 92 "codecs/audio_decoder.h",
109 ] 93 ]
110 configs += [ "../..:common_config" ] 94 configs += [ "../..:common_config" ]
111 public_configs = [ "../..:common_inherited_config" ] 95 public_configs = [ "../..:common_inherited_config" ]
112 deps = [ 96 deps = [
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 781
798 public_configs = [ 782 public_configs = [
799 "../..:common_inherited_config", 783 "../..:common_inherited_config",
800 ":neteq_config", 784 ":neteq_config",
801 ] 785 ]
802 786
803 deps = [ 787 deps = [
804 ":audio_decoder_interface", 788 ":audio_decoder_interface",
805 ":cng", 789 ":cng",
806 ":g711", 790 ":g711",
791 ":g722",
792 ":ilbc",
793 ":isac",
794 ":isac_fix",
807 ":pcm16b", 795 ":pcm16b",
808 "../..:webrtc_common", 796 "../..:webrtc_common",
809 "../../common_audio", 797 "../../common_audio",
810 "../../system_wrappers", 798 "../../system_wrappers",
811 ] 799 ]
812 800
813 defines = [] 801 defines = []
814 802
815 if (rtc_include_opus) { 803 if (rtc_include_opus) {
816 defines += [ "WEBRTC_CODEC_OPUS" ] 804 defines += [ "WEBRTC_CODEC_OPUS" ]
817 deps += [ ":webrtc_opus" ] 805 deps += [ ":webrtc_opus" ]
818 } 806 }
819 if (!build_with_mozilla) {
820 if (current_cpu == "arm") {
821 defines += [ "WEBRTC_CODEC_ISACFX" ]
822 deps += [ ":isac_fix" ]
823 } else {
824 defines += [ "WEBRTC_CODEC_ISAC" ]
825 deps += [ ":isac" ]
826 }
827 defines += [ "WEBRTC_CODEC_G722" ]
828 deps += [ ":g722" ]
829 }
830 if (!build_with_mozilla && !build_with_chromium) {
831 defines += [ "WEBRTC_CODEC_ILBC" ]
832 deps += [ ":ilbc" ]
833 }
834 } 807 }
OLDNEW
« no previous file with comments | « webrtc/engine_configurations.h ('k') | webrtc/modules/audio_coding/main/acm2/codec_owner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698