blob: f50cf8273b34b56932b17f46bd8fb04b70008390 [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 = [
mbonadei1140f972017-04-26 03:38:35 -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 + [
mbonadei1140f972017-04-26 03:38:35 -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",
mbonadei1140f972017-04-26 03:38:35 -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.
henrik.lundinb637a942017-04-28 00:59:45 -07001108rtc_source_set("neteq_tools_minimal") {
henrik.lundin58466f62016-10-05 02:27:42 -07001109 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001110 "neteq/tools/audio_sink.cc",
1111 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001112 "neteq/tools/encode_neteq_input.cc",
1113 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001114 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001115 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001116 "neteq/tools/neteq_test.cc",
1117 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001118 "neteq/tools/packet.cc",
1119 "neteq/tools/packet.h",
1120 "neteq/tools/packet_source.cc",
1121 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001122 ]
1123
kjellandere40a7ee2016-10-16 23:56:12 -07001124 if (!build_with_chromium && is_clang) {
1125 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001126 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1127 }
kjellander676e08f2016-12-07 08:23:27 -08001128
1129 deps = [
1130 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -08001131 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001132 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001133 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001134 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001135 "../../base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001136 "../rtp_rtcp",
kjellander676e08f2016-12-07 08:23:27 -08001137 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001138}
1139
kjellanderfb114242016-06-13 00:19:48 -07001140if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001141 group("audio_coding_tests") {
1142 testonly = true
1143 public_deps = [
1144 ":RTPchange",
1145 ":RTPencode",
1146 ":RTPjitter",
1147 ":RTPtimeshift",
1148 ":acm_receive_test",
1149 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001150 ":audio_codec_speed_tests",
1151 ":audio_decoder_unittests",
1152 ":audio_decoder_unittests",
1153 ":delay_test",
1154 ":g711_test",
1155 ":g722_test",
1156 ":ilbc_test",
1157 ":insert_packet_with_timing",
1158 ":isac_api_test",
1159 ":isac_fix_test",
1160 ":isac_switch_samprate_test",
1161 ":isac_test",
1162 ":neteq_ilbc_quality_test",
1163 ":neteq_isac_quality_test",
1164 ":neteq_opus_quality_test",
1165 ":neteq_pcmu_quality_test",
1166 ":neteq_speed_test",
1167 ":rtp_analyze",
1168 ":rtpcat",
1169 ":webrtc_opus_fec_test",
1170 ]
1171 if (rtc_enable_protobuf) {
1172 public_deps += [ ":neteq_rtpplay" ]
1173 }
1174 }
1175
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001176 rtc_source_set("audio_coding_modules_tests") {
1177 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001178
1179 # Skip restricting visibility on mobile platforms since the tests on those
1180 # gets additional generated targets which would require many lines here to
1181 # cover (which would be confusing to read and hard to maintain).
1182 if (!is_android && !is_ios) {
1183 visibility = [ "//webrtc/modules:modules_tests" ]
1184 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001185 sources = [
1186 "test/APITest.cc",
1187 "test/Channel.cc",
1188 "test/EncodeDecodeTest.cc",
1189 "test/PCMFile.cc",
1190 "test/PacketLossTest.cc",
1191 "test/RTPFile.cc",
1192 "test/TestAllCodecs.cc",
1193 "test/TestRedFec.cc",
1194 "test/TestStereo.cc",
1195 "test/TestVADDTX.cc",
1196 "test/Tester.cc",
1197 "test/TwoWayCommunication.cc",
1198 "test/iSACTest.cc",
1199 "test/opus_test.cc",
1200 "test/target_delay_unittest.cc",
1201 "test/utility.cc",
1202 ]
1203 deps = [
1204 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001205 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001206 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001207 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001208 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001209 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001210 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001211 "../../base:rtc_base_approved",
1212 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001213 "../../test:test_support",
1214 ]
1215 defines = audio_coding_defines
1216 if (is_win) {
1217 cflags = [
1218 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1219 "/wd4373", # virtual function override.
1220 ]
1221 }
1222 if (!build_with_chromium && is_clang) {
1223 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1224 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1225 }
1226 }
1227
ehmaldonado021eef32017-01-05 07:09:50 -08001228 rtc_source_set("audio_coding_perf_tests") {
1229 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001230
1231 # Skip restricting visibility on mobile platforms since the tests on those
1232 # gets additional generated targets which would require many lines here to
1233 # cover (which would be confusing to read and hard to maintain).
1234 if (!is_android && !is_ios) {
1235 visibility = [ "//webrtc:webrtc_perf_tests" ]
1236 }
ehmaldonado021eef32017-01-05 07:09:50 -08001237 sources = [
1238 "codecs/opus/opus_complexity_unittest.cc",
1239 "neteq/test/neteq_performance_unittest.cc",
1240 ]
1241 deps = [
1242 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001243 ":neteq_test_tools",
ehmaldonado021eef32017-01-05 07:09:50 -08001244 ":webrtc_opus",
1245 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -07001246 "../../base:protobuf_utils",
ehmaldonado021eef32017-01-05 07:09:50 -08001247 "../../base:rtc_base_approved",
1248 "../../system_wrappers:system_wrappers",
1249 "../../test:test_support",
1250 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001251
ehmaldonado021eef32017-01-05 07:09:50 -08001252 if (!build_with_chromium && is_clang) {
1253 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1254 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1255 }
1256 }
1257
ehmaldonado38a21322016-09-02 04:10:34 -07001258 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001259 testonly = true
1260 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001261 "acm2/acm_receive_test.cc",
1262 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001263 ]
1264
kjellanderfb114242016-06-13 00:19:48 -07001265 defines = audio_coding_defines
1266
1267 deps = audio_coding_deps + [
1268 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001269 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001270 "../../api/audio_codecs:audio_codecs_api",
1271 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001272 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001273 "../../base:rtc_base_approved",
1274 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001275 "//testing/gtest",
1276 ]
1277 }
1278
ehmaldonado38a21322016-09-02 04:10:34 -07001279 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001280 testonly = true
1281 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001282 "acm2/acm_send_test.cc",
1283 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001284 ]
1285
kjellanderfb114242016-06-13 00:19:48 -07001286 defines = audio_coding_defines
1287
1288 deps = audio_coding_deps + [
1289 ":audio_coding",
kwiberg087bd342017-02-10 08:15:44 -08001290 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001291 ":audio_encoder_interface",
henrik.lundinb637a942017-04-28 00:59:45 -07001292 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001293 "../../base:rtc_base_approved",
1294 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001295 "//testing/gtest",
1296 ]
1297 }
1298
ehmaldonado38a21322016-09-02 04:10:34 -07001299 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001300 testonly = true
1301 sources = [
1302 "test/Channel.cc",
1303 "test/PCMFile.cc",
1304 "test/delay_test.cc",
1305 "test/utility.cc",
1306 ]
1307
aleloi333f2062016-07-28 01:21:29 -07001308 deps = [
1309 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001310 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001311 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001312 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001313 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001314 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001315 "../../system_wrappers",
1316 "../../system_wrappers:system_wrappers_default",
1317 "../../test:test_support",
1318 "../rtp_rtcp",
1319 "//testing/gtest",
1320 "//third_party/gflags:gflags",
1321 ]
1322 } # delay_test
1323
ehmaldonado38a21322016-09-02 04:10:34 -07001324 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001325 testonly = true
1326 sources = [
1327 "test/Channel.cc",
1328 "test/PCMFile.cc",
1329 "test/insert_packet_with_timing.cc",
1330 ]
1331
kjellandere40a7ee2016-10-16 23:56:12 -07001332 if (!build_with_chromium && is_clang) {
1333 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001334 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001335 }
1336
1337 deps = [
1338 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001339 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001340 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001341 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001342 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001343 "../../system_wrappers",
1344 "../../system_wrappers:system_wrappers_default",
1345 "../../test:test_support",
1346 "../rtp_rtcp",
1347 "//testing/gtest",
1348 "//third_party/gflags:gflags",
1349 ]
1350 } # insert_packet_with_timing
1351
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001352 audio_decoder_unittests_resources =
1353 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001354
1355 if (is_ios) {
1356 bundle_data("audio_decoder_unittests_bundle_data") {
1357 testonly = true
1358 sources = audio_decoder_unittests_resources
1359 outputs = [
1360 "{{bundle_resources_dir}}/{{source_file_part}}",
1361 ]
1362 }
1363 }
1364
ehmaldonado38a21322016-09-02 04:10:34 -07001365 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001366 testonly = true
1367 sources = [
1368 "neteq/audio_decoder_unittest.cc",
1369 ]
1370
kjellandere40a7ee2016-10-16 23:56:12 -07001371 if (!build_with_chromium && is_clang) {
1372 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001373 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001374 }
1375
1376 deps = []
1377
1378 defines = neteq_defines
1379
1380 deps += audio_coding_deps
1381 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001382 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001383 ":isac",
1384 ":isac_fix",
1385 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001386 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001387 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -07001388 "../../base:protobuf_utils",
kjellander6ceab082016-10-28 05:44:03 -07001389 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001390 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001391 "//testing/gtest",
1392 ]
1393
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001394 data = audio_decoder_unittests_resources
1395
charujainddf3e4a2016-08-01 07:49:42 -07001396 if (is_android) {
1397 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001398 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001399 }
kjellander32c4a202016-08-30 02:53:49 -07001400 if (is_ios) {
1401 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001402 }
1403 } # audio_decoder_unittests
1404
kjellanderfb114242016-06-13 00:19:48 -07001405 if (rtc_enable_protobuf) {
1406 proto_library("neteq_unittest_proto") {
1407 sources = [
1408 "neteq/neteq_unittest.proto",
1409 ]
kjellandere3e902e2017-02-28 08:01:46 -08001410 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001411 }
henrik.lundin03153f12016-06-21 05:38:42 -07001412
mbonadei3d7b0e22017-04-26 00:38:48 -07001413 rtc_static_library("rtc_event_log_source") {
1414 testonly = true
1415
1416 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1417 # Needs call.h to be moved to webrtc/api first.
1418 check_includes = false
1419
1420 sources = [
1421 "neteq/tools/rtc_event_log_source.cc",
1422 "neteq/tools/rtc_event_log_source.h",
1423 ]
1424
1425 if (!build_with_chromium && is_clang) {
1426 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1427 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1428 }
1429
1430 deps = [
1431 "../../base:rtc_base_approved",
1432 "../../logging:rtc_event_log_parser",
1433 ]
1434 public_deps = [
1435 "../../logging:rtc_event_log_proto",
1436 ]
1437 }
1438
ehmaldonado38a21322016-09-02 04:10:34 -07001439 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001440 testonly = true
1441 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001442 deps = [
1443 "..:module_api",
1444 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001445 sources = [
1446 "neteq/tools/neteq_rtpplay.cc",
1447 ]
1448
kjellandere40a7ee2016-10-16 23:56:12 -07001449 if (!build_with_chromium && is_clang) {
1450 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001451 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001452 }
1453
1454 if (is_win) {
1455 cflags = [
1456 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1457 "/wd4373", # virtual function override.
1458 ]
1459 }
1460
1461 deps += [
1462 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001463 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001464 "../..:webrtc_common",
1465 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001466 "../../system_wrappers:system_wrappers_default",
1467 "../../test:test_support",
1468 "//third_party/gflags",
1469 ]
1470 }
kjellanderfb114242016-06-13 00:19:48 -07001471 }
1472
ehmaldonado38a21322016-09-02 04:10:34 -07001473 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001474 testonly = true
1475 defines = []
1476 deps = []
1477 sources = [
1478 "codecs/isac/fix/test/isac_speed_test.cc",
1479 "codecs/opus/opus_speed_test.cc",
1480 "codecs/tools/audio_codec_speed_test.cc",
1481 "codecs/tools/audio_codec_speed_test.h",
1482 ]
1483
kjellandere40a7ee2016-10-16 23:56:12 -07001484 if (!build_with_chromium && is_clang) {
1485 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001486 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001487 }
1488
1489 if (is_android) {
1490 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001491 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001492 }
1493
1494 deps += [
1495 ":isac_fix",
1496 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001497 "../..:webrtc_common",
1498 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001499 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001500 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001501 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001502 "//testing/gtest",
1503 ]
1504 }
1505
ehmaldonado38a21322016-09-02 04:10:34 -07001506 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001507 testonly = true
1508 sources = [
1509 "neteq/tools/neteq_external_decoder_test.cc",
1510 "neteq/tools/neteq_external_decoder_test.h",
1511 "neteq/tools/neteq_performance_test.cc",
1512 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001513 ]
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" ]
kjellanderfb114242016-06-13 00:19:48 -07001518 }
1519
1520 deps = [
1521 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001522 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001523 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001524 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001525 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001526 "../../api/audio_codecs:audio_codecs_api",
1527 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001528 "../../base:rtc_base_approved",
1529 "../../system_wrappers",
1530 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001531 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001532 ]
1533 }
1534
ehmaldonado38a21322016-09-02 04:10:34 -07001535 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001536 testonly = true
1537 sources = [
1538 "neteq/tools/neteq_quality_test.cc",
1539 "neteq/tools/neteq_quality_test.h",
1540 ]
1541
kjellandere40a7ee2016-10-16 23:56:12 -07001542 if (!build_with_chromium && is_clang) {
1543 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001544 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001545 }
1546
1547 deps = [
1548 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001549 ":neteq_test_tools",
mbonadei1140f972017-04-26 03:38:35 -07001550 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001551 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001552 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001553 "../../base:rtc_base_approved",
1554 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001555 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001556 "//third_party/gflags",
1557 ]
1558 }
1559
henrik.lundinb637a942017-04-28 00:59:45 -07001560 config("neteq_tools_config") {
mbonadei3d7b0e22017-04-26 00:38:48 -07001561 include_dirs = [ "tools" ]
1562 }
1563
henrik.lundinb637a942017-04-28 00:59:45 -07001564 rtc_source_set("neteq_tools") {
mbonadei3d7b0e22017-04-26 00:38:48 -07001565 sources = [
mbonadei3d7b0e22017-04-26 00:38:48 -07001566 "neteq/tools/fake_decode_from_file.cc",
1567 "neteq/tools/fake_decode_from_file.h",
1568 "neteq/tools/input_audio_file.cc",
1569 "neteq/tools/input_audio_file.h",
mbonadei3d7b0e22017-04-26 00:38:48 -07001570 "neteq/tools/neteq_replacement_input.cc",
1571 "neteq/tools/neteq_replacement_input.h",
mbonadei3d7b0e22017-04-26 00:38:48 -07001572 "neteq/tools/resample_input_audio_file.cc",
1573 "neteq/tools/resample_input_audio_file.h",
mbonadei3d7b0e22017-04-26 00:38:48 -07001574 ]
1575
henrik.lundinb637a942017-04-28 00:59:45 -07001576 public_configs = [ ":neteq_tools_config" ]
mbonadei3d7b0e22017-04-26 00:38:48 -07001577
1578 if (!build_with_chromium && is_clang) {
1579 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1580 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1581 }
1582
1583 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001584 "../..:webrtc_common",
1585 "../../api/audio_codecs:audio_codecs_api",
1586 "../../base:rtc_base_approved",
1587 "../../common_audio",
1588 "../rtp_rtcp",
1589 ]
1590
1591 public_deps = [
1592 ":neteq_tools_minimal",
1593 ]
1594 }
1595
1596 rtc_source_set("neteq_test_tools") {
1597 testonly = true
1598 sources = [
1599 "neteq/tools/audio_checksum.h",
1600 "neteq/tools/audio_loop.cc",
1601 "neteq/tools/audio_loop.h",
1602 "neteq/tools/constant_pcm_packet_source.cc",
1603 "neteq/tools/constant_pcm_packet_source.h",
1604 "neteq/tools/output_audio_file.h",
1605 "neteq/tools/output_wav_file.h",
1606 "neteq/tools/rtp_file_source.cc",
1607 "neteq/tools/rtp_file_source.h",
1608 "neteq/tools/rtp_generator.cc",
1609 "neteq/tools/rtp_generator.h",
1610 ]
1611
1612 public_configs = [ ":neteq_tools_config" ]
1613
1614 if (!build_with_chromium && is_clang) {
1615 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1616 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1617 }
1618
1619 deps = [
mbonadei3d7b0e22017-04-26 00:38:48 -07001620 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001621 "..:module_api",
mbonadei3d7b0e22017-04-26 00:38:48 -07001622 "../..:webrtc_common",
mbonadei3d7b0e22017-04-26 00:38:48 -07001623 "../../base:rtc_base_approved",
mbonadei148d5a22017-04-28 05:24:50 -07001624 "../../base:rtc_base_tests_utils",
mbonadei3d7b0e22017-04-26 00:38:48 -07001625 "../../common_audio",
1626 "../../test:rtp_test_utils",
1627 "../rtp_rtcp",
1628 ]
1629
1630 public_deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001631 ":neteq_tools",
1632 ":neteq_tools_minimal",
mbonadei3d7b0e22017-04-26 00:38:48 -07001633 ]
1634
1635 if (rtc_enable_protobuf) {
1636 sources += [
1637 "neteq/tools/neteq_packet_source_input.cc",
1638 "neteq/tools/neteq_packet_source_input.h",
1639 ]
1640 deps += [ ":rtc_event_log_source" ]
1641 }
1642 }
1643
henrik.lundinb637a942017-04-28 00:59:45 -07001644 rtc_source_set("neteq_test_tools_deprecated") {
aleloi3022a342016-07-26 06:36:03 -07001645 testonly = true
1646 sources = [
1647 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1648 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1649 "neteq/test/NETEQTEST_RTPpacket.cc",
1650 "neteq/test/NETEQTEST_RTPpacket.h",
1651 ]
1652
1653 deps = [
1654 ":cng",
1655 ":g711",
1656 ":g722",
1657 ":ilbc",
1658 ":isac",
1659 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001660 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001661 "../..:webrtc_common",
1662 "//testing/gtest",
1663 ]
1664
1665 include_dirs = [
1666 "neteq/include",
1667 "neteq/test",
1668 "../../",
1669 ]
1670
1671 if (is_win) {
1672 cflags = [
1673 # Disable warnings to enable Win64 build, issue 1323.
1674 "/wd4267", # size_t to int truncation
1675 ]
1676 }
1677 }
aleloi47bded42016-07-26 06:46:19 -07001678
aleloi82667732016-08-02 01:45:50 -07001679 config("RTPencode_config") {
1680 defines = [
1681 "CODEC_ILBC",
1682 "CODEC_PCM16B",
1683 "CODEC_G711",
1684 "CODEC_G722",
1685 "CODEC_ISAC",
1686 "CODEC_PCM16B_WB",
1687 "CODEC_ISAC_SWB",
1688 "CODEC_PCM16B_32KHZ",
1689 "CODEC_PCM16B_48KHZ",
1690 "CODEC_CNGCODEC8",
1691 "CODEC_CNGCODEC16",
1692 "CODEC_CNGCODEC32",
1693 "CODEC_ATEVENT_DECODE",
1694 "CODEC_RED",
1695 "CODEC_OPUS",
1696 ]
1697 }
1698
ehmaldonado38a21322016-09-02 04:10:34 -07001699 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001700 testonly = true
1701
1702 deps = [
1703 # TODO(hlundin): Make RTPencode use ACM to encode files.
1704 ":cng",
1705 ":g711",
1706 ":g722",
1707 ":ilbc",
1708 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001709 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001710 ":neteq_test_tools_deprecated",
aleloi82667732016-08-02 01:45:50 -07001711 ":pcm16b",
1712 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001713 "../..:webrtc_common",
1714 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001715 "../../common_audio",
1716 ]
1717
1718 configs += [ ":RTPencode_config" ]
1719
1720 sources = [
1721 "neteq/test/RTPencode.cc",
1722 ]
1723
1724 include_dirs = [
1725 "neteq/include",
1726 "neteq/test",
1727 ]
1728
1729 if (is_win) {
1730 cflags = [
1731 # Disable warnings to enable Win64 build, issue 1323.
1732 "/wd4267", # size_t to int truncation
1733 ]
1734 }
1735 }
1736
ehmaldonado38a21322016-09-02 04:10:34 -07001737 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001738 testonly = true
1739
1740 sources = [
1741 "neteq/test/RTPchange.cc",
1742 ]
1743
1744 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001745 ":neteq_test_tools_deprecated",
aleloi76cbe192016-08-02 02:05:03 -07001746 ]
1747 }
1748
ehmaldonado38a21322016-09-02 04:10:34 -07001749 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001750 testonly = true
1751
1752 sources = [
1753 "neteq/tools/rtpcat.cc",
1754 ]
1755
1756 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001757 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001758 "../../system_wrappers:system_wrappers_default",
1759 "../../test:rtp_test_utils",
1760 "//testing/gtest",
1761 ]
1762 }
1763
ehmaldonado38a21322016-09-02 04:10:34 -07001764 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001765 testonly = true
1766
1767 sources = [
1768 "neteq/test/RTPtimeshift.cc",
1769 ]
1770
1771 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001772 ":neteq_test_tools_deprecated",
kjellander676e08f2016-12-07 08:23:27 -08001773 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001774 "//testing/gtest",
1775 ]
1776 }
1777
ehmaldonado38a21322016-09-02 04:10:34 -07001778 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001779 testonly = true
1780 deps = [
1781 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001782 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001783 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001784 "//testing/gtest",
1785 ]
1786 sources = [
1787 "neteq/test/RTPjitter.cc",
1788 ]
1789 }
1790
ehmaldonado38a21322016-09-02 04:10:34 -07001791 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001792 testonly = true
1793
1794 sources = [
1795 "neteq/tools/rtp_analyze.cc",
1796 ]
1797
1798 deps = [
1799 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001800 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001801 ":pcm16b",
1802 "../../system_wrappers:system_wrappers_default",
1803 "//testing/gtest",
1804 "//third_party/gflags:gflags",
1805 ]
1806
kjellandere40a7ee2016-10-16 23:56:12 -07001807 if (!build_with_chromium && is_clang) {
1808 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001809 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001810 }
1811 }
aleloi630c6d52016-08-10 02:11:30 -07001812
ehmaldonado38a21322016-09-02 04:10:34 -07001813 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001814 testonly = true
1815
1816 sources = [
1817 "neteq/test/neteq_opus_quality_test.cc",
1818 ]
1819
1820 deps = [
1821 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001822 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001823 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001824 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001825 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001826 "//testing/gtest",
1827 "//third_party/gflags",
1828 ]
aleloi630c6d52016-08-10 02:11:30 -07001829 }
aleloi116fd612016-08-10 04:16:36 -07001830
ehmaldonado38a21322016-09-02 04:10:34 -07001831 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001832 testonly = true
1833
1834 sources = [
1835 "neteq/test/neteq_speed_test.cc",
1836 ]
1837
1838 deps = [
1839 ":neteq",
1840 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001841 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001842 "../../system_wrappers:system_wrappers_default",
1843 "../../test:test_support",
1844 "//third_party/gflags",
1845 ]
1846 }
aleloi63910122016-08-10 04:41:14 -07001847
ehmaldonado38a21322016-09-02 04:10:34 -07001848 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001849 testonly = true
1850
1851 sources = [
1852 "neteq/test/neteq_ilbc_quality_test.cc",
1853 ]
1854
1855 deps = [
1856 ":ilbc",
1857 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001858 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001859 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001860 "../..:webrtc_common",
1861 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001862 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001863 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001864 "//testing/gtest",
1865 "//third_party/gflags",
1866 ]
1867 }
aleloi6df36dc2016-08-10 05:04:47 -07001868
ehmaldonado38a21322016-09-02 04:10:34 -07001869 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001870 testonly = true
1871
1872 sources = [
1873 "neteq/test/neteq_isac_quality_test.cc",
1874 ]
1875
1876 deps = [
1877 ":isac_fix",
1878 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001879 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001880 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001881 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001882 "//testing/gtest",
1883 "//third_party/gflags",
1884 ]
1885 }
aleloic4ac7002016-08-10 05:06:27 -07001886
ehmaldonado38a21322016-09-02 04:10:34 -07001887 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001888 testonly = true
1889
1890 sources = [
1891 "neteq/test/neteq_pcmu_quality_test.cc",
1892 ]
1893
1894 deps = [
1895 ":g711",
1896 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001897 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001898 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001899 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001900 "//testing/gtest",
1901 "//third_party/gflags",
1902 ]
1903 }
aleloib7186d02016-08-16 01:47:16 -07001904
ehmaldonado38a21322016-09-02 04:10:34 -07001905 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001906 testonly = true
1907
1908 sources = [
1909 "codecs/isac/fix/test/kenny.cc",
1910 ]
1911
1912 deps = [
1913 ":isac_fix",
1914 "../../test:test_support",
1915 ]
1916
1917 if (is_win) {
1918 cflags = [
1919 # Disable warnings to enable Win64 build, issue 1323.
1920 "/wd4267", # size_t to int truncation
1921 ]
1922 }
1923 }
aleloi16f55a12016-08-23 08:08:23 -07001924
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001925 config("isac_test_warnings_config") {
1926 if (is_win && is_clang) {
1927 cflags = [
1928 # Disable warnings failing when compiling with Clang on Windows.
1929 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1930 "-Wno-format",
1931 ]
1932 }
1933 }
1934
kjellander7439f972016-12-05 22:47:46 -08001935 rtc_source_set("isac_test_util") {
1936 testonly = true
1937 sources = [
1938 "codecs/isac/main/util/utility.c",
1939 ]
1940 }
1941
ehmaldonado38a21322016-09-02 04:10:34 -07001942 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001943 testonly = true
1944
1945 sources = [
1946 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001947 ]
1948
1949 include_dirs = [
1950 "codecs/isac/main/include",
1951 "codecs/isac/main/test",
1952 "codecs/isac/main/util",
1953 ]
1954
1955 deps = [
1956 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001957 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001958 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001959 ]
1960
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001961 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001962 }
1963
ehmaldonado38a21322016-09-02 04:10:34 -07001964 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001965 testonly = true
1966
1967 sources = [
1968 "codecs/g711/test/testG711.cc",
1969 ]
1970
aleloi16f55a12016-08-23 08:08:23 -07001971 deps = [
1972 ":g711",
1973 ]
1974 }
aleloi9a117842016-08-23 08:36:10 -07001975
ehmaldonado38a21322016-09-02 04:10:34 -07001976 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001977 testonly = true
1978
1979 sources = [
1980 "codecs/g722/test/testG722.cc",
1981 ]
1982
aleloi9a117842016-08-23 08:36:10 -07001983 deps = [
1984 ":g722",
1985 "../..:webrtc_common",
1986 ]
1987 }
ivoc2c670db2016-08-24 06:11:18 -07001988
ehmaldonado38a21322016-09-02 04:10:34 -07001989 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001990 testonly = true
1991
1992 sources = [
1993 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001994 ]
1995
aleloicfee2152016-08-29 04:09:19 -07001996 deps = [
1997 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001998 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001999 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07002000 ]
2001
2002 include_dirs = [
2003 "codecs/isac/main/include",
2004 "codecs/isac/main/test",
2005 "codecs/isac/main/util",
2006 ]
2007 }
2008
ehmaldonado38a21322016-09-02 04:10:34 -07002009 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002010 testonly = true
2011
2012 sources = [
2013 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002014 ]
2015
aleloicfee2152016-08-29 04:09:19 -07002016 deps = [
2017 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002018 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07002019 ]
2020
2021 include_dirs = [
2022 "codecs/isac/main/include",
2023 "codecs/isac/main/test",
2024 "codecs/isac/main/util",
2025 "../../common_audio/signal_processing/include",
2026 ]
2027 }
2028
ehmaldonado38a21322016-09-02 04:10:34 -07002029 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002030 testonly = true
2031
2032 sources = [
2033 "codecs/ilbc/test/iLBC_test.c",
2034 ]
2035
aleloicfee2152016-08-29 04:09:19 -07002036 deps = [
2037 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002038 ]
2039 }
2040
ehmaldonado38a21322016-09-02 04:10:34 -07002041 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002042 testonly = true
2043
2044 sources = [
2045 "codecs/opus/opus_fec_test.cc",
2046 ]
2047
2048 deps = [
2049 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07002050 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07002051 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08002052 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002053 "//testing/gtest",
2054 ]
2055
kjellandere40a7ee2016-10-16 23:56:12 -07002056 if (!build_with_chromium && is_clang) {
2057 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002058 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002059 }
2060 }
ehmaldonado36268652017-01-19 08:27:11 -08002061
2062 rtc_source_set("audio_coding_unittests") {
2063 testonly = true
2064
kjellandere0629c02017-04-25 04:04:50 -07002065 # Skip restricting visibility on mobile platforms since the tests on those
2066 # gets additional generated targets which would require many lines here to
2067 # cover (which would be confusing to read and hard to maintain).
2068 if (!is_android && !is_ios) {
2069 visibility = [ "//webrtc/modules:modules_unittests" ]
2070 }
ehmaldonado36268652017-01-19 08:27:11 -08002071 sources = [
2072 "acm2/acm_receiver_unittest.cc",
2073 "acm2/audio_coding_module_unittest.cc",
2074 "acm2/call_statistics_unittest.cc",
2075 "acm2/codec_manager_unittest.cc",
2076 "acm2/rent_a_codec_unittest.cc",
2077 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2078 "audio_network_adaptor/bitrate_controller_unittest.cc",
2079 "audio_network_adaptor/channel_controller_unittest.cc",
2080 "audio_network_adaptor/controller_manager_unittest.cc",
2081 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002082 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002083 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2084 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002085 "audio_network_adaptor/frame_length_controller_unittest.cc",
2086 "audio_network_adaptor/mock/mock_controller.h",
2087 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002088 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002089 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002090 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002091 "codecs/cng/audio_encoder_cng_unittest.cc",
2092 "codecs/cng/cng_unittest.cc",
2093 "codecs/ilbc/ilbc_unittest.cc",
2094 "codecs/isac/fix/source/filterbanks_unittest.cc",
2095 "codecs/isac/fix/source/filters_unittest.cc",
2096 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2097 "codecs/isac/fix/source/transform_unittest.cc",
2098 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2099 "codecs/isac/main/source/isac_unittest.cc",
2100 "codecs/isac/unittest.cc",
2101 "codecs/legacy_encoded_audio_frame_unittest.cc",
2102 "codecs/mock/mock_audio_encoder.cc",
2103 "codecs/opus/audio_encoder_opus_unittest.cc",
2104 "codecs/opus/opus_unittest.cc",
2105 "codecs/red/audio_encoder_copy_red_unittest.cc",
2106 "neteq/audio_multi_vector_unittest.cc",
2107 "neteq/audio_vector_unittest.cc",
2108 "neteq/background_noise_unittest.cc",
2109 "neteq/buffer_level_filter_unittest.cc",
2110 "neteq/comfort_noise_unittest.cc",
2111 "neteq/decision_logic_unittest.cc",
2112 "neteq/decoder_database_unittest.cc",
2113 "neteq/delay_manager_unittest.cc",
2114 "neteq/delay_peak_detector_unittest.cc",
2115 "neteq/dsp_helper_unittest.cc",
2116 "neteq/dtmf_buffer_unittest.cc",
2117 "neteq/dtmf_tone_generator_unittest.cc",
2118 "neteq/expand_unittest.cc",
2119 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002120 "neteq/mock/mock_buffer_level_filter.h",
2121 "neteq/mock/mock_decoder_database.h",
2122 "neteq/mock/mock_delay_manager.h",
2123 "neteq/mock/mock_delay_peak_detector.h",
2124 "neteq/mock/mock_dtmf_buffer.h",
2125 "neteq/mock/mock_dtmf_tone_generator.h",
2126 "neteq/mock/mock_expand.h",
2127 "neteq/mock/mock_external_decoder_pcm16b.h",
2128 "neteq/mock/mock_packet_buffer.h",
2129 "neteq/mock/mock_red_payload_splitter.h",
2130 "neteq/nack_tracker_unittest.cc",
2131 "neteq/neteq_external_decoder_unittest.cc",
2132 "neteq/neteq_impl_unittest.cc",
2133 "neteq/neteq_network_stats_unittest.cc",
2134 "neteq/neteq_stereo_unittest.cc",
2135 "neteq/neteq_unittest.cc",
2136 "neteq/normal_unittest.cc",
2137 "neteq/packet_buffer_unittest.cc",
2138 "neteq/post_decode_vad_unittest.cc",
2139 "neteq/random_vector_unittest.cc",
2140 "neteq/red_payload_splitter_unittest.cc",
2141 "neteq/sync_buffer_unittest.cc",
2142 "neteq/tick_timer_unittest.cc",
2143 "neteq/time_stretch_unittest.cc",
2144 "neteq/timestamp_scaler_unittest.cc",
2145 "neteq/tools/input_audio_file_unittest.cc",
2146 "neteq/tools/packet_unittest.cc",
2147 ]
2148
2149 deps = [
2150 ":acm_receive_test",
2151 ":acm_send_test",
2152 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002153 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002154 ":audio_encoder_interface",
2155 ":audio_format_conversion",
2156 ":audio_network_adaptor",
ossua1a040a2017-04-06 10:03:21 -07002157 ":builtin_audio_encoder_factory",
ehmaldonado36268652017-01-19 08:27:11 -08002158 ":cng",
2159 ":g711",
2160 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002161 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002162 ":isac_c",
2163 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002164 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002165 ":neteq",
2166 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002167 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002168 ":pcm16b",
2169 ":red",
2170 ":rent_a_codec",
2171 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002172 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002173 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002174 "../../api/audio_codecs:audio_codecs_api",
2175 "../../api/audio_codecs:builtin_audio_decoder_factory",
mbonadei7c2c8432017-04-07 00:59:12 -07002176 "../../base:protobuf_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002177 "../../base:rtc_base",
2178 "../../base:rtc_base_approved",
2179 "../../base:rtc_base_tests_utils",
2180 "../../common_audio",
2181 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002182 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002183 "../../test:field_trial",
2184 "../../test:rtp_test_utils",
2185 "../../test:test_common",
2186 "../../test:test_support",
2187 "//testing/gmock",
2188 "//testing/gtest",
2189 "//third_party/gflags",
2190 ]
2191
2192 defines = audio_coding_defines
2193
2194 if (rtc_enable_protobuf) {
2195 defines += [
2196 "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP",
2197 "WEBRTC_NETEQ_UNITTEST_BITEXACT",
2198 ]
2199 deps += [
2200 ":ana_config_proto",
2201 ":neteq_unittest_proto",
2202 ]
2203 }
2204
2205 if (!build_with_chromium && is_clang) {
2206 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2207 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2208 }
2209 }
kjellanderfb114242016-06-13 00:19:48 -07002210}
kwiberg087bd342017-02-10 08:15:44 -08002211
2212# For backwards compatibility only! Use
2213# webrtc/api/audio_codecs:audio_codecs_api instead.
2214# TODO(kwiberg): Remove this.
2215rtc_source_set("audio_decoder_interface") {
2216 sources = [
2217 "codecs/audio_decoder.h",
2218 ]
2219 deps = [
2220 "../../api/audio_codecs:audio_codecs_api",
2221 ]
2222}
2223
2224# For backwards compatibility only! Use
2225# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2226# TODO(kwiberg): Remove this.
2227rtc_source_set("builtin_audio_decoder_factory") {
2228 sources = [
2229 "codecs/builtin_audio_decoder_factory.h",
2230 ]
2231 deps = [
2232 "../../api/audio_codecs:builtin_audio_decoder_factory",
2233 ]
2234}