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

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

Issue 1349393003: 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: More ARM fixes 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",
74 ":neteq", 70 ":neteq",
75 ":pcm16b", 71 ":pcm16b",
76 ":red",
77 "../..:rtc_event_log", 72 "../..:rtc_event_log",
78 "../..:webrtc_common", 73 "../..:webrtc_common",
79 "../../common_audio", 74 "../../common_audio",
80 "../../system_wrappers", 75 "../../system_wrappers",
81 ] 76 ]
82 77
83 if (rtc_include_opus) { 78 if (rtc_include_opus) {
84 defines += [ "WEBRTC_CODEC_OPUS" ] 79 defines += [ "WEBRTC_CODEC_OPUS" ]
85 deps += [ ":webrtc_opus" ] 80 deps += [ ":webrtc_opus" ]
86 } 81 }
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 }
87 } 103 }
88 104
89 source_set("audio_decoder_interface") { 105 source_set("audio_decoder_interface") {
90 sources = [ 106 sources = [
91 "codecs/audio_decoder.cc", 107 "codecs/audio_decoder.cc",
92 "codecs/audio_decoder.h", 108 "codecs/audio_decoder.h",
93 ] 109 ]
94 configs += [ "../..:common_config" ] 110 configs += [ "../..:common_config" ]
95 public_configs = [ "../..:common_inherited_config" ] 111 public_configs = [ "../..:common_inherited_config" ]
96 deps = [ 112 deps = [
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 797
782 public_configs = [ 798 public_configs = [
783 "../..:common_inherited_config", 799 "../..:common_inherited_config",
784 ":neteq_config", 800 ":neteq_config",
785 ] 801 ]
786 802
787 deps = [ 803 deps = [
788 ":audio_decoder_interface", 804 ":audio_decoder_interface",
789 ":cng", 805 ":cng",
790 ":g711", 806 ":g711",
791 ":g722",
792 ":ilbc",
793 ":isac",
794 ":isac_fix",
795 ":pcm16b", 807 ":pcm16b",
796 "../..:webrtc_common", 808 "../..:webrtc_common",
797 "../../common_audio", 809 "../../common_audio",
798 "../../system_wrappers", 810 "../../system_wrappers",
799 ] 811 ]
800 812
801 defines = [] 813 defines = []
802 814
803 if (rtc_include_opus) { 815 if (rtc_include_opus) {
804 defines += [ "WEBRTC_CODEC_OPUS" ] 816 defines += [ "WEBRTC_CODEC_OPUS" ]
805 deps += [ ":webrtc_opus" ] 817 deps += [ ":webrtc_opus" ]
806 } 818 }
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 }
807 } 834 }
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