blob: 8d92c467193903f3d66f8eaaed98d1f2baa1e10a [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",
kwiberg529662a2017-09-04 05:43:17 -070049 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -080050 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -070051 "../../rtc_base:rtc_base_approved",
kwibergda2bf4e2016-10-24 13:47:09 -070052 ]
53}
54
kjellanderb62dbbe2016-09-23 00:38:52 -070055rtc_static_library("rent_a_codec") {
kwibergfce4a942015-10-27 11:40:24 -070056 sources = [
kjellander3e6db232015-11-26 04:44:54 -080057 "acm2/acm_codec_database.cc",
58 "acm2/acm_codec_database.h",
59 "acm2/rent_a_codec.cc",
60 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -070061 ]
kjellander676e08f2016-12-07 08:23:27 -080062 deps = [
kwiberg529662a2017-09-04 05:43:17 -070063 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -080064 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -080065 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -070066 "../../rtc_base:protobuf_utils",
67 "../../rtc_base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -080068 "../../system_wrappers",
69 ":audio_coding_module_typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -080070 ":isac_common",
71 ":isac_fix_c",
72 ":neteq_decoder_enum",
kjellander676e08f2016-12-07 08:23:27 -080073 ] + audio_codec_deps
mbonadei7c2c8432017-04-07 00:59:12 -070074
kwiberg0edb05b2016-01-19 05:54:28 -080075 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -070076}
77
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000078config("audio_coding_config") {
79 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -080080 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010081 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000082 ]
83}
84
kwiberg65cb70d2017-03-03 06:16:28 -080085rtc_source_set("audio_coding_module_typedefs") {
86 sources = [
87 "include/audio_coding_module_typedefs.h",
88 ]
89 deps = [
mbonadei1140f972017-04-26 03:38:35 -070090 "..:module_api",
kwiberg65cb70d2017-03-03 06:16:28 -080091 "../..:webrtc_common",
92 ]
93}
94
kjellanderb62dbbe2016-09-23 00:38:52 -070095rtc_static_library("audio_coding") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000096 sources = [
kjellander3e6db232015-11-26 04:44:54 -080097 "acm2/acm_receiver.cc",
98 "acm2/acm_receiver.h",
99 "acm2/acm_resampler.cc",
100 "acm2/acm_resampler.h",
101 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800102 "acm2/call_statistics.cc",
103 "acm2/call_statistics.h",
104 "acm2/codec_manager.cc",
105 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800106 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000107 ]
108
109 defines = []
110
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700111 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000112
kjellanderfb114242016-06-13 00:19:48 -0700113 if (rtc_include_opus) {
114 public_deps = [
115 ":webrtc_opus",
116 ]
117 }
118
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000119 if (is_win) {
120 cflags = [
121 # TODO(kjellander): Bug 261: fix this warning.
122 "/wd4373", # virtual function override.
123 ]
124 }
125
kjellanderfb114242016-06-13 00:19:48 -0700126 deps = audio_coding_deps + [
mbonadei1140f972017-04-26 03:38:35 -0700127 "..:module_api",
kwiberg529662a2017-09-04 05:43:17 -0700128 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800129 "../../api/audio_codecs:audio_codecs_api",
130 "../../api/audio_codecs:builtin_audio_decoder_factory",
kwiberg65cb70d2017-03-03 06:16:28 -0800131 ":audio_coding_module_typedefs",
kwiberg0edb05b2016-01-19 05:54:28 -0800132 ":neteq",
133 ":rent_a_codec",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700134 "../../rtc_base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -0700135 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800136 ]
kjellanderfb114242016-06-13 00:19:48 -0700137 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000138}
139
kwiberg087bd342017-02-10 08:15:44 -0800140rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000141 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700142 "codecs/legacy_encoded_audio_frame.cc",
143 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000144 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200145 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700146 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800147 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700148 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200149 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000150}
151
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000152config("cng_config") {
153 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000154 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000155 "codecs/cng/include",
156 ]
157}
158
kjellanderb62dbbe2016-09-23 00:38:52 -0700159rtc_static_library("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000160 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000161 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100162 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700163 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100164 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000165 ]
166
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700167 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000168
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000169 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800170 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700171 "../../api:array_view",
ossueb1fde42017-05-02 06:46:30 -0700172 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100173 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700174 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000175 ]
176}
177
178config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200179 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000180}
181
kjellanderb62dbbe2016-09-23 00:38:52 -0700182rtc_static_library("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000183 sources = [
184 "codecs/red/audio_encoder_copy_red.cc",
185 "codecs/red/audio_encoder_copy_red.h",
186 ]
187
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700188 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000189
190 deps = [
ossueb1fde42017-05-02 06:46:30 -0700191 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100192 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700193 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000194 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000195}
196
197config("g711_config") {
198 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000199 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000200 "codecs/g711/include",
201 ]
202}
203
kjellanderb62dbbe2016-09-23 00:38:52 -0700204rtc_static_library("g711") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000205 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700206 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100207 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000208 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100209 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000210 ]
211
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700212 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000213
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200214 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800215 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800216 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800217 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700218 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200219 ]
kjellander7439f972016-12-05 22:47:46 -0800220 public_deps = [
221 ":g711_c",
222 ]
223}
224
225rtc_source_set("g711_c") {
226 visibility = [ ":*" ] # Only targets in this file can depend on this.
227 sources = [
228 "codecs/g711/g711.c",
229 "codecs/g711/g711.h",
230 "codecs/g711/g711_interface.c",
231 "codecs/g711/g711_interface.h",
232 ]
kjellander676e08f2016-12-07 08:23:27 -0800233 deps = [
234 "../..:webrtc_common",
235 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000236}
237
238config("g722_config") {
239 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000240 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000241 "codecs/g722/include",
242 ]
243}
244
kjellanderb62dbbe2016-09-23 00:38:52 -0700245rtc_static_library("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000246 sources = [
kwibergada4c132015-09-17 03:12:35 -0700247 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100248 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000249 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100250 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000251 ]
252
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700253 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000254
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200255 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800256 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800257 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800258 "../../api/audio_codecs:audio_codecs_api",
kwibergb8727ae2017-06-17 17:41:59 -0700259 "../../api/audio_codecs/g722:audio_encoder_g722_config",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700260 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200261 ]
kjellander7439f972016-12-05 22:47:46 -0800262 public_deps = [
263 ":g722_c",
264 ]
265}
266
267rtc_source_set("g722_c") {
268 visibility = [ ":*" ] # Only targets in this file can depend on this.
269 sources = [
270 "codecs/g722/g722_decode.c",
271 "codecs/g722/g722_enc_dec.h",
272 "codecs/g722/g722_encode.c",
273 "codecs/g722/g722_interface.c",
274 "codecs/g722/g722_interface.h",
275 ]
kjellander676e08f2016-12-07 08:23:27 -0800276 deps = [
277 "../..:webrtc_common",
278 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000279}
280
281config("ilbc_config") {
282 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000283 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100284 "codecs/ilbc/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000285 ]
286}
287
kjellanderb62dbbe2016-09-23 00:38:52 -0700288rtc_static_library("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000289 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700290 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100291 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200292 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100293 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800294 ]
295
296 public_configs = [ ":ilbc_config" ]
297
298 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800299 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800300 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800301 "../../api/audio_codecs:audio_codecs_api",
solenbergdb3c9b02017-06-28 02:05:04 -0700302 "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
kjellander7439f972016-12-05 22:47:46 -0800303 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700304 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800305 ]
306 public_deps = [
307 ":ilbc_c",
308 ]
309}
310
311rtc_source_set("ilbc_c") {
312 visibility = [ ":*" ] # Only targets in this file can depend on this.
313 sources = [
314 "codecs/ilbc/abs_quant.c",
315 "codecs/ilbc/abs_quant.h",
316 "codecs/ilbc/abs_quant_loop.c",
317 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000318 "codecs/ilbc/augmented_cb_corr.c",
319 "codecs/ilbc/augmented_cb_corr.h",
320 "codecs/ilbc/bw_expand.c",
321 "codecs/ilbc/bw_expand.h",
322 "codecs/ilbc/cb_construct.c",
323 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200324 "codecs/ilbc/cb_mem_energy.c",
325 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000326 "codecs/ilbc/cb_mem_energy_augmentation.c",
327 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000328 "codecs/ilbc/cb_mem_energy_calc.c",
329 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000330 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200331 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000332 "codecs/ilbc/cb_search_core.c",
333 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000334 "codecs/ilbc/cb_update_best_index.c",
335 "codecs/ilbc/cb_update_best_index.h",
336 "codecs/ilbc/chebyshev.c",
337 "codecs/ilbc/chebyshev.h",
338 "codecs/ilbc/comp_corr.c",
339 "codecs/ilbc/comp_corr.h",
340 "codecs/ilbc/constants.c",
341 "codecs/ilbc/constants.h",
342 "codecs/ilbc/create_augmented_vec.c",
343 "codecs/ilbc/create_augmented_vec.h",
344 "codecs/ilbc/decode.c",
345 "codecs/ilbc/decode.h",
346 "codecs/ilbc/decode_residual.c",
347 "codecs/ilbc/decode_residual.h",
348 "codecs/ilbc/decoder_interpolate_lsf.c",
349 "codecs/ilbc/decoder_interpolate_lsf.h",
350 "codecs/ilbc/defines.h",
351 "codecs/ilbc/do_plc.c",
352 "codecs/ilbc/do_plc.h",
353 "codecs/ilbc/encode.c",
354 "codecs/ilbc/encode.h",
355 "codecs/ilbc/energy_inverse.c",
356 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200357 "codecs/ilbc/enh_upsample.c",
358 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000359 "codecs/ilbc/enhancer.c",
360 "codecs/ilbc/enhancer.h",
361 "codecs/ilbc/enhancer_interface.c",
362 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000363 "codecs/ilbc/filtered_cb_vecs.c",
364 "codecs/ilbc/filtered_cb_vecs.h",
365 "codecs/ilbc/frame_classify.c",
366 "codecs/ilbc/frame_classify.h",
367 "codecs/ilbc/gain_dequant.c",
368 "codecs/ilbc/gain_dequant.h",
369 "codecs/ilbc/gain_quant.c",
370 "codecs/ilbc/gain_quant.h",
371 "codecs/ilbc/get_cd_vec.c",
372 "codecs/ilbc/get_cd_vec.h",
373 "codecs/ilbc/get_lsp_poly.c",
374 "codecs/ilbc/get_lsp_poly.h",
375 "codecs/ilbc/get_sync_seq.c",
376 "codecs/ilbc/get_sync_seq.h",
377 "codecs/ilbc/hp_input.c",
378 "codecs/ilbc/hp_input.h",
379 "codecs/ilbc/hp_output.c",
380 "codecs/ilbc/hp_output.h",
381 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100382 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000383 "codecs/ilbc/index_conv_dec.c",
384 "codecs/ilbc/index_conv_dec.h",
385 "codecs/ilbc/index_conv_enc.c",
386 "codecs/ilbc/index_conv_enc.h",
387 "codecs/ilbc/init_decode.c",
388 "codecs/ilbc/init_decode.h",
389 "codecs/ilbc/init_encode.c",
390 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000391 "codecs/ilbc/interpolate.c",
392 "codecs/ilbc/interpolate.h",
393 "codecs/ilbc/interpolate_samples.c",
394 "codecs/ilbc/interpolate_samples.h",
395 "codecs/ilbc/lpc_encode.c",
396 "codecs/ilbc/lpc_encode.h",
397 "codecs/ilbc/lsf_check.c",
398 "codecs/ilbc/lsf_check.h",
399 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
400 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
401 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
402 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
403 "codecs/ilbc/lsf_to_lsp.c",
404 "codecs/ilbc/lsf_to_lsp.h",
405 "codecs/ilbc/lsf_to_poly.c",
406 "codecs/ilbc/lsf_to_poly.h",
407 "codecs/ilbc/lsp_to_lsf.c",
408 "codecs/ilbc/lsp_to_lsf.h",
409 "codecs/ilbc/my_corr.c",
410 "codecs/ilbc/my_corr.h",
411 "codecs/ilbc/nearest_neighbor.c",
412 "codecs/ilbc/nearest_neighbor.h",
413 "codecs/ilbc/pack_bits.c",
414 "codecs/ilbc/pack_bits.h",
415 "codecs/ilbc/poly_to_lsf.c",
416 "codecs/ilbc/poly_to_lsf.h",
417 "codecs/ilbc/poly_to_lsp.c",
418 "codecs/ilbc/poly_to_lsp.h",
419 "codecs/ilbc/refiner.c",
420 "codecs/ilbc/refiner.h",
421 "codecs/ilbc/simple_interpolate_lsf.c",
422 "codecs/ilbc/simple_interpolate_lsf.h",
423 "codecs/ilbc/simple_lpc_analysis.c",
424 "codecs/ilbc/simple_lpc_analysis.h",
425 "codecs/ilbc/simple_lsf_dequant.c",
426 "codecs/ilbc/simple_lsf_dequant.h",
427 "codecs/ilbc/simple_lsf_quant.c",
428 "codecs/ilbc/simple_lsf_quant.h",
429 "codecs/ilbc/smooth.c",
430 "codecs/ilbc/smooth.h",
431 "codecs/ilbc/smooth_out_data.c",
432 "codecs/ilbc/smooth_out_data.h",
433 "codecs/ilbc/sort_sq.c",
434 "codecs/ilbc/sort_sq.h",
435 "codecs/ilbc/split_vq.c",
436 "codecs/ilbc/split_vq.h",
437 "codecs/ilbc/state_construct.c",
438 "codecs/ilbc/state_construct.h",
439 "codecs/ilbc/state_search.c",
440 "codecs/ilbc/state_search.h",
441 "codecs/ilbc/swap_bytes.c",
442 "codecs/ilbc/swap_bytes.h",
443 "codecs/ilbc/unpack_bits.c",
444 "codecs/ilbc/unpack_bits.h",
445 "codecs/ilbc/vq3.c",
446 "codecs/ilbc/vq3.h",
447 "codecs/ilbc/vq4.c",
448 "codecs/ilbc/vq4.h",
449 "codecs/ilbc/window32_w32.c",
450 "codecs/ilbc/window32_w32.h",
451 "codecs/ilbc/xcorr_coef.c",
452 "codecs/ilbc/xcorr_coef.h",
453 ]
454
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700455 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000456
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000457 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800458 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800459 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100460 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700461 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000462 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000463}
464
kjellanderb62dbbe2016-09-23 00:38:52 -0700465rtc_static_library("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700466 sources = [
467 "codecs/isac/audio_encoder_isac_t.h",
468 "codecs/isac/audio_encoder_isac_t_impl.h",
469 "codecs/isac/locked_bandwidth_info.cc",
470 "codecs/isac/locked_bandwidth_info.h",
471 ]
kjellander676e08f2016-12-07 08:23:27 -0800472 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800473 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700474 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700475 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -0800476 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700477}
478
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000479config("isac_config") {
480 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000481 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100482 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000483 ]
484}
485
kjellanderb62dbbe2016-09-23 00:38:52 -0700486rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000487 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800488 "codecs/isac/main/include/audio_decoder_isac.h",
489 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800490 "codecs/isac/main/source/audio_decoder_isac.cc",
491 "codecs/isac/main/source/audio_encoder_isac.cc",
492 ]
493
494 deps = [
kjellander7439f972016-12-05 22:47:46 -0800495 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800496 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800497 ]
498 public_deps = [
499 ":isac_c",
500 ]
501}
502
503rtc_static_library("isac_c") {
504 visibility = [ ":*" ] # Only targets in this file can depend on this.
505 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100506 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000507 "codecs/isac/main/source/arith_routines.c",
508 "codecs/isac/main/source/arith_routines.h",
509 "codecs/isac/main/source/arith_routines_hist.c",
510 "codecs/isac/main/source/arith_routines_logist.c",
511 "codecs/isac/main/source/bandwidth_estimator.c",
512 "codecs/isac/main/source/bandwidth_estimator.h",
513 "codecs/isac/main/source/codec.h",
514 "codecs/isac/main/source/crc.c",
515 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000516 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200517 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000518 "codecs/isac/main/source/encode.c",
519 "codecs/isac/main/source/encode_lpc_swb.c",
520 "codecs/isac/main/source/encode_lpc_swb.h",
521 "codecs/isac/main/source/entropy_coding.c",
522 "codecs/isac/main/source/entropy_coding.h",
523 "codecs/isac/main/source/fft.c",
524 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200525 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000526 "codecs/isac/main/source/filterbank_tables.c",
527 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200528 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000529 "codecs/isac/main/source/intialize.c",
530 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200531 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000532 "codecs/isac/main/source/lattice.c",
533 "codecs/isac/main/source/lpc_analysis.c",
534 "codecs/isac/main/source/lpc_analysis.h",
535 "codecs/isac/main/source/lpc_gain_swb_tables.c",
536 "codecs/isac/main/source/lpc_gain_swb_tables.h",
537 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
538 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
539 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
540 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
541 "codecs/isac/main/source/lpc_tables.c",
542 "codecs/isac/main/source/lpc_tables.h",
543 "codecs/isac/main/source/os_specific_inline.h",
544 "codecs/isac/main/source/pitch_estimator.c",
545 "codecs/isac/main/source/pitch_estimator.h",
546 "codecs/isac/main/source/pitch_filter.c",
547 "codecs/isac/main/source/pitch_gain_tables.c",
548 "codecs/isac/main/source/pitch_gain_tables.h",
549 "codecs/isac/main/source/pitch_lag_tables.c",
550 "codecs/isac/main/source/pitch_lag_tables.h",
551 "codecs/isac/main/source/settings.h",
552 "codecs/isac/main/source/spectrum_ar_model_tables.c",
553 "codecs/isac/main/source/spectrum_ar_model_tables.h",
554 "codecs/isac/main/source/structs.h",
555 "codecs/isac/main/source/transform.c",
556 ]
557
558 if (is_linux) {
559 libs = [ "m" ]
560 }
561
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700562 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000563
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000564 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800565 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700566 "../..:webrtc_common",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000567 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700568 "../../rtc_base:compile_assert_c",
569 "../../rtc_base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000570 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000571}
572
573config("isac_fix_config") {
574 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000575 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100576 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000577 ]
578}
579
kjellanderb62dbbe2016-09-23 00:38:52 -0700580rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000581 sources = [
kjellander7439f972016-12-05 22:47:46 -0800582 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
583 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
584 ]
585
586 public_configs = [ ":isac_fix_config" ]
587
588 deps = [
kjellander7439f972016-12-05 22:47:46 -0800589 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800590 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800591 "../../common_audio",
592 "../../system_wrappers",
593 ]
594 public_deps = [
595 ":isac_fix_c",
596 ]
597
598 if (rtc_build_with_neon) {
599 deps += [ ":isac_neon" ]
600 }
601}
602
kwiberga6ca5182017-01-30 05:28:54 -0800603rtc_source_set("isac_fix_common") {
604 visibility = [ ":*" ] # Only targets in this file can depend on this.
605 sources = [
606 "codecs/isac/fix/source/codec.h",
607 "codecs/isac/fix/source/fft.c",
608 "codecs/isac/fix/source/fft.h",
609 "codecs/isac/fix/source/settings.h",
610 ]
611 public_configs = [ ":isac_fix_config" ]
612}
kjellander676e08f2016-12-07 08:23:27 -0800613
mbonadei5c0d7032017-07-06 03:48:55 -0700614rtc_source_set("isac_fix_c_arm_asm") {
615 sources = []
616 if (current_cpu == "arm" && arm_version >= 7) {
617 sources += [
618 "codecs/isac/fix/source/lattice_armv7.S",
619 "codecs/isac/fix/source/pitch_filter_armv6.S",
620 ]
621 }
622}
623
kwiberga6ca5182017-01-30 05:28:54 -0800624rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800625 visibility = [ ":*" ] # Only targets in this file can depend on this.
626 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100627 "codecs/isac/fix/include/audio_decoder_isacfix.h",
628 "codecs/isac/fix/include/audio_encoder_isacfix.h",
629 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000630 "codecs/isac/fix/source/arith_routines.c",
631 "codecs/isac/fix/source/arith_routines_hist.c",
632 "codecs/isac/fix/source/arith_routines_logist.c",
633 "codecs/isac/fix/source/arith_routins.h",
634 "codecs/isac/fix/source/bandwidth_estimator.c",
635 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000636 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200637 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000638 "codecs/isac/fix/source/decode_plc.c",
639 "codecs/isac/fix/source/encode.c",
640 "codecs/isac/fix/source/entropy_coding.c",
641 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000642 "codecs/isac/fix/source/filterbank_tables.c",
643 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200644 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000645 "codecs/isac/fix/source/filters.c",
646 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200647 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000648 "codecs/isac/fix/source/isacfix.c",
649 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700650 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000651 "codecs/isac/fix/source/lpc_masking_model.c",
652 "codecs/isac/fix/source/lpc_masking_model.h",
653 "codecs/isac/fix/source/lpc_tables.c",
654 "codecs/isac/fix/source/lpc_tables.h",
655 "codecs/isac/fix/source/pitch_estimator.c",
656 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700657 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000658 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700659 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000660 "codecs/isac/fix/source/pitch_gain_tables.c",
661 "codecs/isac/fix/source/pitch_gain_tables.h",
662 "codecs/isac/fix/source/pitch_lag_tables.c",
663 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000664 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
665 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
666 "codecs/isac/fix/source/structs.h",
667 "codecs/isac/fix/source/transform.c",
668 "codecs/isac/fix/source/transform_tables.c",
669 ]
670
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700671 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000672
kjellander676e08f2016-12-07 08:23:27 -0800673 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800674 ":isac_common",
675 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800676 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800677 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700678 "../../rtc_base:compile_assert_c",
679 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -0800680 "../../system_wrappers",
681 ]
682
kwiberga6ca5182017-01-30 05:28:54 -0800683 public_deps = [
684 ":isac_fix_common",
685 ]
686
mbonadeie5dc3ce2017-01-25 05:34:46 -0800687 if (rtc_build_with_neon) {
688 deps += [ ":isac_neon" ]
689 }
690
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700691 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700692 sources -= [
693 "codecs/isac/fix/source/lattice_c.c",
694 "codecs/isac/fix/source/pitch_filter_c.c",
695 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700696 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000697 }
698
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000699 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000700 sources += [
701 "codecs/isac/fix/source/entropy_coding_mips.c",
702 "codecs/isac/fix/source/filters_mips.c",
703 "codecs/isac/fix/source/lattice_mips.c",
704 "codecs/isac/fix/source/pitch_estimator_mips.c",
705 "codecs/isac/fix/source/transform_mips.c",
706 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700707 sources -= [
708 "codecs/isac/fix/source/lattice_c.c",
709 "codecs/isac/fix/source/pitch_estimator_c.c",
710 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000711 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200712 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000713 }
714 if (mips_dsp_rev > 1) {
715 sources += [
716 "codecs/isac/fix/source/lpc_masking_model_mips.c",
717 "codecs/isac/fix/source/pitch_filter_mips.c",
718 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200719 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000720 }
721 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000722}
723
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700724if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700725 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800726 sources = [
727 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800728 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800729 "codecs/isac/fix/source/filters_neon.c",
730 "codecs/isac/fix/source/lattice_neon.c",
731 "codecs/isac/fix/source/transform_neon.c",
732 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000733
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700734 if (current_cpu != "arm64") {
735 # Enable compilation for the NEON instruction set. This is needed
736 # since //build/config/arm.gni only enables NEON for iOS, not Android.
737 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700738 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700739 cflags = [ "-mfpu=neon" ]
740 }
741
742 # Disable LTO on NEON targets due to compiler bug.
743 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000744 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000745 cflags -= [
746 "-flto",
747 "-ffat-lto-objects",
748 ]
749 }
750
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200751 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800752 ":isac_fix_common",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200753 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700754 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200755 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000756 }
757}
758
759config("pcm16b_config") {
760 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000761 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000762 "codecs/pcm16b/include",
763 ]
764}
765
kjellanderb62dbbe2016-09-23 00:38:52 -0700766rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000767 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200768 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100769 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200770 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100771 "codecs/pcm16b/audio_encoder_pcm16b.h",
kwiberg7ea6e592017-08-16 06:12:57 -0700772 "codecs/pcm16b/pcm16b_common.cc",
773 "codecs/pcm16b/pcm16b_common.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000774 ]
775
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000776 deps = [
777 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800778 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800779 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800780 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700781 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000782 ]
kjellander7439f972016-12-05 22:47:46 -0800783 public_deps = [
784 ":pcm16b_c",
785 ]
786 public_configs = [ ":pcm16b_config" ]
787}
788
789rtc_source_set("pcm16b_c") {
790 visibility = [ ":*" ] # Only targets in this file can depend on this.
791 sources = [
792 "codecs/pcm16b/pcm16b.c",
793 "codecs/pcm16b/pcm16b.h",
794 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000795
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700796 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800797 deps = [
798 "../..:webrtc_common",
799 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000800}
801
802config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000803 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000804}
805
kjellanderb62dbbe2016-09-23 00:38:52 -0700806rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000807 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200808 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100809 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000810 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100811 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000812 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000813
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200814 deps = [
minyue41b9c802016-10-06 07:13:54 -0700815 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800816 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800817 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700818 "../../api/audio_codecs/opus:audio_encoder_opus_config",
michaelt566d8202017-01-12 10:17:38 -0800819 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700820 "../../rtc_base:rtc_base_approved",
821 "../../rtc_base:rtc_numerics",
kjellander676e08f2016-12-07 08:23:27 -0800822 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200823 ]
kjellander7439f972016-12-05 22:47:46 -0800824 public_deps = [
825 ":webrtc_opus_c",
kwiberge5eb7242017-08-25 03:10:50 -0700826 "../../rtc_base:protobuf_utils",
kjellander7439f972016-12-05 22:47:46 -0800827 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000828
michaelta55f0212017-02-02 07:47:19 -0800829 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800830
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000831 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800832 public_deps += [ rtc_opus_dir ]
833 } else if (build_with_mozilla) {
834 include_dirs = [ getenv("DIST") + "/include/opus" ]
835 }
836}
837
838rtc_source_set("webrtc_opus_c") {
839 visibility = [ ":*" ] # Only targets in this file can depend on this.
840 sources = [
841 "codecs/opus/opus_inst.h",
842 "codecs/opus/opus_interface.c",
843 "codecs/opus/opus_interface.h",
844 ]
845
minyue2e03c662017-02-01 17:31:11 -0800846 defines = audio_coding_defines
847
kjellander7439f972016-12-05 22:47:46 -0800848 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700849 public_deps = [
850 rtc_opus_dir,
851 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000852 } else if (build_with_mozilla) {
853 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000854 }
kjellander7439f972016-12-05 22:47:46 -0800855
856 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800857 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700858 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800859 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000860}
861
minyue25f6a392016-09-22 22:23:20 -0700862if (rtc_enable_protobuf) {
863 proto_library("ana_debug_dump_proto") {
864 sources = [
865 "audio_network_adaptor/debug_dump.proto",
866 ]
jbudorick58f17252017-07-26 14:49:20 -0700867 deps = [
868 ":ana_config_proto",
869 ]
sakal363a2912017-01-13 06:52:12 -0800870 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700871 }
minyuea1d9ad02016-10-02 14:53:37 -0700872 proto_library("ana_config_proto") {
873 sources = [
874 "audio_network_adaptor/config.proto",
875 ]
876 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
877 }
minyue25f6a392016-09-22 22:23:20 -0700878}
879
minyue0d382ef2016-10-07 07:59:28 -0700880rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700881 sources = [
882 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700883 "audio_network_adaptor/audio_network_adaptor_impl.cc",
884 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700885 "audio_network_adaptor/bitrate_controller.cc",
886 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700887 "audio_network_adaptor/channel_controller.cc",
888 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700889 "audio_network_adaptor/controller.cc",
890 "audio_network_adaptor/controller.h",
891 "audio_network_adaptor/controller_manager.cc",
892 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700893 "audio_network_adaptor/debug_dump_writer.cc",
894 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700895 "audio_network_adaptor/dtx_controller.cc",
896 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800897 "audio_network_adaptor/event_log_writer.cc",
898 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700899 "audio_network_adaptor/fec_controller_plr_based.cc",
900 "audio_network_adaptor/fec_controller_plr_based.h",
901 "audio_network_adaptor/fec_controller_rplr_based.cc",
902 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700903 "audio_network_adaptor/frame_length_controller.cc",
904 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700905 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700906 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700907 ]
minyue25f6a392016-09-22 22:23:20 -0700908
minyue41b9c802016-10-06 07:13:54 -0700909 deps = [
910 "../..:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -0800911 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800912 "../../logging:rtc_event_log_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700913 "../../rtc_base:protobuf_utils",
914 "../../rtc_base:rtc_base_approved",
minyue41b9c802016-10-06 07:13:54 -0700915 "../../system_wrappers",
916 ]
917
minyue25f6a392016-09-22 22:23:20 -0700918 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700919 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700920 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700921 ":ana_debug_dump_proto",
922 ]
minyue25f6a392016-09-22 22:23:20 -0700923 }
minyue4b7c9522017-01-24 04:54:59 -0800924
925 if (!build_with_chromium && is_clang) {
926 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
927 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
928 }
minyue7610f852016-09-07 13:51:51 -0700929}
930
kwiberg65cb70d2017-03-03 06:16:28 -0800931rtc_source_set("neteq_decoder_enum") {
932 sources = [
933 "neteq/neteq_decoder_enum.cc",
934 "neteq/neteq_decoder_enum.h",
935 ]
936 deps = [
937 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700938 "../../rtc_base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -0800939 ]
940}
kjellander676e08f2016-12-07 08:23:27 -0800941
kwiberg65cb70d2017-03-03 06:16:28 -0800942rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000943 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000944 "neteq/accelerate.cc",
945 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000946 "neteq/audio_decoder_impl.cc",
947 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000948 "neteq/audio_multi_vector.cc",
949 "neteq/audio_multi_vector.h",
950 "neteq/audio_vector.cc",
951 "neteq/audio_vector.h",
952 "neteq/background_noise.cc",
953 "neteq/background_noise.h",
954 "neteq/buffer_level_filter.cc",
955 "neteq/buffer_level_filter.h",
956 "neteq/comfort_noise.cc",
957 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700958 "neteq/cross_correlation.cc",
959 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000960 "neteq/decision_logic.cc",
961 "neteq/decision_logic.h",
962 "neteq/decision_logic_fax.cc",
963 "neteq/decision_logic_fax.h",
964 "neteq/decision_logic_normal.cc",
965 "neteq/decision_logic_normal.h",
966 "neteq/decoder_database.cc",
967 "neteq/decoder_database.h",
968 "neteq/defines.h",
969 "neteq/delay_manager.cc",
970 "neteq/delay_manager.h",
971 "neteq/delay_peak_detector.cc",
972 "neteq/delay_peak_detector.h",
973 "neteq/dsp_helper.cc",
974 "neteq/dsp_helper.h",
975 "neteq/dtmf_buffer.cc",
976 "neteq/dtmf_buffer.h",
977 "neteq/dtmf_tone_generator.cc",
978 "neteq/dtmf_tone_generator.h",
979 "neteq/expand.cc",
980 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100981 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000982 "neteq/merge.cc",
983 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700984 "neteq/nack_tracker.cc",
985 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200986 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000987 "neteq/neteq_impl.cc",
988 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000989 "neteq/normal.cc",
990 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -0700991 "neteq/packet.cc",
992 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000993 "neteq/packet_buffer.cc",
994 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000995 "neteq/post_decode_vad.cc",
996 "neteq/post_decode_vad.h",
997 "neteq/preemptive_expand.cc",
998 "neteq/preemptive_expand.h",
999 "neteq/random_vector.cc",
1000 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001001 "neteq/red_payload_splitter.cc",
1002 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001003 "neteq/rtcp.cc",
1004 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001005 "neteq/statistics_calculator.cc",
1006 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001007 "neteq/sync_buffer.cc",
1008 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001009 "neteq/tick_timer.cc",
1010 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001011 "neteq/time_stretch.cc",
1012 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001013 "neteq/timestamp_scaler.cc",
1014 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001015 ]
1016
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001017 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001018 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001019 ":cng",
1020 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001021 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001022 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001023 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001024 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001025 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001026 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001027 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001028 "../../rtc_base:gtest_prod",
1029 "../../rtc_base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001030 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001031 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001032
1033 defines = []
1034
kwibergf8c2bac2016-01-18 06:38:32 -08001035 if (rtc_include_ilbc) {
1036 defines += [ "WEBRTC_CODEC_ILBC" ]
1037 deps += [ ":ilbc" ]
1038 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001039 if (rtc_include_opus) {
1040 defines += [ "WEBRTC_CODEC_OPUS" ]
1041 deps += [ ":webrtc_opus" ]
1042 }
kwiberg98ab3a42015-09-30 21:54:21 -07001043 if (!build_with_mozilla) {
1044 if (current_cpu == "arm") {
1045 defines += [ "WEBRTC_CODEC_ISACFX" ]
1046 deps += [ ":isac_fix" ]
1047 } else {
1048 defines += [ "WEBRTC_CODEC_ISAC" ]
1049 deps += [ ":isac" ]
1050 }
1051 defines += [ "WEBRTC_CODEC_G722" ]
1052 deps += [ ":g722" ]
1053 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001054}
kjellanderfb114242016-06-13 00:19:48 -07001055
henrik.lundin58466f62016-10-05 02:27:42 -07001056# Although providing only test support, this target must be outside of the
1057# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1058# that ultimately are built and run as a part of the Chromium ecosystem, which
1059# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001060rtc_source_set("neteq_tools_minimal") {
henrik.lundin58466f62016-10-05 02:27:42 -07001061 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001062 "neteq/tools/audio_sink.cc",
1063 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001064 "neteq/tools/encode_neteq_input.cc",
1065 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001066 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001067 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001068 "neteq/tools/neteq_test.cc",
1069 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001070 "neteq/tools/packet.cc",
1071 "neteq/tools/packet.h",
1072 "neteq/tools/packet_source.cc",
1073 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001074 ]
1075
kjellandere40a7ee2016-10-16 23:56:12 -07001076 if (!build_with_chromium && is_clang) {
1077 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001078 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1079 }
kjellander676e08f2016-12-07 08:23:27 -08001080
1081 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001082 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001083 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001084 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -07001085 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001086 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001087 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001088 "../rtp_rtcp",
kjellander676e08f2016-12-07 08:23:27 -08001089 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001090}
1091
mbonadei3edccb92017-06-01 04:47:20 -07001092rtc_source_set("neteq_test_tools") {
1093 testonly = true
1094 sources = [
1095 "neteq/tools/audio_checksum.h",
1096 "neteq/tools/audio_loop.cc",
1097 "neteq/tools/audio_loop.h",
1098 "neteq/tools/constant_pcm_packet_source.cc",
1099 "neteq/tools/constant_pcm_packet_source.h",
1100 "neteq/tools/output_audio_file.h",
1101 "neteq/tools/output_wav_file.h",
1102 "neteq/tools/rtp_file_source.cc",
1103 "neteq/tools/rtp_file_source.h",
1104 "neteq/tools/rtp_generator.cc",
1105 "neteq/tools/rtp_generator.h",
1106 ]
1107
1108 public_configs = [ ":neteq_tools_config" ]
1109
1110 if (!build_with_chromium && is_clang) {
1111 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1112 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1113 }
1114
1115 deps = [
1116 ":pcm16b",
1117 "..:module_api",
1118 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001119 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001120 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001121 "../../rtc_base:rtc_base_approved",
1122 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001123 "../../test:rtp_test_utils",
1124 "../rtp_rtcp",
1125 ]
1126
1127 public_deps = [
1128 ":neteq_tools",
1129 ":neteq_tools_minimal",
1130 ]
1131
1132 if (rtc_enable_protobuf) {
1133 sources += [
1134 "neteq/tools/neteq_packet_source_input.cc",
1135 "neteq/tools/neteq_packet_source_input.h",
1136 ]
1137 deps += [ ":rtc_event_log_source" ]
1138 }
1139}
1140
1141config("neteq_tools_config") {
1142 include_dirs = [ "tools" ]
1143}
1144
1145rtc_source_set("neteq_tools") {
1146 sources = [
1147 "neteq/tools/fake_decode_from_file.cc",
1148 "neteq/tools/fake_decode_from_file.h",
1149 "neteq/tools/input_audio_file.cc",
1150 "neteq/tools/input_audio_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001151 "neteq/tools/neteq_delay_analyzer.cc",
1152 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001153 "neteq/tools/neteq_replacement_input.cc",
1154 "neteq/tools/neteq_replacement_input.h",
1155 "neteq/tools/resample_input_audio_file.cc",
1156 "neteq/tools/resample_input_audio_file.h",
1157 ]
1158
1159 public_configs = [ ":neteq_tools_config" ]
1160
1161 if (!build_with_chromium && is_clang) {
1162 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1163 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1164 }
1165
1166 deps = [
1167 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001168 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001169 "../../api/audio_codecs:audio_codecs_api",
mbonadei3edccb92017-06-01 04:47:20 -07001170 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001171 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001172 "../rtp_rtcp",
1173 ]
1174
1175 public_deps = [
1176 ":neteq_tools_minimal",
1177 ]
1178}
1179
1180if (rtc_enable_protobuf) {
1181 rtc_static_library("rtc_event_log_source") {
1182 testonly = true
1183
1184 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1185 # Needs call.h to be moved to webrtc/api first.
1186 check_includes = false
1187
1188 sources = [
1189 "neteq/tools/rtc_event_log_source.cc",
1190 "neteq/tools/rtc_event_log_source.h",
1191 ]
1192
1193 if (!build_with_chromium && is_clang) {
1194 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1195 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1196 }
1197
1198 deps = [
mbonadei3edccb92017-06-01 04:47:20 -07001199 "../../logging:rtc_event_log_parser",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001200 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001201 ]
1202 public_deps = [
1203 "../../logging:rtc_event_log_proto",
1204 ]
1205 }
1206}
1207
kjellanderfb114242016-06-13 00:19:48 -07001208if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001209 group("audio_coding_tests") {
1210 testonly = true
1211 public_deps = [
1212 ":RTPchange",
1213 ":RTPencode",
1214 ":RTPjitter",
1215 ":RTPtimeshift",
1216 ":acm_receive_test",
1217 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001218 ":audio_codec_speed_tests",
1219 ":audio_decoder_unittests",
1220 ":audio_decoder_unittests",
1221 ":delay_test",
1222 ":g711_test",
1223 ":g722_test",
1224 ":ilbc_test",
1225 ":insert_packet_with_timing",
1226 ":isac_api_test",
1227 ":isac_fix_test",
1228 ":isac_switch_samprate_test",
1229 ":isac_test",
1230 ":neteq_ilbc_quality_test",
1231 ":neteq_isac_quality_test",
1232 ":neteq_opus_quality_test",
1233 ":neteq_pcmu_quality_test",
1234 ":neteq_speed_test",
1235 ":rtp_analyze",
1236 ":rtpcat",
1237 ":webrtc_opus_fec_test",
1238 ]
1239 if (rtc_enable_protobuf) {
1240 public_deps += [ ":neteq_rtpplay" ]
1241 }
1242 }
1243
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001244 rtc_source_set("audio_coding_modules_tests") {
1245 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001246
1247 # Skip restricting visibility on mobile platforms since the tests on those
1248 # gets additional generated targets which would require many lines here to
1249 # cover (which would be confusing to read and hard to maintain).
1250 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -07001251 visibility = [ "..:modules_tests" ]
kjellandere0629c02017-04-25 04:04:50 -07001252 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001253 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001254 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001255 "test/APITest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001256 "test/APITest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001257 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001258 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001259 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001260 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001261 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001262 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001263 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001264 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001265 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001266 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001267 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001268 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001269 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001270 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001271 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001272 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001273 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001274 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001275 "test/Tester.cc",
1276 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001277 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001278 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001279 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001280 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001281 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001282 "test/target_delay_unittest.cc",
1283 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001284 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001285 ]
1286 deps = [
1287 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001288 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001289 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001290 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001291 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001292 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001293 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001294 "../../rtc_base:rtc_base_approved",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001295 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001296 "../../test:test_support",
1297 ]
1298 defines = audio_coding_defines
1299 if (is_win) {
1300 cflags = [
1301 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1302 "/wd4373", # virtual function override.
1303 ]
1304 }
1305 if (!build_with_chromium && is_clang) {
1306 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1307 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1308 }
1309 }
1310
ehmaldonado021eef32017-01-05 07:09:50 -08001311 rtc_source_set("audio_coding_perf_tests") {
1312 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001313
1314 # Skip restricting visibility on mobile platforms since the tests on those
1315 # gets additional generated targets which would require many lines here to
1316 # cover (which would be confusing to read and hard to maintain).
1317 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -07001318 visibility = [ "../..:webrtc_perf_tests" ]
kjellandere0629c02017-04-25 04:04:50 -07001319 }
ehmaldonado021eef32017-01-05 07:09:50 -08001320 sources = [
1321 "codecs/opus/opus_complexity_unittest.cc",
1322 "neteq/test/neteq_performance_unittest.cc",
1323 ]
1324 deps = [
1325 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001326 ":neteq_test_tools",
ehmaldonado021eef32017-01-05 07:09:50 -08001327 ":webrtc_opus",
1328 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001329 "../../rtc_base:protobuf_utils",
1330 "../../rtc_base:rtc_base_approved",
ehmaldonado021eef32017-01-05 07:09:50 -08001331 "../../system_wrappers:system_wrappers",
1332 "../../test:test_support",
1333 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001334
ehmaldonado021eef32017-01-05 07:09:50 -08001335 if (!build_with_chromium && is_clang) {
1336 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1337 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1338 }
1339 }
1340
ehmaldonado38a21322016-09-02 04:10:34 -07001341 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001342 testonly = true
1343 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001344 "acm2/acm_receive_test.cc",
1345 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001346 ]
1347
kjellanderfb114242016-06-13 00:19:48 -07001348 defines = audio_coding_defines
1349
1350 deps = audio_coding_deps + [
1351 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001352 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001353 "../../api/audio_codecs:audio_codecs_api",
1354 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001355 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001356 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001357 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001358 "//testing/gtest",
1359 ]
1360 }
1361
ehmaldonado38a21322016-09-02 04:10:34 -07001362 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001363 testonly = true
1364 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001365 "acm2/acm_send_test.cc",
1366 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001367 ]
1368
kjellanderfb114242016-06-13 00:19:48 -07001369 defines = audio_coding_defines
1370
1371 deps = audio_coding_deps + [
1372 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001373 ":neteq_tools",
ossueb1fde42017-05-02 06:46:30 -07001374 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001375 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001376 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001377 "//testing/gtest",
1378 ]
1379 }
1380
ehmaldonado38a21322016-09-02 04:10:34 -07001381 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001382 testonly = true
1383 sources = [
1384 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001385 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001386 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001387 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001388 "test/delay_test.cc",
1389 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001390 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001391 ]
1392
aleloi333f2062016-07-28 01:21:29 -07001393 deps = [
1394 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001395 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001396 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001397 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001398 "../../:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001399 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001400 "../../system_wrappers",
1401 "../../system_wrappers:system_wrappers_default",
1402 "../../test:test_support",
1403 "../rtp_rtcp",
1404 "//testing/gtest",
aleloi333f2062016-07-28 01:21:29 -07001405 ]
1406 } # delay_test
1407
ehmaldonado38a21322016-09-02 04:10:34 -07001408 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001409 testonly = true
1410 sources = [
1411 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001412 "test/Channel.h",
aleloi00730c72016-07-28 01:27:10 -07001413 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001414 "test/PCMFile.h",
aleloi00730c72016-07-28 01:27:10 -07001415 "test/insert_packet_with_timing.cc",
1416 ]
1417
kjellandere40a7ee2016-10-16 23:56:12 -07001418 if (!build_with_chromium && is_clang) {
1419 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001420 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001421 }
1422
1423 deps = [
1424 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001425 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001426 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001427 "../../:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001428 "../../rtc_base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001429 "../../system_wrappers",
1430 "../../system_wrappers:system_wrappers_default",
1431 "../../test:test_support",
1432 "../rtp_rtcp",
1433 "//testing/gtest",
aleloi00730c72016-07-28 01:27:10 -07001434 ]
1435 } # insert_packet_with_timing
1436
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001437 audio_decoder_unittests_resources =
jianjun.zhuc0247402017-07-11 06:20:45 -07001438 [ "../../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001439
1440 if (is_ios) {
1441 bundle_data("audio_decoder_unittests_bundle_data") {
1442 testonly = true
1443 sources = audio_decoder_unittests_resources
1444 outputs = [
1445 "{{bundle_resources_dir}}/{{source_file_part}}",
1446 ]
1447 }
1448 }
1449
ehmaldonado38a21322016-09-02 04:10:34 -07001450 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001451 testonly = true
1452 sources = [
1453 "neteq/audio_decoder_unittest.cc",
1454 ]
1455
kjellandere40a7ee2016-10-16 23:56:12 -07001456 if (!build_with_chromium && is_clang) {
1457 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001458 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001459 }
1460
1461 deps = []
1462
1463 defines = neteq_defines
1464
1465 deps += audio_coding_deps
1466 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001467 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001468 ":isac",
1469 ":isac_fix",
1470 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001471 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001472 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001473 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001474 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001475 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001476 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001477 "//testing/gtest",
1478 ]
1479
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001480 data = audio_decoder_unittests_resources
1481
charujainddf3e4a2016-08-01 07:49:42 -07001482 if (is_android) {
1483 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001484 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001485 }
kjellander32c4a202016-08-30 02:53:49 -07001486 if (is_ios) {
1487 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001488 }
1489 } # audio_decoder_unittests
1490
kjellanderfb114242016-06-13 00:19:48 -07001491 if (rtc_enable_protobuf) {
1492 proto_library("neteq_unittest_proto") {
1493 sources = [
1494 "neteq/neteq_unittest.proto",
1495 ]
kjellandere3e902e2017-02-28 08:01:46 -08001496 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001497 }
henrik.lundin03153f12016-06-21 05:38:42 -07001498
ehmaldonado38a21322016-09-02 04:10:34 -07001499 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001500 testonly = true
1501 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001502 deps = [
1503 "..:module_api",
1504 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001505 sources = [
1506 "neteq/tools/neteq_rtpplay.cc",
1507 ]
1508
kjellandere40a7ee2016-10-16 23:56:12 -07001509 if (!build_with_chromium && is_clang) {
1510 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001511 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001512 }
1513
1514 if (is_win) {
1515 cflags = [
1516 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1517 "/wd4373", # virtual function override.
1518 ]
1519 }
1520
1521 deps += [
1522 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001523 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001524 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001525 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001526 "../../system_wrappers:system_wrappers_default",
1527 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001528 ]
1529 }
kjellanderfb114242016-06-13 00:19:48 -07001530 }
1531
minyue81f1da32017-07-27 05:49:57 -07001532 audio_codec_speed_tests_resources = [
1533 "//resources/audio_coding/music_stereo_48kHz.pcm",
1534 "//resources/audio_coding/speech_mono_16kHz.pcm",
1535 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1536 ]
1537
1538 if (is_ios) {
1539 bundle_data("audio_codec_speed_tests_data") {
1540 testonly = true
1541 sources = audio_codec_speed_tests_resources
1542 outputs = [
1543 "{{bundle_resources_dir}}/{{source_file_part}}",
1544 ]
1545 }
1546 }
1547
ehmaldonado38a21322016-09-02 04:10:34 -07001548 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001549 testonly = true
1550 defines = []
1551 deps = []
1552 sources = [
1553 "codecs/isac/fix/test/isac_speed_test.cc",
1554 "codecs/opus/opus_speed_test.cc",
1555 "codecs/tools/audio_codec_speed_test.cc",
1556 "codecs/tools/audio_codec_speed_test.h",
1557 ]
1558
kjellandere40a7ee2016-10-16 23:56:12 -07001559 if (!build_with_chromium && is_clang) {
1560 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001561 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001562 }
1563
minyue81f1da32017-07-27 05:49:57 -07001564 data = audio_codec_speed_tests_resources
1565
aleloie6b60a42016-07-28 02:34:30 -07001566 if (is_android) {
1567 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001568 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001569 }
1570
minyue81f1da32017-07-27 05:49:57 -07001571 if (is_ios) {
1572 deps += [ ":audio_codec_speed_tests_data" ]
1573 }
1574
aleloie6b60a42016-07-28 02:34:30 -07001575 deps += [
1576 ":isac_fix",
1577 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001578 "../..:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001579 "../../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001580 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001581 "../../system_wrappers:metrics_default",
aleloie6b60a42016-07-28 02:34:30 -07001582 "../../system_wrappers:system_wrappers_default",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001583 "../../test:field_trial",
ehmaldonado26bddb92016-11-30 06:12:01 -08001584 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001585 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001586 "//testing/gtest",
1587 ]
1588 }
1589
ehmaldonado38a21322016-09-02 04:10:34 -07001590 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001591 testonly = true
1592 sources = [
1593 "neteq/tools/neteq_external_decoder_test.cc",
1594 "neteq/tools/neteq_external_decoder_test.h",
1595 "neteq/tools/neteq_performance_test.cc",
1596 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001597 ]
1598
kjellandere40a7ee2016-10-16 23:56:12 -07001599 if (!build_with_chromium && is_clang) {
1600 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001601 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001602 }
1603
1604 deps = [
1605 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001606 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001607 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001608 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001609 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001610 "../../api/audio_codecs:audio_codecs_api",
1611 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001612 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001613 "../../system_wrappers",
1614 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001615 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001616 ]
1617 }
1618
ehmaldonado38a21322016-09-02 04:10:34 -07001619 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001620 testonly = true
1621 sources = [
1622 "neteq/tools/neteq_quality_test.cc",
1623 "neteq/tools/neteq_quality_test.h",
1624 ]
1625
kjellandere40a7ee2016-10-16 23:56:12 -07001626 if (!build_with_chromium && is_clang) {
1627 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001628 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001629 }
1630
1631 deps = [
1632 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001633 ":neteq_test_tools",
mbonadei1140f972017-04-26 03:38:35 -07001634 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001635 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001636 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001637 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001638 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001639 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001640 ]
1641 }
1642
henrik.lundinb637a942017-04-28 00:59:45 -07001643 rtc_source_set("neteq_test_tools_deprecated") {
aleloi3022a342016-07-26 06:36:03 -07001644 testonly = true
1645 sources = [
1646 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1647 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1648 "neteq/test/NETEQTEST_RTPpacket.cc",
1649 "neteq/test/NETEQTEST_RTPpacket.h",
1650 ]
1651
1652 deps = [
1653 ":cng",
1654 ":g711",
1655 ":g722",
1656 ":ilbc",
1657 ":isac",
1658 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001659 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001660 "../..:webrtc_common",
1661 "//testing/gtest",
1662 ]
1663
1664 include_dirs = [
1665 "neteq/include",
1666 "neteq/test",
1667 "../../",
1668 ]
1669
1670 if (is_win) {
1671 cflags = [
1672 # Disable warnings to enable Win64 build, issue 1323.
1673 "/wd4267", # size_t to int truncation
1674 ]
1675 }
1676 }
aleloi47bded42016-07-26 06:46:19 -07001677
aleloi82667732016-08-02 01:45:50 -07001678 config("RTPencode_config") {
1679 defines = [
1680 "CODEC_ILBC",
1681 "CODEC_PCM16B",
1682 "CODEC_G711",
1683 "CODEC_G722",
1684 "CODEC_ISAC",
1685 "CODEC_PCM16B_WB",
1686 "CODEC_ISAC_SWB",
1687 "CODEC_PCM16B_32KHZ",
1688 "CODEC_PCM16B_48KHZ",
1689 "CODEC_CNGCODEC8",
1690 "CODEC_CNGCODEC16",
1691 "CODEC_CNGCODEC32",
1692 "CODEC_ATEVENT_DECODE",
1693 "CODEC_RED",
1694 "CODEC_OPUS",
1695 ]
1696 }
1697
ehmaldonado38a21322016-09-02 04:10:34 -07001698 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001699 testonly = true
1700
1701 deps = [
1702 # TODO(hlundin): Make RTPencode use ACM to encode files.
1703 ":cng",
1704 ":g711",
1705 ":g722",
1706 ":ilbc",
1707 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001708 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001709 ":neteq_test_tools_deprecated",
aleloi82667732016-08-02 01:45:50 -07001710 ":pcm16b",
1711 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001712 "../..:webrtc_common",
aleloi82667732016-08-02 01:45:50 -07001713 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001714 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001715 "../../system_wrappers:metrics_default",
1716 "../../test:field_trial",
aleloi82667732016-08-02 01:45:50 -07001717 ]
1718
1719 configs += [ ":RTPencode_config" ]
1720
1721 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001722 "neteq/test/PayloadTypes.h",
aleloi82667732016-08-02 01:45:50 -07001723 "neteq/test/RTPencode.cc",
1724 ]
1725
1726 include_dirs = [
1727 "neteq/include",
1728 "neteq/test",
1729 ]
1730
1731 if (is_win) {
1732 cflags = [
1733 # Disable warnings to enable Win64 build, issue 1323.
1734 "/wd4267", # size_t to int truncation
1735 ]
1736 }
1737 }
1738
ehmaldonado38a21322016-09-02 04:10:34 -07001739 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001740 testonly = true
1741
1742 sources = [
1743 "neteq/test/RTPchange.cc",
1744 ]
1745
1746 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001747 ":neteq_test_tools_deprecated",
aleloi76cbe192016-08-02 02:05:03 -07001748 ]
1749 }
1750
ehmaldonado38a21322016-09-02 04:10:34 -07001751 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001752 testonly = true
1753
1754 sources = [
1755 "neteq/tools/rtpcat.cc",
1756 ]
1757
1758 deps = [
ehmaldonadof6a861a2017-07-19 10:40:47 -07001759 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001760 "../../system_wrappers:system_wrappers_default",
1761 "../../test:rtp_test_utils",
1762 "//testing/gtest",
1763 ]
1764 }
1765
ehmaldonado38a21322016-09-02 04:10:34 -07001766 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001767 testonly = true
1768
1769 sources = [
1770 "neteq/test/RTPtimeshift.cc",
1771 ]
1772
1773 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001774 ":neteq_test_tools_deprecated",
kjellander676e08f2016-12-07 08:23:27 -08001775 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001776 "//testing/gtest",
1777 ]
1778 }
1779
ehmaldonado38a21322016-09-02 04:10:34 -07001780 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001781 testonly = true
1782 deps = [
1783 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001784 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001785 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001786 "//testing/gtest",
1787 ]
1788 sources = [
1789 "neteq/test/RTPjitter.cc",
1790 ]
1791 }
1792
ehmaldonado38a21322016-09-02 04:10:34 -07001793 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001794 testonly = true
1795
1796 sources = [
1797 "neteq/tools/rtp_analyze.cc",
1798 ]
1799
1800 deps = [
1801 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001802 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001803 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001804 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001805 "../../system_wrappers:system_wrappers_default",
1806 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001807 ]
1808
kjellandere40a7ee2016-10-16 23:56:12 -07001809 if (!build_with_chromium && is_clang) {
1810 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001811 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001812 }
1813 }
aleloi630c6d52016-08-10 02:11:30 -07001814
ehmaldonado38a21322016-09-02 04:10:34 -07001815 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001816 testonly = true
1817
1818 sources = [
1819 "neteq/test/neteq_opus_quality_test.cc",
1820 ]
1821
1822 deps = [
1823 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001824 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001825 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001826 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001827 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001828 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001829 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001830 ]
aleloi630c6d52016-08-10 02:11:30 -07001831 }
aleloi116fd612016-08-10 04:16:36 -07001832
ehmaldonado38a21322016-09-02 04:10:34 -07001833 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001834 testonly = true
1835
1836 sources = [
1837 "neteq/test/neteq_speed_test.cc",
1838 ]
1839
1840 deps = [
1841 ":neteq",
1842 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001843 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001844 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001845 "../../system_wrappers:system_wrappers_default",
1846 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001847 ]
1848 }
aleloi63910122016-08-10 04:41:14 -07001849
ehmaldonado38a21322016-09-02 04:10:34 -07001850 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001851 testonly = true
1852
1853 sources = [
1854 "neteq/test/neteq_ilbc_quality_test.cc",
1855 ]
1856
1857 deps = [
1858 ":ilbc",
1859 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001860 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001861 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001862 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001863 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001864 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001865 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001866 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001867 ]
1868 }
aleloi6df36dc2016-08-10 05:04:47 -07001869
ehmaldonado38a21322016-09-02 04:10:34 -07001870 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001871 testonly = true
1872
1873 sources = [
1874 "neteq/test/neteq_isac_quality_test.cc",
1875 ]
1876
1877 deps = [
1878 ":isac_fix",
1879 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001880 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001881 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001882 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001883 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001884 ]
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",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001898 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001899 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001900 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001901 ]
1902 }
aleloib7186d02016-08-16 01:47:16 -07001903
ehmaldonado38a21322016-09-02 04:10:34 -07001904 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001905 testonly = true
1906
1907 sources = [
1908 "codecs/isac/fix/test/kenny.cc",
1909 ]
1910
1911 deps = [
1912 ":isac_fix",
1913 "../../test:test_support",
1914 ]
1915
1916 if (is_win) {
1917 cflags = [
1918 # Disable warnings to enable Win64 build, issue 1323.
1919 "/wd4267", # size_t to int truncation
1920 ]
1921 }
1922 }
aleloi16f55a12016-08-23 08:08:23 -07001923
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001924 config("isac_test_warnings_config") {
1925 if (is_win && is_clang) {
1926 cflags = [
1927 # Disable warnings failing when compiling with Clang on Windows.
1928 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1929 "-Wno-format",
1930 ]
1931 }
1932 }
1933
kjellander7439f972016-12-05 22:47:46 -08001934 rtc_source_set("isac_test_util") {
1935 testonly = true
1936 sources = [
1937 "codecs/isac/main/util/utility.c",
1938 ]
1939 }
1940
ehmaldonado38a21322016-09-02 04:10:34 -07001941 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001942 testonly = true
1943
1944 sources = [
1945 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001946 ]
1947
1948 include_dirs = [
1949 "codecs/isac/main/include",
1950 "codecs/isac/main/test",
1951 "codecs/isac/main/util",
1952 ]
1953
1954 deps = [
1955 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001956 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001957 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001958 ]
1959
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001960 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001961 }
1962
ehmaldonado38a21322016-09-02 04:10:34 -07001963 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001964 testonly = true
1965
1966 sources = [
1967 "codecs/g711/test/testG711.cc",
1968 ]
1969
aleloi16f55a12016-08-23 08:08:23 -07001970 deps = [
1971 ":g711",
1972 ]
1973 }
aleloi9a117842016-08-23 08:36:10 -07001974
ehmaldonado38a21322016-09-02 04:10:34 -07001975 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001976 testonly = true
1977
1978 sources = [
1979 "codecs/g722/test/testG722.cc",
1980 ]
1981
aleloi9a117842016-08-23 08:36:10 -07001982 deps = [
1983 ":g722",
1984 "../..:webrtc_common",
1985 ]
1986 }
ivoc2c670db2016-08-24 06:11:18 -07001987
ehmaldonado38a21322016-09-02 04:10:34 -07001988 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001989 testonly = true
1990
1991 sources = [
1992 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001993 ]
1994
aleloicfee2152016-08-29 04:09:19 -07001995 deps = [
1996 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001997 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001998 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001999 ]
2000
2001 include_dirs = [
2002 "codecs/isac/main/include",
2003 "codecs/isac/main/test",
2004 "codecs/isac/main/util",
2005 ]
2006 }
2007
ehmaldonado38a21322016-09-02 04:10:34 -07002008 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002009 testonly = true
2010
2011 sources = [
2012 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002013 ]
2014
aleloicfee2152016-08-29 04:09:19 -07002015 deps = [
2016 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002017 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07002018 ]
2019
2020 include_dirs = [
2021 "codecs/isac/main/include",
2022 "codecs/isac/main/test",
2023 "codecs/isac/main/util",
2024 "../../common_audio/signal_processing/include",
2025 ]
2026 }
2027
ehmaldonado38a21322016-09-02 04:10:34 -07002028 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002029 testonly = true
2030
2031 sources = [
2032 "codecs/ilbc/test/iLBC_test.c",
2033 ]
2034
aleloicfee2152016-08-29 04:09:19 -07002035 deps = [
2036 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002037 ]
2038 }
2039
ehmaldonado38a21322016-09-02 04:10:34 -07002040 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002041 testonly = true
2042
2043 sources = [
2044 "codecs/opus/opus_fec_test.cc",
2045 ]
2046
2047 deps = [
2048 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002049 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002050 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08002051 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002052 "//testing/gtest",
2053 ]
2054
kjellandere40a7ee2016-10-16 23:56:12 -07002055 if (!build_with_chromium && is_clang) {
2056 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002057 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002058 }
2059 }
ehmaldonado36268652017-01-19 08:27:11 -08002060
2061 rtc_source_set("audio_coding_unittests") {
2062 testonly = true
2063
kjellandere0629c02017-04-25 04:04:50 -07002064 # Skip restricting visibility on mobile platforms since the tests on those
2065 # gets additional generated targets which would require many lines here to
2066 # cover (which would be confusing to read and hard to maintain).
2067 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -07002068 visibility = [ "..:modules_unittests" ]
kjellandere0629c02017-04-25 04:04:50 -07002069 }
ehmaldonado36268652017-01-19 08:27:11 -08002070 sources = [
2071 "acm2/acm_receiver_unittest.cc",
2072 "acm2/audio_coding_module_unittest.cc",
2073 "acm2/call_statistics_unittest.cc",
2074 "acm2/codec_manager_unittest.cc",
2075 "acm2/rent_a_codec_unittest.cc",
2076 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2077 "audio_network_adaptor/bitrate_controller_unittest.cc",
2078 "audio_network_adaptor/channel_controller_unittest.cc",
2079 "audio_network_adaptor/controller_manager_unittest.cc",
2080 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002081 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002082 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2083 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002084 "audio_network_adaptor/frame_length_controller_unittest.cc",
2085 "audio_network_adaptor/mock/mock_controller.h",
2086 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002087 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002088 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002089 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002090 "codecs/cng/audio_encoder_cng_unittest.cc",
2091 "codecs/cng/cng_unittest.cc",
2092 "codecs/ilbc/ilbc_unittest.cc",
2093 "codecs/isac/fix/source/filterbanks_unittest.cc",
2094 "codecs/isac/fix/source/filters_unittest.cc",
2095 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2096 "codecs/isac/fix/source/transform_unittest.cc",
2097 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2098 "codecs/isac/main/source/isac_unittest.cc",
2099 "codecs/isac/unittest.cc",
2100 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002101 "codecs/opus/audio_encoder_opus_unittest.cc",
2102 "codecs/opus/opus_unittest.cc",
2103 "codecs/red/audio_encoder_copy_red_unittest.cc",
2104 "neteq/audio_multi_vector_unittest.cc",
2105 "neteq/audio_vector_unittest.cc",
2106 "neteq/background_noise_unittest.cc",
2107 "neteq/buffer_level_filter_unittest.cc",
2108 "neteq/comfort_noise_unittest.cc",
2109 "neteq/decision_logic_unittest.cc",
2110 "neteq/decoder_database_unittest.cc",
2111 "neteq/delay_manager_unittest.cc",
2112 "neteq/delay_peak_detector_unittest.cc",
2113 "neteq/dsp_helper_unittest.cc",
2114 "neteq/dtmf_buffer_unittest.cc",
2115 "neteq/dtmf_tone_generator_unittest.cc",
2116 "neteq/expand_unittest.cc",
2117 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002118 "neteq/mock/mock_buffer_level_filter.h",
2119 "neteq/mock/mock_decoder_database.h",
2120 "neteq/mock/mock_delay_manager.h",
2121 "neteq/mock/mock_delay_peak_detector.h",
2122 "neteq/mock/mock_dtmf_buffer.h",
2123 "neteq/mock/mock_dtmf_tone_generator.h",
2124 "neteq/mock/mock_expand.h",
2125 "neteq/mock/mock_external_decoder_pcm16b.h",
2126 "neteq/mock/mock_packet_buffer.h",
2127 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002128 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002129 "neteq/nack_tracker_unittest.cc",
2130 "neteq/neteq_external_decoder_unittest.cc",
2131 "neteq/neteq_impl_unittest.cc",
2132 "neteq/neteq_network_stats_unittest.cc",
2133 "neteq/neteq_stereo_unittest.cc",
2134 "neteq/neteq_unittest.cc",
2135 "neteq/normal_unittest.cc",
2136 "neteq/packet_buffer_unittest.cc",
2137 "neteq/post_decode_vad_unittest.cc",
2138 "neteq/random_vector_unittest.cc",
2139 "neteq/red_payload_splitter_unittest.cc",
2140 "neteq/sync_buffer_unittest.cc",
2141 "neteq/tick_timer_unittest.cc",
2142 "neteq/time_stretch_unittest.cc",
2143 "neteq/timestamp_scaler_unittest.cc",
2144 "neteq/tools/input_audio_file_unittest.cc",
2145 "neteq/tools/packet_unittest.cc",
2146 ]
2147
2148 deps = [
2149 ":acm_receive_test",
2150 ":acm_send_test",
2151 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002152 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002153 ":audio_format_conversion",
2154 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002155 ":cng",
2156 ":g711",
2157 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002158 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002159 ":isac_c",
2160 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002161 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002162 ":neteq",
2163 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002164 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002165 ":pcm16b",
2166 ":red",
2167 ":rent_a_codec",
2168 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002169 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002170 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002171 "../../api/audio_codecs:audio_codecs_api",
2172 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002173 "../../api/audio_codecs:builtin_audio_encoder_factory",
ehmaldonado36268652017-01-19 08:27:11 -08002174 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002175 "../../rtc_base:protobuf_utils",
2176 "../../rtc_base:rtc_base",
2177 "../../rtc_base:rtc_base_approved",
2178 "../../rtc_base:rtc_base_tests_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002179 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002180 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002181 "../../test:field_trial",
2182 "../../test:rtp_test_utils",
2183 "../../test:test_common",
2184 "../../test:test_support",
2185 "//testing/gmock",
2186 "//testing/gtest",
ehmaldonado36268652017-01-19 08:27:11 -08002187 ]
2188
2189 defines = audio_coding_defines
2190
2191 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002192 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002193 deps += [
2194 ":ana_config_proto",
2195 ":neteq_unittest_proto",
2196 ]
2197 }
2198
2199 if (!build_with_chromium && is_clang) {
2200 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2201 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2202 }
2203 }
kjellanderfb114242016-06-13 00:19:48 -07002204}
kwiberg087bd342017-02-10 08:15:44 -08002205
2206# For backwards compatibility only! Use
2207# webrtc/api/audio_codecs:audio_codecs_api instead.
2208# TODO(kwiberg): Remove this.
2209rtc_source_set("audio_decoder_interface") {
2210 sources = [
2211 "codecs/audio_decoder.h",
2212 ]
2213 deps = [
2214 "../../api/audio_codecs:audio_codecs_api",
2215 ]
2216}
2217
2218# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002219# webrtc/api/audio_codecs:audio_codecs_api instead.
2220# TODO(ossu): Remove this.
2221rtc_source_set("audio_encoder_interface") {
2222 sources = [
2223 "codecs/audio_encoder.h",
2224 ]
2225 deps = [
2226 "../../api/audio_codecs:audio_codecs_api",
2227 ]
2228}
2229
2230# For backwards compatibility only! Use
kwiberg087bd342017-02-10 08:15:44 -08002231# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2232# TODO(kwiberg): Remove this.
2233rtc_source_set("builtin_audio_decoder_factory") {
2234 sources = [
2235 "codecs/builtin_audio_decoder_factory.h",
2236 ]
2237 deps = [
2238 "../../api/audio_codecs:builtin_audio_decoder_factory",
2239 ]
2240}
ossueb1fde42017-05-02 06:46:30 -07002241
2242# For backwards compatibility only! Use
2243# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2244# TODO(ossu): Remove this.
2245rtc_source_set("builtin_audio_encoder_factory") {
2246 sources = [
2247 "codecs/builtin_audio_encoder_factory.h",
2248 ]
2249 deps = [
2250 "../../api/audio_codecs:builtin_audio_encoder_factory",
2251 ]
2252}