blob: 9bdd1fc315aa60a24f39588dd69b62d8c1c58d9d [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 = [
130 "../..:webrtc_common",
131 ]
132}
133
kjellanderb62dbbe2016-09-23 00:38:52 -0700134rtc_static_library("audio_coding") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000135 sources = [
kjellander3e6db232015-11-26 04:44:54 -0800136 "acm2/acm_receiver.cc",
137 "acm2/acm_receiver.h",
138 "acm2/acm_resampler.cc",
139 "acm2/acm_resampler.h",
140 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800141 "acm2/call_statistics.cc",
142 "acm2/call_statistics.h",
143 "acm2/codec_manager.cc",
144 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800145 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000146 ]
147
148 defines = []
149
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700150 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000151
kjellanderfb114242016-06-13 00:19:48 -0700152 if (rtc_include_opus) {
153 public_deps = [
154 ":webrtc_opus",
155 ]
156 }
157
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000158 if (is_win) {
159 cflags = [
160 # TODO(kjellander): Bug 261: fix this warning.
161 "/wd4373", # virtual function override.
162 ]
163 }
164
kjellanderfb114242016-06-13 00:19:48 -0700165 deps = audio_coding_deps + [
kwiberg087bd342017-02-10 08:15:44 -0800166 "../../api/audio_codecs:audio_codecs_api",
167 "../../api/audio_codecs:builtin_audio_decoder_factory",
kwiberg65cb70d2017-03-03 06:16:28 -0800168 ":audio_coding_module_typedefs",
169 ":audio_encoder_interface",
kwiberg0edb05b2016-01-19 05:54:28 -0800170 ":neteq",
171 ":rent_a_codec",
kjellander676e08f2016-12-07 08:23:27 -0800172 "../../base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -0700173 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800174 ]
kjellanderfb114242016-06-13 00:19:48 -0700175 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000176}
177
kwiberg087bd342017-02-10 08:15:44 -0800178rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000179 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700180 "codecs/legacy_encoded_audio_frame.cc",
181 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000182 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200183 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800184 "../../api/audio_codecs:audio_codecs_api",
kjellander4e7f6c12016-04-25 21:59:50 -0700185 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200186 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000187}
188
kjellanderb62dbbe2016-09-23 00:38:52 -0700189rtc_static_library("audio_encoder_interface") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000190 sources = [
191 "codecs/audio_encoder.cc",
192 "codecs/audio_encoder.h",
193 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200194 deps = [
195 "../..:webrtc_common",
kjellander4e7f6c12016-04-25 21:59:50 -0700196 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200197 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000198}
199
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000200config("cng_config") {
201 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000202 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000203 "codecs/cng/include",
204 ]
205}
206
kjellanderb62dbbe2016-09-23 00:38:52 -0700207rtc_static_library("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000208 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000209 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100210 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700211 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100212 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000213 ]
214
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700215 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000216
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000217 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000218 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800219 "../..:webrtc_common",
220 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100221 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000222 ]
223}
224
225config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200226 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000227}
228
kjellanderb62dbbe2016-09-23 00:38:52 -0700229rtc_static_library("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000230 sources = [
231 "codecs/red/audio_encoder_copy_red.cc",
232 "codecs/red/audio_encoder_copy_red.h",
233 ]
234
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700235 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000236
237 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000238 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800239 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100240 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000241 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000242}
243
244config("g711_config") {
245 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000246 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000247 "codecs/g711/include",
248 ]
249}
250
kjellanderb62dbbe2016-09-23 00:38:52 -0700251rtc_static_library("g711") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000252 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700253 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100254 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000255 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100256 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000257 ]
258
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700259 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000260
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200261 deps = [
262 ":audio_encoder_interface",
kwiberg087bd342017-02-10 08:15:44 -0800263 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800264 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800265 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800266 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200267 ]
kjellander7439f972016-12-05 22:47:46 -0800268 public_deps = [
269 ":g711_c",
270 ]
271}
272
273rtc_source_set("g711_c") {
274 visibility = [ ":*" ] # Only targets in this file can depend on this.
275 sources = [
276 "codecs/g711/g711.c",
277 "codecs/g711/g711.h",
278 "codecs/g711/g711_interface.c",
279 "codecs/g711/g711_interface.h",
280 ]
kjellander676e08f2016-12-07 08:23:27 -0800281 deps = [
282 "../..:webrtc_common",
283 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000284}
285
286config("g722_config") {
287 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000288 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000289 "codecs/g722/include",
290 ]
291}
292
kjellanderb62dbbe2016-09-23 00:38:52 -0700293rtc_static_library("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000294 sources = [
kwibergada4c132015-09-17 03:12:35 -0700295 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100296 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000297 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100298 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000299 ]
300
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700301 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000302
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200303 deps = [
304 ":audio_encoder_interface",
kwiberg087bd342017-02-10 08:15:44 -0800305 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800306 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800307 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800308 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200309 ]
kjellander7439f972016-12-05 22:47:46 -0800310 public_deps = [
311 ":g722_c",
312 ]
313}
314
315rtc_source_set("g722_c") {
316 visibility = [ ":*" ] # Only targets in this file can depend on this.
317 sources = [
318 "codecs/g722/g722_decode.c",
319 "codecs/g722/g722_enc_dec.h",
320 "codecs/g722/g722_encode.c",
321 "codecs/g722/g722_interface.c",
322 "codecs/g722/g722_interface.h",
323 ]
kjellander676e08f2016-12-07 08:23:27 -0800324 deps = [
325 "../..:webrtc_common",
326 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000327}
328
329config("ilbc_config") {
330 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000331 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100332 "codecs/ilbc/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000333 ]
334}
335
kjellanderb62dbbe2016-09-23 00:38:52 -0700336rtc_static_library("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000337 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700338 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100339 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200340 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100341 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800342 ]
343
344 public_configs = [ ":ilbc_config" ]
345
346 deps = [
kjellander7439f972016-12-05 22:47:46 -0800347 ":audio_encoder_interface",
kwiberg087bd342017-02-10 08:15:44 -0800348 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800349 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800350 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800351 "../../base:rtc_base_approved",
352 "../../common_audio",
353 ]
354 public_deps = [
355 ":ilbc_c",
356 ]
357}
358
359rtc_source_set("ilbc_c") {
360 visibility = [ ":*" ] # Only targets in this file can depend on this.
361 sources = [
362 "codecs/ilbc/abs_quant.c",
363 "codecs/ilbc/abs_quant.h",
364 "codecs/ilbc/abs_quant_loop.c",
365 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000366 "codecs/ilbc/augmented_cb_corr.c",
367 "codecs/ilbc/augmented_cb_corr.h",
368 "codecs/ilbc/bw_expand.c",
369 "codecs/ilbc/bw_expand.h",
370 "codecs/ilbc/cb_construct.c",
371 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200372 "codecs/ilbc/cb_mem_energy.c",
373 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000374 "codecs/ilbc/cb_mem_energy_augmentation.c",
375 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000376 "codecs/ilbc/cb_mem_energy_calc.c",
377 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000378 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200379 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000380 "codecs/ilbc/cb_search_core.c",
381 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000382 "codecs/ilbc/cb_update_best_index.c",
383 "codecs/ilbc/cb_update_best_index.h",
384 "codecs/ilbc/chebyshev.c",
385 "codecs/ilbc/chebyshev.h",
386 "codecs/ilbc/comp_corr.c",
387 "codecs/ilbc/comp_corr.h",
388 "codecs/ilbc/constants.c",
389 "codecs/ilbc/constants.h",
390 "codecs/ilbc/create_augmented_vec.c",
391 "codecs/ilbc/create_augmented_vec.h",
392 "codecs/ilbc/decode.c",
393 "codecs/ilbc/decode.h",
394 "codecs/ilbc/decode_residual.c",
395 "codecs/ilbc/decode_residual.h",
396 "codecs/ilbc/decoder_interpolate_lsf.c",
397 "codecs/ilbc/decoder_interpolate_lsf.h",
398 "codecs/ilbc/defines.h",
399 "codecs/ilbc/do_plc.c",
400 "codecs/ilbc/do_plc.h",
401 "codecs/ilbc/encode.c",
402 "codecs/ilbc/encode.h",
403 "codecs/ilbc/energy_inverse.c",
404 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200405 "codecs/ilbc/enh_upsample.c",
406 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000407 "codecs/ilbc/enhancer.c",
408 "codecs/ilbc/enhancer.h",
409 "codecs/ilbc/enhancer_interface.c",
410 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000411 "codecs/ilbc/filtered_cb_vecs.c",
412 "codecs/ilbc/filtered_cb_vecs.h",
413 "codecs/ilbc/frame_classify.c",
414 "codecs/ilbc/frame_classify.h",
415 "codecs/ilbc/gain_dequant.c",
416 "codecs/ilbc/gain_dequant.h",
417 "codecs/ilbc/gain_quant.c",
418 "codecs/ilbc/gain_quant.h",
419 "codecs/ilbc/get_cd_vec.c",
420 "codecs/ilbc/get_cd_vec.h",
421 "codecs/ilbc/get_lsp_poly.c",
422 "codecs/ilbc/get_lsp_poly.h",
423 "codecs/ilbc/get_sync_seq.c",
424 "codecs/ilbc/get_sync_seq.h",
425 "codecs/ilbc/hp_input.c",
426 "codecs/ilbc/hp_input.h",
427 "codecs/ilbc/hp_output.c",
428 "codecs/ilbc/hp_output.h",
429 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100430 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000431 "codecs/ilbc/index_conv_dec.c",
432 "codecs/ilbc/index_conv_dec.h",
433 "codecs/ilbc/index_conv_enc.c",
434 "codecs/ilbc/index_conv_enc.h",
435 "codecs/ilbc/init_decode.c",
436 "codecs/ilbc/init_decode.h",
437 "codecs/ilbc/init_encode.c",
438 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000439 "codecs/ilbc/interpolate.c",
440 "codecs/ilbc/interpolate.h",
441 "codecs/ilbc/interpolate_samples.c",
442 "codecs/ilbc/interpolate_samples.h",
443 "codecs/ilbc/lpc_encode.c",
444 "codecs/ilbc/lpc_encode.h",
445 "codecs/ilbc/lsf_check.c",
446 "codecs/ilbc/lsf_check.h",
447 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
448 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
449 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
450 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
451 "codecs/ilbc/lsf_to_lsp.c",
452 "codecs/ilbc/lsf_to_lsp.h",
453 "codecs/ilbc/lsf_to_poly.c",
454 "codecs/ilbc/lsf_to_poly.h",
455 "codecs/ilbc/lsp_to_lsf.c",
456 "codecs/ilbc/lsp_to_lsf.h",
457 "codecs/ilbc/my_corr.c",
458 "codecs/ilbc/my_corr.h",
459 "codecs/ilbc/nearest_neighbor.c",
460 "codecs/ilbc/nearest_neighbor.h",
461 "codecs/ilbc/pack_bits.c",
462 "codecs/ilbc/pack_bits.h",
463 "codecs/ilbc/poly_to_lsf.c",
464 "codecs/ilbc/poly_to_lsf.h",
465 "codecs/ilbc/poly_to_lsp.c",
466 "codecs/ilbc/poly_to_lsp.h",
467 "codecs/ilbc/refiner.c",
468 "codecs/ilbc/refiner.h",
469 "codecs/ilbc/simple_interpolate_lsf.c",
470 "codecs/ilbc/simple_interpolate_lsf.h",
471 "codecs/ilbc/simple_lpc_analysis.c",
472 "codecs/ilbc/simple_lpc_analysis.h",
473 "codecs/ilbc/simple_lsf_dequant.c",
474 "codecs/ilbc/simple_lsf_dequant.h",
475 "codecs/ilbc/simple_lsf_quant.c",
476 "codecs/ilbc/simple_lsf_quant.h",
477 "codecs/ilbc/smooth.c",
478 "codecs/ilbc/smooth.h",
479 "codecs/ilbc/smooth_out_data.c",
480 "codecs/ilbc/smooth_out_data.h",
481 "codecs/ilbc/sort_sq.c",
482 "codecs/ilbc/sort_sq.h",
483 "codecs/ilbc/split_vq.c",
484 "codecs/ilbc/split_vq.h",
485 "codecs/ilbc/state_construct.c",
486 "codecs/ilbc/state_construct.h",
487 "codecs/ilbc/state_search.c",
488 "codecs/ilbc/state_search.h",
489 "codecs/ilbc/swap_bytes.c",
490 "codecs/ilbc/swap_bytes.h",
491 "codecs/ilbc/unpack_bits.c",
492 "codecs/ilbc/unpack_bits.h",
493 "codecs/ilbc/vq3.c",
494 "codecs/ilbc/vq3.h",
495 "codecs/ilbc/vq4.c",
496 "codecs/ilbc/vq4.h",
497 "codecs/ilbc/window32_w32.c",
498 "codecs/ilbc/window32_w32.h",
499 "codecs/ilbc/xcorr_coef.c",
500 "codecs/ilbc/xcorr_coef.h",
501 ]
502
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700503 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000504
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000505 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800506 ":audio_encoder_interface",
507 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800508 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800509 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100510 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000511 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000512}
513
kjellanderb62dbbe2016-09-23 00:38:52 -0700514rtc_static_library("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700515 sources = [
516 "codecs/isac/audio_encoder_isac_t.h",
517 "codecs/isac/audio_encoder_isac_t_impl.h",
518 "codecs/isac/locked_bandwidth_info.cc",
519 "codecs/isac/locked_bandwidth_info.h",
520 ]
kjellander676e08f2016-12-07 08:23:27 -0800521 deps = [
522 ":audio_encoder_interface",
kwiberga6ca5182017-01-30 05:28:54 -0800523 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700524 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800525 "../../base:rtc_base_approved",
526 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700527}
528
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000529config("isac_config") {
530 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000531 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100532 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000533 ]
534}
535
kjellanderb62dbbe2016-09-23 00:38:52 -0700536rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000537 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800538 "codecs/isac/main/include/audio_decoder_isac.h",
539 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800540 "codecs/isac/main/source/audio_decoder_isac.cc",
541 "codecs/isac/main/source/audio_encoder_isac.cc",
542 ]
543
544 deps = [
kjellander7439f972016-12-05 22:47:46 -0800545 ":audio_encoder_interface",
546 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800547 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800548 ]
549 public_deps = [
550 ":isac_c",
551 ]
552}
553
554rtc_static_library("isac_c") {
555 visibility = [ ":*" ] # Only targets in this file can depend on this.
556 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100557 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000558 "codecs/isac/main/source/arith_routines.c",
559 "codecs/isac/main/source/arith_routines.h",
560 "codecs/isac/main/source/arith_routines_hist.c",
561 "codecs/isac/main/source/arith_routines_logist.c",
562 "codecs/isac/main/source/bandwidth_estimator.c",
563 "codecs/isac/main/source/bandwidth_estimator.h",
564 "codecs/isac/main/source/codec.h",
565 "codecs/isac/main/source/crc.c",
566 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000567 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200568 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000569 "codecs/isac/main/source/encode.c",
570 "codecs/isac/main/source/encode_lpc_swb.c",
571 "codecs/isac/main/source/encode_lpc_swb.h",
572 "codecs/isac/main/source/entropy_coding.c",
573 "codecs/isac/main/source/entropy_coding.h",
574 "codecs/isac/main/source/fft.c",
575 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200576 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000577 "codecs/isac/main/source/filterbank_tables.c",
578 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200579 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000580 "codecs/isac/main/source/intialize.c",
581 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200582 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000583 "codecs/isac/main/source/lattice.c",
584 "codecs/isac/main/source/lpc_analysis.c",
585 "codecs/isac/main/source/lpc_analysis.h",
586 "codecs/isac/main/source/lpc_gain_swb_tables.c",
587 "codecs/isac/main/source/lpc_gain_swb_tables.h",
588 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
589 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
590 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
591 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
592 "codecs/isac/main/source/lpc_tables.c",
593 "codecs/isac/main/source/lpc_tables.h",
594 "codecs/isac/main/source/os_specific_inline.h",
595 "codecs/isac/main/source/pitch_estimator.c",
596 "codecs/isac/main/source/pitch_estimator.h",
597 "codecs/isac/main/source/pitch_filter.c",
598 "codecs/isac/main/source/pitch_gain_tables.c",
599 "codecs/isac/main/source/pitch_gain_tables.h",
600 "codecs/isac/main/source/pitch_lag_tables.c",
601 "codecs/isac/main/source/pitch_lag_tables.h",
602 "codecs/isac/main/source/settings.h",
603 "codecs/isac/main/source/spectrum_ar_model_tables.c",
604 "codecs/isac/main/source/spectrum_ar_model_tables.h",
605 "codecs/isac/main/source/structs.h",
606 "codecs/isac/main/source/transform.c",
607 ]
608
609 if (is_linux) {
610 libs = [ "m" ]
611 }
612
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700613 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000614
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000615 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800616 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700617 "../..:webrtc_common",
618 "../../base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000619 "../../common_audio",
620 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000621}
622
623config("isac_fix_config") {
624 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000625 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100626 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000627 ]
628}
629
kjellanderb62dbbe2016-09-23 00:38:52 -0700630rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000631 sources = [
kjellander7439f972016-12-05 22:47:46 -0800632 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
633 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
634 ]
635
636 public_configs = [ ":isac_fix_config" ]
637
638 deps = [
kjellander7439f972016-12-05 22:47:46 -0800639 ":audio_encoder_interface",
640 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800641 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800642 "../../common_audio",
643 "../../system_wrappers",
644 ]
645 public_deps = [
646 ":isac_fix_c",
647 ]
648
649 if (rtc_build_with_neon) {
650 deps += [ ":isac_neon" ]
651 }
652}
653
kwiberga6ca5182017-01-30 05:28:54 -0800654rtc_source_set("isac_fix_common") {
655 visibility = [ ":*" ] # Only targets in this file can depend on this.
656 sources = [
657 "codecs/isac/fix/source/codec.h",
658 "codecs/isac/fix/source/fft.c",
659 "codecs/isac/fix/source/fft.h",
660 "codecs/isac/fix/source/settings.h",
661 ]
662 public_configs = [ ":isac_fix_config" ]
663}
kjellander676e08f2016-12-07 08:23:27 -0800664
kwiberga6ca5182017-01-30 05:28:54 -0800665rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800666 visibility = [ ":*" ] # Only targets in this file can depend on this.
667 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100668 "codecs/isac/fix/include/audio_decoder_isacfix.h",
669 "codecs/isac/fix/include/audio_encoder_isacfix.h",
670 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000671 "codecs/isac/fix/source/arith_routines.c",
672 "codecs/isac/fix/source/arith_routines_hist.c",
673 "codecs/isac/fix/source/arith_routines_logist.c",
674 "codecs/isac/fix/source/arith_routins.h",
675 "codecs/isac/fix/source/bandwidth_estimator.c",
676 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000677 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200678 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000679 "codecs/isac/fix/source/decode_plc.c",
680 "codecs/isac/fix/source/encode.c",
681 "codecs/isac/fix/source/entropy_coding.c",
682 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000683 "codecs/isac/fix/source/filterbank_tables.c",
684 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200685 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000686 "codecs/isac/fix/source/filters.c",
687 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200688 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000689 "codecs/isac/fix/source/isacfix.c",
690 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700691 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000692 "codecs/isac/fix/source/lpc_masking_model.c",
693 "codecs/isac/fix/source/lpc_masking_model.h",
694 "codecs/isac/fix/source/lpc_tables.c",
695 "codecs/isac/fix/source/lpc_tables.h",
696 "codecs/isac/fix/source/pitch_estimator.c",
697 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700698 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000699 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700700 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000701 "codecs/isac/fix/source/pitch_gain_tables.c",
702 "codecs/isac/fix/source/pitch_gain_tables.h",
703 "codecs/isac/fix/source/pitch_lag_tables.c",
704 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000705 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
706 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
707 "codecs/isac/fix/source/structs.h",
708 "codecs/isac/fix/source/transform.c",
709 "codecs/isac/fix/source/transform_tables.c",
710 ]
711
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700712 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000713
kjellander676e08f2016-12-07 08:23:27 -0800714 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800715 ":audio_encoder_interface",
716 ":isac_common",
717 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800718 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800719 "../../base:rtc_base_approved",
720 "../../common_audio",
721 "../../system_wrappers",
722 ]
723
kwiberga6ca5182017-01-30 05:28:54 -0800724 public_deps = [
725 ":isac_fix_common",
726 ]
727
mbonadeie5dc3ce2017-01-25 05:34:46 -0800728 if (rtc_build_with_neon) {
729 deps += [ ":isac_neon" ]
730 }
731
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700732 if (current_cpu == "arm" && arm_version >= 7) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000733 sources += [
734 "codecs/isac/fix/source/lattice_armv7.S",
735 "codecs/isac/fix/source/pitch_filter_armv6.S",
736 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700737 sources -= [
738 "codecs/isac/fix/source/lattice_c.c",
739 "codecs/isac/fix/source/pitch_filter_c.c",
740 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000741 }
742
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000743 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000744 sources += [
745 "codecs/isac/fix/source/entropy_coding_mips.c",
746 "codecs/isac/fix/source/filters_mips.c",
747 "codecs/isac/fix/source/lattice_mips.c",
748 "codecs/isac/fix/source/pitch_estimator_mips.c",
749 "codecs/isac/fix/source/transform_mips.c",
750 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700751 sources -= [
752 "codecs/isac/fix/source/lattice_c.c",
753 "codecs/isac/fix/source/pitch_estimator_c.c",
754 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000755 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200756 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000757 }
758 if (mips_dsp_rev > 1) {
759 sources += [
760 "codecs/isac/fix/source/lpc_masking_model_mips.c",
761 "codecs/isac/fix/source/pitch_filter_mips.c",
762 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200763 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000764 }
765 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000766}
767
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700768if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700769 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800770 sources = [
771 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800772 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800773 "codecs/isac/fix/source/filters_neon.c",
774 "codecs/isac/fix/source/lattice_neon.c",
775 "codecs/isac/fix/source/transform_neon.c",
776 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000777
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700778 if (current_cpu != "arm64") {
779 # Enable compilation for the NEON instruction set. This is needed
780 # since //build/config/arm.gni only enables NEON for iOS, not Android.
781 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700782 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700783 cflags = [ "-mfpu=neon" ]
784 }
785
786 # Disable LTO on NEON targets due to compiler bug.
787 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000788 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000789 cflags -= [
790 "-flto",
791 "-ffat-lto-objects",
792 ]
793 }
794
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200795 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800796 ":isac_fix_common",
kjellander676e08f2016-12-07 08:23:27 -0800797 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200798 "../../common_audio",
799 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000800 }
801}
802
803config("pcm16b_config") {
804 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000805 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000806 "codecs/pcm16b/include",
807 ]
808}
809
kjellanderb62dbbe2016-09-23 00:38:52 -0700810rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000811 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200812 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100813 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200814 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100815 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000816 ]
817
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000818 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000819 ":audio_encoder_interface",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000820 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800821 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800822 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800823 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800824 "../../base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000825 ]
kjellander7439f972016-12-05 22:47:46 -0800826 public_deps = [
827 ":pcm16b_c",
828 ]
829 public_configs = [ ":pcm16b_config" ]
830}
831
832rtc_source_set("pcm16b_c") {
833 visibility = [ ":*" ] # Only targets in this file can depend on this.
834 sources = [
835 "codecs/pcm16b/pcm16b.c",
836 "codecs/pcm16b/pcm16b.h",
837 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000838
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700839 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800840 deps = [
841 "../..:webrtc_common",
842 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000843}
844
845config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000846 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000847}
848
kjellanderb62dbbe2016-09-23 00:38:52 -0700849rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000850 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200851 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100852 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000853 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100854 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000855 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000856
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200857 deps = [
858 ":audio_encoder_interface",
minyue41b9c802016-10-06 07:13:54 -0700859 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800860 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800861 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -0700862 "../../base:protobuf_utils",
Henrik Lundind048aa02015-12-03 17:47:21 +0100863 "../../base:rtc_base_approved",
tereliusbc5d9212017-01-13 09:14:33 -0800864 "../../base:rtc_numerics",
michaelt566d8202017-01-12 10:17:38 -0800865 "../../common_audio",
kjellander676e08f2016-12-07 08:23:27 -0800866 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200867 ]
kjellander7439f972016-12-05 22:47:46 -0800868 public_deps = [
869 ":webrtc_opus_c",
870 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000871
michaelta55f0212017-02-02 07:47:19 -0800872 defines = audio_codec_defines
henrik.lundinfd87f4a2016-11-28 11:15:54 -0800873 if (rtc_opus_variable_complexity) {
874 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
875 } else {
876 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
877 }
henrik.lundin875862c2016-11-22 02:07:54 -0800878
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000879 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800880 public_deps += [ rtc_opus_dir ]
881 } else if (build_with_mozilla) {
882 include_dirs = [ getenv("DIST") + "/include/opus" ]
883 }
884}
885
886rtc_source_set("webrtc_opus_c") {
887 visibility = [ ":*" ] # Only targets in this file can depend on this.
888 sources = [
889 "codecs/opus/opus_inst.h",
890 "codecs/opus/opus_interface.c",
891 "codecs/opus/opus_interface.h",
892 ]
893
minyue2e03c662017-02-01 17:31:11 -0800894 defines = audio_coding_defines
895
kjellander7439f972016-12-05 22:47:46 -0800896 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700897 public_deps = [
898 rtc_opus_dir,
899 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000900 } else if (build_with_mozilla) {
901 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000902 }
kjellander7439f972016-12-05 22:47:46 -0800903
904 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800905 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800906 "../../base:rtc_base_approved",
907 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000908}
909
minyue25f6a392016-09-22 22:23:20 -0700910if (rtc_enable_protobuf) {
911 proto_library("ana_debug_dump_proto") {
912 sources = [
913 "audio_network_adaptor/debug_dump.proto",
914 ]
sakal363a2912017-01-13 06:52:12 -0800915 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700916 }
minyuea1d9ad02016-10-02 14:53:37 -0700917 proto_library("ana_config_proto") {
918 sources = [
919 "audio_network_adaptor/config.proto",
920 ]
921 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
922 }
minyue25f6a392016-09-22 22:23:20 -0700923}
924
minyue0d382ef2016-10-07 07:59:28 -0700925rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700926 sources = [
927 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700928 "audio_network_adaptor/audio_network_adaptor_impl.cc",
929 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700930 "audio_network_adaptor/bitrate_controller.cc",
931 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700932 "audio_network_adaptor/channel_controller.cc",
933 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700934 "audio_network_adaptor/controller.cc",
935 "audio_network_adaptor/controller.h",
936 "audio_network_adaptor/controller_manager.cc",
937 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700938 "audio_network_adaptor/debug_dump_writer.cc",
939 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700940 "audio_network_adaptor/dtx_controller.cc",
941 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800942 "audio_network_adaptor/event_log_writer.cc",
943 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700944 "audio_network_adaptor/fec_controller_plr_based.cc",
945 "audio_network_adaptor/fec_controller_plr_based.h",
946 "audio_network_adaptor/fec_controller_rplr_based.cc",
947 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700948 "audio_network_adaptor/frame_length_controller.cc",
949 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700950 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700951 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700952 ]
minyue25f6a392016-09-22 22:23:20 -0700953
minyue41b9c802016-10-06 07:13:54 -0700954 deps = [
955 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -0700956 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -0800957 "../../base:rtc_base_approved",
958 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800959 "../../logging:rtc_event_log_api",
minyue41b9c802016-10-06 07:13:54 -0700960 "../../system_wrappers",
961 ]
962
minyue25f6a392016-09-22 22:23:20 -0700963 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700964 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700965 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700966 ":ana_debug_dump_proto",
967 ]
968 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ]
969 }
minyue4b7c9522017-01-24 04:54:59 -0800970
971 if (!build_with_chromium && is_clang) {
972 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
973 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
974 }
minyue7610f852016-09-07 13:51:51 -0700975}
976
kwiberg65cb70d2017-03-03 06:16:28 -0800977rtc_source_set("neteq_decoder_enum") {
978 sources = [
979 "neteq/neteq_decoder_enum.cc",
980 "neteq/neteq_decoder_enum.h",
981 ]
982 deps = [
983 "../../api/audio_codecs:audio_codecs_api",
984 "../../base:rtc_base_approved",
985 ]
986}
kjellander676e08f2016-12-07 08:23:27 -0800987
kwiberg65cb70d2017-03-03 06:16:28 -0800988rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000989 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000990 "neteq/accelerate.cc",
991 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000992 "neteq/audio_decoder_impl.cc",
993 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000994 "neteq/audio_multi_vector.cc",
995 "neteq/audio_multi_vector.h",
996 "neteq/audio_vector.cc",
997 "neteq/audio_vector.h",
998 "neteq/background_noise.cc",
999 "neteq/background_noise.h",
1000 "neteq/buffer_level_filter.cc",
1001 "neteq/buffer_level_filter.h",
1002 "neteq/comfort_noise.cc",
1003 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -07001004 "neteq/cross_correlation.cc",
1005 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001006 "neteq/decision_logic.cc",
1007 "neteq/decision_logic.h",
1008 "neteq/decision_logic_fax.cc",
1009 "neteq/decision_logic_fax.h",
1010 "neteq/decision_logic_normal.cc",
1011 "neteq/decision_logic_normal.h",
1012 "neteq/decoder_database.cc",
1013 "neteq/decoder_database.h",
1014 "neteq/defines.h",
1015 "neteq/delay_manager.cc",
1016 "neteq/delay_manager.h",
1017 "neteq/delay_peak_detector.cc",
1018 "neteq/delay_peak_detector.h",
1019 "neteq/dsp_helper.cc",
1020 "neteq/dsp_helper.h",
1021 "neteq/dtmf_buffer.cc",
1022 "neteq/dtmf_buffer.h",
1023 "neteq/dtmf_tone_generator.cc",
1024 "neteq/dtmf_tone_generator.h",
1025 "neteq/expand.cc",
1026 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001027 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001028 "neteq/merge.cc",
1029 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001030 "neteq/nack_tracker.cc",
1031 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001032 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001033 "neteq/neteq_impl.cc",
1034 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001035 "neteq/normal.cc",
1036 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001037 "neteq/packet.cc",
1038 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001039 "neteq/packet_buffer.cc",
1040 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001041 "neteq/post_decode_vad.cc",
1042 "neteq/post_decode_vad.h",
1043 "neteq/preemptive_expand.cc",
1044 "neteq/preemptive_expand.h",
1045 "neteq/random_vector.cc",
1046 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001047 "neteq/red_payload_splitter.cc",
1048 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001049 "neteq/rtcp.cc",
1050 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001051 "neteq/statistics_calculator.cc",
1052 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001053 "neteq/sync_buffer.cc",
1054 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001055 "neteq/tick_timer.cc",
1056 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001057 "neteq/time_stretch.cc",
1058 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001059 "neteq/timestamp_scaler.cc",
1060 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001061 ]
1062
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001063 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001064 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001065 ":cng",
1066 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001067 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001068 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001069 ":pcm16b",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001070 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001071 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001072 "../../base:gtest_prod",
1073 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001074 "../../common_audio",
1075 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001076 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001077
1078 defines = []
1079
kwibergf8c2bac2016-01-18 06:38:32 -08001080 if (rtc_include_ilbc) {
1081 defines += [ "WEBRTC_CODEC_ILBC" ]
1082 deps += [ ":ilbc" ]
1083 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001084 if (rtc_include_opus) {
1085 defines += [ "WEBRTC_CODEC_OPUS" ]
1086 deps += [ ":webrtc_opus" ]
1087 }
kwiberg98ab3a42015-09-30 21:54:21 -07001088 if (!build_with_mozilla) {
1089 if (current_cpu == "arm") {
1090 defines += [ "WEBRTC_CODEC_ISACFX" ]
1091 deps += [ ":isac_fix" ]
1092 } else {
1093 defines += [ "WEBRTC_CODEC_ISAC" ]
1094 deps += [ ":isac" ]
1095 }
1096 defines += [ "WEBRTC_CODEC_G722" ]
1097 deps += [ ":g722" ]
1098 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001099}
kjellanderfb114242016-06-13 00:19:48 -07001100
henrik.lundin58466f62016-10-05 02:27:42 -07001101# Although providing only test support, this target must be outside of the
1102# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1103# that ultimately are built and run as a part of the Chromium ecosystem, which
1104# does not set the rtc_include_tests flag.
1105rtc_source_set("neteq_test_minimal") {
1106 testonly = true
kjellander676e08f2016-12-07 08:23:27 -08001107
1108 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1109 # Has cyclic dependency with :neteq_unittest_tools
1110 check_includes = false
1111
henrik.lundin58466f62016-10-05 02:27:42 -07001112 sources = [
1113 "neteq/tools/encode_neteq_input.cc",
1114 "neteq/tools/encode_neteq_input.h",
1115 "neteq/tools/neteq_test.cc",
1116 "neteq/tools/neteq_test.h",
1117 ]
1118
kjellandere40a7ee2016-10-16 23:56:12 -07001119 if (!build_with_chromium && is_clang) {
1120 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001121 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1122 }
kjellander676e08f2016-12-07 08:23:27 -08001123
1124 deps = [
1125 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -08001126 ":neteq",
1127 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001128 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001129 "../../base:rtc_base_approved",
1130 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001131}
1132
kjellanderfb114242016-06-13 00:19:48 -07001133if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001134 group("audio_coding_tests") {
1135 testonly = true
1136 public_deps = [
1137 ":RTPchange",
1138 ":RTPencode",
1139 ":RTPjitter",
1140 ":RTPtimeshift",
1141 ":acm_receive_test",
1142 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001143 ":audio_codec_speed_tests",
1144 ":audio_decoder_unittests",
1145 ":audio_decoder_unittests",
1146 ":delay_test",
1147 ":g711_test",
1148 ":g722_test",
1149 ":ilbc_test",
1150 ":insert_packet_with_timing",
1151 ":isac_api_test",
1152 ":isac_fix_test",
1153 ":isac_switch_samprate_test",
1154 ":isac_test",
1155 ":neteq_ilbc_quality_test",
1156 ":neteq_isac_quality_test",
1157 ":neteq_opus_quality_test",
1158 ":neteq_pcmu_quality_test",
1159 ":neteq_speed_test",
1160 ":rtp_analyze",
1161 ":rtpcat",
1162 ":webrtc_opus_fec_test",
1163 ]
1164 if (rtc_enable_protobuf) {
1165 public_deps += [ ":neteq_rtpplay" ]
1166 }
1167 }
1168
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001169 rtc_source_set("audio_coding_modules_tests") {
1170 testonly = true
1171 sources = [
1172 "test/APITest.cc",
1173 "test/Channel.cc",
1174 "test/EncodeDecodeTest.cc",
1175 "test/PCMFile.cc",
1176 "test/PacketLossTest.cc",
1177 "test/RTPFile.cc",
1178 "test/TestAllCodecs.cc",
1179 "test/TestRedFec.cc",
1180 "test/TestStereo.cc",
1181 "test/TestVADDTX.cc",
1182 "test/Tester.cc",
1183 "test/TwoWayCommunication.cc",
1184 "test/iSACTest.cc",
1185 "test/opus_test.cc",
1186 "test/target_delay_unittest.cc",
1187 "test/utility.cc",
1188 ]
1189 deps = [
1190 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001191 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001192 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001193 ":pcm16b_c",
1194 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001195 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001196 "../../base:rtc_base_approved",
1197 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001198 "../../test:test_support",
1199 ]
1200 defines = audio_coding_defines
1201 if (is_win) {
1202 cflags = [
1203 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1204 "/wd4373", # virtual function override.
1205 ]
1206 }
1207 if (!build_with_chromium && is_clang) {
1208 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1209 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1210 }
1211 }
1212
ehmaldonado021eef32017-01-05 07:09:50 -08001213 rtc_source_set("audio_coding_perf_tests") {
1214 testonly = true
1215 sources = [
1216 "codecs/opus/opus_complexity_unittest.cc",
1217 "neteq/test/neteq_performance_unittest.cc",
1218 ]
1219 deps = [
1220 ":neteq_test_support",
1221 ":neteq_unittest_tools",
1222 ":webrtc_opus",
1223 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -07001224 "../../base:protobuf_utils",
ehmaldonado021eef32017-01-05 07:09:50 -08001225 "../../base:rtc_base_approved",
1226 "../../system_wrappers:system_wrappers",
1227 "../../test:test_support",
1228 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001229
ehmaldonado021eef32017-01-05 07:09:50 -08001230 if (!build_with_chromium && is_clang) {
1231 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1232 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1233 }
1234 }
1235
ehmaldonado38a21322016-09-02 04:10:34 -07001236 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001237 testonly = true
1238 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001239 "acm2/acm_receive_test.cc",
1240 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001241 ]
1242
kjellanderfb114242016-06-13 00:19:48 -07001243 defines = audio_coding_defines
1244
1245 deps = audio_coding_deps + [
1246 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001247 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001248 "../../api/audio_codecs:audio_codecs_api",
1249 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellanderfb114242016-06-13 00:19:48 -07001250 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001251 "../../base:rtc_base_approved",
1252 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001253 "//testing/gtest",
1254 ]
1255 }
1256
ehmaldonado38a21322016-09-02 04:10:34 -07001257 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001258 testonly = true
1259 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001260 "acm2/acm_send_test.cc",
1261 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001262 ]
1263
kjellanderfb114242016-06-13 00:19:48 -07001264 defines = audio_coding_defines
1265
1266 deps = audio_coding_deps + [
1267 ":audio_coding",
kwiberg087bd342017-02-10 08:15:44 -08001268 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001269 ":audio_encoder_interface",
kjellanderfb114242016-06-13 00:19:48 -07001270 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001271 "../../base:rtc_base_approved",
1272 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001273 "//testing/gtest",
1274 ]
1275 }
1276
ehmaldonado38a21322016-09-02 04:10:34 -07001277 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001278 testonly = true
1279 sources = [
1280 "test/Channel.cc",
1281 "test/PCMFile.cc",
1282 "test/delay_test.cc",
1283 "test/utility.cc",
1284 ]
1285
aleloi333f2062016-07-28 01:21:29 -07001286 deps = [
1287 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001288 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001289 ":audio_format_conversion",
aleloi333f2062016-07-28 01:21:29 -07001290 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001291 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001292 "../../system_wrappers",
1293 "../../system_wrappers:system_wrappers_default",
1294 "../../test:test_support",
1295 "../rtp_rtcp",
1296 "//testing/gtest",
1297 "//third_party/gflags:gflags",
1298 ]
1299 } # delay_test
1300
ehmaldonado38a21322016-09-02 04:10:34 -07001301 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001302 testonly = true
1303 sources = [
1304 "test/Channel.cc",
1305 "test/PCMFile.cc",
1306 "test/insert_packet_with_timing.cc",
1307 ]
1308
kjellandere40a7ee2016-10-16 23:56:12 -07001309 if (!build_with_chromium && is_clang) {
1310 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001311 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001312 }
1313
1314 deps = [
1315 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001316 ":audio_format_conversion",
aleloi00730c72016-07-28 01:27:10 -07001317 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001318 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001319 "../../system_wrappers",
1320 "../../system_wrappers:system_wrappers_default",
1321 "../../test:test_support",
1322 "../rtp_rtcp",
1323 "//testing/gtest",
1324 "//third_party/gflags:gflags",
1325 ]
1326 } # insert_packet_with_timing
1327
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001328 audio_decoder_unittests_resources =
1329 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001330
1331 if (is_ios) {
1332 bundle_data("audio_decoder_unittests_bundle_data") {
1333 testonly = true
1334 sources = audio_decoder_unittests_resources
1335 outputs = [
1336 "{{bundle_resources_dir}}/{{source_file_part}}",
1337 ]
1338 }
1339 }
1340
ehmaldonado38a21322016-09-02 04:10:34 -07001341 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001342 testonly = true
1343 sources = [
1344 "neteq/audio_decoder_unittest.cc",
1345 ]
1346
kjellandere40a7ee2016-10-16 23:56:12 -07001347 if (!build_with_chromium && is_clang) {
1348 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001349 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001350 }
1351
1352 deps = []
1353
1354 defines = neteq_defines
1355
1356 deps += audio_coding_deps
1357 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001358 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001359 ":isac",
1360 ":isac_fix",
1361 ":neteq",
1362 ":neteq_unittest_tools",
kwiberg087bd342017-02-10 08:15:44 -08001363 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -07001364 "../../base:protobuf_utils",
kjellander6ceab082016-10-28 05:44:03 -07001365 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001366 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001367 "//testing/gtest",
1368 ]
1369
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001370 data = audio_decoder_unittests_resources
1371
charujainddf3e4a2016-08-01 07:49:42 -07001372 if (is_android) {
1373 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001374 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001375 }
kjellander32c4a202016-08-30 02:53:49 -07001376 if (is_ios) {
1377 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001378 }
1379 } # audio_decoder_unittests
1380
kjellanderfb114242016-06-13 00:19:48 -07001381 if (rtc_enable_protobuf) {
1382 proto_library("neteq_unittest_proto") {
1383 sources = [
1384 "neteq/neteq_unittest.proto",
1385 ]
kjellandere3e902e2017-02-28 08:01:46 -08001386 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001387 }
henrik.lundin03153f12016-06-21 05:38:42 -07001388
kjellanderb62dbbe2016-09-23 00:38:52 -07001389 rtc_static_library("rtc_event_log_source") {
henrik.lundin03153f12016-06-21 05:38:42 -07001390 testonly = true
kjellander676e08f2016-12-07 08:23:27 -08001391
1392 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1393 # Needs call.h to be moved to webrtc/api first.
1394 check_includes = false
1395
henrik.lundin03153f12016-06-21 05:38:42 -07001396 sources = [
1397 "neteq/tools/rtc_event_log_source.cc",
1398 "neteq/tools/rtc_event_log_source.h",
1399 ]
1400
kjellandere40a7ee2016-10-16 23:56:12 -07001401 if (!build_with_chromium && is_clang) {
1402 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001403 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001404 }
1405
1406 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001407 "../../base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -07001408 "../../logging:rtc_event_log_parser",
henrik.lundin03153f12016-06-21 05:38:42 -07001409 ]
1410 public_deps = [
skvladcc91d282016-10-03 18:31:22 -07001411 "../../logging:rtc_event_log_proto",
henrik.lundin03153f12016-06-21 05:38:42 -07001412 ]
1413 }
1414
ehmaldonado38a21322016-09-02 04:10:34 -07001415 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001416 testonly = true
1417 defines = []
1418 deps = []
1419 sources = [
1420 "neteq/tools/neteq_rtpplay.cc",
1421 ]
1422
kjellandere40a7ee2016-10-16 23:56:12 -07001423 if (!build_with_chromium && is_clang) {
1424 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001425 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001426 }
1427
1428 if (is_win) {
1429 cflags = [
1430 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1431 "/wd4373", # virtual function override.
1432 ]
1433 }
1434
1435 deps += [
1436 ":neteq",
1437 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001438 "../..:webrtc_common",
1439 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001440 "../../system_wrappers:system_wrappers_default",
1441 "../../test:test_support",
1442 "//third_party/gflags",
1443 ]
1444 }
kjellanderfb114242016-06-13 00:19:48 -07001445 }
1446
ehmaldonado38a21322016-09-02 04:10:34 -07001447 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001448 testonly = true
1449 defines = []
1450 deps = []
1451 sources = [
1452 "codecs/isac/fix/test/isac_speed_test.cc",
1453 "codecs/opus/opus_speed_test.cc",
1454 "codecs/tools/audio_codec_speed_test.cc",
1455 "codecs/tools/audio_codec_speed_test.h",
1456 ]
1457
kjellandere40a7ee2016-10-16 23:56:12 -07001458 if (!build_with_chromium && is_clang) {
1459 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001460 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001461 }
1462
1463 if (is_android) {
1464 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001465 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001466 }
1467
1468 deps += [
1469 ":isac_fix",
1470 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001471 "../..:webrtc_common",
1472 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001473 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001474 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001475 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001476 "//testing/gtest",
1477 ]
1478 }
1479
ehmaldonado38a21322016-09-02 04:10:34 -07001480 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001481 testonly = true
1482 sources = [
1483 "neteq/tools/neteq_external_decoder_test.cc",
1484 "neteq/tools/neteq_external_decoder_test.h",
1485 "neteq/tools/neteq_performance_test.cc",
1486 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001487 ]
1488
kjellandere40a7ee2016-10-16 23:56:12 -07001489 if (!build_with_chromium && is_clang) {
1490 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001491 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001492 }
1493
1494 deps = [
1495 ":neteq",
1496 ":neteq_unittest_tools",
1497 ":pcm16b",
kjellander676e08f2016-12-07 08:23:27 -08001498 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001499 "../../api/audio_codecs:audio_codecs_api",
1500 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001501 "../../base:rtc_base_approved",
1502 "../../system_wrappers",
1503 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001504 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001505 ]
1506 }
1507
ehmaldonado38a21322016-09-02 04:10:34 -07001508 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001509 testonly = true
1510 sources = [
1511 "neteq/tools/neteq_quality_test.cc",
1512 "neteq/tools/neteq_quality_test.h",
1513 ]
1514
kjellandere40a7ee2016-10-16 23:56:12 -07001515 if (!build_with_chromium && is_clang) {
1516 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001517 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001518 }
1519
1520 deps = [
1521 ":neteq",
1522 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001523 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001524 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001525 "../../base:rtc_base_approved",
1526 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001527 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001528 "//third_party/gflags",
1529 ]
1530 }
1531
kjellanderfb114242016-06-13 00:19:48 -07001532 config("neteq_unittest_tools_config") {
1533 include_dirs = [ "tools" ]
1534 }
1535
ehmaldonado38a21322016-09-02 04:10:34 -07001536 rtc_source_set("neteq_unittest_tools") {
kjellanderfb114242016-06-13 00:19:48 -07001537 testonly = true
1538 sources = [
1539 "neteq/tools/audio_checksum.h",
1540 "neteq/tools/audio_loop.cc",
1541 "neteq/tools/audio_loop.h",
aleloi0e0be0a2016-08-10 04:55:20 -07001542 "neteq/tools/audio_sink.cc",
kjellanderfb114242016-06-13 00:19:48 -07001543 "neteq/tools/audio_sink.h",
1544 "neteq/tools/constant_pcm_packet_source.cc",
1545 "neteq/tools/constant_pcm_packet_source.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001546 "neteq/tools/fake_decode_from_file.cc",
1547 "neteq/tools/fake_decode_from_file.h",
kjellanderfb114242016-06-13 00:19:48 -07001548 "neteq/tools/input_audio_file.cc",
1549 "neteq/tools/input_audio_file.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001550 "neteq/tools/neteq_input.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001551 "neteq/tools/neteq_replacement_input.cc",
1552 "neteq/tools/neteq_replacement_input.h",
kjellanderfb114242016-06-13 00:19:48 -07001553 "neteq/tools/output_audio_file.h",
1554 "neteq/tools/output_wav_file.h",
1555 "neteq/tools/packet.cc",
1556 "neteq/tools/packet.h",
kwibergb8e56ee2016-08-29 06:37:33 -07001557 "neteq/tools/packet_source.cc",
kjellanderfb114242016-06-13 00:19:48 -07001558 "neteq/tools/packet_source.h",
1559 "neteq/tools/resample_input_audio_file.cc",
1560 "neteq/tools/resample_input_audio_file.h",
1561 "neteq/tools/rtp_file_source.cc",
1562 "neteq/tools/rtp_file_source.h",
1563 "neteq/tools/rtp_generator.cc",
1564 "neteq/tools/rtp_generator.h",
1565 ]
1566
ehmaldonadoe9cc6862016-09-05 06:10:18 -07001567 public_configs = [ ":neteq_unittest_tools_config" ]
kjellanderfb114242016-06-13 00:19:48 -07001568
kjellandere40a7ee2016-10-16 23:56:12 -07001569 if (!build_with_chromium && is_clang) {
1570 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001571 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001572 }
1573
1574 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001575 ":audio_encoder_interface",
1576 ":pcm16b",
1577 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001578 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001579 "../../base:rtc_base_approved",
kjellandered754e72017-04-19 08:37:36 -07001580 "../../base:rtc_base_tests_utils",
kjellanderfb114242016-06-13 00:19:48 -07001581 "../../common_audio",
1582 "../../test:rtp_test_utils",
1583 "../rtp_rtcp",
1584 ]
henrik.lundine8a77e32016-06-22 06:34:03 -07001585
kjellander676e08f2016-12-07 08:23:27 -08001586 public_deps = [
1587 ":neteq_test_minimal",
1588 ]
1589
henrik.lundine8a77e32016-06-22 06:34:03 -07001590 if (rtc_enable_protobuf) {
ehmaldonado36268652017-01-19 08:27:11 -08001591 sources += [
1592 "neteq/tools/neteq_packet_source_input.cc",
1593 "neteq/tools/neteq_packet_source_input.h",
1594 ]
henrik.lundine8a77e32016-06-22 06:34:03 -07001595 deps += [ ":rtc_event_log_source" ]
1596 }
kjellanderfb114242016-06-13 00:19:48 -07001597 }
aleloi3022a342016-07-26 06:36:03 -07001598
ehmaldonado38a21322016-09-02 04:10:34 -07001599 rtc_source_set("neteq_test_tools") {
aleloi3022a342016-07-26 06:36:03 -07001600 testonly = true
1601 sources = [
1602 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1603 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1604 "neteq/test/NETEQTEST_RTPpacket.cc",
1605 "neteq/test/NETEQTEST_RTPpacket.h",
1606 ]
1607
1608 deps = [
1609 ":cng",
1610 ":g711",
1611 ":g722",
1612 ":ilbc",
1613 ":isac",
1614 ":pcm16b",
1615 "../..:webrtc_common",
1616 "//testing/gtest",
1617 ]
1618
1619 include_dirs = [
1620 "neteq/include",
1621 "neteq/test",
1622 "../../",
1623 ]
1624
1625 if (is_win) {
1626 cflags = [
1627 # Disable warnings to enable Win64 build, issue 1323.
1628 "/wd4267", # size_t to int truncation
1629 ]
1630 }
1631 }
aleloi47bded42016-07-26 06:46:19 -07001632
aleloi82667732016-08-02 01:45:50 -07001633 config("RTPencode_config") {
1634 defines = [
1635 "CODEC_ILBC",
1636 "CODEC_PCM16B",
1637 "CODEC_G711",
1638 "CODEC_G722",
1639 "CODEC_ISAC",
1640 "CODEC_PCM16B_WB",
1641 "CODEC_ISAC_SWB",
1642 "CODEC_PCM16B_32KHZ",
1643 "CODEC_PCM16B_48KHZ",
1644 "CODEC_CNGCODEC8",
1645 "CODEC_CNGCODEC16",
1646 "CODEC_CNGCODEC32",
1647 "CODEC_ATEVENT_DECODE",
1648 "CODEC_RED",
1649 "CODEC_OPUS",
1650 ]
1651 }
1652
ehmaldonado38a21322016-09-02 04:10:34 -07001653 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001654 testonly = true
1655
1656 deps = [
1657 # TODO(hlundin): Make RTPencode use ACM to encode files.
1658 ":cng",
1659 ":g711",
1660 ":g722",
1661 ":ilbc",
1662 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001663 ":neteq",
aleloi82667732016-08-02 01:45:50 -07001664 ":neteq_test_tools",
1665 ":pcm16b",
1666 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001667 "../..:webrtc_common",
1668 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001669 "../../common_audio",
1670 ]
1671
1672 configs += [ ":RTPencode_config" ]
1673
1674 sources = [
1675 "neteq/test/RTPencode.cc",
1676 ]
1677
1678 include_dirs = [
1679 "neteq/include",
1680 "neteq/test",
1681 ]
1682
1683 if (is_win) {
1684 cflags = [
1685 # Disable warnings to enable Win64 build, issue 1323.
1686 "/wd4267", # size_t to int truncation
1687 ]
1688 }
1689 }
1690
ehmaldonado38a21322016-09-02 04:10:34 -07001691 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001692 testonly = true
1693
1694 sources = [
1695 "neteq/test/RTPchange.cc",
1696 ]
1697
1698 deps = [
1699 ":neteq_test_tools",
1700 ]
1701 }
1702
ehmaldonado38a21322016-09-02 04:10:34 -07001703 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001704 testonly = true
1705
1706 sources = [
1707 "neteq/tools/rtpcat.cc",
1708 ]
1709
1710 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001711 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001712 "../../system_wrappers:system_wrappers_default",
1713 "../../test:rtp_test_utils",
1714 "//testing/gtest",
1715 ]
1716 }
1717
ehmaldonado38a21322016-09-02 04:10:34 -07001718 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001719 testonly = true
1720
1721 sources = [
1722 "neteq/test/RTPtimeshift.cc",
1723 ]
1724
1725 deps = [
1726 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001727 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001728 "//testing/gtest",
1729 ]
1730 }
1731
ehmaldonado38a21322016-09-02 04:10:34 -07001732 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001733 testonly = true
1734 deps = [
1735 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001736 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001737 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001738 "//testing/gtest",
1739 ]
1740 sources = [
1741 "neteq/test/RTPjitter.cc",
1742 ]
1743 }
1744
ehmaldonado38a21322016-09-02 04:10:34 -07001745 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001746 testonly = true
1747
1748 sources = [
1749 "neteq/tools/rtp_analyze.cc",
1750 ]
1751
1752 deps = [
1753 ":neteq",
1754 ":neteq_unittest_tools",
1755 ":pcm16b",
1756 "../../system_wrappers:system_wrappers_default",
1757 "//testing/gtest",
1758 "//third_party/gflags:gflags",
1759 ]
1760
kjellandere40a7ee2016-10-16 23:56:12 -07001761 if (!build_with_chromium && is_clang) {
1762 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001763 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001764 }
1765 }
aleloi630c6d52016-08-10 02:11:30 -07001766
ehmaldonado38a21322016-09-02 04:10:34 -07001767 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001768 testonly = true
1769
1770 sources = [
1771 "neteq/test/neteq_opus_quality_test.cc",
1772 ]
1773
1774 deps = [
1775 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001776 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001777 ":neteq_unittest_tools",
aleloi630c6d52016-08-10 02:11:30 -07001778 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001779 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001780 "//testing/gtest",
1781 "//third_party/gflags",
1782 ]
aleloi630c6d52016-08-10 02:11:30 -07001783 }
aleloi116fd612016-08-10 04:16:36 -07001784
ehmaldonado38a21322016-09-02 04:10:34 -07001785 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001786 testonly = true
1787
1788 sources = [
1789 "neteq/test/neteq_speed_test.cc",
1790 ]
1791
1792 deps = [
1793 ":neteq",
1794 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001795 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001796 "../../system_wrappers:system_wrappers_default",
1797 "../../test:test_support",
1798 "//third_party/gflags",
1799 ]
1800 }
aleloi63910122016-08-10 04:41:14 -07001801
ehmaldonado38a21322016-09-02 04:10:34 -07001802 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001803 testonly = true
1804
1805 sources = [
1806 "neteq/test/neteq_ilbc_quality_test.cc",
1807 ]
1808
1809 deps = [
1810 ":ilbc",
1811 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001812 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001813 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001814 "../..:webrtc_common",
1815 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001816 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001817 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001818 "//testing/gtest",
1819 "//third_party/gflags",
1820 ]
1821 }
aleloi6df36dc2016-08-10 05:04:47 -07001822
ehmaldonado38a21322016-09-02 04:10:34 -07001823 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001824 testonly = true
1825
1826 sources = [
1827 "neteq/test/neteq_isac_quality_test.cc",
1828 ]
1829
1830 deps = [
1831 ":isac_fix",
1832 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001833 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001834 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001835 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001836 "//testing/gtest",
1837 "//third_party/gflags",
1838 ]
1839 }
aleloic4ac7002016-08-10 05:06:27 -07001840
ehmaldonado38a21322016-09-02 04:10:34 -07001841 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001842 testonly = true
1843
1844 sources = [
1845 "neteq/test/neteq_pcmu_quality_test.cc",
1846 ]
1847
1848 deps = [
1849 ":g711",
1850 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001851 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001852 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001853 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001854 "//testing/gtest",
1855 "//third_party/gflags",
1856 ]
1857 }
aleloib7186d02016-08-16 01:47:16 -07001858
ehmaldonado38a21322016-09-02 04:10:34 -07001859 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001860 testonly = true
1861
1862 sources = [
1863 "codecs/isac/fix/test/kenny.cc",
1864 ]
1865
1866 deps = [
1867 ":isac_fix",
1868 "../../test:test_support",
1869 ]
1870
1871 if (is_win) {
1872 cflags = [
1873 # Disable warnings to enable Win64 build, issue 1323.
1874 "/wd4267", # size_t to int truncation
1875 ]
1876 }
1877 }
aleloi16f55a12016-08-23 08:08:23 -07001878
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001879 config("isac_test_warnings_config") {
1880 if (is_win && is_clang) {
1881 cflags = [
1882 # Disable warnings failing when compiling with Clang on Windows.
1883 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1884 "-Wno-format",
1885 ]
1886 }
1887 }
1888
kjellander7439f972016-12-05 22:47:46 -08001889 rtc_source_set("isac_test_util") {
1890 testonly = true
1891 sources = [
1892 "codecs/isac/main/util/utility.c",
1893 ]
1894 }
1895
ehmaldonado38a21322016-09-02 04:10:34 -07001896 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001897 testonly = true
1898
1899 sources = [
1900 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001901 ]
1902
1903 include_dirs = [
1904 "codecs/isac/main/include",
1905 "codecs/isac/main/test",
1906 "codecs/isac/main/util",
1907 ]
1908
1909 deps = [
1910 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001911 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001912 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001913 ]
1914
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001915 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001916 }
1917
ehmaldonado38a21322016-09-02 04:10:34 -07001918 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001919 testonly = true
1920
1921 sources = [
1922 "codecs/g711/test/testG711.cc",
1923 ]
1924
aleloi16f55a12016-08-23 08:08:23 -07001925 deps = [
1926 ":g711",
1927 ]
1928 }
aleloi9a117842016-08-23 08:36:10 -07001929
ehmaldonado38a21322016-09-02 04:10:34 -07001930 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001931 testonly = true
1932
1933 sources = [
1934 "codecs/g722/test/testG722.cc",
1935 ]
1936
aleloi9a117842016-08-23 08:36:10 -07001937 deps = [
1938 ":g722",
1939 "../..:webrtc_common",
1940 ]
1941 }
ivoc2c670db2016-08-24 06:11:18 -07001942
ehmaldonado38a21322016-09-02 04:10:34 -07001943 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001944 testonly = true
1945
1946 sources = [
1947 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001948 ]
1949
aleloicfee2152016-08-29 04:09:19 -07001950 deps = [
1951 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001952 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001953 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001954 ]
1955
1956 include_dirs = [
1957 "codecs/isac/main/include",
1958 "codecs/isac/main/test",
1959 "codecs/isac/main/util",
1960 ]
1961 }
1962
ehmaldonado38a21322016-09-02 04:10:34 -07001963 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001964 testonly = true
1965
1966 sources = [
1967 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07001968 ]
1969
aleloicfee2152016-08-29 04:09:19 -07001970 deps = [
1971 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001972 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001973 ]
1974
1975 include_dirs = [
1976 "codecs/isac/main/include",
1977 "codecs/isac/main/test",
1978 "codecs/isac/main/util",
1979 "../../common_audio/signal_processing/include",
1980 ]
1981 }
1982
ehmaldonado38a21322016-09-02 04:10:34 -07001983 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07001984 testonly = true
1985
1986 sources = [
1987 "codecs/ilbc/test/iLBC_test.c",
1988 ]
1989
aleloicfee2152016-08-29 04:09:19 -07001990 deps = [
1991 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07001992 ]
1993 }
1994
ehmaldonado38a21322016-09-02 04:10:34 -07001995 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07001996 testonly = true
1997
1998 sources = [
1999 "codecs/opus/opus_fec_test.cc",
2000 ]
2001
2002 deps = [
2003 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07002004 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07002005 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08002006 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002007 "//testing/gtest",
2008 ]
2009
kjellandere40a7ee2016-10-16 23:56:12 -07002010 if (!build_with_chromium && is_clang) {
2011 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002012 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002013 }
2014 }
ehmaldonado36268652017-01-19 08:27:11 -08002015
2016 rtc_source_set("audio_coding_unittests") {
2017 testonly = true
2018
2019 sources = [
2020 "acm2/acm_receiver_unittest.cc",
2021 "acm2/audio_coding_module_unittest.cc",
2022 "acm2/call_statistics_unittest.cc",
2023 "acm2/codec_manager_unittest.cc",
2024 "acm2/rent_a_codec_unittest.cc",
2025 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2026 "audio_network_adaptor/bitrate_controller_unittest.cc",
2027 "audio_network_adaptor/channel_controller_unittest.cc",
2028 "audio_network_adaptor/controller_manager_unittest.cc",
2029 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002030 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002031 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2032 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002033 "audio_network_adaptor/frame_length_controller_unittest.cc",
2034 "audio_network_adaptor/mock/mock_controller.h",
2035 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002036 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002037 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002038 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002039 "codecs/cng/audio_encoder_cng_unittest.cc",
2040 "codecs/cng/cng_unittest.cc",
2041 "codecs/ilbc/ilbc_unittest.cc",
2042 "codecs/isac/fix/source/filterbanks_unittest.cc",
2043 "codecs/isac/fix/source/filters_unittest.cc",
2044 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2045 "codecs/isac/fix/source/transform_unittest.cc",
2046 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2047 "codecs/isac/main/source/isac_unittest.cc",
2048 "codecs/isac/unittest.cc",
2049 "codecs/legacy_encoded_audio_frame_unittest.cc",
2050 "codecs/mock/mock_audio_encoder.cc",
2051 "codecs/opus/audio_encoder_opus_unittest.cc",
2052 "codecs/opus/opus_unittest.cc",
2053 "codecs/red/audio_encoder_copy_red_unittest.cc",
2054 "neteq/audio_multi_vector_unittest.cc",
2055 "neteq/audio_vector_unittest.cc",
2056 "neteq/background_noise_unittest.cc",
2057 "neteq/buffer_level_filter_unittest.cc",
2058 "neteq/comfort_noise_unittest.cc",
2059 "neteq/decision_logic_unittest.cc",
2060 "neteq/decoder_database_unittest.cc",
2061 "neteq/delay_manager_unittest.cc",
2062 "neteq/delay_peak_detector_unittest.cc",
2063 "neteq/dsp_helper_unittest.cc",
2064 "neteq/dtmf_buffer_unittest.cc",
2065 "neteq/dtmf_tone_generator_unittest.cc",
2066 "neteq/expand_unittest.cc",
2067 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002068 "neteq/mock/mock_buffer_level_filter.h",
2069 "neteq/mock/mock_decoder_database.h",
2070 "neteq/mock/mock_delay_manager.h",
2071 "neteq/mock/mock_delay_peak_detector.h",
2072 "neteq/mock/mock_dtmf_buffer.h",
2073 "neteq/mock/mock_dtmf_tone_generator.h",
2074 "neteq/mock/mock_expand.h",
2075 "neteq/mock/mock_external_decoder_pcm16b.h",
2076 "neteq/mock/mock_packet_buffer.h",
2077 "neteq/mock/mock_red_payload_splitter.h",
2078 "neteq/nack_tracker_unittest.cc",
2079 "neteq/neteq_external_decoder_unittest.cc",
2080 "neteq/neteq_impl_unittest.cc",
2081 "neteq/neteq_network_stats_unittest.cc",
2082 "neteq/neteq_stereo_unittest.cc",
2083 "neteq/neteq_unittest.cc",
2084 "neteq/normal_unittest.cc",
2085 "neteq/packet_buffer_unittest.cc",
2086 "neteq/post_decode_vad_unittest.cc",
2087 "neteq/random_vector_unittest.cc",
2088 "neteq/red_payload_splitter_unittest.cc",
2089 "neteq/sync_buffer_unittest.cc",
2090 "neteq/tick_timer_unittest.cc",
2091 "neteq/time_stretch_unittest.cc",
2092 "neteq/timestamp_scaler_unittest.cc",
2093 "neteq/tools/input_audio_file_unittest.cc",
2094 "neteq/tools/packet_unittest.cc",
2095 ]
2096
2097 deps = [
2098 ":acm_receive_test",
2099 ":acm_send_test",
2100 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002101 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002102 ":audio_encoder_interface",
2103 ":audio_format_conversion",
2104 ":audio_network_adaptor",
ossua1a040a2017-04-06 10:03:21 -07002105 ":builtin_audio_encoder_factory",
ehmaldonado36268652017-01-19 08:27:11 -08002106 ":cng",
2107 ":g711",
2108 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002109 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002110 ":isac_c",
2111 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002112 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002113 ":neteq",
2114 ":neteq_test_support",
2115 ":neteq_unittest_tools",
2116 ":pcm16b",
2117 ":red",
2118 ":rent_a_codec",
2119 ":webrtc_opus",
2120 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002121 "../../api/audio_codecs:audio_codecs_api",
2122 "../../api/audio_codecs:builtin_audio_decoder_factory",
mbonadei7c2c8432017-04-07 00:59:12 -07002123 "../../base:protobuf_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002124 "../../base:rtc_base",
2125 "../../base:rtc_base_approved",
2126 "../../base:rtc_base_tests_utils",
2127 "../../common_audio",
2128 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002129 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002130 "../../test:field_trial",
2131 "../../test:rtp_test_utils",
2132 "../../test:test_common",
2133 "../../test:test_support",
2134 "//testing/gmock",
2135 "//testing/gtest",
2136 "//third_party/gflags",
2137 ]
2138
2139 defines = audio_coding_defines
2140
2141 if (rtc_enable_protobuf) {
2142 defines += [
2143 "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP",
2144 "WEBRTC_NETEQ_UNITTEST_BITEXACT",
2145 ]
2146 deps += [
2147 ":ana_config_proto",
2148 ":neteq_unittest_proto",
2149 ]
2150 }
2151
2152 if (!build_with_chromium && is_clang) {
2153 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2154 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2155 }
2156 }
kjellanderfb114242016-06-13 00:19:48 -07002157}
kwiberg087bd342017-02-10 08:15:44 -08002158
2159# For backwards compatibility only! Use
2160# webrtc/api/audio_codecs:audio_codecs_api instead.
2161# TODO(kwiberg): Remove this.
2162rtc_source_set("audio_decoder_interface") {
2163 sources = [
2164 "codecs/audio_decoder.h",
2165 ]
2166 deps = [
2167 "../../api/audio_codecs:audio_codecs_api",
2168 ]
2169}
2170
2171# For backwards compatibility only! Use
2172# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2173# TODO(kwiberg): Remove this.
2174rtc_source_set("builtin_audio_decoder_factory") {
2175 sources = [
2176 "codecs/builtin_audio_decoder_factory.h",
2177 ]
2178 deps = [
2179 "../../api/audio_codecs:builtin_audio_decoder_factory",
2180 ]
2181}