blob: 8195e47aa64cb7b823f6ec7ac38289b4a1aaf4a4 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
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
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellanderfb114242016-06-13 00:19:48 -070010import("audio_coding.gni")
11import("//build/config/arm.gni")
kjellanderfb114242016-06-13 00:19:48 -070012import("//third_party/protobuf/proto_library.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013
kwiberg0edb05b2016-01-19 05:54:28 -080014audio_codec_deps = [
15 ":cng",
16 ":g711",
17 ":pcm16b",
18]
kwiberg0edb05b2016-01-19 05:54:28 -080019if (rtc_include_ilbc) {
kwiberg0edb05b2016-01-19 05:54:28 -080020 audio_codec_deps += [ ":ilbc" ]
21}
22if (rtc_include_opus) {
kwiberg0edb05b2016-01-19 05:54:28 -080023 audio_codec_deps += [ ":webrtc_opus" ]
24}
25if (!build_with_mozilla) {
26 if (current_cpu == "arm") {
kwiberg0edb05b2016-01-19 05:54:28 -080027 audio_codec_deps += [ ":isac_fix" ]
28 } else {
kwiberg0edb05b2016-01-19 05:54:28 -080029 audio_codec_deps += [ ":isac" ]
30 }
kwiberg0edb05b2016-01-19 05:54:28 -080031 audio_codec_deps += [ ":g722" ]
32}
33if (!build_with_mozilla && !build_with_chromium) {
kwiberg0edb05b2016-01-19 05:54:28 -080034 audio_codec_deps += [ ":red" ]
35}
kjellanderfb114242016-06-13 00:19:48 -070036audio_coding_deps = audio_codec_deps + [
37 "../..:webrtc_common",
38 "../../common_audio",
39 "../../system_wrappers",
40 ]
kwiberg0edb05b2016-01-19 05:54:28 -080041
kwibergda2bf4e2016-10-24 13:47:09 -070042rtc_static_library("audio_format_conversion") {
43 sources = [
44 "codecs/audio_format_conversion.cc",
45 "codecs/audio_format_conversion.h",
46 ]
47 deps = [
kwiberga6b82982016-10-24 16:31:17 -070048 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -080049 "../../api/audio_codecs:audio_codecs_api",
kwiberga6b82982016-10-24 16:31:17 -070050 "../../base:rtc_base_approved",
kwibergda2bf4e2016-10-24 13:47:09 -070051 ]
52}
53
ossua1a040a2017-04-06 10:03:21 -070054rtc_source_set("audio_encoder_factory_interface") {
55 sources = [
56 "codecs/audio_encoder_factory.h",
57 ]
58 deps = [
59 ":audio_encoder_interface",
60 "../../api/audio_codecs:audio_codecs_api",
61 "../../base:rtc_base_approved",
62 ]
63}
64
65rtc_static_library("builtin_audio_encoder_factory") {
66 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
67 # Errors on cyclic dependency with :isac_fix if enabled.
68 check_includes = false
69 sources = [
70 "codecs/builtin_audio_encoder_factory.cc",
71 "codecs/builtin_audio_encoder_factory.h",
72 ]
73 deps = [
74 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -070075 "../../base:protobuf_utils",
ossua1a040a2017-04-06 10:03:21 -070076 "../../base:rtc_base_approved",
77 ":audio_encoder_factory_interface",
78 ] + audio_codec_deps
79 defines = audio_codec_defines
80}
81
kwiberg087bd342017-02-10 08:15:44 -080082rtc_static_library("builtin_audio_decoder_factory_internal") {
kwibergda2bf4e2016-10-24 13:47:09 -070083 sources = [
kwiberg087bd342017-02-10 08:15:44 -080084 "codecs/builtin_audio_decoder_factory_internal.cc",
85 "codecs/builtin_audio_decoder_factory_internal.h",
kwibergc01c6a42016-04-28 14:23:32 -070086 ]
kwibergc01c6a42016-04-28 14:23:32 -070087 deps = [
88 "../..:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -080089 "../../base:rtc_base_approved",
kwiberg087bd342017-02-10 08:15:44 -080090 "../../api/audio_codecs:audio_codecs_api",
kwibergc01c6a42016-04-28 14:23:32 -070091 ] + audio_codec_deps
92 defines = audio_codec_defines
93}
94
kjellanderb62dbbe2016-09-23 00:38:52 -070095rtc_static_library("rent_a_codec") {
kwibergfce4a942015-10-27 11:40:24 -070096 sources = [
kjellander3e6db232015-11-26 04:44:54 -080097 "acm2/acm_codec_database.cc",
98 "acm2/acm_codec_database.h",
99 "acm2/rent_a_codec.cc",
100 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -0700101 ]
kjellander676e08f2016-12-07 08:23:27 -0800102 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800103 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800104 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -0700105 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -0800106 "../../base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -0800107 "../../system_wrappers",
108 ":audio_coding_module_typedefs",
109 ":audio_encoder_interface",
110 ":isac_common",
111 ":isac_fix_c",
112 ":neteq_decoder_enum",
kjellander676e08f2016-12-07 08:23:27 -0800113 ] + audio_codec_deps
mbonadei7c2c8432017-04-07 00:59:12 -0700114
kwiberg0edb05b2016-01-19 05:54:28 -0800115 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -0700116}
117
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000118config("audio_coding_config") {
119 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -0800120 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +0100121 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000122 ]
123}
124
kwiberg65cb70d2017-03-03 06:16:28 -0800125rtc_source_set("audio_coding_module_typedefs") {
126 sources = [
127 "include/audio_coding_module_typedefs.h",
128 ]
129 deps = [
mbonadei5a1a0922017-04-26 01:53:54 -0700130 "..:module_api",
kwiberg65cb70d2017-03-03 06:16:28 -0800131 "../..:webrtc_common",
132 ]
133}
134
kjellanderb62dbbe2016-09-23 00:38:52 -0700135rtc_static_library("audio_coding") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000136 sources = [
kjellander3e6db232015-11-26 04:44:54 -0800137 "acm2/acm_receiver.cc",
138 "acm2/acm_receiver.h",
139 "acm2/acm_resampler.cc",
140 "acm2/acm_resampler.h",
141 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800142 "acm2/call_statistics.cc",
143 "acm2/call_statistics.h",
144 "acm2/codec_manager.cc",
145 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800146 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000147 ]
148
149 defines = []
150
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700151 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000152
kjellanderfb114242016-06-13 00:19:48 -0700153 if (rtc_include_opus) {
154 public_deps = [
155 ":webrtc_opus",
156 ]
157 }
158
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000159 if (is_win) {
160 cflags = [
161 # TODO(kjellander): Bug 261: fix this warning.
162 "/wd4373", # virtual function override.
163 ]
164 }
165
kjellanderfb114242016-06-13 00:19:48 -0700166 deps = audio_coding_deps + [
mbonadei5a1a0922017-04-26 01:53:54 -0700167 "..:module_api",
kwiberg087bd342017-02-10 08:15:44 -0800168 "../../api/audio_codecs:audio_codecs_api",
169 "../../api/audio_codecs:builtin_audio_decoder_factory",
kwiberg65cb70d2017-03-03 06:16:28 -0800170 ":audio_coding_module_typedefs",
171 ":audio_encoder_interface",
kwiberg0edb05b2016-01-19 05:54:28 -0800172 ":neteq",
173 ":rent_a_codec",
kjellander676e08f2016-12-07 08:23:27 -0800174 "../../base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -0700175 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800176 ]
kjellanderfb114242016-06-13 00:19:48 -0700177 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000178}
179
kwiberg087bd342017-02-10 08:15:44 -0800180rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000181 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700182 "codecs/legacy_encoded_audio_frame.cc",
183 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000184 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200185 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800186 "../../api/audio_codecs:audio_codecs_api",
kjellander4e7f6c12016-04-25 21:59:50 -0700187 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200188 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000189}
190
kjellanderb62dbbe2016-09-23 00:38:52 -0700191rtc_static_library("audio_encoder_interface") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000192 sources = [
193 "codecs/audio_encoder.cc",
194 "codecs/audio_encoder.h",
195 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200196 deps = [
197 "../..:webrtc_common",
kjellander4e7f6c12016-04-25 21:59:50 -0700198 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200199 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000200}
201
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000202config("cng_config") {
203 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000204 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000205 "codecs/cng/include",
206 ]
207}
208
kjellanderb62dbbe2016-09-23 00:38:52 -0700209rtc_static_library("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000210 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000211 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100212 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700213 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100214 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000215 ]
216
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700217 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000218
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000219 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000220 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800221 "../..:webrtc_common",
222 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100223 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000224 ]
225}
226
227config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200228 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000229}
230
kjellanderb62dbbe2016-09-23 00:38:52 -0700231rtc_static_library("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000232 sources = [
233 "codecs/red/audio_encoder_copy_red.cc",
234 "codecs/red/audio_encoder_copy_red.h",
235 ]
236
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700237 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000238
239 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000240 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800241 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100242 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000243 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000244}
245
246config("g711_config") {
247 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000248 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000249 "codecs/g711/include",
250 ]
251}
252
kjellanderb62dbbe2016-09-23 00:38:52 -0700253rtc_static_library("g711") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000254 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700255 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100256 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000257 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100258 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000259 ]
260
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700261 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000262
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200263 deps = [
264 ":audio_encoder_interface",
kwiberg087bd342017-02-10 08:15:44 -0800265 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800266 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800267 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800268 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200269 ]
kjellander7439f972016-12-05 22:47:46 -0800270 public_deps = [
271 ":g711_c",
272 ]
273}
274
275rtc_source_set("g711_c") {
276 visibility = [ ":*" ] # Only targets in this file can depend on this.
277 sources = [
278 "codecs/g711/g711.c",
279 "codecs/g711/g711.h",
280 "codecs/g711/g711_interface.c",
281 "codecs/g711/g711_interface.h",
282 ]
kjellander676e08f2016-12-07 08:23:27 -0800283 deps = [
284 "../..:webrtc_common",
285 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000286}
287
288config("g722_config") {
289 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000290 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000291 "codecs/g722/include",
292 ]
293}
294
kjellanderb62dbbe2016-09-23 00:38:52 -0700295rtc_static_library("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000296 sources = [
kwibergada4c132015-09-17 03:12:35 -0700297 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100298 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000299 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100300 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000301 ]
302
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700303 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000304
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200305 deps = [
306 ":audio_encoder_interface",
kwiberg087bd342017-02-10 08:15:44 -0800307 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800308 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800309 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800310 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200311 ]
kjellander7439f972016-12-05 22:47:46 -0800312 public_deps = [
313 ":g722_c",
314 ]
315}
316
317rtc_source_set("g722_c") {
318 visibility = [ ":*" ] # Only targets in this file can depend on this.
319 sources = [
320 "codecs/g722/g722_decode.c",
321 "codecs/g722/g722_enc_dec.h",
322 "codecs/g722/g722_encode.c",
323 "codecs/g722/g722_interface.c",
324 "codecs/g722/g722_interface.h",
325 ]
kjellander676e08f2016-12-07 08:23:27 -0800326 deps = [
327 "../..:webrtc_common",
328 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000329}
330
331config("ilbc_config") {
332 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000333 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100334 "codecs/ilbc/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000335 ]
336}
337
kjellanderb62dbbe2016-09-23 00:38:52 -0700338rtc_static_library("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000339 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700340 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100341 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200342 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100343 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800344 ]
345
346 public_configs = [ ":ilbc_config" ]
347
348 deps = [
kjellander7439f972016-12-05 22:47:46 -0800349 ":audio_encoder_interface",
kwiberg087bd342017-02-10 08:15:44 -0800350 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800351 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800352 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800353 "../../base:rtc_base_approved",
354 "../../common_audio",
355 ]
356 public_deps = [
357 ":ilbc_c",
358 ]
359}
360
361rtc_source_set("ilbc_c") {
362 visibility = [ ":*" ] # Only targets in this file can depend on this.
363 sources = [
364 "codecs/ilbc/abs_quant.c",
365 "codecs/ilbc/abs_quant.h",
366 "codecs/ilbc/abs_quant_loop.c",
367 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000368 "codecs/ilbc/augmented_cb_corr.c",
369 "codecs/ilbc/augmented_cb_corr.h",
370 "codecs/ilbc/bw_expand.c",
371 "codecs/ilbc/bw_expand.h",
372 "codecs/ilbc/cb_construct.c",
373 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200374 "codecs/ilbc/cb_mem_energy.c",
375 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000376 "codecs/ilbc/cb_mem_energy_augmentation.c",
377 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000378 "codecs/ilbc/cb_mem_energy_calc.c",
379 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000380 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200381 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000382 "codecs/ilbc/cb_search_core.c",
383 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000384 "codecs/ilbc/cb_update_best_index.c",
385 "codecs/ilbc/cb_update_best_index.h",
386 "codecs/ilbc/chebyshev.c",
387 "codecs/ilbc/chebyshev.h",
388 "codecs/ilbc/comp_corr.c",
389 "codecs/ilbc/comp_corr.h",
390 "codecs/ilbc/constants.c",
391 "codecs/ilbc/constants.h",
392 "codecs/ilbc/create_augmented_vec.c",
393 "codecs/ilbc/create_augmented_vec.h",
394 "codecs/ilbc/decode.c",
395 "codecs/ilbc/decode.h",
396 "codecs/ilbc/decode_residual.c",
397 "codecs/ilbc/decode_residual.h",
398 "codecs/ilbc/decoder_interpolate_lsf.c",
399 "codecs/ilbc/decoder_interpolate_lsf.h",
400 "codecs/ilbc/defines.h",
401 "codecs/ilbc/do_plc.c",
402 "codecs/ilbc/do_plc.h",
403 "codecs/ilbc/encode.c",
404 "codecs/ilbc/encode.h",
405 "codecs/ilbc/energy_inverse.c",
406 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200407 "codecs/ilbc/enh_upsample.c",
408 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000409 "codecs/ilbc/enhancer.c",
410 "codecs/ilbc/enhancer.h",
411 "codecs/ilbc/enhancer_interface.c",
412 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000413 "codecs/ilbc/filtered_cb_vecs.c",
414 "codecs/ilbc/filtered_cb_vecs.h",
415 "codecs/ilbc/frame_classify.c",
416 "codecs/ilbc/frame_classify.h",
417 "codecs/ilbc/gain_dequant.c",
418 "codecs/ilbc/gain_dequant.h",
419 "codecs/ilbc/gain_quant.c",
420 "codecs/ilbc/gain_quant.h",
421 "codecs/ilbc/get_cd_vec.c",
422 "codecs/ilbc/get_cd_vec.h",
423 "codecs/ilbc/get_lsp_poly.c",
424 "codecs/ilbc/get_lsp_poly.h",
425 "codecs/ilbc/get_sync_seq.c",
426 "codecs/ilbc/get_sync_seq.h",
427 "codecs/ilbc/hp_input.c",
428 "codecs/ilbc/hp_input.h",
429 "codecs/ilbc/hp_output.c",
430 "codecs/ilbc/hp_output.h",
431 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100432 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000433 "codecs/ilbc/index_conv_dec.c",
434 "codecs/ilbc/index_conv_dec.h",
435 "codecs/ilbc/index_conv_enc.c",
436 "codecs/ilbc/index_conv_enc.h",
437 "codecs/ilbc/init_decode.c",
438 "codecs/ilbc/init_decode.h",
439 "codecs/ilbc/init_encode.c",
440 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000441 "codecs/ilbc/interpolate.c",
442 "codecs/ilbc/interpolate.h",
443 "codecs/ilbc/interpolate_samples.c",
444 "codecs/ilbc/interpolate_samples.h",
445 "codecs/ilbc/lpc_encode.c",
446 "codecs/ilbc/lpc_encode.h",
447 "codecs/ilbc/lsf_check.c",
448 "codecs/ilbc/lsf_check.h",
449 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
450 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
451 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
452 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
453 "codecs/ilbc/lsf_to_lsp.c",
454 "codecs/ilbc/lsf_to_lsp.h",
455 "codecs/ilbc/lsf_to_poly.c",
456 "codecs/ilbc/lsf_to_poly.h",
457 "codecs/ilbc/lsp_to_lsf.c",
458 "codecs/ilbc/lsp_to_lsf.h",
459 "codecs/ilbc/my_corr.c",
460 "codecs/ilbc/my_corr.h",
461 "codecs/ilbc/nearest_neighbor.c",
462 "codecs/ilbc/nearest_neighbor.h",
463 "codecs/ilbc/pack_bits.c",
464 "codecs/ilbc/pack_bits.h",
465 "codecs/ilbc/poly_to_lsf.c",
466 "codecs/ilbc/poly_to_lsf.h",
467 "codecs/ilbc/poly_to_lsp.c",
468 "codecs/ilbc/poly_to_lsp.h",
469 "codecs/ilbc/refiner.c",
470 "codecs/ilbc/refiner.h",
471 "codecs/ilbc/simple_interpolate_lsf.c",
472 "codecs/ilbc/simple_interpolate_lsf.h",
473 "codecs/ilbc/simple_lpc_analysis.c",
474 "codecs/ilbc/simple_lpc_analysis.h",
475 "codecs/ilbc/simple_lsf_dequant.c",
476 "codecs/ilbc/simple_lsf_dequant.h",
477 "codecs/ilbc/simple_lsf_quant.c",
478 "codecs/ilbc/simple_lsf_quant.h",
479 "codecs/ilbc/smooth.c",
480 "codecs/ilbc/smooth.h",
481 "codecs/ilbc/smooth_out_data.c",
482 "codecs/ilbc/smooth_out_data.h",
483 "codecs/ilbc/sort_sq.c",
484 "codecs/ilbc/sort_sq.h",
485 "codecs/ilbc/split_vq.c",
486 "codecs/ilbc/split_vq.h",
487 "codecs/ilbc/state_construct.c",
488 "codecs/ilbc/state_construct.h",
489 "codecs/ilbc/state_search.c",
490 "codecs/ilbc/state_search.h",
491 "codecs/ilbc/swap_bytes.c",
492 "codecs/ilbc/swap_bytes.h",
493 "codecs/ilbc/unpack_bits.c",
494 "codecs/ilbc/unpack_bits.h",
495 "codecs/ilbc/vq3.c",
496 "codecs/ilbc/vq3.h",
497 "codecs/ilbc/vq4.c",
498 "codecs/ilbc/vq4.h",
499 "codecs/ilbc/window32_w32.c",
500 "codecs/ilbc/window32_w32.h",
501 "codecs/ilbc/xcorr_coef.c",
502 "codecs/ilbc/xcorr_coef.h",
503 ]
504
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700505 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000506
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000507 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800508 ":audio_encoder_interface",
509 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800510 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800511 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100512 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000513 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000514}
515
kjellanderb62dbbe2016-09-23 00:38:52 -0700516rtc_static_library("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700517 sources = [
518 "codecs/isac/audio_encoder_isac_t.h",
519 "codecs/isac/audio_encoder_isac_t_impl.h",
520 "codecs/isac/locked_bandwidth_info.cc",
521 "codecs/isac/locked_bandwidth_info.h",
522 ]
kjellander676e08f2016-12-07 08:23:27 -0800523 deps = [
524 ":audio_encoder_interface",
kwiberga6ca5182017-01-30 05:28:54 -0800525 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700526 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800527 "../../base:rtc_base_approved",
528 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700529}
530
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000531config("isac_config") {
532 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000533 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100534 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000535 ]
536}
537
kjellanderb62dbbe2016-09-23 00:38:52 -0700538rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000539 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800540 "codecs/isac/main/include/audio_decoder_isac.h",
541 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800542 "codecs/isac/main/source/audio_decoder_isac.cc",
543 "codecs/isac/main/source/audio_encoder_isac.cc",
544 ]
545
546 deps = [
kjellander7439f972016-12-05 22:47:46 -0800547 ":audio_encoder_interface",
548 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800549 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800550 ]
551 public_deps = [
552 ":isac_c",
553 ]
554}
555
556rtc_static_library("isac_c") {
557 visibility = [ ":*" ] # Only targets in this file can depend on this.
558 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100559 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000560 "codecs/isac/main/source/arith_routines.c",
561 "codecs/isac/main/source/arith_routines.h",
562 "codecs/isac/main/source/arith_routines_hist.c",
563 "codecs/isac/main/source/arith_routines_logist.c",
564 "codecs/isac/main/source/bandwidth_estimator.c",
565 "codecs/isac/main/source/bandwidth_estimator.h",
566 "codecs/isac/main/source/codec.h",
567 "codecs/isac/main/source/crc.c",
568 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000569 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200570 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000571 "codecs/isac/main/source/encode.c",
572 "codecs/isac/main/source/encode_lpc_swb.c",
573 "codecs/isac/main/source/encode_lpc_swb.h",
574 "codecs/isac/main/source/entropy_coding.c",
575 "codecs/isac/main/source/entropy_coding.h",
576 "codecs/isac/main/source/fft.c",
577 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200578 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000579 "codecs/isac/main/source/filterbank_tables.c",
580 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200581 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000582 "codecs/isac/main/source/intialize.c",
583 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200584 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000585 "codecs/isac/main/source/lattice.c",
586 "codecs/isac/main/source/lpc_analysis.c",
587 "codecs/isac/main/source/lpc_analysis.h",
588 "codecs/isac/main/source/lpc_gain_swb_tables.c",
589 "codecs/isac/main/source/lpc_gain_swb_tables.h",
590 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
591 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
592 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
593 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
594 "codecs/isac/main/source/lpc_tables.c",
595 "codecs/isac/main/source/lpc_tables.h",
596 "codecs/isac/main/source/os_specific_inline.h",
597 "codecs/isac/main/source/pitch_estimator.c",
598 "codecs/isac/main/source/pitch_estimator.h",
599 "codecs/isac/main/source/pitch_filter.c",
600 "codecs/isac/main/source/pitch_gain_tables.c",
601 "codecs/isac/main/source/pitch_gain_tables.h",
602 "codecs/isac/main/source/pitch_lag_tables.c",
603 "codecs/isac/main/source/pitch_lag_tables.h",
604 "codecs/isac/main/source/settings.h",
605 "codecs/isac/main/source/spectrum_ar_model_tables.c",
606 "codecs/isac/main/source/spectrum_ar_model_tables.h",
607 "codecs/isac/main/source/structs.h",
608 "codecs/isac/main/source/transform.c",
609 ]
610
611 if (is_linux) {
612 libs = [ "m" ]
613 }
614
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700615 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000616
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000617 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800618 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700619 "../..:webrtc_common",
620 "../../base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000621 "../../common_audio",
622 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000623}
624
625config("isac_fix_config") {
626 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000627 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100628 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000629 ]
630}
631
kjellanderb62dbbe2016-09-23 00:38:52 -0700632rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000633 sources = [
kjellander7439f972016-12-05 22:47:46 -0800634 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
635 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
636 ]
637
638 public_configs = [ ":isac_fix_config" ]
639
640 deps = [
kjellander7439f972016-12-05 22:47:46 -0800641 ":audio_encoder_interface",
642 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800643 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800644 "../../common_audio",
645 "../../system_wrappers",
646 ]
647 public_deps = [
648 ":isac_fix_c",
649 ]
650
651 if (rtc_build_with_neon) {
652 deps += [ ":isac_neon" ]
653 }
654}
655
kwiberga6ca5182017-01-30 05:28:54 -0800656rtc_source_set("isac_fix_common") {
657 visibility = [ ":*" ] # Only targets in this file can depend on this.
658 sources = [
659 "codecs/isac/fix/source/codec.h",
660 "codecs/isac/fix/source/fft.c",
661 "codecs/isac/fix/source/fft.h",
662 "codecs/isac/fix/source/settings.h",
663 ]
664 public_configs = [ ":isac_fix_config" ]
665}
kjellander676e08f2016-12-07 08:23:27 -0800666
kwiberga6ca5182017-01-30 05:28:54 -0800667rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800668 visibility = [ ":*" ] # Only targets in this file can depend on this.
669 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100670 "codecs/isac/fix/include/audio_decoder_isacfix.h",
671 "codecs/isac/fix/include/audio_encoder_isacfix.h",
672 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000673 "codecs/isac/fix/source/arith_routines.c",
674 "codecs/isac/fix/source/arith_routines_hist.c",
675 "codecs/isac/fix/source/arith_routines_logist.c",
676 "codecs/isac/fix/source/arith_routins.h",
677 "codecs/isac/fix/source/bandwidth_estimator.c",
678 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000679 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200680 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000681 "codecs/isac/fix/source/decode_plc.c",
682 "codecs/isac/fix/source/encode.c",
683 "codecs/isac/fix/source/entropy_coding.c",
684 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000685 "codecs/isac/fix/source/filterbank_tables.c",
686 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200687 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000688 "codecs/isac/fix/source/filters.c",
689 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200690 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000691 "codecs/isac/fix/source/isacfix.c",
692 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700693 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000694 "codecs/isac/fix/source/lpc_masking_model.c",
695 "codecs/isac/fix/source/lpc_masking_model.h",
696 "codecs/isac/fix/source/lpc_tables.c",
697 "codecs/isac/fix/source/lpc_tables.h",
698 "codecs/isac/fix/source/pitch_estimator.c",
699 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700700 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000701 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700702 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000703 "codecs/isac/fix/source/pitch_gain_tables.c",
704 "codecs/isac/fix/source/pitch_gain_tables.h",
705 "codecs/isac/fix/source/pitch_lag_tables.c",
706 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000707 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
708 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
709 "codecs/isac/fix/source/structs.h",
710 "codecs/isac/fix/source/transform.c",
711 "codecs/isac/fix/source/transform_tables.c",
712 ]
713
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700714 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000715
kjellander676e08f2016-12-07 08:23:27 -0800716 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800717 ":audio_encoder_interface",
718 ":isac_common",
719 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800720 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800721 "../../base:rtc_base_approved",
722 "../../common_audio",
723 "../../system_wrappers",
724 ]
725
kwiberga6ca5182017-01-30 05:28:54 -0800726 public_deps = [
727 ":isac_fix_common",
728 ]
729
mbonadeie5dc3ce2017-01-25 05:34:46 -0800730 if (rtc_build_with_neon) {
731 deps += [ ":isac_neon" ]
732 }
733
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700734 if (current_cpu == "arm" && arm_version >= 7) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000735 sources += [
736 "codecs/isac/fix/source/lattice_armv7.S",
737 "codecs/isac/fix/source/pitch_filter_armv6.S",
738 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700739 sources -= [
740 "codecs/isac/fix/source/lattice_c.c",
741 "codecs/isac/fix/source/pitch_filter_c.c",
742 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000743 }
744
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000745 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000746 sources += [
747 "codecs/isac/fix/source/entropy_coding_mips.c",
748 "codecs/isac/fix/source/filters_mips.c",
749 "codecs/isac/fix/source/lattice_mips.c",
750 "codecs/isac/fix/source/pitch_estimator_mips.c",
751 "codecs/isac/fix/source/transform_mips.c",
752 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700753 sources -= [
754 "codecs/isac/fix/source/lattice_c.c",
755 "codecs/isac/fix/source/pitch_estimator_c.c",
756 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000757 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200758 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000759 }
760 if (mips_dsp_rev > 1) {
761 sources += [
762 "codecs/isac/fix/source/lpc_masking_model_mips.c",
763 "codecs/isac/fix/source/pitch_filter_mips.c",
764 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200765 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000766 }
767 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000768}
769
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700770if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700771 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800772 sources = [
773 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800774 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800775 "codecs/isac/fix/source/filters_neon.c",
776 "codecs/isac/fix/source/lattice_neon.c",
777 "codecs/isac/fix/source/transform_neon.c",
778 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000779
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700780 if (current_cpu != "arm64") {
781 # Enable compilation for the NEON instruction set. This is needed
782 # since //build/config/arm.gni only enables NEON for iOS, not Android.
783 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700784 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700785 cflags = [ "-mfpu=neon" ]
786 }
787
788 # Disable LTO on NEON targets due to compiler bug.
789 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000790 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000791 cflags -= [
792 "-flto",
793 "-ffat-lto-objects",
794 ]
795 }
796
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200797 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800798 ":isac_fix_common",
kjellander676e08f2016-12-07 08:23:27 -0800799 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200800 "../../common_audio",
801 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000802 }
803}
804
805config("pcm16b_config") {
806 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000807 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000808 "codecs/pcm16b/include",
809 ]
810}
811
kjellanderb62dbbe2016-09-23 00:38:52 -0700812rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000813 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200814 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100815 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200816 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100817 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000818 ]
819
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000820 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000821 ":audio_encoder_interface",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000822 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800823 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800824 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800825 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800826 "../../base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000827 ]
kjellander7439f972016-12-05 22:47:46 -0800828 public_deps = [
829 ":pcm16b_c",
830 ]
831 public_configs = [ ":pcm16b_config" ]
832}
833
834rtc_source_set("pcm16b_c") {
835 visibility = [ ":*" ] # Only targets in this file can depend on this.
836 sources = [
837 "codecs/pcm16b/pcm16b.c",
838 "codecs/pcm16b/pcm16b.h",
839 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000840
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700841 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800842 deps = [
843 "../..:webrtc_common",
844 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000845}
846
847config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000848 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000849}
850
kjellanderb62dbbe2016-09-23 00:38:52 -0700851rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000852 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200853 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100854 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000855 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100856 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000857 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000858
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200859 deps = [
860 ":audio_encoder_interface",
minyue41b9c802016-10-06 07:13:54 -0700861 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800862 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800863 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -0700864 "../../base:protobuf_utils",
Henrik Lundind048aa02015-12-03 17:47:21 +0100865 "../../base:rtc_base_approved",
tereliusbc5d9212017-01-13 09:14:33 -0800866 "../../base:rtc_numerics",
michaelt566d8202017-01-12 10:17:38 -0800867 "../../common_audio",
kjellander676e08f2016-12-07 08:23:27 -0800868 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200869 ]
kjellander7439f972016-12-05 22:47:46 -0800870 public_deps = [
871 ":webrtc_opus_c",
872 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000873
michaelta55f0212017-02-02 07:47:19 -0800874 defines = audio_codec_defines
henrik.lundinfd87f4a2016-11-28 11:15:54 -0800875 if (rtc_opus_variable_complexity) {
876 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
877 } else {
878 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
879 }
henrik.lundin875862c2016-11-22 02:07:54 -0800880
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000881 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800882 public_deps += [ rtc_opus_dir ]
883 } else if (build_with_mozilla) {
884 include_dirs = [ getenv("DIST") + "/include/opus" ]
885 }
886}
887
888rtc_source_set("webrtc_opus_c") {
889 visibility = [ ":*" ] # Only targets in this file can depend on this.
890 sources = [
891 "codecs/opus/opus_inst.h",
892 "codecs/opus/opus_interface.c",
893 "codecs/opus/opus_interface.h",
894 ]
895
minyue2e03c662017-02-01 17:31:11 -0800896 defines = audio_coding_defines
897
kjellander7439f972016-12-05 22:47:46 -0800898 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700899 public_deps = [
900 rtc_opus_dir,
901 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000902 } else if (build_with_mozilla) {
903 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000904 }
kjellander7439f972016-12-05 22:47:46 -0800905
906 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800907 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800908 "../../base:rtc_base_approved",
909 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000910}
911
minyue25f6a392016-09-22 22:23:20 -0700912if (rtc_enable_protobuf) {
913 proto_library("ana_debug_dump_proto") {
914 sources = [
915 "audio_network_adaptor/debug_dump.proto",
916 ]
sakal363a2912017-01-13 06:52:12 -0800917 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700918 }
minyuea1d9ad02016-10-02 14:53:37 -0700919 proto_library("ana_config_proto") {
920 sources = [
921 "audio_network_adaptor/config.proto",
922 ]
923 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
924 }
minyue25f6a392016-09-22 22:23:20 -0700925}
926
minyue0d382ef2016-10-07 07:59:28 -0700927rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700928 sources = [
929 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700930 "audio_network_adaptor/audio_network_adaptor_impl.cc",
931 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700932 "audio_network_adaptor/bitrate_controller.cc",
933 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700934 "audio_network_adaptor/channel_controller.cc",
935 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700936 "audio_network_adaptor/controller.cc",
937 "audio_network_adaptor/controller.h",
938 "audio_network_adaptor/controller_manager.cc",
939 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700940 "audio_network_adaptor/debug_dump_writer.cc",
941 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700942 "audio_network_adaptor/dtx_controller.cc",
943 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800944 "audio_network_adaptor/event_log_writer.cc",
945 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700946 "audio_network_adaptor/fec_controller_plr_based.cc",
947 "audio_network_adaptor/fec_controller_plr_based.h",
948 "audio_network_adaptor/fec_controller_rplr_based.cc",
949 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700950 "audio_network_adaptor/frame_length_controller.cc",
951 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700952 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700953 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700954 ]
minyue25f6a392016-09-22 22:23:20 -0700955
minyue41b9c802016-10-06 07:13:54 -0700956 deps = [
957 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -0700958 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -0800959 "../../base:rtc_base_approved",
960 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800961 "../../logging:rtc_event_log_api",
minyue41b9c802016-10-06 07:13:54 -0700962 "../../system_wrappers",
963 ]
964
minyue25f6a392016-09-22 22:23:20 -0700965 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700966 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700967 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700968 ":ana_debug_dump_proto",
969 ]
970 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ]
971 }
minyue4b7c9522017-01-24 04:54:59 -0800972
973 if (!build_with_chromium && is_clang) {
974 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
975 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
976 }
minyue7610f852016-09-07 13:51:51 -0700977}
978
kwiberg65cb70d2017-03-03 06:16:28 -0800979rtc_source_set("neteq_decoder_enum") {
980 sources = [
981 "neteq/neteq_decoder_enum.cc",
982 "neteq/neteq_decoder_enum.h",
983 ]
984 deps = [
985 "../../api/audio_codecs:audio_codecs_api",
986 "../../base:rtc_base_approved",
987 ]
988}
kjellander676e08f2016-12-07 08:23:27 -0800989
kwiberg65cb70d2017-03-03 06:16:28 -0800990rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000991 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000992 "neteq/accelerate.cc",
993 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000994 "neteq/audio_decoder_impl.cc",
995 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000996 "neteq/audio_multi_vector.cc",
997 "neteq/audio_multi_vector.h",
998 "neteq/audio_vector.cc",
999 "neteq/audio_vector.h",
1000 "neteq/background_noise.cc",
1001 "neteq/background_noise.h",
1002 "neteq/buffer_level_filter.cc",
1003 "neteq/buffer_level_filter.h",
1004 "neteq/comfort_noise.cc",
1005 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -07001006 "neteq/cross_correlation.cc",
1007 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001008 "neteq/decision_logic.cc",
1009 "neteq/decision_logic.h",
1010 "neteq/decision_logic_fax.cc",
1011 "neteq/decision_logic_fax.h",
1012 "neteq/decision_logic_normal.cc",
1013 "neteq/decision_logic_normal.h",
1014 "neteq/decoder_database.cc",
1015 "neteq/decoder_database.h",
1016 "neteq/defines.h",
1017 "neteq/delay_manager.cc",
1018 "neteq/delay_manager.h",
1019 "neteq/delay_peak_detector.cc",
1020 "neteq/delay_peak_detector.h",
1021 "neteq/dsp_helper.cc",
1022 "neteq/dsp_helper.h",
1023 "neteq/dtmf_buffer.cc",
1024 "neteq/dtmf_buffer.h",
1025 "neteq/dtmf_tone_generator.cc",
1026 "neteq/dtmf_tone_generator.h",
1027 "neteq/expand.cc",
1028 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001029 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001030 "neteq/merge.cc",
1031 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001032 "neteq/nack_tracker.cc",
1033 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001034 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001035 "neteq/neteq_impl.cc",
1036 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001037 "neteq/normal.cc",
1038 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001039 "neteq/packet.cc",
1040 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001041 "neteq/packet_buffer.cc",
1042 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001043 "neteq/post_decode_vad.cc",
1044 "neteq/post_decode_vad.h",
1045 "neteq/preemptive_expand.cc",
1046 "neteq/preemptive_expand.h",
1047 "neteq/random_vector.cc",
1048 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001049 "neteq/red_payload_splitter.cc",
1050 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001051 "neteq/rtcp.cc",
1052 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001053 "neteq/statistics_calculator.cc",
1054 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001055 "neteq/sync_buffer.cc",
1056 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001057 "neteq/tick_timer.cc",
1058 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001059 "neteq/time_stretch.cc",
1060 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001061 "neteq/timestamp_scaler.cc",
1062 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001063 ]
1064
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001065 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001066 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001067 ":cng",
1068 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001069 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001070 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001071 ":pcm16b",
mbonadei5a1a0922017-04-26 01:53:54 -07001072 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001073 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001074 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001075 "../../base:gtest_prod",
1076 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001077 "../../common_audio",
1078 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001079 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001080
1081 defines = []
1082
kwibergf8c2bac2016-01-18 06:38:32 -08001083 if (rtc_include_ilbc) {
1084 defines += [ "WEBRTC_CODEC_ILBC" ]
1085 deps += [ ":ilbc" ]
1086 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001087 if (rtc_include_opus) {
1088 defines += [ "WEBRTC_CODEC_OPUS" ]
1089 deps += [ ":webrtc_opus" ]
1090 }
kwiberg98ab3a42015-09-30 21:54:21 -07001091 if (!build_with_mozilla) {
1092 if (current_cpu == "arm") {
1093 defines += [ "WEBRTC_CODEC_ISACFX" ]
1094 deps += [ ":isac_fix" ]
1095 } else {
1096 defines += [ "WEBRTC_CODEC_ISAC" ]
1097 deps += [ ":isac" ]
1098 }
1099 defines += [ "WEBRTC_CODEC_G722" ]
1100 deps += [ ":g722" ]
1101 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001102}
kjellanderfb114242016-06-13 00:19:48 -07001103
henrik.lundin58466f62016-10-05 02:27:42 -07001104# Although providing only test support, this target must be outside of the
1105# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1106# that ultimately are built and run as a part of the Chromium ecosystem, which
1107# does not set the rtc_include_tests flag.
1108rtc_source_set("neteq_test_minimal") {
1109 testonly = true
kjellander676e08f2016-12-07 08:23:27 -08001110
1111 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1112 # Has cyclic dependency with :neteq_unittest_tools
1113 check_includes = false
1114
henrik.lundin58466f62016-10-05 02:27:42 -07001115 sources = [
1116 "neteq/tools/encode_neteq_input.cc",
1117 "neteq/tools/encode_neteq_input.h",
1118 "neteq/tools/neteq_test.cc",
1119 "neteq/tools/neteq_test.h",
1120 ]
1121
kjellandere40a7ee2016-10-16 23:56:12 -07001122 if (!build_with_chromium && is_clang) {
1123 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001124 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1125 }
kjellander676e08f2016-12-07 08:23:27 -08001126
1127 deps = [
1128 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -08001129 ":neteq",
1130 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001131 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001132 "../../base:rtc_base_approved",
1133 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001134}
1135
kjellanderfb114242016-06-13 00:19:48 -07001136if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001137 group("audio_coding_tests") {
1138 testonly = true
1139 public_deps = [
1140 ":RTPchange",
1141 ":RTPencode",
1142 ":RTPjitter",
1143 ":RTPtimeshift",
1144 ":acm_receive_test",
1145 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001146 ":audio_codec_speed_tests",
1147 ":audio_decoder_unittests",
1148 ":audio_decoder_unittests",
1149 ":delay_test",
1150 ":g711_test",
1151 ":g722_test",
1152 ":ilbc_test",
1153 ":insert_packet_with_timing",
1154 ":isac_api_test",
1155 ":isac_fix_test",
1156 ":isac_switch_samprate_test",
1157 ":isac_test",
1158 ":neteq_ilbc_quality_test",
1159 ":neteq_isac_quality_test",
1160 ":neteq_opus_quality_test",
1161 ":neteq_pcmu_quality_test",
1162 ":neteq_speed_test",
1163 ":rtp_analyze",
1164 ":rtpcat",
1165 ":webrtc_opus_fec_test",
1166 ]
1167 if (rtc_enable_protobuf) {
1168 public_deps += [ ":neteq_rtpplay" ]
1169 }
1170 }
1171
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001172 rtc_source_set("audio_coding_modules_tests") {
1173 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001174
1175 # Skip restricting visibility on mobile platforms since the tests on those
1176 # gets additional generated targets which would require many lines here to
1177 # cover (which would be confusing to read and hard to maintain).
1178 if (!is_android && !is_ios) {
1179 visibility = [ "//webrtc/modules:modules_tests" ]
1180 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001181 sources = [
1182 "test/APITest.cc",
1183 "test/Channel.cc",
1184 "test/EncodeDecodeTest.cc",
1185 "test/PCMFile.cc",
1186 "test/PacketLossTest.cc",
1187 "test/RTPFile.cc",
1188 "test/TestAllCodecs.cc",
1189 "test/TestRedFec.cc",
1190 "test/TestStereo.cc",
1191 "test/TestVADDTX.cc",
1192 "test/Tester.cc",
1193 "test/TwoWayCommunication.cc",
1194 "test/iSACTest.cc",
1195 "test/opus_test.cc",
1196 "test/target_delay_unittest.cc",
1197 "test/utility.cc",
1198 ]
1199 deps = [
1200 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001201 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001202 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001203 ":pcm16b_c",
mbonadei5a1a0922017-04-26 01:53:54 -07001204 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001205 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001206 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001207 "../../base:rtc_base_approved",
1208 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001209 "../../test:test_support",
1210 ]
1211 defines = audio_coding_defines
1212 if (is_win) {
1213 cflags = [
1214 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1215 "/wd4373", # virtual function override.
1216 ]
1217 }
1218 if (!build_with_chromium && is_clang) {
1219 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1220 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1221 }
1222 }
1223
ehmaldonado021eef32017-01-05 07:09:50 -08001224 rtc_source_set("audio_coding_perf_tests") {
1225 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001226
1227 # Skip restricting visibility on mobile platforms since the tests on those
1228 # gets additional generated targets which would require many lines here to
1229 # cover (which would be confusing to read and hard to maintain).
1230 if (!is_android && !is_ios) {
1231 visibility = [ "//webrtc:webrtc_perf_tests" ]
1232 }
ehmaldonado021eef32017-01-05 07:09:50 -08001233 sources = [
1234 "codecs/opus/opus_complexity_unittest.cc",
1235 "neteq/test/neteq_performance_unittest.cc",
1236 ]
1237 deps = [
1238 ":neteq_test_support",
1239 ":neteq_unittest_tools",
1240 ":webrtc_opus",
1241 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -07001242 "../../base:protobuf_utils",
ehmaldonado021eef32017-01-05 07:09:50 -08001243 "../../base:rtc_base_approved",
1244 "../../system_wrappers:system_wrappers",
1245 "../../test:test_support",
1246 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001247
ehmaldonado021eef32017-01-05 07:09:50 -08001248 if (!build_with_chromium && is_clang) {
1249 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1250 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1251 }
1252 }
1253
ehmaldonado38a21322016-09-02 04:10:34 -07001254 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001255 testonly = true
1256 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001257 "acm2/acm_receive_test.cc",
1258 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001259 ]
1260
kjellanderfb114242016-06-13 00:19:48 -07001261 defines = audio_coding_defines
1262
1263 deps = audio_coding_deps + [
1264 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001265 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001266 "../../api/audio_codecs:audio_codecs_api",
1267 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellanderfb114242016-06-13 00:19:48 -07001268 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001269 "../../base:rtc_base_approved",
1270 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001271 "//testing/gtest",
1272 ]
1273 }
1274
ehmaldonado38a21322016-09-02 04:10:34 -07001275 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001276 testonly = true
1277 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001278 "acm2/acm_send_test.cc",
1279 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001280 ]
1281
kjellanderfb114242016-06-13 00:19:48 -07001282 defines = audio_coding_defines
1283
1284 deps = audio_coding_deps + [
1285 ":audio_coding",
kwiberg087bd342017-02-10 08:15:44 -08001286 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001287 ":audio_encoder_interface",
kjellanderfb114242016-06-13 00:19:48 -07001288 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001289 "../../base:rtc_base_approved",
1290 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001291 "//testing/gtest",
1292 ]
1293 }
1294
ehmaldonado38a21322016-09-02 04:10:34 -07001295 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001296 testonly = true
1297 sources = [
1298 "test/Channel.cc",
1299 "test/PCMFile.cc",
1300 "test/delay_test.cc",
1301 "test/utility.cc",
1302 ]
1303
aleloi333f2062016-07-28 01:21:29 -07001304 deps = [
1305 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001306 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001307 ":audio_format_conversion",
mbonadei5a1a0922017-04-26 01:53:54 -07001308 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001309 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001310 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001311 "../../system_wrappers",
1312 "../../system_wrappers:system_wrappers_default",
1313 "../../test:test_support",
1314 "../rtp_rtcp",
1315 "//testing/gtest",
1316 "//third_party/gflags:gflags",
1317 ]
1318 } # delay_test
1319
ehmaldonado38a21322016-09-02 04:10:34 -07001320 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001321 testonly = true
1322 sources = [
1323 "test/Channel.cc",
1324 "test/PCMFile.cc",
1325 "test/insert_packet_with_timing.cc",
1326 ]
1327
kjellandere40a7ee2016-10-16 23:56:12 -07001328 if (!build_with_chromium && is_clang) {
1329 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001330 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001331 }
1332
1333 deps = [
1334 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001335 ":audio_format_conversion",
mbonadei5a1a0922017-04-26 01:53:54 -07001336 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001337 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001338 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001339 "../../system_wrappers",
1340 "../../system_wrappers:system_wrappers_default",
1341 "../../test:test_support",
1342 "../rtp_rtcp",
1343 "//testing/gtest",
1344 "//third_party/gflags:gflags",
1345 ]
1346 } # insert_packet_with_timing
1347
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001348 audio_decoder_unittests_resources =
1349 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001350
1351 if (is_ios) {
1352 bundle_data("audio_decoder_unittests_bundle_data") {
1353 testonly = true
1354 sources = audio_decoder_unittests_resources
1355 outputs = [
1356 "{{bundle_resources_dir}}/{{source_file_part}}",
1357 ]
1358 }
1359 }
1360
ehmaldonado38a21322016-09-02 04:10:34 -07001361 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001362 testonly = true
1363 sources = [
1364 "neteq/audio_decoder_unittest.cc",
1365 ]
1366
kjellandere40a7ee2016-10-16 23:56:12 -07001367 if (!build_with_chromium && is_clang) {
1368 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001369 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001370 }
1371
1372 deps = []
1373
1374 defines = neteq_defines
1375
1376 deps += audio_coding_deps
1377 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001378 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001379 ":isac",
1380 ":isac_fix",
1381 ":neteq",
1382 ":neteq_unittest_tools",
kwiberg087bd342017-02-10 08:15:44 -08001383 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -07001384 "../../base:protobuf_utils",
kjellander6ceab082016-10-28 05:44:03 -07001385 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001386 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001387 "//testing/gtest",
1388 ]
1389
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001390 data = audio_decoder_unittests_resources
1391
charujainddf3e4a2016-08-01 07:49:42 -07001392 if (is_android) {
1393 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001394 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001395 }
kjellander32c4a202016-08-30 02:53:49 -07001396 if (is_ios) {
1397 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001398 }
1399 } # audio_decoder_unittests
1400
kjellanderfb114242016-06-13 00:19:48 -07001401 if (rtc_enable_protobuf) {
1402 proto_library("neteq_unittest_proto") {
1403 sources = [
1404 "neteq/neteq_unittest.proto",
1405 ]
kjellandere3e902e2017-02-28 08:01:46 -08001406 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001407 }
henrik.lundin03153f12016-06-21 05:38:42 -07001408
mbonadei3d7b0e22017-04-26 00:38:48 -07001409 rtc_static_library("rtc_event_log_source") {
1410 testonly = true
1411
1412 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1413 # Needs call.h to be moved to webrtc/api first.
1414 check_includes = false
1415
1416 sources = [
1417 "neteq/tools/rtc_event_log_source.cc",
1418 "neteq/tools/rtc_event_log_source.h",
1419 ]
1420
1421 if (!build_with_chromium && is_clang) {
1422 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1423 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1424 }
1425
1426 deps = [
1427 "../../base:rtc_base_approved",
1428 "../../logging:rtc_event_log_parser",
1429 ]
1430 public_deps = [
1431 "../../logging:rtc_event_log_proto",
1432 ]
1433 }
1434
ehmaldonado38a21322016-09-02 04:10:34 -07001435 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001436 testonly = true
1437 defines = []
mbonadei5a1a0922017-04-26 01:53:54 -07001438 deps = [
1439 "..:module_api",
1440 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001441 sources = [
1442 "neteq/tools/neteq_rtpplay.cc",
1443 ]
1444
kjellandere40a7ee2016-10-16 23:56:12 -07001445 if (!build_with_chromium && is_clang) {
1446 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001447 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001448 }
1449
1450 if (is_win) {
1451 cflags = [
1452 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1453 "/wd4373", # virtual function override.
1454 ]
1455 }
1456
1457 deps += [
1458 ":neteq",
1459 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001460 "../..:webrtc_common",
1461 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001462 "../../system_wrappers:system_wrappers_default",
1463 "../../test:test_support",
1464 "//third_party/gflags",
1465 ]
1466 }
kjellanderfb114242016-06-13 00:19:48 -07001467 }
1468
ehmaldonado38a21322016-09-02 04:10:34 -07001469 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001470 testonly = true
1471 defines = []
1472 deps = []
1473 sources = [
1474 "codecs/isac/fix/test/isac_speed_test.cc",
1475 "codecs/opus/opus_speed_test.cc",
1476 "codecs/tools/audio_codec_speed_test.cc",
1477 "codecs/tools/audio_codec_speed_test.h",
1478 ]
1479
kjellandere40a7ee2016-10-16 23:56:12 -07001480 if (!build_with_chromium && is_clang) {
1481 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001482 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001483 }
1484
1485 if (is_android) {
1486 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001487 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001488 }
1489
1490 deps += [
1491 ":isac_fix",
1492 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001493 "../..:webrtc_common",
1494 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001495 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001496 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001497 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001498 "//testing/gtest",
1499 ]
1500 }
1501
ehmaldonado38a21322016-09-02 04:10:34 -07001502 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001503 testonly = true
1504 sources = [
1505 "neteq/tools/neteq_external_decoder_test.cc",
1506 "neteq/tools/neteq_external_decoder_test.h",
1507 "neteq/tools/neteq_performance_test.cc",
1508 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001509 ]
1510
kjellandere40a7ee2016-10-16 23:56:12 -07001511 if (!build_with_chromium && is_clang) {
1512 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001513 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001514 }
1515
1516 deps = [
1517 ":neteq",
1518 ":neteq_unittest_tools",
1519 ":pcm16b",
mbonadei5a1a0922017-04-26 01:53:54 -07001520 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001521 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001522 "../../api/audio_codecs:audio_codecs_api",
1523 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001524 "../../base:rtc_base_approved",
1525 "../../system_wrappers",
1526 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001527 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001528 ]
1529 }
1530
ehmaldonado38a21322016-09-02 04:10:34 -07001531 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001532 testonly = true
1533 sources = [
1534 "neteq/tools/neteq_quality_test.cc",
1535 "neteq/tools/neteq_quality_test.h",
1536 ]
1537
kjellandere40a7ee2016-10-16 23:56:12 -07001538 if (!build_with_chromium && is_clang) {
1539 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001540 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001541 }
1542
1543 deps = [
1544 ":neteq",
1545 ":neteq_unittest_tools",
mbonadei5a1a0922017-04-26 01:53:54 -07001546 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001547 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001548 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001549 "../../base:rtc_base_approved",
1550 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001551 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001552 "//third_party/gflags",
1553 ]
1554 }
1555
mbonadei3d7b0e22017-04-26 00:38:48 -07001556 config("neteq_unittest_tools_config") {
1557 include_dirs = [ "tools" ]
1558 }
1559
1560 rtc_source_set("neteq_unittest_tools") {
1561 testonly = true
1562 sources = [
1563 "neteq/tools/audio_checksum.h",
1564 "neteq/tools/audio_loop.cc",
1565 "neteq/tools/audio_loop.h",
1566 "neteq/tools/audio_sink.cc",
1567 "neteq/tools/audio_sink.h",
1568 "neteq/tools/constant_pcm_packet_source.cc",
1569 "neteq/tools/constant_pcm_packet_source.h",
1570 "neteq/tools/fake_decode_from_file.cc",
1571 "neteq/tools/fake_decode_from_file.h",
1572 "neteq/tools/input_audio_file.cc",
1573 "neteq/tools/input_audio_file.h",
1574 "neteq/tools/neteq_input.h",
1575 "neteq/tools/neteq_replacement_input.cc",
1576 "neteq/tools/neteq_replacement_input.h",
1577 "neteq/tools/output_audio_file.h",
1578 "neteq/tools/output_wav_file.h",
1579 "neteq/tools/packet.cc",
1580 "neteq/tools/packet.h",
1581 "neteq/tools/packet_source.cc",
1582 "neteq/tools/packet_source.h",
1583 "neteq/tools/resample_input_audio_file.cc",
1584 "neteq/tools/resample_input_audio_file.h",
1585 "neteq/tools/rtp_file_source.cc",
1586 "neteq/tools/rtp_file_source.h",
1587 "neteq/tools/rtp_generator.cc",
1588 "neteq/tools/rtp_generator.h",
1589 ]
1590
1591 public_configs = [ ":neteq_unittest_tools_config" ]
1592
1593 if (!build_with_chromium && is_clang) {
1594 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1595 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1596 }
1597
1598 deps = [
1599 ":audio_encoder_interface",
1600 ":pcm16b",
mbonadei5a1a0922017-04-26 01:53:54 -07001601 "..:module_api",
mbonadei3d7b0e22017-04-26 00:38:48 -07001602 "../..:webrtc_common",
1603 "../../api/audio_codecs:audio_codecs_api",
1604 "../../base:rtc_base_approved",
1605 "../../common_audio",
1606 "../../test:rtp_test_utils",
1607 "../rtp_rtcp",
1608 ]
1609
1610 public_deps = [
1611 ":neteq_test_minimal",
1612 ]
1613
1614 if (rtc_enable_protobuf) {
1615 sources += [
1616 "neteq/tools/neteq_packet_source_input.cc",
1617 "neteq/tools/neteq_packet_source_input.h",
1618 ]
1619 deps += [ ":rtc_event_log_source" ]
1620 }
1621 }
1622
ehmaldonado38a21322016-09-02 04:10:34 -07001623 rtc_source_set("neteq_test_tools") {
aleloi3022a342016-07-26 06:36:03 -07001624 testonly = true
1625 sources = [
1626 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1627 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1628 "neteq/test/NETEQTEST_RTPpacket.cc",
1629 "neteq/test/NETEQTEST_RTPpacket.h",
1630 ]
1631
1632 deps = [
1633 ":cng",
1634 ":g711",
1635 ":g722",
1636 ":ilbc",
1637 ":isac",
1638 ":pcm16b",
mbonadei5a1a0922017-04-26 01:53:54 -07001639 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001640 "../..:webrtc_common",
1641 "//testing/gtest",
1642 ]
1643
1644 include_dirs = [
1645 "neteq/include",
1646 "neteq/test",
1647 "../../",
1648 ]
1649
1650 if (is_win) {
1651 cflags = [
1652 # Disable warnings to enable Win64 build, issue 1323.
1653 "/wd4267", # size_t to int truncation
1654 ]
1655 }
1656 }
aleloi47bded42016-07-26 06:46:19 -07001657
aleloi82667732016-08-02 01:45:50 -07001658 config("RTPencode_config") {
1659 defines = [
1660 "CODEC_ILBC",
1661 "CODEC_PCM16B",
1662 "CODEC_G711",
1663 "CODEC_G722",
1664 "CODEC_ISAC",
1665 "CODEC_PCM16B_WB",
1666 "CODEC_ISAC_SWB",
1667 "CODEC_PCM16B_32KHZ",
1668 "CODEC_PCM16B_48KHZ",
1669 "CODEC_CNGCODEC8",
1670 "CODEC_CNGCODEC16",
1671 "CODEC_CNGCODEC32",
1672 "CODEC_ATEVENT_DECODE",
1673 "CODEC_RED",
1674 "CODEC_OPUS",
1675 ]
1676 }
1677
ehmaldonado38a21322016-09-02 04:10:34 -07001678 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001679 testonly = true
1680
1681 deps = [
1682 # TODO(hlundin): Make RTPencode use ACM to encode files.
1683 ":cng",
1684 ":g711",
1685 ":g722",
1686 ":ilbc",
1687 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001688 ":neteq",
aleloi82667732016-08-02 01:45:50 -07001689 ":neteq_test_tools",
1690 ":pcm16b",
1691 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001692 "../..:webrtc_common",
1693 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001694 "../../common_audio",
1695 ]
1696
1697 configs += [ ":RTPencode_config" ]
1698
1699 sources = [
1700 "neteq/test/RTPencode.cc",
1701 ]
1702
1703 include_dirs = [
1704 "neteq/include",
1705 "neteq/test",
1706 ]
1707
1708 if (is_win) {
1709 cflags = [
1710 # Disable warnings to enable Win64 build, issue 1323.
1711 "/wd4267", # size_t to int truncation
1712 ]
1713 }
1714 }
1715
ehmaldonado38a21322016-09-02 04:10:34 -07001716 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001717 testonly = true
1718
1719 sources = [
1720 "neteq/test/RTPchange.cc",
1721 ]
1722
1723 deps = [
1724 ":neteq_test_tools",
1725 ]
1726 }
1727
ehmaldonado38a21322016-09-02 04:10:34 -07001728 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001729 testonly = true
1730
1731 sources = [
1732 "neteq/tools/rtpcat.cc",
1733 ]
1734
1735 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001736 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001737 "../../system_wrappers:system_wrappers_default",
1738 "../../test:rtp_test_utils",
1739 "//testing/gtest",
1740 ]
1741 }
1742
ehmaldonado38a21322016-09-02 04:10:34 -07001743 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001744 testonly = true
1745
1746 sources = [
1747 "neteq/test/RTPtimeshift.cc",
1748 ]
1749
1750 deps = [
1751 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001752 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001753 "//testing/gtest",
1754 ]
1755 }
1756
ehmaldonado38a21322016-09-02 04:10:34 -07001757 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001758 testonly = true
1759 deps = [
1760 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001761 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001762 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001763 "//testing/gtest",
1764 ]
1765 sources = [
1766 "neteq/test/RTPjitter.cc",
1767 ]
1768 }
1769
ehmaldonado38a21322016-09-02 04:10:34 -07001770 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001771 testonly = true
1772
1773 sources = [
1774 "neteq/tools/rtp_analyze.cc",
1775 ]
1776
1777 deps = [
1778 ":neteq",
1779 ":neteq_unittest_tools",
1780 ":pcm16b",
1781 "../../system_wrappers:system_wrappers_default",
1782 "//testing/gtest",
1783 "//third_party/gflags:gflags",
1784 ]
1785
kjellandere40a7ee2016-10-16 23:56:12 -07001786 if (!build_with_chromium && is_clang) {
1787 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001788 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001789 }
1790 }
aleloi630c6d52016-08-10 02:11:30 -07001791
ehmaldonado38a21322016-09-02 04:10:34 -07001792 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001793 testonly = true
1794
1795 sources = [
1796 "neteq/test/neteq_opus_quality_test.cc",
1797 ]
1798
1799 deps = [
1800 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001801 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001802 ":neteq_unittest_tools",
aleloi630c6d52016-08-10 02:11:30 -07001803 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001804 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001805 "//testing/gtest",
1806 "//third_party/gflags",
1807 ]
aleloi630c6d52016-08-10 02:11:30 -07001808 }
aleloi116fd612016-08-10 04:16:36 -07001809
ehmaldonado38a21322016-09-02 04:10:34 -07001810 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001811 testonly = true
1812
1813 sources = [
1814 "neteq/test/neteq_speed_test.cc",
1815 ]
1816
1817 deps = [
1818 ":neteq",
1819 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001820 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001821 "../../system_wrappers:system_wrappers_default",
1822 "../../test:test_support",
1823 "//third_party/gflags",
1824 ]
1825 }
aleloi63910122016-08-10 04:41:14 -07001826
ehmaldonado38a21322016-09-02 04:10:34 -07001827 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001828 testonly = true
1829
1830 sources = [
1831 "neteq/test/neteq_ilbc_quality_test.cc",
1832 ]
1833
1834 deps = [
1835 ":ilbc",
1836 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001837 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001838 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001839 "../..:webrtc_common",
1840 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001841 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001842 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001843 "//testing/gtest",
1844 "//third_party/gflags",
1845 ]
1846 }
aleloi6df36dc2016-08-10 05:04:47 -07001847
ehmaldonado38a21322016-09-02 04:10:34 -07001848 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001849 testonly = true
1850
1851 sources = [
1852 "neteq/test/neteq_isac_quality_test.cc",
1853 ]
1854
1855 deps = [
1856 ":isac_fix",
1857 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001858 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001859 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001860 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001861 "//testing/gtest",
1862 "//third_party/gflags",
1863 ]
1864 }
aleloic4ac7002016-08-10 05:06:27 -07001865
ehmaldonado38a21322016-09-02 04:10:34 -07001866 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001867 testonly = true
1868
1869 sources = [
1870 "neteq/test/neteq_pcmu_quality_test.cc",
1871 ]
1872
1873 deps = [
1874 ":g711",
1875 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001876 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001877 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001878 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001879 "//testing/gtest",
1880 "//third_party/gflags",
1881 ]
1882 }
aleloib7186d02016-08-16 01:47:16 -07001883
ehmaldonado38a21322016-09-02 04:10:34 -07001884 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001885 testonly = true
1886
1887 sources = [
1888 "codecs/isac/fix/test/kenny.cc",
1889 ]
1890
1891 deps = [
1892 ":isac_fix",
1893 "../../test:test_support",
1894 ]
1895
1896 if (is_win) {
1897 cflags = [
1898 # Disable warnings to enable Win64 build, issue 1323.
1899 "/wd4267", # size_t to int truncation
1900 ]
1901 }
1902 }
aleloi16f55a12016-08-23 08:08:23 -07001903
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001904 config("isac_test_warnings_config") {
1905 if (is_win && is_clang) {
1906 cflags = [
1907 # Disable warnings failing when compiling with Clang on Windows.
1908 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1909 "-Wno-format",
1910 ]
1911 }
1912 }
1913
kjellander7439f972016-12-05 22:47:46 -08001914 rtc_source_set("isac_test_util") {
1915 testonly = true
1916 sources = [
1917 "codecs/isac/main/util/utility.c",
1918 ]
1919 }
1920
ehmaldonado38a21322016-09-02 04:10:34 -07001921 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001922 testonly = true
1923
1924 sources = [
1925 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001926 ]
1927
1928 include_dirs = [
1929 "codecs/isac/main/include",
1930 "codecs/isac/main/test",
1931 "codecs/isac/main/util",
1932 ]
1933
1934 deps = [
1935 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001936 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001937 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001938 ]
1939
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001940 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001941 }
1942
ehmaldonado38a21322016-09-02 04:10:34 -07001943 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001944 testonly = true
1945
1946 sources = [
1947 "codecs/g711/test/testG711.cc",
1948 ]
1949
aleloi16f55a12016-08-23 08:08:23 -07001950 deps = [
1951 ":g711",
1952 ]
1953 }
aleloi9a117842016-08-23 08:36:10 -07001954
ehmaldonado38a21322016-09-02 04:10:34 -07001955 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001956 testonly = true
1957
1958 sources = [
1959 "codecs/g722/test/testG722.cc",
1960 ]
1961
aleloi9a117842016-08-23 08:36:10 -07001962 deps = [
1963 ":g722",
1964 "../..:webrtc_common",
1965 ]
1966 }
ivoc2c670db2016-08-24 06:11:18 -07001967
ehmaldonado38a21322016-09-02 04:10:34 -07001968 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001969 testonly = true
1970
1971 sources = [
1972 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001973 ]
1974
aleloicfee2152016-08-29 04:09:19 -07001975 deps = [
1976 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001977 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001978 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001979 ]
1980
1981 include_dirs = [
1982 "codecs/isac/main/include",
1983 "codecs/isac/main/test",
1984 "codecs/isac/main/util",
1985 ]
1986 }
1987
ehmaldonado38a21322016-09-02 04:10:34 -07001988 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001989 testonly = true
1990
1991 sources = [
1992 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07001993 ]
1994
aleloicfee2152016-08-29 04:09:19 -07001995 deps = [
1996 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001997 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001998 ]
1999
2000 include_dirs = [
2001 "codecs/isac/main/include",
2002 "codecs/isac/main/test",
2003 "codecs/isac/main/util",
2004 "../../common_audio/signal_processing/include",
2005 ]
2006 }
2007
ehmaldonado38a21322016-09-02 04:10:34 -07002008 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002009 testonly = true
2010
2011 sources = [
2012 "codecs/ilbc/test/iLBC_test.c",
2013 ]
2014
aleloicfee2152016-08-29 04:09:19 -07002015 deps = [
2016 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002017 ]
2018 }
2019
ehmaldonado38a21322016-09-02 04:10:34 -07002020 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002021 testonly = true
2022
2023 sources = [
2024 "codecs/opus/opus_fec_test.cc",
2025 ]
2026
2027 deps = [
2028 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07002029 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07002030 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08002031 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002032 "//testing/gtest",
2033 ]
2034
kjellandere40a7ee2016-10-16 23:56:12 -07002035 if (!build_with_chromium && is_clang) {
2036 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002037 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002038 }
2039 }
ehmaldonado36268652017-01-19 08:27:11 -08002040
2041 rtc_source_set("audio_coding_unittests") {
2042 testonly = true
2043
kjellandere0629c02017-04-25 04:04:50 -07002044 # Skip restricting visibility on mobile platforms since the tests on those
2045 # gets additional generated targets which would require many lines here to
2046 # cover (which would be confusing to read and hard to maintain).
2047 if (!is_android && !is_ios) {
2048 visibility = [ "//webrtc/modules:modules_unittests" ]
2049 }
ehmaldonado36268652017-01-19 08:27:11 -08002050 sources = [
2051 "acm2/acm_receiver_unittest.cc",
2052 "acm2/audio_coding_module_unittest.cc",
2053 "acm2/call_statistics_unittest.cc",
2054 "acm2/codec_manager_unittest.cc",
2055 "acm2/rent_a_codec_unittest.cc",
2056 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2057 "audio_network_adaptor/bitrate_controller_unittest.cc",
2058 "audio_network_adaptor/channel_controller_unittest.cc",
2059 "audio_network_adaptor/controller_manager_unittest.cc",
2060 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002061 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002062 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2063 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002064 "audio_network_adaptor/frame_length_controller_unittest.cc",
2065 "audio_network_adaptor/mock/mock_controller.h",
2066 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002067 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002068 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002069 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002070 "codecs/cng/audio_encoder_cng_unittest.cc",
2071 "codecs/cng/cng_unittest.cc",
2072 "codecs/ilbc/ilbc_unittest.cc",
2073 "codecs/isac/fix/source/filterbanks_unittest.cc",
2074 "codecs/isac/fix/source/filters_unittest.cc",
2075 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2076 "codecs/isac/fix/source/transform_unittest.cc",
2077 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2078 "codecs/isac/main/source/isac_unittest.cc",
2079 "codecs/isac/unittest.cc",
2080 "codecs/legacy_encoded_audio_frame_unittest.cc",
2081 "codecs/mock/mock_audio_encoder.cc",
2082 "codecs/opus/audio_encoder_opus_unittest.cc",
2083 "codecs/opus/opus_unittest.cc",
2084 "codecs/red/audio_encoder_copy_red_unittest.cc",
2085 "neteq/audio_multi_vector_unittest.cc",
2086 "neteq/audio_vector_unittest.cc",
2087 "neteq/background_noise_unittest.cc",
2088 "neteq/buffer_level_filter_unittest.cc",
2089 "neteq/comfort_noise_unittest.cc",
2090 "neteq/decision_logic_unittest.cc",
2091 "neteq/decoder_database_unittest.cc",
2092 "neteq/delay_manager_unittest.cc",
2093 "neteq/delay_peak_detector_unittest.cc",
2094 "neteq/dsp_helper_unittest.cc",
2095 "neteq/dtmf_buffer_unittest.cc",
2096 "neteq/dtmf_tone_generator_unittest.cc",
2097 "neteq/expand_unittest.cc",
2098 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002099 "neteq/mock/mock_buffer_level_filter.h",
2100 "neteq/mock/mock_decoder_database.h",
2101 "neteq/mock/mock_delay_manager.h",
2102 "neteq/mock/mock_delay_peak_detector.h",
2103 "neteq/mock/mock_dtmf_buffer.h",
2104 "neteq/mock/mock_dtmf_tone_generator.h",
2105 "neteq/mock/mock_expand.h",
2106 "neteq/mock/mock_external_decoder_pcm16b.h",
2107 "neteq/mock/mock_packet_buffer.h",
2108 "neteq/mock/mock_red_payload_splitter.h",
2109 "neteq/nack_tracker_unittest.cc",
2110 "neteq/neteq_external_decoder_unittest.cc",
2111 "neteq/neteq_impl_unittest.cc",
2112 "neteq/neteq_network_stats_unittest.cc",
2113 "neteq/neteq_stereo_unittest.cc",
2114 "neteq/neteq_unittest.cc",
2115 "neteq/normal_unittest.cc",
2116 "neteq/packet_buffer_unittest.cc",
2117 "neteq/post_decode_vad_unittest.cc",
2118 "neteq/random_vector_unittest.cc",
2119 "neteq/red_payload_splitter_unittest.cc",
2120 "neteq/sync_buffer_unittest.cc",
2121 "neteq/tick_timer_unittest.cc",
2122 "neteq/time_stretch_unittest.cc",
2123 "neteq/timestamp_scaler_unittest.cc",
2124 "neteq/tools/input_audio_file_unittest.cc",
2125 "neteq/tools/packet_unittest.cc",
2126 ]
2127
2128 deps = [
2129 ":acm_receive_test",
2130 ":acm_send_test",
2131 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002132 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002133 ":audio_encoder_interface",
2134 ":audio_format_conversion",
2135 ":audio_network_adaptor",
ossua1a040a2017-04-06 10:03:21 -07002136 ":builtin_audio_encoder_factory",
ehmaldonado36268652017-01-19 08:27:11 -08002137 ":cng",
2138 ":g711",
2139 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002140 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002141 ":isac_c",
2142 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002143 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002144 ":neteq",
2145 ":neteq_test_support",
2146 ":neteq_unittest_tools",
2147 ":pcm16b",
2148 ":red",
2149 ":rent_a_codec",
2150 ":webrtc_opus",
mbonadei5a1a0922017-04-26 01:53:54 -07002151 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002152 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002153 "../../api/audio_codecs:audio_codecs_api",
2154 "../../api/audio_codecs:builtin_audio_decoder_factory",
mbonadei7c2c8432017-04-07 00:59:12 -07002155 "../../base:protobuf_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002156 "../../base:rtc_base",
2157 "../../base:rtc_base_approved",
2158 "../../base:rtc_base_tests_utils",
2159 "../../common_audio",
2160 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002161 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002162 "../../test:field_trial",
2163 "../../test:rtp_test_utils",
2164 "../../test:test_common",
2165 "../../test:test_support",
2166 "//testing/gmock",
2167 "//testing/gtest",
2168 "//third_party/gflags",
2169 ]
2170
2171 defines = audio_coding_defines
2172
2173 if (rtc_enable_protobuf) {
2174 defines += [
2175 "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP",
2176 "WEBRTC_NETEQ_UNITTEST_BITEXACT",
2177 ]
2178 deps += [
2179 ":ana_config_proto",
2180 ":neteq_unittest_proto",
2181 ]
2182 }
2183
2184 if (!build_with_chromium && is_clang) {
2185 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2186 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2187 }
2188 }
kjellanderfb114242016-06-13 00:19:48 -07002189}
kwiberg087bd342017-02-10 08:15:44 -08002190
2191# For backwards compatibility only! Use
2192# webrtc/api/audio_codecs:audio_codecs_api instead.
2193# TODO(kwiberg): Remove this.
2194rtc_source_set("audio_decoder_interface") {
2195 sources = [
2196 "codecs/audio_decoder.h",
2197 ]
2198 deps = [
2199 "../../api/audio_codecs:audio_codecs_api",
2200 ]
2201}
2202
2203# For backwards compatibility only! Use
2204# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2205# TODO(kwiberg): Remove this.
2206rtc_source_set("builtin_audio_decoder_factory") {
2207 sources = [
2208 "codecs/builtin_audio_decoder_factory.h",
2209 ]
2210 deps = [
2211 "../../api/audio_codecs:builtin_audio_decoder_factory",
2212 ]
2213}