blob: 50819f19ca333fe5238dfcca34cb281d5ca01735 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellanderfb114242016-06-13 00:19:48 -070010import("audio_coding.gni")
11import("//build/config/arm.gni")
kjellanderfb114242016-06-13 00:19:48 -070012import("//third_party/protobuf/proto_library.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013
kwiberg0edb05b2016-01-19 05:54:28 -080014audio_codec_deps = [
15 ":cng",
16 ":g711",
17 ":pcm16b",
18]
kwiberg0edb05b2016-01-19 05:54:28 -080019if (rtc_include_ilbc) {
kwiberg0edb05b2016-01-19 05:54:28 -080020 audio_codec_deps += [ ":ilbc" ]
21}
22if (rtc_include_opus) {
kwiberg0edb05b2016-01-19 05:54:28 -080023 audio_codec_deps += [ ":webrtc_opus" ]
24}
25if (!build_with_mozilla) {
26 if (current_cpu == "arm") {
kwiberg0edb05b2016-01-19 05:54:28 -080027 audio_codec_deps += [ ":isac_fix" ]
28 } else {
kwiberg0edb05b2016-01-19 05:54:28 -080029 audio_codec_deps += [ ":isac" ]
30 }
kwiberg0edb05b2016-01-19 05:54:28 -080031 audio_codec_deps += [ ":g722" ]
32}
33if (!build_with_mozilla && !build_with_chromium) {
kwiberg0edb05b2016-01-19 05:54:28 -080034 audio_codec_deps += [ ":red" ]
35}
kjellanderfb114242016-06-13 00:19:48 -070036audio_coding_deps = audio_codec_deps + [
37 "../..:webrtc_common",
38 "../../common_audio",
39 "../../system_wrappers",
40 ]
kwiberg0edb05b2016-01-19 05:54:28 -080041
kwibergda2bf4e2016-10-24 13:47:09 -070042rtc_static_library("audio_format_conversion") {
43 sources = [
44 "codecs/audio_format_conversion.cc",
45 "codecs/audio_format_conversion.h",
46 ]
47 deps = [
kwiberga6b82982016-10-24 16:31:17 -070048 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -080049 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -070050 "../../rtc_base:rtc_base_approved",
kwibergda2bf4e2016-10-24 13:47:09 -070051 ]
52}
53
kjellanderb62dbbe2016-09-23 00:38:52 -070054rtc_static_library("rent_a_codec") {
kwibergfce4a942015-10-27 11:40:24 -070055 sources = [
kjellander3e6db232015-11-26 04:44:54 -080056 "acm2/acm_codec_database.cc",
57 "acm2/acm_codec_database.h",
58 "acm2/rent_a_codec.cc",
59 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -070060 ]
kjellander676e08f2016-12-07 08:23:27 -080061 deps = [
kwiberg087bd342017-02-10 08:15:44 -080062 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -080063 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -070064 "../../rtc_base:protobuf_utils",
65 "../../rtc_base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -080066 "../../system_wrappers",
67 ":audio_coding_module_typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -080068 ":isac_common",
69 ":isac_fix_c",
70 ":neteq_decoder_enum",
kjellander676e08f2016-12-07 08:23:27 -080071 ] + audio_codec_deps
mbonadei7c2c8432017-04-07 00:59:12 -070072
kwiberg0edb05b2016-01-19 05:54:28 -080073 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -070074}
75
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000076config("audio_coding_config") {
77 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -080078 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010079 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000080 ]
81}
82
kwiberg65cb70d2017-03-03 06:16:28 -080083rtc_source_set("audio_coding_module_typedefs") {
84 sources = [
85 "include/audio_coding_module_typedefs.h",
86 ]
87 deps = [
mbonadei1140f972017-04-26 03:38:35 -070088 "..:module_api",
kwiberg65cb70d2017-03-03 06:16:28 -080089 "../..:webrtc_common",
90 ]
91}
92
kjellanderb62dbbe2016-09-23 00:38:52 -070093rtc_static_library("audio_coding") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000094 sources = [
kjellander3e6db232015-11-26 04:44:54 -080095 "acm2/acm_receiver.cc",
96 "acm2/acm_receiver.h",
97 "acm2/acm_resampler.cc",
98 "acm2/acm_resampler.h",
99 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800100 "acm2/call_statistics.cc",
101 "acm2/call_statistics.h",
102 "acm2/codec_manager.cc",
103 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800104 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000105 ]
106
107 defines = []
108
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700109 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000110
kjellanderfb114242016-06-13 00:19:48 -0700111 if (rtc_include_opus) {
112 public_deps = [
113 ":webrtc_opus",
114 ]
115 }
116
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000117 if (is_win) {
118 cflags = [
119 # TODO(kjellander): Bug 261: fix this warning.
120 "/wd4373", # virtual function override.
121 ]
122 }
123
kjellanderfb114242016-06-13 00:19:48 -0700124 deps = audio_coding_deps + [
mbonadei1140f972017-04-26 03:38:35 -0700125 "..:module_api",
kwiberg087bd342017-02-10 08:15:44 -0800126 "../../api/audio_codecs:audio_codecs_api",
127 "../../api/audio_codecs:builtin_audio_decoder_factory",
kwiberg65cb70d2017-03-03 06:16:28 -0800128 ":audio_coding_module_typedefs",
kwiberg0edb05b2016-01-19 05:54:28 -0800129 ":neteq",
130 ":rent_a_codec",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700131 "../../rtc_base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -0700132 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800133 ]
kjellanderfb114242016-06-13 00:19:48 -0700134 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000135}
136
kwiberg087bd342017-02-10 08:15:44 -0800137rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000138 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700139 "codecs/legacy_encoded_audio_frame.cc",
140 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000141 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200142 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800143 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700144 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200145 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000146}
147
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000148config("cng_config") {
149 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000150 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000151 "codecs/cng/include",
152 ]
153}
154
kjellanderb62dbbe2016-09-23 00:38:52 -0700155rtc_static_library("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000156 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000157 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100158 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700159 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100160 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000161 ]
162
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700163 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000164
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000165 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800166 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -0700167 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100168 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700169 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000170 ]
171}
172
173config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200174 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000175}
176
kjellanderb62dbbe2016-09-23 00:38:52 -0700177rtc_static_library("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000178 sources = [
179 "codecs/red/audio_encoder_copy_red.cc",
180 "codecs/red/audio_encoder_copy_red.h",
181 ]
182
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700183 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000184
185 deps = [
ossueb1fde42017-05-02 06:46:30 -0700186 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100187 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700188 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000189 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000190}
191
192config("g711_config") {
193 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000194 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000195 "codecs/g711/include",
196 ]
197}
198
kjellanderb62dbbe2016-09-23 00:38:52 -0700199rtc_static_library("g711") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000200 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700201 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100202 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000203 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100204 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000205 ]
206
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700207 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000208
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200209 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800210 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800211 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800212 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700213 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200214 ]
kjellander7439f972016-12-05 22:47:46 -0800215 public_deps = [
216 ":g711_c",
217 ]
218}
219
220rtc_source_set("g711_c") {
221 visibility = [ ":*" ] # Only targets in this file can depend on this.
222 sources = [
223 "codecs/g711/g711.c",
224 "codecs/g711/g711.h",
225 "codecs/g711/g711_interface.c",
226 "codecs/g711/g711_interface.h",
227 ]
kjellander676e08f2016-12-07 08:23:27 -0800228 deps = [
229 "../..:webrtc_common",
230 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000231}
232
233config("g722_config") {
234 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000235 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000236 "codecs/g722/include",
237 ]
238}
239
kjellanderb62dbbe2016-09-23 00:38:52 -0700240rtc_static_library("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000241 sources = [
kwibergada4c132015-09-17 03:12:35 -0700242 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100243 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000244 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100245 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000246 ]
247
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700248 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000249
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200250 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800251 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800252 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800253 "../../api/audio_codecs:audio_codecs_api",
kwibergb8727ae2017-06-17 17:41:59 -0700254 "../../api/audio_codecs/g722:audio_encoder_g722_config",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700255 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200256 ]
kjellander7439f972016-12-05 22:47:46 -0800257 public_deps = [
258 ":g722_c",
259 ]
260}
261
262rtc_source_set("g722_c") {
263 visibility = [ ":*" ] # Only targets in this file can depend on this.
264 sources = [
265 "codecs/g722/g722_decode.c",
266 "codecs/g722/g722_enc_dec.h",
267 "codecs/g722/g722_encode.c",
268 "codecs/g722/g722_interface.c",
269 "codecs/g722/g722_interface.h",
270 ]
kjellander676e08f2016-12-07 08:23:27 -0800271 deps = [
272 "../..:webrtc_common",
273 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000274}
275
276config("ilbc_config") {
277 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000278 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100279 "codecs/ilbc/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000280 ]
281}
282
kjellanderb62dbbe2016-09-23 00:38:52 -0700283rtc_static_library("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000284 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700285 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100286 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200287 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100288 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800289 ]
290
291 public_configs = [ ":ilbc_config" ]
292
293 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800294 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800295 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800296 "../../api/audio_codecs:audio_codecs_api",
solenbergdb3c9b02017-06-28 02:05:04 -0700297 "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
kjellander7439f972016-12-05 22:47:46 -0800298 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700299 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800300 ]
301 public_deps = [
302 ":ilbc_c",
303 ]
304}
305
306rtc_source_set("ilbc_c") {
307 visibility = [ ":*" ] # Only targets in this file can depend on this.
308 sources = [
309 "codecs/ilbc/abs_quant.c",
310 "codecs/ilbc/abs_quant.h",
311 "codecs/ilbc/abs_quant_loop.c",
312 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000313 "codecs/ilbc/augmented_cb_corr.c",
314 "codecs/ilbc/augmented_cb_corr.h",
315 "codecs/ilbc/bw_expand.c",
316 "codecs/ilbc/bw_expand.h",
317 "codecs/ilbc/cb_construct.c",
318 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200319 "codecs/ilbc/cb_mem_energy.c",
320 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000321 "codecs/ilbc/cb_mem_energy_augmentation.c",
322 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000323 "codecs/ilbc/cb_mem_energy_calc.c",
324 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000325 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200326 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000327 "codecs/ilbc/cb_search_core.c",
328 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000329 "codecs/ilbc/cb_update_best_index.c",
330 "codecs/ilbc/cb_update_best_index.h",
331 "codecs/ilbc/chebyshev.c",
332 "codecs/ilbc/chebyshev.h",
333 "codecs/ilbc/comp_corr.c",
334 "codecs/ilbc/comp_corr.h",
335 "codecs/ilbc/constants.c",
336 "codecs/ilbc/constants.h",
337 "codecs/ilbc/create_augmented_vec.c",
338 "codecs/ilbc/create_augmented_vec.h",
339 "codecs/ilbc/decode.c",
340 "codecs/ilbc/decode.h",
341 "codecs/ilbc/decode_residual.c",
342 "codecs/ilbc/decode_residual.h",
343 "codecs/ilbc/decoder_interpolate_lsf.c",
344 "codecs/ilbc/decoder_interpolate_lsf.h",
345 "codecs/ilbc/defines.h",
346 "codecs/ilbc/do_plc.c",
347 "codecs/ilbc/do_plc.h",
348 "codecs/ilbc/encode.c",
349 "codecs/ilbc/encode.h",
350 "codecs/ilbc/energy_inverse.c",
351 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200352 "codecs/ilbc/enh_upsample.c",
353 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000354 "codecs/ilbc/enhancer.c",
355 "codecs/ilbc/enhancer.h",
356 "codecs/ilbc/enhancer_interface.c",
357 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000358 "codecs/ilbc/filtered_cb_vecs.c",
359 "codecs/ilbc/filtered_cb_vecs.h",
360 "codecs/ilbc/frame_classify.c",
361 "codecs/ilbc/frame_classify.h",
362 "codecs/ilbc/gain_dequant.c",
363 "codecs/ilbc/gain_dequant.h",
364 "codecs/ilbc/gain_quant.c",
365 "codecs/ilbc/gain_quant.h",
366 "codecs/ilbc/get_cd_vec.c",
367 "codecs/ilbc/get_cd_vec.h",
368 "codecs/ilbc/get_lsp_poly.c",
369 "codecs/ilbc/get_lsp_poly.h",
370 "codecs/ilbc/get_sync_seq.c",
371 "codecs/ilbc/get_sync_seq.h",
372 "codecs/ilbc/hp_input.c",
373 "codecs/ilbc/hp_input.h",
374 "codecs/ilbc/hp_output.c",
375 "codecs/ilbc/hp_output.h",
376 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100377 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000378 "codecs/ilbc/index_conv_dec.c",
379 "codecs/ilbc/index_conv_dec.h",
380 "codecs/ilbc/index_conv_enc.c",
381 "codecs/ilbc/index_conv_enc.h",
382 "codecs/ilbc/init_decode.c",
383 "codecs/ilbc/init_decode.h",
384 "codecs/ilbc/init_encode.c",
385 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000386 "codecs/ilbc/interpolate.c",
387 "codecs/ilbc/interpolate.h",
388 "codecs/ilbc/interpolate_samples.c",
389 "codecs/ilbc/interpolate_samples.h",
390 "codecs/ilbc/lpc_encode.c",
391 "codecs/ilbc/lpc_encode.h",
392 "codecs/ilbc/lsf_check.c",
393 "codecs/ilbc/lsf_check.h",
394 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
395 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
396 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
397 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
398 "codecs/ilbc/lsf_to_lsp.c",
399 "codecs/ilbc/lsf_to_lsp.h",
400 "codecs/ilbc/lsf_to_poly.c",
401 "codecs/ilbc/lsf_to_poly.h",
402 "codecs/ilbc/lsp_to_lsf.c",
403 "codecs/ilbc/lsp_to_lsf.h",
404 "codecs/ilbc/my_corr.c",
405 "codecs/ilbc/my_corr.h",
406 "codecs/ilbc/nearest_neighbor.c",
407 "codecs/ilbc/nearest_neighbor.h",
408 "codecs/ilbc/pack_bits.c",
409 "codecs/ilbc/pack_bits.h",
410 "codecs/ilbc/poly_to_lsf.c",
411 "codecs/ilbc/poly_to_lsf.h",
412 "codecs/ilbc/poly_to_lsp.c",
413 "codecs/ilbc/poly_to_lsp.h",
414 "codecs/ilbc/refiner.c",
415 "codecs/ilbc/refiner.h",
416 "codecs/ilbc/simple_interpolate_lsf.c",
417 "codecs/ilbc/simple_interpolate_lsf.h",
418 "codecs/ilbc/simple_lpc_analysis.c",
419 "codecs/ilbc/simple_lpc_analysis.h",
420 "codecs/ilbc/simple_lsf_dequant.c",
421 "codecs/ilbc/simple_lsf_dequant.h",
422 "codecs/ilbc/simple_lsf_quant.c",
423 "codecs/ilbc/simple_lsf_quant.h",
424 "codecs/ilbc/smooth.c",
425 "codecs/ilbc/smooth.h",
426 "codecs/ilbc/smooth_out_data.c",
427 "codecs/ilbc/smooth_out_data.h",
428 "codecs/ilbc/sort_sq.c",
429 "codecs/ilbc/sort_sq.h",
430 "codecs/ilbc/split_vq.c",
431 "codecs/ilbc/split_vq.h",
432 "codecs/ilbc/state_construct.c",
433 "codecs/ilbc/state_construct.h",
434 "codecs/ilbc/state_search.c",
435 "codecs/ilbc/state_search.h",
436 "codecs/ilbc/swap_bytes.c",
437 "codecs/ilbc/swap_bytes.h",
438 "codecs/ilbc/unpack_bits.c",
439 "codecs/ilbc/unpack_bits.h",
440 "codecs/ilbc/vq3.c",
441 "codecs/ilbc/vq3.h",
442 "codecs/ilbc/vq4.c",
443 "codecs/ilbc/vq4.h",
444 "codecs/ilbc/window32_w32.c",
445 "codecs/ilbc/window32_w32.h",
446 "codecs/ilbc/xcorr_coef.c",
447 "codecs/ilbc/xcorr_coef.h",
448 ]
449
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700450 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000451
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000452 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800453 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800454 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100455 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700456 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000457 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000458}
459
kjellanderb62dbbe2016-09-23 00:38:52 -0700460rtc_static_library("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700461 sources = [
462 "codecs/isac/audio_encoder_isac_t.h",
463 "codecs/isac/audio_encoder_isac_t_impl.h",
464 "codecs/isac/locked_bandwidth_info.cc",
465 "codecs/isac/locked_bandwidth_info.h",
466 ]
kjellander676e08f2016-12-07 08:23:27 -0800467 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800468 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700469 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700470 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -0800471 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700472}
473
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000474config("isac_config") {
475 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000476 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100477 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000478 ]
479}
480
kjellanderb62dbbe2016-09-23 00:38:52 -0700481rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000482 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800483 "codecs/isac/main/include/audio_decoder_isac.h",
484 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800485 "codecs/isac/main/source/audio_decoder_isac.cc",
486 "codecs/isac/main/source/audio_encoder_isac.cc",
487 ]
488
489 deps = [
kjellander7439f972016-12-05 22:47:46 -0800490 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800491 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800492 ]
493 public_deps = [
494 ":isac_c",
495 ]
496}
497
498rtc_static_library("isac_c") {
499 visibility = [ ":*" ] # Only targets in this file can depend on this.
500 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100501 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000502 "codecs/isac/main/source/arith_routines.c",
503 "codecs/isac/main/source/arith_routines.h",
504 "codecs/isac/main/source/arith_routines_hist.c",
505 "codecs/isac/main/source/arith_routines_logist.c",
506 "codecs/isac/main/source/bandwidth_estimator.c",
507 "codecs/isac/main/source/bandwidth_estimator.h",
508 "codecs/isac/main/source/codec.h",
509 "codecs/isac/main/source/crc.c",
510 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000511 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200512 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000513 "codecs/isac/main/source/encode.c",
514 "codecs/isac/main/source/encode_lpc_swb.c",
515 "codecs/isac/main/source/encode_lpc_swb.h",
516 "codecs/isac/main/source/entropy_coding.c",
517 "codecs/isac/main/source/entropy_coding.h",
518 "codecs/isac/main/source/fft.c",
519 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200520 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000521 "codecs/isac/main/source/filterbank_tables.c",
522 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200523 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000524 "codecs/isac/main/source/intialize.c",
525 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200526 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000527 "codecs/isac/main/source/lattice.c",
528 "codecs/isac/main/source/lpc_analysis.c",
529 "codecs/isac/main/source/lpc_analysis.h",
530 "codecs/isac/main/source/lpc_gain_swb_tables.c",
531 "codecs/isac/main/source/lpc_gain_swb_tables.h",
532 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
533 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
534 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
535 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
536 "codecs/isac/main/source/lpc_tables.c",
537 "codecs/isac/main/source/lpc_tables.h",
538 "codecs/isac/main/source/os_specific_inline.h",
539 "codecs/isac/main/source/pitch_estimator.c",
540 "codecs/isac/main/source/pitch_estimator.h",
541 "codecs/isac/main/source/pitch_filter.c",
542 "codecs/isac/main/source/pitch_gain_tables.c",
543 "codecs/isac/main/source/pitch_gain_tables.h",
544 "codecs/isac/main/source/pitch_lag_tables.c",
545 "codecs/isac/main/source/pitch_lag_tables.h",
546 "codecs/isac/main/source/settings.h",
547 "codecs/isac/main/source/spectrum_ar_model_tables.c",
548 "codecs/isac/main/source/spectrum_ar_model_tables.h",
549 "codecs/isac/main/source/structs.h",
550 "codecs/isac/main/source/transform.c",
551 ]
552
553 if (is_linux) {
554 libs = [ "m" ]
555 }
556
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700557 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000558
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000559 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800560 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700561 "../..:webrtc_common",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000562 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700563 "../../rtc_base:compile_assert_c",
564 "../../rtc_base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000565 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000566}
567
568config("isac_fix_config") {
569 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000570 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100571 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000572 ]
573}
574
kjellanderb62dbbe2016-09-23 00:38:52 -0700575rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000576 sources = [
kjellander7439f972016-12-05 22:47:46 -0800577 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
578 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
579 ]
580
581 public_configs = [ ":isac_fix_config" ]
582
583 deps = [
kjellander7439f972016-12-05 22:47:46 -0800584 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800585 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800586 "../../common_audio",
587 "../../system_wrappers",
588 ]
589 public_deps = [
590 ":isac_fix_c",
591 ]
592
593 if (rtc_build_with_neon) {
594 deps += [ ":isac_neon" ]
595 }
596}
597
kwiberga6ca5182017-01-30 05:28:54 -0800598rtc_source_set("isac_fix_common") {
599 visibility = [ ":*" ] # Only targets in this file can depend on this.
600 sources = [
601 "codecs/isac/fix/source/codec.h",
602 "codecs/isac/fix/source/fft.c",
603 "codecs/isac/fix/source/fft.h",
604 "codecs/isac/fix/source/settings.h",
605 ]
606 public_configs = [ ":isac_fix_config" ]
607}
kjellander676e08f2016-12-07 08:23:27 -0800608
mbonadei5c0d7032017-07-06 03:48:55 -0700609rtc_source_set("isac_fix_c_arm_asm") {
610 sources = []
611 if (current_cpu == "arm" && arm_version >= 7) {
612 sources += [
613 "codecs/isac/fix/source/lattice_armv7.S",
614 "codecs/isac/fix/source/pitch_filter_armv6.S",
615 ]
616 }
617}
618
kwiberga6ca5182017-01-30 05:28:54 -0800619rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800620 visibility = [ ":*" ] # Only targets in this file can depend on this.
621 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100622 "codecs/isac/fix/include/audio_decoder_isacfix.h",
623 "codecs/isac/fix/include/audio_encoder_isacfix.h",
624 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000625 "codecs/isac/fix/source/arith_routines.c",
626 "codecs/isac/fix/source/arith_routines_hist.c",
627 "codecs/isac/fix/source/arith_routines_logist.c",
628 "codecs/isac/fix/source/arith_routins.h",
629 "codecs/isac/fix/source/bandwidth_estimator.c",
630 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000631 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200632 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000633 "codecs/isac/fix/source/decode_plc.c",
634 "codecs/isac/fix/source/encode.c",
635 "codecs/isac/fix/source/entropy_coding.c",
636 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000637 "codecs/isac/fix/source/filterbank_tables.c",
638 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200639 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000640 "codecs/isac/fix/source/filters.c",
641 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200642 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000643 "codecs/isac/fix/source/isacfix.c",
644 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700645 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000646 "codecs/isac/fix/source/lpc_masking_model.c",
647 "codecs/isac/fix/source/lpc_masking_model.h",
648 "codecs/isac/fix/source/lpc_tables.c",
649 "codecs/isac/fix/source/lpc_tables.h",
650 "codecs/isac/fix/source/pitch_estimator.c",
651 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700652 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000653 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700654 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000655 "codecs/isac/fix/source/pitch_gain_tables.c",
656 "codecs/isac/fix/source/pitch_gain_tables.h",
657 "codecs/isac/fix/source/pitch_lag_tables.c",
658 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000659 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
660 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
661 "codecs/isac/fix/source/structs.h",
662 "codecs/isac/fix/source/transform.c",
663 "codecs/isac/fix/source/transform_tables.c",
664 ]
665
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700666 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000667
kjellander676e08f2016-12-07 08:23:27 -0800668 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800669 ":isac_common",
670 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800671 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800672 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700673 "../../rtc_base:compile_assert_c",
674 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -0800675 "../../system_wrappers",
676 ]
677
kwiberga6ca5182017-01-30 05:28:54 -0800678 public_deps = [
679 ":isac_fix_common",
680 ]
681
mbonadeie5dc3ce2017-01-25 05:34:46 -0800682 if (rtc_build_with_neon) {
683 deps += [ ":isac_neon" ]
684 }
685
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700686 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700687 sources -= [
688 "codecs/isac/fix/source/lattice_c.c",
689 "codecs/isac/fix/source/pitch_filter_c.c",
690 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700691 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000692 }
693
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000694 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000695 sources += [
696 "codecs/isac/fix/source/entropy_coding_mips.c",
697 "codecs/isac/fix/source/filters_mips.c",
698 "codecs/isac/fix/source/lattice_mips.c",
699 "codecs/isac/fix/source/pitch_estimator_mips.c",
700 "codecs/isac/fix/source/transform_mips.c",
701 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700702 sources -= [
703 "codecs/isac/fix/source/lattice_c.c",
704 "codecs/isac/fix/source/pitch_estimator_c.c",
705 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000706 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200707 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000708 }
709 if (mips_dsp_rev > 1) {
710 sources += [
711 "codecs/isac/fix/source/lpc_masking_model_mips.c",
712 "codecs/isac/fix/source/pitch_filter_mips.c",
713 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200714 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000715 }
716 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000717}
718
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700719if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700720 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800721 sources = [
722 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800723 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800724 "codecs/isac/fix/source/filters_neon.c",
725 "codecs/isac/fix/source/lattice_neon.c",
726 "codecs/isac/fix/source/transform_neon.c",
727 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000728
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700729 if (current_cpu != "arm64") {
730 # Enable compilation for the NEON instruction set. This is needed
731 # since //build/config/arm.gni only enables NEON for iOS, not Android.
732 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700733 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700734 cflags = [ "-mfpu=neon" ]
735 }
736
737 # Disable LTO on NEON targets due to compiler bug.
738 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000739 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000740 cflags -= [
741 "-flto",
742 "-ffat-lto-objects",
743 ]
744 }
745
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200746 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800747 ":isac_fix_common",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200748 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700749 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200750 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000751 }
752}
753
754config("pcm16b_config") {
755 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000756 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000757 "codecs/pcm16b/include",
758 ]
759}
760
kjellanderb62dbbe2016-09-23 00:38:52 -0700761rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000762 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200763 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100764 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200765 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100766 "codecs/pcm16b/audio_encoder_pcm16b.h",
kwiberg7ea6e592017-08-16 06:12:57 -0700767 "codecs/pcm16b/pcm16b_common.cc",
768 "codecs/pcm16b/pcm16b_common.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000769 ]
770
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000771 deps = [
772 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800773 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800774 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800775 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700776 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000777 ]
kjellander7439f972016-12-05 22:47:46 -0800778 public_deps = [
779 ":pcm16b_c",
780 ]
781 public_configs = [ ":pcm16b_config" ]
782}
783
784rtc_source_set("pcm16b_c") {
785 visibility = [ ":*" ] # Only targets in this file can depend on this.
786 sources = [
787 "codecs/pcm16b/pcm16b.c",
788 "codecs/pcm16b/pcm16b.h",
789 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000790
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700791 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800792 deps = [
793 "../..:webrtc_common",
794 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000795}
796
797config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000798 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000799}
800
kjellanderb62dbbe2016-09-23 00:38:52 -0700801rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000802 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200803 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100804 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000805 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100806 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000807 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000808
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200809 deps = [
minyue41b9c802016-10-06 07:13:54 -0700810 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800811 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800812 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700813 "../../api/audio_codecs/opus:audio_encoder_opus_config",
michaelt566d8202017-01-12 10:17:38 -0800814 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700815 "../../rtc_base:rtc_base_approved",
816 "../../rtc_base:rtc_numerics",
kjellander676e08f2016-12-07 08:23:27 -0800817 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200818 ]
kjellander7439f972016-12-05 22:47:46 -0800819 public_deps = [
820 ":webrtc_opus_c",
kwiberge5eb7242017-08-25 03:10:50 -0700821 "../../rtc_base:protobuf_utils",
kjellander7439f972016-12-05 22:47:46 -0800822 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000823
michaelta55f0212017-02-02 07:47:19 -0800824 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800825
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000826 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800827 public_deps += [ rtc_opus_dir ]
828 } else if (build_with_mozilla) {
829 include_dirs = [ getenv("DIST") + "/include/opus" ]
830 }
831}
832
833rtc_source_set("webrtc_opus_c") {
834 visibility = [ ":*" ] # Only targets in this file can depend on this.
835 sources = [
836 "codecs/opus/opus_inst.h",
837 "codecs/opus/opus_interface.c",
838 "codecs/opus/opus_interface.h",
839 ]
840
minyue2e03c662017-02-01 17:31:11 -0800841 defines = audio_coding_defines
842
kjellander7439f972016-12-05 22:47:46 -0800843 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700844 public_deps = [
845 rtc_opus_dir,
846 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000847 } else if (build_with_mozilla) {
848 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000849 }
kjellander7439f972016-12-05 22:47:46 -0800850
851 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800852 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700853 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800854 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000855}
856
minyue25f6a392016-09-22 22:23:20 -0700857if (rtc_enable_protobuf) {
858 proto_library("ana_debug_dump_proto") {
859 sources = [
860 "audio_network_adaptor/debug_dump.proto",
861 ]
jbudorick58f17252017-07-26 14:49:20 -0700862 deps = [
863 ":ana_config_proto",
864 ]
sakal363a2912017-01-13 06:52:12 -0800865 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700866 }
minyuea1d9ad02016-10-02 14:53:37 -0700867 proto_library("ana_config_proto") {
868 sources = [
869 "audio_network_adaptor/config.proto",
870 ]
871 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
872 }
minyue25f6a392016-09-22 22:23:20 -0700873}
874
minyue0d382ef2016-10-07 07:59:28 -0700875rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700876 sources = [
877 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700878 "audio_network_adaptor/audio_network_adaptor_impl.cc",
879 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700880 "audio_network_adaptor/bitrate_controller.cc",
881 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700882 "audio_network_adaptor/channel_controller.cc",
883 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700884 "audio_network_adaptor/controller.cc",
885 "audio_network_adaptor/controller.h",
886 "audio_network_adaptor/controller_manager.cc",
887 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700888 "audio_network_adaptor/debug_dump_writer.cc",
889 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700890 "audio_network_adaptor/dtx_controller.cc",
891 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800892 "audio_network_adaptor/event_log_writer.cc",
893 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700894 "audio_network_adaptor/fec_controller_plr_based.cc",
895 "audio_network_adaptor/fec_controller_plr_based.h",
896 "audio_network_adaptor/fec_controller_rplr_based.cc",
897 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700898 "audio_network_adaptor/frame_length_controller.cc",
899 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700900 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700901 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700902 ]
minyue25f6a392016-09-22 22:23:20 -0700903
minyue41b9c802016-10-06 07:13:54 -0700904 deps = [
905 "../..:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -0800906 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800907 "../../logging:rtc_event_log_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700908 "../../rtc_base:protobuf_utils",
909 "../../rtc_base:rtc_base_approved",
minyue41b9c802016-10-06 07:13:54 -0700910 "../../system_wrappers",
911 ]
912
minyue25f6a392016-09-22 22:23:20 -0700913 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700914 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700915 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700916 ":ana_debug_dump_proto",
917 ]
minyue25f6a392016-09-22 22:23:20 -0700918 }
minyue4b7c9522017-01-24 04:54:59 -0800919
920 if (!build_with_chromium && is_clang) {
921 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
922 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
923 }
minyue7610f852016-09-07 13:51:51 -0700924}
925
kwiberg65cb70d2017-03-03 06:16:28 -0800926rtc_source_set("neteq_decoder_enum") {
927 sources = [
928 "neteq/neteq_decoder_enum.cc",
929 "neteq/neteq_decoder_enum.h",
930 ]
931 deps = [
932 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700933 "../../rtc_base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -0800934 ]
935}
kjellander676e08f2016-12-07 08:23:27 -0800936
kwiberg65cb70d2017-03-03 06:16:28 -0800937rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000938 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000939 "neteq/accelerate.cc",
940 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000941 "neteq/audio_decoder_impl.cc",
942 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000943 "neteq/audio_multi_vector.cc",
944 "neteq/audio_multi_vector.h",
945 "neteq/audio_vector.cc",
946 "neteq/audio_vector.h",
947 "neteq/background_noise.cc",
948 "neteq/background_noise.h",
949 "neteq/buffer_level_filter.cc",
950 "neteq/buffer_level_filter.h",
951 "neteq/comfort_noise.cc",
952 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700953 "neteq/cross_correlation.cc",
954 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000955 "neteq/decision_logic.cc",
956 "neteq/decision_logic.h",
957 "neteq/decision_logic_fax.cc",
958 "neteq/decision_logic_fax.h",
959 "neteq/decision_logic_normal.cc",
960 "neteq/decision_logic_normal.h",
961 "neteq/decoder_database.cc",
962 "neteq/decoder_database.h",
963 "neteq/defines.h",
964 "neteq/delay_manager.cc",
965 "neteq/delay_manager.h",
966 "neteq/delay_peak_detector.cc",
967 "neteq/delay_peak_detector.h",
968 "neteq/dsp_helper.cc",
969 "neteq/dsp_helper.h",
970 "neteq/dtmf_buffer.cc",
971 "neteq/dtmf_buffer.h",
972 "neteq/dtmf_tone_generator.cc",
973 "neteq/dtmf_tone_generator.h",
974 "neteq/expand.cc",
975 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100976 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000977 "neteq/merge.cc",
978 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700979 "neteq/nack_tracker.cc",
980 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200981 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000982 "neteq/neteq_impl.cc",
983 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000984 "neteq/normal.cc",
985 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -0700986 "neteq/packet.cc",
987 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000988 "neteq/packet_buffer.cc",
989 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000990 "neteq/post_decode_vad.cc",
991 "neteq/post_decode_vad.h",
992 "neteq/preemptive_expand.cc",
993 "neteq/preemptive_expand.h",
994 "neteq/random_vector.cc",
995 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -0700996 "neteq/red_payload_splitter.cc",
997 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000998 "neteq/rtcp.cc",
999 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001000 "neteq/statistics_calculator.cc",
1001 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001002 "neteq/sync_buffer.cc",
1003 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001004 "neteq/tick_timer.cc",
1005 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001006 "neteq/time_stretch.cc",
1007 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001008 "neteq/timestamp_scaler.cc",
1009 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001010 ]
1011
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001012 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001013 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001014 ":cng",
1015 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001016 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001017 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001018 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001019 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001020 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001021 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001022 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001023 "../../rtc_base:gtest_prod",
1024 "../../rtc_base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001025 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001026 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001027
1028 defines = []
1029
kwibergf8c2bac2016-01-18 06:38:32 -08001030 if (rtc_include_ilbc) {
1031 defines += [ "WEBRTC_CODEC_ILBC" ]
1032 deps += [ ":ilbc" ]
1033 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001034 if (rtc_include_opus) {
1035 defines += [ "WEBRTC_CODEC_OPUS" ]
1036 deps += [ ":webrtc_opus" ]
1037 }
kwiberg98ab3a42015-09-30 21:54:21 -07001038 if (!build_with_mozilla) {
1039 if (current_cpu == "arm") {
1040 defines += [ "WEBRTC_CODEC_ISACFX" ]
1041 deps += [ ":isac_fix" ]
1042 } else {
1043 defines += [ "WEBRTC_CODEC_ISAC" ]
1044 deps += [ ":isac" ]
1045 }
1046 defines += [ "WEBRTC_CODEC_G722" ]
1047 deps += [ ":g722" ]
1048 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001049}
kjellanderfb114242016-06-13 00:19:48 -07001050
henrik.lundin58466f62016-10-05 02:27:42 -07001051# Although providing only test support, this target must be outside of the
1052# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1053# that ultimately are built and run as a part of the Chromium ecosystem, which
1054# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001055rtc_source_set("neteq_tools_minimal") {
henrik.lundin58466f62016-10-05 02:27:42 -07001056 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001057 "neteq/tools/audio_sink.cc",
1058 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001059 "neteq/tools/encode_neteq_input.cc",
1060 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001061 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001062 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001063 "neteq/tools/neteq_test.cc",
1064 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001065 "neteq/tools/packet.cc",
1066 "neteq/tools/packet.h",
1067 "neteq/tools/packet_source.cc",
1068 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001069 ]
1070
kjellandere40a7ee2016-10-16 23:56:12 -07001071 if (!build_with_chromium && is_clang) {
1072 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001073 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1074 }
kjellander676e08f2016-12-07 08:23:27 -08001075
1076 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001077 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001078 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001079 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -07001080 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001081 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001082 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001083 "../rtp_rtcp",
kjellander676e08f2016-12-07 08:23:27 -08001084 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001085}
1086
mbonadei3edccb92017-06-01 04:47:20 -07001087rtc_source_set("neteq_test_tools") {
1088 testonly = true
1089 sources = [
1090 "neteq/tools/audio_checksum.h",
1091 "neteq/tools/audio_loop.cc",
1092 "neteq/tools/audio_loop.h",
1093 "neteq/tools/constant_pcm_packet_source.cc",
1094 "neteq/tools/constant_pcm_packet_source.h",
1095 "neteq/tools/output_audio_file.h",
1096 "neteq/tools/output_wav_file.h",
1097 "neteq/tools/rtp_file_source.cc",
1098 "neteq/tools/rtp_file_source.h",
1099 "neteq/tools/rtp_generator.cc",
1100 "neteq/tools/rtp_generator.h",
1101 ]
1102
1103 public_configs = [ ":neteq_tools_config" ]
1104
1105 if (!build_with_chromium && is_clang) {
1106 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1107 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1108 }
1109
1110 deps = [
1111 ":pcm16b",
1112 "..:module_api",
1113 "../..:webrtc_common",
mbonadei3edccb92017-06-01 04:47:20 -07001114 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001115 "../../rtc_base:rtc_base_approved",
1116 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001117 "../../test:rtp_test_utils",
1118 "../rtp_rtcp",
1119 ]
1120
1121 public_deps = [
1122 ":neteq_tools",
1123 ":neteq_tools_minimal",
1124 ]
1125
1126 if (rtc_enable_protobuf) {
1127 sources += [
1128 "neteq/tools/neteq_packet_source_input.cc",
1129 "neteq/tools/neteq_packet_source_input.h",
1130 ]
1131 deps += [ ":rtc_event_log_source" ]
1132 }
1133}
1134
1135config("neteq_tools_config") {
1136 include_dirs = [ "tools" ]
1137}
1138
1139rtc_source_set("neteq_tools") {
1140 sources = [
1141 "neteq/tools/fake_decode_from_file.cc",
1142 "neteq/tools/fake_decode_from_file.h",
1143 "neteq/tools/input_audio_file.cc",
1144 "neteq/tools/input_audio_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001145 "neteq/tools/neteq_delay_analyzer.cc",
1146 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001147 "neteq/tools/neteq_replacement_input.cc",
1148 "neteq/tools/neteq_replacement_input.h",
1149 "neteq/tools/resample_input_audio_file.cc",
1150 "neteq/tools/resample_input_audio_file.h",
1151 ]
1152
1153 public_configs = [ ":neteq_tools_config" ]
1154
1155 if (!build_with_chromium && is_clang) {
1156 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1157 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1158 }
1159
1160 deps = [
1161 "../..:webrtc_common",
1162 "../../api/audio_codecs:audio_codecs_api",
mbonadei3edccb92017-06-01 04:47:20 -07001163 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001164 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001165 "../rtp_rtcp",
1166 ]
1167
1168 public_deps = [
1169 ":neteq_tools_minimal",
1170 ]
1171}
1172
1173if (rtc_enable_protobuf) {
1174 rtc_static_library("rtc_event_log_source") {
1175 testonly = true
1176
1177 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1178 # Needs call.h to be moved to webrtc/api first.
1179 check_includes = false
1180
1181 sources = [
1182 "neteq/tools/rtc_event_log_source.cc",
1183 "neteq/tools/rtc_event_log_source.h",
1184 ]
1185
1186 if (!build_with_chromium && is_clang) {
1187 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1188 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1189 }
1190
1191 deps = [
mbonadei3edccb92017-06-01 04:47:20 -07001192 "../../logging:rtc_event_log_parser",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001193 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001194 ]
1195 public_deps = [
1196 "../../logging:rtc_event_log_proto",
1197 ]
1198 }
1199}
1200
kjellanderfb114242016-06-13 00:19:48 -07001201if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001202 group("audio_coding_tests") {
1203 testonly = true
1204 public_deps = [
1205 ":RTPchange",
1206 ":RTPencode",
1207 ":RTPjitter",
1208 ":RTPtimeshift",
1209 ":acm_receive_test",
1210 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001211 ":audio_codec_speed_tests",
1212 ":audio_decoder_unittests",
1213 ":audio_decoder_unittests",
1214 ":delay_test",
1215 ":g711_test",
1216 ":g722_test",
1217 ":ilbc_test",
1218 ":insert_packet_with_timing",
1219 ":isac_api_test",
1220 ":isac_fix_test",
1221 ":isac_switch_samprate_test",
1222 ":isac_test",
1223 ":neteq_ilbc_quality_test",
1224 ":neteq_isac_quality_test",
1225 ":neteq_opus_quality_test",
1226 ":neteq_pcmu_quality_test",
1227 ":neteq_speed_test",
1228 ":rtp_analyze",
1229 ":rtpcat",
1230 ":webrtc_opus_fec_test",
1231 ]
1232 if (rtc_enable_protobuf) {
1233 public_deps += [ ":neteq_rtpplay" ]
1234 }
1235 }
1236
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001237 rtc_source_set("audio_coding_modules_tests") {
1238 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001239
1240 # Skip restricting visibility on mobile platforms since the tests on those
1241 # gets additional generated targets which would require many lines here to
1242 # cover (which would be confusing to read and hard to maintain).
1243 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -07001244 visibility = [ "..:modules_tests" ]
kjellandere0629c02017-04-25 04:04:50 -07001245 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001246 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001247 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001248 "test/APITest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001249 "test/APITest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001250 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001251 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001252 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001253 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001254 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001255 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001256 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001257 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001258 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001259 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001260 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001261 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001262 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001263 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001264 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001265 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001266 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001267 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001268 "test/Tester.cc",
1269 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001270 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001271 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001272 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001273 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001274 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001275 "test/target_delay_unittest.cc",
1276 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001277 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001278 ]
1279 deps = [
1280 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001281 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001282 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001283 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001284 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001285 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001286 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001287 "../../rtc_base:rtc_base_approved",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001288 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001289 "../../test:test_support",
1290 ]
1291 defines = audio_coding_defines
1292 if (is_win) {
1293 cflags = [
1294 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1295 "/wd4373", # virtual function override.
1296 ]
1297 }
1298 if (!build_with_chromium && is_clang) {
1299 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1300 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1301 }
1302 }
1303
ehmaldonado021eef32017-01-05 07:09:50 -08001304 rtc_source_set("audio_coding_perf_tests") {
1305 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001306
1307 # Skip restricting visibility on mobile platforms since the tests on those
1308 # gets additional generated targets which would require many lines here to
1309 # cover (which would be confusing to read and hard to maintain).
1310 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -07001311 visibility = [ "../..:webrtc_perf_tests" ]
kjellandere0629c02017-04-25 04:04:50 -07001312 }
ehmaldonado021eef32017-01-05 07:09:50 -08001313 sources = [
1314 "codecs/opus/opus_complexity_unittest.cc",
1315 "neteq/test/neteq_performance_unittest.cc",
1316 ]
1317 deps = [
1318 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001319 ":neteq_test_tools",
ehmaldonado021eef32017-01-05 07:09:50 -08001320 ":webrtc_opus",
1321 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001322 "../../rtc_base:protobuf_utils",
1323 "../../rtc_base:rtc_base_approved",
ehmaldonado021eef32017-01-05 07:09:50 -08001324 "../../system_wrappers:system_wrappers",
1325 "../../test:test_support",
1326 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001327
ehmaldonado021eef32017-01-05 07:09:50 -08001328 if (!build_with_chromium && is_clang) {
1329 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1330 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1331 }
1332 }
1333
ehmaldonado38a21322016-09-02 04:10:34 -07001334 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001335 testonly = true
1336 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001337 "acm2/acm_receive_test.cc",
1338 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001339 ]
1340
kjellanderfb114242016-06-13 00:19:48 -07001341 defines = audio_coding_defines
1342
1343 deps = audio_coding_deps + [
1344 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001345 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001346 "../../api/audio_codecs:audio_codecs_api",
1347 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001348 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001349 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001350 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001351 "//testing/gtest",
1352 ]
1353 }
1354
ehmaldonado38a21322016-09-02 04:10:34 -07001355 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001356 testonly = true
1357 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001358 "acm2/acm_send_test.cc",
1359 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001360 ]
1361
kjellanderfb114242016-06-13 00:19:48 -07001362 defines = audio_coding_defines
1363
1364 deps = audio_coding_deps + [
1365 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001366 ":neteq_tools",
ossueb1fde42017-05-02 06:46:30 -07001367 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001368 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001369 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001370 "//testing/gtest",
1371 ]
1372 }
1373
ehmaldonado38a21322016-09-02 04:10:34 -07001374 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001375 testonly = true
1376 sources = [
1377 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001378 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001379 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001380 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001381 "test/delay_test.cc",
1382 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001383 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001384 ]
1385
aleloi333f2062016-07-28 01:21:29 -07001386 deps = [
1387 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001388 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001389 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001390 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001391 "../../:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001392 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001393 "../../system_wrappers",
1394 "../../system_wrappers:system_wrappers_default",
1395 "../../test:test_support",
1396 "../rtp_rtcp",
1397 "//testing/gtest",
aleloi333f2062016-07-28 01:21:29 -07001398 ]
1399 } # delay_test
1400
ehmaldonado38a21322016-09-02 04:10:34 -07001401 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001402 testonly = true
1403 sources = [
1404 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001405 "test/Channel.h",
aleloi00730c72016-07-28 01:27:10 -07001406 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001407 "test/PCMFile.h",
aleloi00730c72016-07-28 01:27:10 -07001408 "test/insert_packet_with_timing.cc",
1409 ]
1410
kjellandere40a7ee2016-10-16 23:56:12 -07001411 if (!build_with_chromium && is_clang) {
1412 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001413 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001414 }
1415
1416 deps = [
1417 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001418 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001419 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001420 "../../:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001421 "../../rtc_base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001422 "../../system_wrappers",
1423 "../../system_wrappers:system_wrappers_default",
1424 "../../test:test_support",
1425 "../rtp_rtcp",
1426 "//testing/gtest",
aleloi00730c72016-07-28 01:27:10 -07001427 ]
1428 } # insert_packet_with_timing
1429
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001430 audio_decoder_unittests_resources =
jianjun.zhuc0247402017-07-11 06:20:45 -07001431 [ "../../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001432
1433 if (is_ios) {
1434 bundle_data("audio_decoder_unittests_bundle_data") {
1435 testonly = true
1436 sources = audio_decoder_unittests_resources
1437 outputs = [
1438 "{{bundle_resources_dir}}/{{source_file_part}}",
1439 ]
1440 }
1441 }
1442
ehmaldonado38a21322016-09-02 04:10:34 -07001443 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001444 testonly = true
1445 sources = [
1446 "neteq/audio_decoder_unittest.cc",
1447 ]
1448
kjellandere40a7ee2016-10-16 23:56:12 -07001449 if (!build_with_chromium && is_clang) {
1450 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001451 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001452 }
1453
1454 deps = []
1455
1456 defines = neteq_defines
1457
1458 deps += audio_coding_deps
1459 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001460 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001461 ":isac",
1462 ":isac_fix",
1463 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001464 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001465 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001466 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001467 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001468 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001469 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001470 "//testing/gtest",
1471 ]
1472
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001473 data = audio_decoder_unittests_resources
1474
charujainddf3e4a2016-08-01 07:49:42 -07001475 if (is_android) {
1476 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001477 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001478 }
kjellander32c4a202016-08-30 02:53:49 -07001479 if (is_ios) {
1480 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001481 }
1482 } # audio_decoder_unittests
1483
kjellanderfb114242016-06-13 00:19:48 -07001484 if (rtc_enable_protobuf) {
1485 proto_library("neteq_unittest_proto") {
1486 sources = [
1487 "neteq/neteq_unittest.proto",
1488 ]
kjellandere3e902e2017-02-28 08:01:46 -08001489 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001490 }
henrik.lundin03153f12016-06-21 05:38:42 -07001491
ehmaldonado38a21322016-09-02 04:10:34 -07001492 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001493 testonly = true
1494 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001495 deps = [
1496 "..:module_api",
1497 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001498 sources = [
1499 "neteq/tools/neteq_rtpplay.cc",
1500 ]
1501
kjellandere40a7ee2016-10-16 23:56:12 -07001502 if (!build_with_chromium && is_clang) {
1503 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001504 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001505 }
1506
1507 if (is_win) {
1508 cflags = [
1509 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1510 "/wd4373", # virtual function override.
1511 ]
1512 }
1513
1514 deps += [
1515 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001516 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001517 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001518 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001519 "../../system_wrappers:system_wrappers_default",
1520 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001521 ]
1522 }
kjellanderfb114242016-06-13 00:19:48 -07001523 }
1524
minyue81f1da32017-07-27 05:49:57 -07001525 audio_codec_speed_tests_resources = [
1526 "//resources/audio_coding/music_stereo_48kHz.pcm",
1527 "//resources/audio_coding/speech_mono_16kHz.pcm",
1528 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1529 ]
1530
1531 if (is_ios) {
1532 bundle_data("audio_codec_speed_tests_data") {
1533 testonly = true
1534 sources = audio_codec_speed_tests_resources
1535 outputs = [
1536 "{{bundle_resources_dir}}/{{source_file_part}}",
1537 ]
1538 }
1539 }
1540
ehmaldonado38a21322016-09-02 04:10:34 -07001541 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001542 testonly = true
1543 defines = []
1544 deps = []
1545 sources = [
1546 "codecs/isac/fix/test/isac_speed_test.cc",
1547 "codecs/opus/opus_speed_test.cc",
1548 "codecs/tools/audio_codec_speed_test.cc",
1549 "codecs/tools/audio_codec_speed_test.h",
1550 ]
1551
kjellandere40a7ee2016-10-16 23:56:12 -07001552 if (!build_with_chromium && is_clang) {
1553 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001554 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001555 }
1556
minyue81f1da32017-07-27 05:49:57 -07001557 data = audio_codec_speed_tests_resources
1558
aleloie6b60a42016-07-28 02:34:30 -07001559 if (is_android) {
1560 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001561 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001562 }
1563
minyue81f1da32017-07-27 05:49:57 -07001564 if (is_ios) {
1565 deps += [ ":audio_codec_speed_tests_data" ]
1566 }
1567
aleloie6b60a42016-07-28 02:34:30 -07001568 deps += [
1569 ":isac_fix",
1570 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001571 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001572 "../../rtc_base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001573 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001574 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001575 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001576 "//testing/gtest",
1577 ]
1578 }
1579
ehmaldonado38a21322016-09-02 04:10:34 -07001580 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001581 testonly = true
1582 sources = [
1583 "neteq/tools/neteq_external_decoder_test.cc",
1584 "neteq/tools/neteq_external_decoder_test.h",
1585 "neteq/tools/neteq_performance_test.cc",
1586 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001587 ]
1588
kjellandere40a7ee2016-10-16 23:56:12 -07001589 if (!build_with_chromium && is_clang) {
1590 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001591 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001592 }
1593
1594 deps = [
1595 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001596 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001597 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001598 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001599 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001600 "../../api/audio_codecs:audio_codecs_api",
1601 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001602 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001603 "../../system_wrappers",
1604 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001605 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001606 ]
1607 }
1608
ehmaldonado38a21322016-09-02 04:10:34 -07001609 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001610 testonly = true
1611 sources = [
1612 "neteq/tools/neteq_quality_test.cc",
1613 "neteq/tools/neteq_quality_test.h",
1614 ]
1615
kjellandere40a7ee2016-10-16 23:56:12 -07001616 if (!build_with_chromium && is_clang) {
1617 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001618 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001619 }
1620
1621 deps = [
1622 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001623 ":neteq_test_tools",
mbonadei1140f972017-04-26 03:38:35 -07001624 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001625 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001626 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001627 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001628 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001629 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001630 ]
1631 }
1632
henrik.lundinb637a942017-04-28 00:59:45 -07001633 rtc_source_set("neteq_test_tools_deprecated") {
aleloi3022a342016-07-26 06:36:03 -07001634 testonly = true
1635 sources = [
1636 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1637 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1638 "neteq/test/NETEQTEST_RTPpacket.cc",
1639 "neteq/test/NETEQTEST_RTPpacket.h",
1640 ]
1641
1642 deps = [
1643 ":cng",
1644 ":g711",
1645 ":g722",
1646 ":ilbc",
1647 ":isac",
1648 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001649 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001650 "../..:webrtc_common",
1651 "//testing/gtest",
1652 ]
1653
1654 include_dirs = [
1655 "neteq/include",
1656 "neteq/test",
1657 "../../",
1658 ]
1659
1660 if (is_win) {
1661 cflags = [
1662 # Disable warnings to enable Win64 build, issue 1323.
1663 "/wd4267", # size_t to int truncation
1664 ]
1665 }
1666 }
aleloi47bded42016-07-26 06:46:19 -07001667
aleloi82667732016-08-02 01:45:50 -07001668 config("RTPencode_config") {
1669 defines = [
1670 "CODEC_ILBC",
1671 "CODEC_PCM16B",
1672 "CODEC_G711",
1673 "CODEC_G722",
1674 "CODEC_ISAC",
1675 "CODEC_PCM16B_WB",
1676 "CODEC_ISAC_SWB",
1677 "CODEC_PCM16B_32KHZ",
1678 "CODEC_PCM16B_48KHZ",
1679 "CODEC_CNGCODEC8",
1680 "CODEC_CNGCODEC16",
1681 "CODEC_CNGCODEC32",
1682 "CODEC_ATEVENT_DECODE",
1683 "CODEC_RED",
1684 "CODEC_OPUS",
1685 ]
1686 }
1687
ehmaldonado38a21322016-09-02 04:10:34 -07001688 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001689 testonly = true
1690
1691 deps = [
1692 # TODO(hlundin): Make RTPencode use ACM to encode files.
1693 ":cng",
1694 ":g711",
1695 ":g722",
1696 ":ilbc",
1697 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001698 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001699 ":neteq_test_tools_deprecated",
aleloi82667732016-08-02 01:45:50 -07001700 ":pcm16b",
1701 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001702 "../..:webrtc_common",
aleloi82667732016-08-02 01:45:50 -07001703 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001704 "../../rtc_base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001705 ]
1706
1707 configs += [ ":RTPencode_config" ]
1708
1709 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001710 "neteq/test/PayloadTypes.h",
aleloi82667732016-08-02 01:45:50 -07001711 "neteq/test/RTPencode.cc",
1712 ]
1713
1714 include_dirs = [
1715 "neteq/include",
1716 "neteq/test",
1717 ]
1718
1719 if (is_win) {
1720 cflags = [
1721 # Disable warnings to enable Win64 build, issue 1323.
1722 "/wd4267", # size_t to int truncation
1723 ]
1724 }
1725 }
1726
ehmaldonado38a21322016-09-02 04:10:34 -07001727 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001728 testonly = true
1729
1730 sources = [
1731 "neteq/test/RTPchange.cc",
1732 ]
1733
1734 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001735 ":neteq_test_tools_deprecated",
aleloi76cbe192016-08-02 02:05:03 -07001736 ]
1737 }
1738
ehmaldonado38a21322016-09-02 04:10:34 -07001739 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001740 testonly = true
1741
1742 sources = [
1743 "neteq/tools/rtpcat.cc",
1744 ]
1745
1746 deps = [
ehmaldonadof6a861a2017-07-19 10:40:47 -07001747 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001748 "../../system_wrappers:system_wrappers_default",
1749 "../../test:rtp_test_utils",
1750 "//testing/gtest",
1751 ]
1752 }
1753
ehmaldonado38a21322016-09-02 04:10:34 -07001754 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001755 testonly = true
1756
1757 sources = [
1758 "neteq/test/RTPtimeshift.cc",
1759 ]
1760
1761 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001762 ":neteq_test_tools_deprecated",
kjellander676e08f2016-12-07 08:23:27 -08001763 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001764 "//testing/gtest",
1765 ]
1766 }
1767
ehmaldonado38a21322016-09-02 04:10:34 -07001768 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001769 testonly = true
1770 deps = [
1771 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001772 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001773 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001774 "//testing/gtest",
1775 ]
1776 sources = [
1777 "neteq/test/RTPjitter.cc",
1778 ]
1779 }
1780
ehmaldonado38a21322016-09-02 04:10:34 -07001781 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001782 testonly = true
1783
1784 sources = [
1785 "neteq/tools/rtp_analyze.cc",
1786 ]
1787
1788 deps = [
1789 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001790 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001791 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001792 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001793 "../../system_wrappers:system_wrappers_default",
1794 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001795 ]
1796
kjellandere40a7ee2016-10-16 23:56:12 -07001797 if (!build_with_chromium && is_clang) {
1798 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001799 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001800 }
1801 }
aleloi630c6d52016-08-10 02:11:30 -07001802
ehmaldonado38a21322016-09-02 04:10:34 -07001803 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001804 testonly = true
1805
1806 sources = [
1807 "neteq/test/neteq_opus_quality_test.cc",
1808 ]
1809
1810 deps = [
1811 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001812 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001813 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001814 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001815 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001816 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001817 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001818 ]
aleloi630c6d52016-08-10 02:11:30 -07001819 }
aleloi116fd612016-08-10 04:16:36 -07001820
ehmaldonado38a21322016-09-02 04:10:34 -07001821 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001822 testonly = true
1823
1824 sources = [
1825 "neteq/test/neteq_speed_test.cc",
1826 ]
1827
1828 deps = [
1829 ":neteq",
1830 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001831 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001832 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001833 "../../system_wrappers:system_wrappers_default",
1834 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001835 ]
1836 }
aleloi63910122016-08-10 04:41:14 -07001837
ehmaldonado38a21322016-09-02 04:10:34 -07001838 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001839 testonly = true
1840
1841 sources = [
1842 "neteq/test/neteq_ilbc_quality_test.cc",
1843 ]
1844
1845 deps = [
1846 ":ilbc",
1847 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001848 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001849 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001850 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001851 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001852 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001853 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001854 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001855 ]
1856 }
aleloi6df36dc2016-08-10 05:04:47 -07001857
ehmaldonado38a21322016-09-02 04:10:34 -07001858 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001859 testonly = true
1860
1861 sources = [
1862 "neteq/test/neteq_isac_quality_test.cc",
1863 ]
1864
1865 deps = [
1866 ":isac_fix",
1867 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001868 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001869 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001870 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001871 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001872 ]
1873 }
aleloic4ac7002016-08-10 05:06:27 -07001874
ehmaldonado38a21322016-09-02 04:10:34 -07001875 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001876 testonly = true
1877
1878 sources = [
1879 "neteq/test/neteq_pcmu_quality_test.cc",
1880 ]
1881
1882 deps = [
1883 ":g711",
1884 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001885 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001886 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001887 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001888 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001889 ]
1890 }
aleloib7186d02016-08-16 01:47:16 -07001891
ehmaldonado38a21322016-09-02 04:10:34 -07001892 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001893 testonly = true
1894
1895 sources = [
1896 "codecs/isac/fix/test/kenny.cc",
1897 ]
1898
1899 deps = [
1900 ":isac_fix",
1901 "../../test:test_support",
1902 ]
1903
1904 if (is_win) {
1905 cflags = [
1906 # Disable warnings to enable Win64 build, issue 1323.
1907 "/wd4267", # size_t to int truncation
1908 ]
1909 }
1910 }
aleloi16f55a12016-08-23 08:08:23 -07001911
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001912 config("isac_test_warnings_config") {
1913 if (is_win && is_clang) {
1914 cflags = [
1915 # Disable warnings failing when compiling with Clang on Windows.
1916 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1917 "-Wno-format",
1918 ]
1919 }
1920 }
1921
kjellander7439f972016-12-05 22:47:46 -08001922 rtc_source_set("isac_test_util") {
1923 testonly = true
1924 sources = [
1925 "codecs/isac/main/util/utility.c",
1926 ]
1927 }
1928
ehmaldonado38a21322016-09-02 04:10:34 -07001929 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001930 testonly = true
1931
1932 sources = [
1933 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001934 ]
1935
1936 include_dirs = [
1937 "codecs/isac/main/include",
1938 "codecs/isac/main/test",
1939 "codecs/isac/main/util",
1940 ]
1941
1942 deps = [
1943 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001944 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001945 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001946 ]
1947
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001948 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001949 }
1950
ehmaldonado38a21322016-09-02 04:10:34 -07001951 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001952 testonly = true
1953
1954 sources = [
1955 "codecs/g711/test/testG711.cc",
1956 ]
1957
aleloi16f55a12016-08-23 08:08:23 -07001958 deps = [
1959 ":g711",
1960 ]
1961 }
aleloi9a117842016-08-23 08:36:10 -07001962
ehmaldonado38a21322016-09-02 04:10:34 -07001963 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001964 testonly = true
1965
1966 sources = [
1967 "codecs/g722/test/testG722.cc",
1968 ]
1969
aleloi9a117842016-08-23 08:36:10 -07001970 deps = [
1971 ":g722",
1972 "../..:webrtc_common",
1973 ]
1974 }
ivoc2c670db2016-08-24 06:11:18 -07001975
ehmaldonado38a21322016-09-02 04:10:34 -07001976 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001977 testonly = true
1978
1979 sources = [
1980 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001981 ]
1982
aleloicfee2152016-08-29 04:09:19 -07001983 deps = [
1984 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001985 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001986 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001987 ]
1988
1989 include_dirs = [
1990 "codecs/isac/main/include",
1991 "codecs/isac/main/test",
1992 "codecs/isac/main/util",
1993 ]
1994 }
1995
ehmaldonado38a21322016-09-02 04:10:34 -07001996 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001997 testonly = true
1998
1999 sources = [
2000 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002001 ]
2002
aleloicfee2152016-08-29 04:09:19 -07002003 deps = [
2004 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002005 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07002006 ]
2007
2008 include_dirs = [
2009 "codecs/isac/main/include",
2010 "codecs/isac/main/test",
2011 "codecs/isac/main/util",
2012 "../../common_audio/signal_processing/include",
2013 ]
2014 }
2015
ehmaldonado38a21322016-09-02 04:10:34 -07002016 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002017 testonly = true
2018
2019 sources = [
2020 "codecs/ilbc/test/iLBC_test.c",
2021 ]
2022
aleloicfee2152016-08-29 04:09:19 -07002023 deps = [
2024 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002025 ]
2026 }
2027
ehmaldonado38a21322016-09-02 04:10:34 -07002028 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002029 testonly = true
2030
2031 sources = [
2032 "codecs/opus/opus_fec_test.cc",
2033 ]
2034
2035 deps = [
2036 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002037 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002038 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08002039 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002040 "//testing/gtest",
2041 ]
2042
kjellandere40a7ee2016-10-16 23:56:12 -07002043 if (!build_with_chromium && is_clang) {
2044 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002045 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002046 }
2047 }
ehmaldonado36268652017-01-19 08:27:11 -08002048
2049 rtc_source_set("audio_coding_unittests") {
2050 testonly = true
2051
kjellandere0629c02017-04-25 04:04:50 -07002052 # Skip restricting visibility on mobile platforms since the tests on those
2053 # gets additional generated targets which would require many lines here to
2054 # cover (which would be confusing to read and hard to maintain).
2055 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -07002056 visibility = [ "..:modules_unittests" ]
kjellandere0629c02017-04-25 04:04:50 -07002057 }
ehmaldonado36268652017-01-19 08:27:11 -08002058 sources = [
2059 "acm2/acm_receiver_unittest.cc",
2060 "acm2/audio_coding_module_unittest.cc",
2061 "acm2/call_statistics_unittest.cc",
2062 "acm2/codec_manager_unittest.cc",
2063 "acm2/rent_a_codec_unittest.cc",
2064 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2065 "audio_network_adaptor/bitrate_controller_unittest.cc",
2066 "audio_network_adaptor/channel_controller_unittest.cc",
2067 "audio_network_adaptor/controller_manager_unittest.cc",
2068 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002069 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002070 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2071 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002072 "audio_network_adaptor/frame_length_controller_unittest.cc",
2073 "audio_network_adaptor/mock/mock_controller.h",
2074 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002075 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002076 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002077 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002078 "codecs/cng/audio_encoder_cng_unittest.cc",
2079 "codecs/cng/cng_unittest.cc",
2080 "codecs/ilbc/ilbc_unittest.cc",
2081 "codecs/isac/fix/source/filterbanks_unittest.cc",
2082 "codecs/isac/fix/source/filters_unittest.cc",
2083 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2084 "codecs/isac/fix/source/transform_unittest.cc",
2085 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2086 "codecs/isac/main/source/isac_unittest.cc",
2087 "codecs/isac/unittest.cc",
2088 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002089 "codecs/opus/audio_encoder_opus_unittest.cc",
2090 "codecs/opus/opus_unittest.cc",
2091 "codecs/red/audio_encoder_copy_red_unittest.cc",
2092 "neteq/audio_multi_vector_unittest.cc",
2093 "neteq/audio_vector_unittest.cc",
2094 "neteq/background_noise_unittest.cc",
2095 "neteq/buffer_level_filter_unittest.cc",
2096 "neteq/comfort_noise_unittest.cc",
2097 "neteq/decision_logic_unittest.cc",
2098 "neteq/decoder_database_unittest.cc",
2099 "neteq/delay_manager_unittest.cc",
2100 "neteq/delay_peak_detector_unittest.cc",
2101 "neteq/dsp_helper_unittest.cc",
2102 "neteq/dtmf_buffer_unittest.cc",
2103 "neteq/dtmf_tone_generator_unittest.cc",
2104 "neteq/expand_unittest.cc",
2105 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002106 "neteq/mock/mock_buffer_level_filter.h",
2107 "neteq/mock/mock_decoder_database.h",
2108 "neteq/mock/mock_delay_manager.h",
2109 "neteq/mock/mock_delay_peak_detector.h",
2110 "neteq/mock/mock_dtmf_buffer.h",
2111 "neteq/mock/mock_dtmf_tone_generator.h",
2112 "neteq/mock/mock_expand.h",
2113 "neteq/mock/mock_external_decoder_pcm16b.h",
2114 "neteq/mock/mock_packet_buffer.h",
2115 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002116 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002117 "neteq/nack_tracker_unittest.cc",
2118 "neteq/neteq_external_decoder_unittest.cc",
2119 "neteq/neteq_impl_unittest.cc",
2120 "neteq/neteq_network_stats_unittest.cc",
2121 "neteq/neteq_stereo_unittest.cc",
2122 "neteq/neteq_unittest.cc",
2123 "neteq/normal_unittest.cc",
2124 "neteq/packet_buffer_unittest.cc",
2125 "neteq/post_decode_vad_unittest.cc",
2126 "neteq/random_vector_unittest.cc",
2127 "neteq/red_payload_splitter_unittest.cc",
2128 "neteq/sync_buffer_unittest.cc",
2129 "neteq/tick_timer_unittest.cc",
2130 "neteq/time_stretch_unittest.cc",
2131 "neteq/timestamp_scaler_unittest.cc",
2132 "neteq/tools/input_audio_file_unittest.cc",
2133 "neteq/tools/packet_unittest.cc",
2134 ]
2135
2136 deps = [
2137 ":acm_receive_test",
2138 ":acm_send_test",
2139 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002140 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002141 ":audio_format_conversion",
2142 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002143 ":cng",
2144 ":g711",
2145 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002146 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002147 ":isac_c",
2148 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002149 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002150 ":neteq",
2151 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002152 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002153 ":pcm16b",
2154 ":red",
2155 ":rent_a_codec",
2156 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002157 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002158 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002159 "../../api/audio_codecs:audio_codecs_api",
2160 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002161 "../../api/audio_codecs:builtin_audio_encoder_factory",
ehmaldonado36268652017-01-19 08:27:11 -08002162 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002163 "../../rtc_base:protobuf_utils",
2164 "../../rtc_base:rtc_base",
2165 "../../rtc_base:rtc_base_approved",
2166 "../../rtc_base:rtc_base_tests_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002167 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002168 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002169 "../../test:field_trial",
2170 "../../test:rtp_test_utils",
2171 "../../test:test_common",
2172 "../../test:test_support",
2173 "//testing/gmock",
2174 "//testing/gtest",
ehmaldonado36268652017-01-19 08:27:11 -08002175 ]
2176
2177 defines = audio_coding_defines
2178
2179 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002180 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002181 deps += [
2182 ":ana_config_proto",
2183 ":neteq_unittest_proto",
2184 ]
2185 }
2186
2187 if (!build_with_chromium && is_clang) {
2188 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2189 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2190 }
2191 }
kjellanderfb114242016-06-13 00:19:48 -07002192}
kwiberg087bd342017-02-10 08:15:44 -08002193
2194# For backwards compatibility only! Use
2195# webrtc/api/audio_codecs:audio_codecs_api instead.
2196# TODO(kwiberg): Remove this.
2197rtc_source_set("audio_decoder_interface") {
2198 sources = [
2199 "codecs/audio_decoder.h",
2200 ]
2201 deps = [
2202 "../../api/audio_codecs:audio_codecs_api",
2203 ]
2204}
2205
2206# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002207# webrtc/api/audio_codecs:audio_codecs_api instead.
2208# TODO(ossu): Remove this.
2209rtc_source_set("audio_encoder_interface") {
2210 sources = [
2211 "codecs/audio_encoder.h",
2212 ]
2213 deps = [
2214 "../../api/audio_codecs:audio_codecs_api",
2215 ]
2216}
2217
2218# For backwards compatibility only! Use
kwiberg087bd342017-02-10 08:15:44 -08002219# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2220# TODO(kwiberg): Remove this.
2221rtc_source_set("builtin_audio_decoder_factory") {
2222 sources = [
2223 "codecs/builtin_audio_decoder_factory.h",
2224 ]
2225 deps = [
2226 "../../api/audio_codecs:builtin_audio_decoder_factory",
2227 ]
2228}
ossueb1fde42017-05-02 06:46:30 -07002229
2230# For backwards compatibility only! Use
2231# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2232# TODO(ossu): Remove this.
2233rtc_source_set("builtin_audio_encoder_factory") {
2234 sources = [
2235 "codecs/builtin_audio_encoder_factory.h",
2236 ]
2237 deps = [
2238 "../../api/audio_codecs:builtin_audio_encoder_factory",
2239 ]
2240}