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

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

Issue 1607463002: Declare that rent_a_codec depends on the audio codecs (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: gn refactoring 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 unified diff | Download patch
« no previous file with comments | « webrtc/build/common.gypi ('k') | webrtc/modules/audio_coding/audio_coding.gypi » ('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")
11 11
12 audio_codec_deps = [
13 ":cng",
14 ":g711",
15 ":pcm16b",
16 ]
17 audio_codec_defines = []
18 if (rtc_include_ilbc) {
19 audio_codec_defines += [ "WEBRTC_CODEC_ILBC" ]
20 audio_codec_deps += [ ":ilbc" ]
21 }
22 if (rtc_include_opus) {
23 audio_codec_defines += [ "WEBRTC_CODEC_OPUS" ]
24 audio_codec_deps += [ ":webrtc_opus" ]
25 }
26 if (!build_with_mozilla) {
27 if (current_cpu == "arm") {
28 audio_codec_defines += [ "WEBRTC_CODEC_ISACFX" ]
29 audio_codec_deps += [ ":isac_fix" ]
30 } else {
31 audio_codec_defines += [ "WEBRTC_CODEC_ISAC" ]
32 audio_codec_deps += [ ":isac" ]
33 }
34 audio_codec_defines += [ "WEBRTC_CODEC_G722" ]
35 audio_codec_deps += [ ":g722" ]
36 }
37 if (!build_with_mozilla && !build_with_chromium) {
38 audio_codec_defines += [ "WEBRTC_CODEC_RED" ]
39 audio_codec_deps += [ ":red" ]
40 }
41
12 source_set("rent_a_codec") { 42 source_set("rent_a_codec") {
13 sources = [ 43 sources = [
14 "acm2/acm_codec_database.cc", 44 "acm2/acm_codec_database.cc",
15 "acm2/acm_codec_database.h", 45 "acm2/acm_codec_database.h",
16 "acm2/rent_a_codec.cc", 46 "acm2/rent_a_codec.cc",
17 "acm2/rent_a_codec.h", 47 "acm2/rent_a_codec.h",
18 ] 48 ]
19 configs += [ "../..:common_config" ] 49 configs += [ "../..:common_config" ]
20 public_configs = [ "../..:common_inherited_config" ] 50 public_configs = [ "../..:common_inherited_config" ]
21 deps = [ 51 deps = [ "../..:webrtc_common" ] + audio_codec_deps
22 "../..:webrtc_common", 52 defines = audio_codec_defines
23 ]
24
25 defines = []
26 if (rtc_include_ilbc) {
27 defines += [ "WEBRTC_CODEC_ILBC" ]
28 }
29 if (rtc_include_opus) {
30 defines += [ "WEBRTC_CODEC_OPUS" ]
31 }
32 if (!build_with_mozilla) {
33 if (current_cpu == "arm") {
34 defines += [ "WEBRTC_CODEC_ISACFX" ]
35 } else {
36 defines += [ "WEBRTC_CODEC_ISAC" ]
37 }
38 defines += [ "WEBRTC_CODEC_G722" ]
39 }
40 if (!build_with_mozilla && !build_with_chromium) {
41 defines += [ "WEBRTC_CODEC_RED" ]
42 }
43 } 53 }
44 54
45 config("audio_coding_config") { 55 config("audio_coding_config") {
46 include_dirs = [ 56 include_dirs = [
47 "include", 57 "include",
48 "../include", 58 "../include",
49 ] 59 ]
50 } 60 }
51 61
52 source_set("audio_coding") { 62 source_set("audio_coding") {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 "/wd4373", # virtual function override. 94 "/wd4373", # virtual function override.
85 ] 95 ]
86 } 96 }
87 97
88 if (is_clang) { 98 if (is_clang) {
89 # Suppress warnings from Chrome's Clang plugins. 99 # Suppress warnings from Chrome's Clang plugins.
90 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 100 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
91 configs -= [ "//build/config/clang:find_bad_constructs" ] 101 configs -= [ "//build/config/clang:find_bad_constructs" ]
92 } 102 }
93 103
94 deps = [ 104 deps = audio_codec_deps + [
hlundin-webrtc 2016/01/19 12:11:34 Do we still need ACM to depend directly on audio_c
kwiberg-webrtc 2016/01/19 12:21:50 I think it still needs it for the decoders, but I'
hlundin-webrtc 2016/01/19 12:30:15 Fair enough.
95 ":cng", 105 ":neteq",
96 ":g711", 106 ":rent_a_codec",
97 ":neteq", 107 "../..:rtc_event_log",
98 ":pcm16b", 108 "../..:webrtc_common",
99 ":rent_a_codec", 109 "../../common_audio",
100 "../..:rtc_event_log", 110 "../../system_wrappers",
101 "../..:webrtc_common", 111 ]
102 "../../common_audio", 112 defines = audio_codec_defines
103 "../../system_wrappers",
104 ]
105
106 if (rtc_include_ilbc) {
107 defines += [ "WEBRTC_CODEC_ILBC" ]
108 deps += [ ":ilbc" ]
109 }
110 if (rtc_include_opus) {
111 defines += [ "WEBRTC_CODEC_OPUS" ]
112 deps += [ ":webrtc_opus" ]
113 }
114 if (!build_with_mozilla) {
115 if (current_cpu == "arm") {
116 defines += [ "WEBRTC_CODEC_ISACFX" ]
117 deps += [ ":isac_fix" ]
118 } else {
119 defines += [ "WEBRTC_CODEC_ISAC" ]
120 deps += [ ":isac" ]
121 }
122 defines += [ "WEBRTC_CODEC_G722" ]
123 deps += [ ":g722" ]
124 }
125 if (!build_with_mozilla && !build_with_chromium) {
126 defines += [ "WEBRTC_CODEC_RED" ]
127 deps += [ ":red" ]
128 }
129 } 113 }
130 114
131 source_set("audio_decoder_interface") { 115 source_set("audio_decoder_interface") {
132 sources = [ 116 sources = [
133 "codecs/audio_decoder.cc", 117 "codecs/audio_decoder.cc",
134 "codecs/audio_decoder.h", 118 "codecs/audio_decoder.h",
135 ] 119 ]
136 configs += [ "../..:common_config" ] 120 configs += [ "../..:common_config" ]
137 public_configs = [ "../..:common_inherited_config" ] 121 public_configs = [ "../..:common_inherited_config" ]
138 deps = [ 122 deps = [
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 defines += [ "WEBRTC_CODEC_ISACFX" ] 845 defines += [ "WEBRTC_CODEC_ISACFX" ]
862 deps += [ ":isac_fix" ] 846 deps += [ ":isac_fix" ]
863 } else { 847 } else {
864 defines += [ "WEBRTC_CODEC_ISAC" ] 848 defines += [ "WEBRTC_CODEC_ISAC" ]
865 deps += [ ":isac" ] 849 deps += [ ":isac" ]
866 } 850 }
867 defines += [ "WEBRTC_CODEC_G722" ] 851 defines += [ "WEBRTC_CODEC_G722" ]
868 deps += [ ":g722" ] 852 deps += [ ":g722" ]
869 } 853 }
870 } 854 }
OLDNEW
« no previous file with comments | « webrtc/build/common.gypi ('k') | webrtc/modules/audio_coding/audio_coding.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698