OLD | NEW |
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 source_set("rent_a_codec") { | 12 source_set("rent_a_codec") { |
13 sources = [ | 13 sources = [ |
14 "acm2/acm_codec_database.cc", | 14 "acm2/acm_codec_database.cc", |
15 "acm2/acm_codec_database.h", | 15 "acm2/acm_codec_database.h", |
16 "acm2/rent_a_codec.cc", | 16 "acm2/rent_a_codec.cc", |
17 "acm2/rent_a_codec.h", | 17 "acm2/rent_a_codec.h", |
18 ] | 18 ] |
19 configs += [ "../..:common_config" ] | 19 configs += [ "../..:common_config" ] |
20 public_configs = [ "../..:common_inherited_config" ] | 20 public_configs = [ "../..:common_inherited_config" ] |
21 deps = [ | 21 deps = [ |
22 "../..:webrtc_common", | 22 "../..:webrtc_common", |
23 ] | 23 ] |
24 | 24 |
25 defines = [] | 25 defines = [] |
| 26 if (rtc_include_ilbc) { |
| 27 defines += [ "WEBRTC_CODEC_ILBC" ] |
| 28 } |
26 if (rtc_include_opus) { | 29 if (rtc_include_opus) { |
27 defines += [ "WEBRTC_CODEC_OPUS" ] | 30 defines += [ "WEBRTC_CODEC_OPUS" ] |
28 } | 31 } |
29 if (!build_with_mozilla) { | 32 if (!build_with_mozilla) { |
30 if (current_cpu == "arm") { | 33 if (current_cpu == "arm") { |
31 defines += [ "WEBRTC_CODEC_ISACFX" ] | 34 defines += [ "WEBRTC_CODEC_ISACFX" ] |
32 } else { | 35 } else { |
33 defines += [ "WEBRTC_CODEC_ISAC" ] | 36 defines += [ "WEBRTC_CODEC_ISAC" ] |
34 } | 37 } |
35 defines += [ "WEBRTC_CODEC_G722" ] | 38 defines += [ "WEBRTC_CODEC_G722" ] |
36 } | 39 } |
37 if (!build_with_mozilla && !build_with_chromium) { | 40 if (!build_with_mozilla && !build_with_chromium) { |
38 defines += [ | 41 defines += [ "WEBRTC_CODEC_RED" ] |
39 "WEBRTC_CODEC_ILBC", | |
40 "WEBRTC_CODEC_RED", | |
41 ] | |
42 } | 42 } |
43 } | 43 } |
44 | 44 |
45 config("audio_coding_config") { | 45 config("audio_coding_config") { |
46 include_dirs = [ | 46 include_dirs = [ |
47 "include", | 47 "include", |
48 "../include", | 48 "../include", |
49 ] | 49 ] |
50 } | 50 } |
51 | 51 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 ":g711", | 96 ":g711", |
97 ":neteq", | 97 ":neteq", |
98 ":pcm16b", | 98 ":pcm16b", |
99 ":rent_a_codec", | 99 ":rent_a_codec", |
100 "../..:rtc_event_log", | 100 "../..:rtc_event_log", |
101 "../..:webrtc_common", | 101 "../..:webrtc_common", |
102 "../../common_audio", | 102 "../../common_audio", |
103 "../../system_wrappers", | 103 "../../system_wrappers", |
104 ] | 104 ] |
105 | 105 |
| 106 if (rtc_include_ilbc) { |
| 107 defines += [ "WEBRTC_CODEC_ILBC" ] |
| 108 deps += [ ":ilbc" ] |
| 109 } |
106 if (rtc_include_opus) { | 110 if (rtc_include_opus) { |
107 defines += [ "WEBRTC_CODEC_OPUS" ] | 111 defines += [ "WEBRTC_CODEC_OPUS" ] |
108 deps += [ ":webrtc_opus" ] | 112 deps += [ ":webrtc_opus" ] |
109 } | 113 } |
110 if (!build_with_mozilla) { | 114 if (!build_with_mozilla) { |
111 if (current_cpu == "arm") { | 115 if (current_cpu == "arm") { |
112 defines += [ "WEBRTC_CODEC_ISACFX" ] | 116 defines += [ "WEBRTC_CODEC_ISACFX" ] |
113 deps += [ ":isac_fix" ] | 117 deps += [ ":isac_fix" ] |
114 } else { | 118 } else { |
115 defines += [ "WEBRTC_CODEC_ISAC" ] | 119 defines += [ "WEBRTC_CODEC_ISAC" ] |
116 deps += [ ":isac" ] | 120 deps += [ ":isac" ] |
117 } | 121 } |
118 defines += [ "WEBRTC_CODEC_G722" ] | 122 defines += [ "WEBRTC_CODEC_G722" ] |
119 deps += [ ":g722" ] | 123 deps += [ ":g722" ] |
120 } | 124 } |
121 if (!build_with_mozilla && !build_with_chromium) { | 125 if (!build_with_mozilla && !build_with_chromium) { |
122 defines += [ | 126 defines += [ "WEBRTC_CODEC_RED" ] |
123 "WEBRTC_CODEC_ILBC", | 127 deps += [ ":red" ] |
124 "WEBRTC_CODEC_RED", | |
125 ] | |
126 deps += [ | |
127 ":ilbc", | |
128 ":red", | |
129 ] | |
130 } | 128 } |
131 } | 129 } |
132 | 130 |
133 source_set("audio_decoder_interface") { | 131 source_set("audio_decoder_interface") { |
134 sources = [ | 132 sources = [ |
135 "codecs/audio_decoder.cc", | 133 "codecs/audio_decoder.cc", |
136 "codecs/audio_decoder.h", | 134 "codecs/audio_decoder.h", |
137 ] | 135 ] |
138 configs += [ "../..:common_config" ] | 136 configs += [ "../..:common_config" ] |
139 public_configs = [ "../..:common_inherited_config" ] | 137 public_configs = [ "../..:common_inherited_config" ] |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 ":cng", | 841 ":cng", |
844 ":g711", | 842 ":g711", |
845 ":pcm16b", | 843 ":pcm16b", |
846 "../..:webrtc_common", | 844 "../..:webrtc_common", |
847 "../../common_audio", | 845 "../../common_audio", |
848 "../../system_wrappers", | 846 "../../system_wrappers", |
849 ] | 847 ] |
850 | 848 |
851 defines = [] | 849 defines = [] |
852 | 850 |
| 851 if (rtc_include_ilbc) { |
| 852 defines += [ "WEBRTC_CODEC_ILBC" ] |
| 853 deps += [ ":ilbc" ] |
| 854 } |
853 if (rtc_include_opus) { | 855 if (rtc_include_opus) { |
854 defines += [ "WEBRTC_CODEC_OPUS" ] | 856 defines += [ "WEBRTC_CODEC_OPUS" ] |
855 deps += [ ":webrtc_opus" ] | 857 deps += [ ":webrtc_opus" ] |
856 } | 858 } |
857 if (!build_with_mozilla) { | 859 if (!build_with_mozilla) { |
858 if (current_cpu == "arm") { | 860 if (current_cpu == "arm") { |
859 defines += [ "WEBRTC_CODEC_ISACFX" ] | 861 defines += [ "WEBRTC_CODEC_ISACFX" ] |
860 deps += [ ":isac_fix" ] | 862 deps += [ ":isac_fix" ] |
861 } else { | 863 } else { |
862 defines += [ "WEBRTC_CODEC_ISAC" ] | 864 defines += [ "WEBRTC_CODEC_ISAC" ] |
863 deps += [ ":isac" ] | 865 deps += [ ":isac" ] |
864 } | 866 } |
865 defines += [ "WEBRTC_CODEC_G722" ] | 867 defines += [ "WEBRTC_CODEC_G722" ] |
866 deps += [ ":g722" ] | 868 deps += [ ":g722" ] |
867 } | 869 } |
868 if (!build_with_mozilla && !build_with_chromium) { | |
869 defines += [ "WEBRTC_CODEC_ILBC" ] | |
870 deps += [ ":ilbc" ] | |
871 } | |
872 } | 870 } |
OLD | NEW |