blob: 0b1ec180f0a41ce96591f51859e1abe6dcf176e4 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellanderfb114242016-06-13 00:19:48 -070010import("audio_coding.gni")
11import("//build/config/arm.gni")
kjellanderfb114242016-06-13 00:19:48 -070012import("//third_party/protobuf/proto_library.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013
kwiberg0edb05b2016-01-19 05:54:28 -080014audio_codec_deps = [
15 ":cng",
16 ":g711",
17 ":pcm16b",
18]
kwiberg0edb05b2016-01-19 05:54:28 -080019if (rtc_include_ilbc) {
kwiberg0edb05b2016-01-19 05:54:28 -080020 audio_codec_deps += [ ":ilbc" ]
21}
22if (rtc_include_opus) {
kwiberg0edb05b2016-01-19 05:54:28 -080023 audio_codec_deps += [ ":webrtc_opus" ]
24}
25if (!build_with_mozilla) {
26 if (current_cpu == "arm") {
kwiberg0edb05b2016-01-19 05:54:28 -080027 audio_codec_deps += [ ":isac_fix" ]
28 } else {
kwiberg0edb05b2016-01-19 05:54:28 -080029 audio_codec_deps += [ ":isac" ]
30 }
kwiberg0edb05b2016-01-19 05:54:28 -080031 audio_codec_deps += [ ":g722" ]
32}
33if (!build_with_mozilla && !build_with_chromium) {
kwiberg0edb05b2016-01-19 05:54:28 -080034 audio_codec_deps += [ ":red" ]
35}
kjellanderfb114242016-06-13 00:19:48 -070036audio_coding_deps = audio_codec_deps + [
37 "../..:webrtc_common",
38 "../../common_audio",
39 "../../system_wrappers",
40 ]
kwiberg0edb05b2016-01-19 05:54:28 -080041
kwibergda2bf4e2016-10-24 13:47:09 -070042rtc_static_library("audio_format_conversion") {
43 sources = [
44 "codecs/audio_format_conversion.cc",
45 "codecs/audio_format_conversion.h",
46 ]
47 deps = [
kwiberga6b82982016-10-24 16:31:17 -070048 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -080049 "../../api/audio_codecs:audio_codecs_api",
kwiberga6b82982016-10-24 16:31:17 -070050 "../../base:rtc_base_approved",
kwibergda2bf4e2016-10-24 13:47:09 -070051 ]
52}
53
kwiberg087bd342017-02-10 08:15:44 -080054rtc_static_library("builtin_audio_decoder_factory_internal") {
kwibergda2bf4e2016-10-24 13:47:09 -070055 sources = [
kwiberg087bd342017-02-10 08:15:44 -080056 "codecs/builtin_audio_decoder_factory_internal.cc",
57 "codecs/builtin_audio_decoder_factory_internal.h",
kwibergc01c6a42016-04-28 14:23:32 -070058 ]
kwibergc01c6a42016-04-28 14:23:32 -070059 deps = [
60 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -070061 "../../base:protobuf_utils",
62 "../../base:rtc_base_approved",
63 "../../api/audio_codecs:audio_codecs_api",
64 ] + audio_codec_deps
65 defines = audio_codec_defines
66}
67
68rtc_static_library("builtin_audio_encoder_factory_internal") {
69 sources = [
70 "codecs/builtin_audio_encoder_factory_internal.cc",
71 "codecs/builtin_audio_encoder_factory_internal.h",
72 ]
73 deps = [
74 "../..:webrtc_common",
75 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -080076 "../../base:rtc_base_approved",
kwiberg087bd342017-02-10 08:15:44 -080077 "../../api/audio_codecs:audio_codecs_api",
kwibergc01c6a42016-04-28 14:23:32 -070078 ] + audio_codec_deps
79 defines = audio_codec_defines
80}
81
kjellanderb62dbbe2016-09-23 00:38:52 -070082rtc_static_library("rent_a_codec") {
kwibergfce4a942015-10-27 11:40:24 -070083 sources = [
kjellander3e6db232015-11-26 04:44:54 -080084 "acm2/acm_codec_database.cc",
85 "acm2/acm_codec_database.h",
86 "acm2/rent_a_codec.cc",
87 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -070088 ]
kjellander676e08f2016-12-07 08:23:27 -080089 deps = [
kwiberg087bd342017-02-10 08:15:44 -080090 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -080091 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -070092 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -080093 "../../base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -080094 "../../system_wrappers",
95 ":audio_coding_module_typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -080096 ":isac_common",
97 ":isac_fix_c",
98 ":neteq_decoder_enum",
kjellander676e08f2016-12-07 08:23:27 -080099 ] + audio_codec_deps
mbonadei7c2c8432017-04-07 00:59:12 -0700100
kwiberg0edb05b2016-01-19 05:54:28 -0800101 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -0700102}
103
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000104config("audio_coding_config") {
105 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -0800106 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +0100107 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000108 ]
109}
110
kwiberg65cb70d2017-03-03 06:16:28 -0800111rtc_source_set("audio_coding_module_typedefs") {
112 sources = [
113 "include/audio_coding_module_typedefs.h",
114 ]
115 deps = [
mbonadei1140f972017-04-26 03:38:35 -0700116 "..:module_api",
kwiberg65cb70d2017-03-03 06:16:28 -0800117 "../..:webrtc_common",
118 ]
119}
120
kjellanderb62dbbe2016-09-23 00:38:52 -0700121rtc_static_library("audio_coding") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000122 sources = [
kjellander3e6db232015-11-26 04:44:54 -0800123 "acm2/acm_receiver.cc",
124 "acm2/acm_receiver.h",
125 "acm2/acm_resampler.cc",
126 "acm2/acm_resampler.h",
127 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800128 "acm2/call_statistics.cc",
129 "acm2/call_statistics.h",
130 "acm2/codec_manager.cc",
131 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800132 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000133 ]
134
135 defines = []
136
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700137 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000138
kjellanderfb114242016-06-13 00:19:48 -0700139 if (rtc_include_opus) {
140 public_deps = [
141 ":webrtc_opus",
142 ]
143 }
144
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000145 if (is_win) {
146 cflags = [
147 # TODO(kjellander): Bug 261: fix this warning.
148 "/wd4373", # virtual function override.
149 ]
150 }
151
kjellanderfb114242016-06-13 00:19:48 -0700152 deps = audio_coding_deps + [
mbonadei1140f972017-04-26 03:38:35 -0700153 "..:module_api",
kwiberg087bd342017-02-10 08:15:44 -0800154 "../../api/audio_codecs:audio_codecs_api",
155 "../../api/audio_codecs:builtin_audio_decoder_factory",
kwiberg65cb70d2017-03-03 06:16:28 -0800156 ":audio_coding_module_typedefs",
kwiberg0edb05b2016-01-19 05:54:28 -0800157 ":neteq",
158 ":rent_a_codec",
kjellander676e08f2016-12-07 08:23:27 -0800159 "../../base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -0700160 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800161 ]
kjellanderfb114242016-06-13 00:19:48 -0700162 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000163}
164
kwiberg087bd342017-02-10 08:15:44 -0800165rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000166 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700167 "codecs/legacy_encoded_audio_frame.cc",
168 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000169 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200170 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800171 "../../api/audio_codecs:audio_codecs_api",
kjellander4e7f6c12016-04-25 21:59:50 -0700172 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200173 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000174}
175
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000176config("cng_config") {
177 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000178 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000179 "codecs/cng/include",
180 ]
181}
182
kjellanderb62dbbe2016-09-23 00:38:52 -0700183rtc_static_library("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000184 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000185 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100186 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700187 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100188 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000189 ]
190
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700191 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000192
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000193 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800194 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -0700195 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800196 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100197 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000198 ]
199}
200
201config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200202 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000203}
204
kjellanderb62dbbe2016-09-23 00:38:52 -0700205rtc_static_library("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000206 sources = [
207 "codecs/red/audio_encoder_copy_red.cc",
208 "codecs/red/audio_encoder_copy_red.h",
209 ]
210
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700211 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000212
213 deps = [
ossueb1fde42017-05-02 06:46:30 -0700214 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800215 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100216 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000217 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000218}
219
220config("g711_config") {
221 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000222 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000223 "codecs/g711/include",
224 ]
225}
226
kjellanderb62dbbe2016-09-23 00:38:52 -0700227rtc_static_library("g711") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000228 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700229 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100230 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000231 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100232 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000233 ]
234
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700235 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000236
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200237 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800238 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800239 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800240 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800241 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200242 ]
kjellander7439f972016-12-05 22:47:46 -0800243 public_deps = [
244 ":g711_c",
245 ]
246}
247
248rtc_source_set("g711_c") {
249 visibility = [ ":*" ] # Only targets in this file can depend on this.
250 sources = [
251 "codecs/g711/g711.c",
252 "codecs/g711/g711.h",
253 "codecs/g711/g711_interface.c",
254 "codecs/g711/g711_interface.h",
255 ]
kjellander676e08f2016-12-07 08:23:27 -0800256 deps = [
257 "../..:webrtc_common",
258 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000259}
260
261config("g722_config") {
262 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000263 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000264 "codecs/g722/include",
265 ]
266}
267
kjellanderb62dbbe2016-09-23 00:38:52 -0700268rtc_static_library("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000269 sources = [
kwibergada4c132015-09-17 03:12:35 -0700270 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100271 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000272 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100273 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000274 ]
275
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700276 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000277
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200278 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800279 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800280 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800281 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800282 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200283 ]
kjellander7439f972016-12-05 22:47:46 -0800284 public_deps = [
285 ":g722_c",
286 ]
287}
288
289rtc_source_set("g722_c") {
290 visibility = [ ":*" ] # Only targets in this file can depend on this.
291 sources = [
292 "codecs/g722/g722_decode.c",
293 "codecs/g722/g722_enc_dec.h",
294 "codecs/g722/g722_encode.c",
295 "codecs/g722/g722_interface.c",
296 "codecs/g722/g722_interface.h",
297 ]
kjellander676e08f2016-12-07 08:23:27 -0800298 deps = [
299 "../..:webrtc_common",
300 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000301}
302
303config("ilbc_config") {
304 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000305 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100306 "codecs/ilbc/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000307 ]
308}
309
kjellanderb62dbbe2016-09-23 00:38:52 -0700310rtc_static_library("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000311 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700312 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100313 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200314 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100315 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800316 ]
317
318 public_configs = [ ":ilbc_config" ]
319
320 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800321 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800322 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800323 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800324 "../../base:rtc_base_approved",
325 "../../common_audio",
326 ]
327 public_deps = [
328 ":ilbc_c",
329 ]
330}
331
332rtc_source_set("ilbc_c") {
333 visibility = [ ":*" ] # Only targets in this file can depend on this.
334 sources = [
335 "codecs/ilbc/abs_quant.c",
336 "codecs/ilbc/abs_quant.h",
337 "codecs/ilbc/abs_quant_loop.c",
338 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000339 "codecs/ilbc/augmented_cb_corr.c",
340 "codecs/ilbc/augmented_cb_corr.h",
341 "codecs/ilbc/bw_expand.c",
342 "codecs/ilbc/bw_expand.h",
343 "codecs/ilbc/cb_construct.c",
344 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200345 "codecs/ilbc/cb_mem_energy.c",
346 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000347 "codecs/ilbc/cb_mem_energy_augmentation.c",
348 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000349 "codecs/ilbc/cb_mem_energy_calc.c",
350 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000351 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200352 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000353 "codecs/ilbc/cb_search_core.c",
354 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000355 "codecs/ilbc/cb_update_best_index.c",
356 "codecs/ilbc/cb_update_best_index.h",
357 "codecs/ilbc/chebyshev.c",
358 "codecs/ilbc/chebyshev.h",
359 "codecs/ilbc/comp_corr.c",
360 "codecs/ilbc/comp_corr.h",
361 "codecs/ilbc/constants.c",
362 "codecs/ilbc/constants.h",
363 "codecs/ilbc/create_augmented_vec.c",
364 "codecs/ilbc/create_augmented_vec.h",
365 "codecs/ilbc/decode.c",
366 "codecs/ilbc/decode.h",
367 "codecs/ilbc/decode_residual.c",
368 "codecs/ilbc/decode_residual.h",
369 "codecs/ilbc/decoder_interpolate_lsf.c",
370 "codecs/ilbc/decoder_interpolate_lsf.h",
371 "codecs/ilbc/defines.h",
372 "codecs/ilbc/do_plc.c",
373 "codecs/ilbc/do_plc.h",
374 "codecs/ilbc/encode.c",
375 "codecs/ilbc/encode.h",
376 "codecs/ilbc/energy_inverse.c",
377 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200378 "codecs/ilbc/enh_upsample.c",
379 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000380 "codecs/ilbc/enhancer.c",
381 "codecs/ilbc/enhancer.h",
382 "codecs/ilbc/enhancer_interface.c",
383 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000384 "codecs/ilbc/filtered_cb_vecs.c",
385 "codecs/ilbc/filtered_cb_vecs.h",
386 "codecs/ilbc/frame_classify.c",
387 "codecs/ilbc/frame_classify.h",
388 "codecs/ilbc/gain_dequant.c",
389 "codecs/ilbc/gain_dequant.h",
390 "codecs/ilbc/gain_quant.c",
391 "codecs/ilbc/gain_quant.h",
392 "codecs/ilbc/get_cd_vec.c",
393 "codecs/ilbc/get_cd_vec.h",
394 "codecs/ilbc/get_lsp_poly.c",
395 "codecs/ilbc/get_lsp_poly.h",
396 "codecs/ilbc/get_sync_seq.c",
397 "codecs/ilbc/get_sync_seq.h",
398 "codecs/ilbc/hp_input.c",
399 "codecs/ilbc/hp_input.h",
400 "codecs/ilbc/hp_output.c",
401 "codecs/ilbc/hp_output.h",
402 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100403 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000404 "codecs/ilbc/index_conv_dec.c",
405 "codecs/ilbc/index_conv_dec.h",
406 "codecs/ilbc/index_conv_enc.c",
407 "codecs/ilbc/index_conv_enc.h",
408 "codecs/ilbc/init_decode.c",
409 "codecs/ilbc/init_decode.h",
410 "codecs/ilbc/init_encode.c",
411 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000412 "codecs/ilbc/interpolate.c",
413 "codecs/ilbc/interpolate.h",
414 "codecs/ilbc/interpolate_samples.c",
415 "codecs/ilbc/interpolate_samples.h",
416 "codecs/ilbc/lpc_encode.c",
417 "codecs/ilbc/lpc_encode.h",
418 "codecs/ilbc/lsf_check.c",
419 "codecs/ilbc/lsf_check.h",
420 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
421 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
422 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
423 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
424 "codecs/ilbc/lsf_to_lsp.c",
425 "codecs/ilbc/lsf_to_lsp.h",
426 "codecs/ilbc/lsf_to_poly.c",
427 "codecs/ilbc/lsf_to_poly.h",
428 "codecs/ilbc/lsp_to_lsf.c",
429 "codecs/ilbc/lsp_to_lsf.h",
430 "codecs/ilbc/my_corr.c",
431 "codecs/ilbc/my_corr.h",
432 "codecs/ilbc/nearest_neighbor.c",
433 "codecs/ilbc/nearest_neighbor.h",
434 "codecs/ilbc/pack_bits.c",
435 "codecs/ilbc/pack_bits.h",
436 "codecs/ilbc/poly_to_lsf.c",
437 "codecs/ilbc/poly_to_lsf.h",
438 "codecs/ilbc/poly_to_lsp.c",
439 "codecs/ilbc/poly_to_lsp.h",
440 "codecs/ilbc/refiner.c",
441 "codecs/ilbc/refiner.h",
442 "codecs/ilbc/simple_interpolate_lsf.c",
443 "codecs/ilbc/simple_interpolate_lsf.h",
444 "codecs/ilbc/simple_lpc_analysis.c",
445 "codecs/ilbc/simple_lpc_analysis.h",
446 "codecs/ilbc/simple_lsf_dequant.c",
447 "codecs/ilbc/simple_lsf_dequant.h",
448 "codecs/ilbc/simple_lsf_quant.c",
449 "codecs/ilbc/simple_lsf_quant.h",
450 "codecs/ilbc/smooth.c",
451 "codecs/ilbc/smooth.h",
452 "codecs/ilbc/smooth_out_data.c",
453 "codecs/ilbc/smooth_out_data.h",
454 "codecs/ilbc/sort_sq.c",
455 "codecs/ilbc/sort_sq.h",
456 "codecs/ilbc/split_vq.c",
457 "codecs/ilbc/split_vq.h",
458 "codecs/ilbc/state_construct.c",
459 "codecs/ilbc/state_construct.h",
460 "codecs/ilbc/state_search.c",
461 "codecs/ilbc/state_search.h",
462 "codecs/ilbc/swap_bytes.c",
463 "codecs/ilbc/swap_bytes.h",
464 "codecs/ilbc/unpack_bits.c",
465 "codecs/ilbc/unpack_bits.h",
466 "codecs/ilbc/vq3.c",
467 "codecs/ilbc/vq3.h",
468 "codecs/ilbc/vq4.c",
469 "codecs/ilbc/vq4.h",
470 "codecs/ilbc/window32_w32.c",
471 "codecs/ilbc/window32_w32.h",
472 "codecs/ilbc/xcorr_coef.c",
473 "codecs/ilbc/xcorr_coef.h",
474 ]
475
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700476 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000477
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000478 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800479 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800480 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800481 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100482 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000483 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000484}
485
kjellanderb62dbbe2016-09-23 00:38:52 -0700486rtc_static_library("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700487 sources = [
488 "codecs/isac/audio_encoder_isac_t.h",
489 "codecs/isac/audio_encoder_isac_t_impl.h",
490 "codecs/isac/locked_bandwidth_info.cc",
491 "codecs/isac/locked_bandwidth_info.h",
492 ]
kjellander676e08f2016-12-07 08:23:27 -0800493 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800494 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700495 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800496 "../../base:rtc_base_approved",
497 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700498}
499
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000500config("isac_config") {
501 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000502 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100503 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000504 ]
505}
506
kjellanderb62dbbe2016-09-23 00:38:52 -0700507rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000508 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800509 "codecs/isac/main/include/audio_decoder_isac.h",
510 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800511 "codecs/isac/main/source/audio_decoder_isac.cc",
512 "codecs/isac/main/source/audio_encoder_isac.cc",
513 ]
514
515 deps = [
kjellander7439f972016-12-05 22:47:46 -0800516 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800517 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800518 ]
519 public_deps = [
520 ":isac_c",
521 ]
522}
523
524rtc_static_library("isac_c") {
525 visibility = [ ":*" ] # Only targets in this file can depend on this.
526 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100527 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000528 "codecs/isac/main/source/arith_routines.c",
529 "codecs/isac/main/source/arith_routines.h",
530 "codecs/isac/main/source/arith_routines_hist.c",
531 "codecs/isac/main/source/arith_routines_logist.c",
532 "codecs/isac/main/source/bandwidth_estimator.c",
533 "codecs/isac/main/source/bandwidth_estimator.h",
534 "codecs/isac/main/source/codec.h",
535 "codecs/isac/main/source/crc.c",
536 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000537 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200538 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000539 "codecs/isac/main/source/encode.c",
540 "codecs/isac/main/source/encode_lpc_swb.c",
541 "codecs/isac/main/source/encode_lpc_swb.h",
542 "codecs/isac/main/source/entropy_coding.c",
543 "codecs/isac/main/source/entropy_coding.h",
544 "codecs/isac/main/source/fft.c",
545 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200546 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000547 "codecs/isac/main/source/filterbank_tables.c",
548 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200549 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000550 "codecs/isac/main/source/intialize.c",
551 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200552 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000553 "codecs/isac/main/source/lattice.c",
554 "codecs/isac/main/source/lpc_analysis.c",
555 "codecs/isac/main/source/lpc_analysis.h",
556 "codecs/isac/main/source/lpc_gain_swb_tables.c",
557 "codecs/isac/main/source/lpc_gain_swb_tables.h",
558 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
559 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
560 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
561 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
562 "codecs/isac/main/source/lpc_tables.c",
563 "codecs/isac/main/source/lpc_tables.h",
564 "codecs/isac/main/source/os_specific_inline.h",
565 "codecs/isac/main/source/pitch_estimator.c",
566 "codecs/isac/main/source/pitch_estimator.h",
567 "codecs/isac/main/source/pitch_filter.c",
568 "codecs/isac/main/source/pitch_gain_tables.c",
569 "codecs/isac/main/source/pitch_gain_tables.h",
570 "codecs/isac/main/source/pitch_lag_tables.c",
571 "codecs/isac/main/source/pitch_lag_tables.h",
572 "codecs/isac/main/source/settings.h",
573 "codecs/isac/main/source/spectrum_ar_model_tables.c",
574 "codecs/isac/main/source/spectrum_ar_model_tables.h",
575 "codecs/isac/main/source/structs.h",
576 "codecs/isac/main/source/transform.c",
577 ]
578
579 if (is_linux) {
580 libs = [ "m" ]
581 }
582
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700583 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000584
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000585 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800586 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700587 "../..:webrtc_common",
588 "../../base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000589 "../../common_audio",
590 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000591}
592
593config("isac_fix_config") {
594 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000595 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100596 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000597 ]
598}
599
kjellanderb62dbbe2016-09-23 00:38:52 -0700600rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000601 sources = [
kjellander7439f972016-12-05 22:47:46 -0800602 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
603 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
604 ]
605
606 public_configs = [ ":isac_fix_config" ]
607
608 deps = [
kjellander7439f972016-12-05 22:47:46 -0800609 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800610 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800611 "../../common_audio",
612 "../../system_wrappers",
613 ]
614 public_deps = [
615 ":isac_fix_c",
616 ]
617
618 if (rtc_build_with_neon) {
619 deps += [ ":isac_neon" ]
620 }
621}
622
kwiberga6ca5182017-01-30 05:28:54 -0800623rtc_source_set("isac_fix_common") {
624 visibility = [ ":*" ] # Only targets in this file can depend on this.
625 sources = [
626 "codecs/isac/fix/source/codec.h",
627 "codecs/isac/fix/source/fft.c",
628 "codecs/isac/fix/source/fft.h",
629 "codecs/isac/fix/source/settings.h",
630 ]
631 public_configs = [ ":isac_fix_config" ]
632}
kjellander676e08f2016-12-07 08:23:27 -0800633
kwiberga6ca5182017-01-30 05:28:54 -0800634rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800635 visibility = [ ":*" ] # Only targets in this file can depend on this.
636 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100637 "codecs/isac/fix/include/audio_decoder_isacfix.h",
638 "codecs/isac/fix/include/audio_encoder_isacfix.h",
639 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000640 "codecs/isac/fix/source/arith_routines.c",
641 "codecs/isac/fix/source/arith_routines_hist.c",
642 "codecs/isac/fix/source/arith_routines_logist.c",
643 "codecs/isac/fix/source/arith_routins.h",
644 "codecs/isac/fix/source/bandwidth_estimator.c",
645 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000646 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200647 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000648 "codecs/isac/fix/source/decode_plc.c",
649 "codecs/isac/fix/source/encode.c",
650 "codecs/isac/fix/source/entropy_coding.c",
651 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000652 "codecs/isac/fix/source/filterbank_tables.c",
653 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200654 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000655 "codecs/isac/fix/source/filters.c",
656 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200657 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000658 "codecs/isac/fix/source/isacfix.c",
659 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700660 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000661 "codecs/isac/fix/source/lpc_masking_model.c",
662 "codecs/isac/fix/source/lpc_masking_model.h",
663 "codecs/isac/fix/source/lpc_tables.c",
664 "codecs/isac/fix/source/lpc_tables.h",
665 "codecs/isac/fix/source/pitch_estimator.c",
666 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700667 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000668 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700669 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000670 "codecs/isac/fix/source/pitch_gain_tables.c",
671 "codecs/isac/fix/source/pitch_gain_tables.h",
672 "codecs/isac/fix/source/pitch_lag_tables.c",
673 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000674 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
675 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
676 "codecs/isac/fix/source/structs.h",
677 "codecs/isac/fix/source/transform.c",
678 "codecs/isac/fix/source/transform_tables.c",
679 ]
680
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700681 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000682
kjellander676e08f2016-12-07 08:23:27 -0800683 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800684 ":isac_common",
685 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800686 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800687 "../../base:rtc_base_approved",
688 "../../common_audio",
689 "../../system_wrappers",
690 ]
691
kwiberga6ca5182017-01-30 05:28:54 -0800692 public_deps = [
693 ":isac_fix_common",
694 ]
695
mbonadeie5dc3ce2017-01-25 05:34:46 -0800696 if (rtc_build_with_neon) {
697 deps += [ ":isac_neon" ]
698 }
699
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700700 if (current_cpu == "arm" && arm_version >= 7) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000701 sources += [
702 "codecs/isac/fix/source/lattice_armv7.S",
703 "codecs/isac/fix/source/pitch_filter_armv6.S",
704 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700705 sources -= [
706 "codecs/isac/fix/source/lattice_c.c",
707 "codecs/isac/fix/source/pitch_filter_c.c",
708 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000709 }
710
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000711 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000712 sources += [
713 "codecs/isac/fix/source/entropy_coding_mips.c",
714 "codecs/isac/fix/source/filters_mips.c",
715 "codecs/isac/fix/source/lattice_mips.c",
716 "codecs/isac/fix/source/pitch_estimator_mips.c",
717 "codecs/isac/fix/source/transform_mips.c",
718 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700719 sources -= [
720 "codecs/isac/fix/source/lattice_c.c",
721 "codecs/isac/fix/source/pitch_estimator_c.c",
722 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000723 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200724 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000725 }
726 if (mips_dsp_rev > 1) {
727 sources += [
728 "codecs/isac/fix/source/lpc_masking_model_mips.c",
729 "codecs/isac/fix/source/pitch_filter_mips.c",
730 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200731 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000732 }
733 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000734}
735
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700736if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700737 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800738 sources = [
739 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800740 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800741 "codecs/isac/fix/source/filters_neon.c",
742 "codecs/isac/fix/source/lattice_neon.c",
743 "codecs/isac/fix/source/transform_neon.c",
744 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000745
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700746 if (current_cpu != "arm64") {
747 # Enable compilation for the NEON instruction set. This is needed
748 # since //build/config/arm.gni only enables NEON for iOS, not Android.
749 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700750 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700751 cflags = [ "-mfpu=neon" ]
752 }
753
754 # Disable LTO on NEON targets due to compiler bug.
755 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000756 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000757 cflags -= [
758 "-flto",
759 "-ffat-lto-objects",
760 ]
761 }
762
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200763 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800764 ":isac_fix_common",
kjellander676e08f2016-12-07 08:23:27 -0800765 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200766 "../../common_audio",
767 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000768 }
769}
770
771config("pcm16b_config") {
772 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000773 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000774 "codecs/pcm16b/include",
775 ]
776}
777
kjellanderb62dbbe2016-09-23 00:38:52 -0700778rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000779 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200780 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100781 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200782 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100783 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000784 ]
785
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000786 deps = [
787 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800788 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800789 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800790 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800791 "../../base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000792 ]
kjellander7439f972016-12-05 22:47:46 -0800793 public_deps = [
794 ":pcm16b_c",
795 ]
796 public_configs = [ ":pcm16b_config" ]
797}
798
799rtc_source_set("pcm16b_c") {
800 visibility = [ ":*" ] # Only targets in this file can depend on this.
801 sources = [
802 "codecs/pcm16b/pcm16b.c",
803 "codecs/pcm16b/pcm16b.h",
804 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000805
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700806 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800807 deps = [
808 "../..:webrtc_common",
809 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000810}
811
812config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000813 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000814}
815
kjellanderb62dbbe2016-09-23 00:38:52 -0700816rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000817 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200818 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100819 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000820 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100821 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000822 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000823
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200824 deps = [
minyue41b9c802016-10-06 07:13:54 -0700825 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800826 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800827 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -0700828 "../../base:protobuf_utils",
Henrik Lundind048aa02015-12-03 17:47:21 +0100829 "../../base:rtc_base_approved",
tereliusbc5d9212017-01-13 09:14:33 -0800830 "../../base:rtc_numerics",
michaelt566d8202017-01-12 10:17:38 -0800831 "../../common_audio",
kjellander676e08f2016-12-07 08:23:27 -0800832 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200833 ]
kjellander7439f972016-12-05 22:47:46 -0800834 public_deps = [
835 ":webrtc_opus_c",
836 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000837
michaelta55f0212017-02-02 07:47:19 -0800838 defines = audio_codec_defines
henrik.lundinfd87f4a2016-11-28 11:15:54 -0800839 if (rtc_opus_variable_complexity) {
840 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
841 } else {
842 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
843 }
henrik.lundin875862c2016-11-22 02:07:54 -0800844
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000845 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800846 public_deps += [ rtc_opus_dir ]
847 } else if (build_with_mozilla) {
848 include_dirs = [ getenv("DIST") + "/include/opus" ]
849 }
850}
851
852rtc_source_set("webrtc_opus_c") {
853 visibility = [ ":*" ] # Only targets in this file can depend on this.
854 sources = [
855 "codecs/opus/opus_inst.h",
856 "codecs/opus/opus_interface.c",
857 "codecs/opus/opus_interface.h",
858 ]
859
minyue2e03c662017-02-01 17:31:11 -0800860 defines = audio_coding_defines
861
kjellander7439f972016-12-05 22:47:46 -0800862 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700863 public_deps = [
864 rtc_opus_dir,
865 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000866 } else if (build_with_mozilla) {
867 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000868 }
kjellander7439f972016-12-05 22:47:46 -0800869
870 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800871 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800872 "../../base:rtc_base_approved",
873 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000874}
875
minyue25f6a392016-09-22 22:23:20 -0700876if (rtc_enable_protobuf) {
877 proto_library("ana_debug_dump_proto") {
878 sources = [
879 "audio_network_adaptor/debug_dump.proto",
880 ]
sakal363a2912017-01-13 06:52:12 -0800881 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700882 }
minyuea1d9ad02016-10-02 14:53:37 -0700883 proto_library("ana_config_proto") {
884 sources = [
885 "audio_network_adaptor/config.proto",
886 ]
887 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
888 }
minyue25f6a392016-09-22 22:23:20 -0700889}
890
minyue0d382ef2016-10-07 07:59:28 -0700891rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700892 sources = [
893 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700894 "audio_network_adaptor/audio_network_adaptor_impl.cc",
895 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700896 "audio_network_adaptor/bitrate_controller.cc",
897 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700898 "audio_network_adaptor/channel_controller.cc",
899 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700900 "audio_network_adaptor/controller.cc",
901 "audio_network_adaptor/controller.h",
902 "audio_network_adaptor/controller_manager.cc",
903 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700904 "audio_network_adaptor/debug_dump_writer.cc",
905 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700906 "audio_network_adaptor/dtx_controller.cc",
907 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800908 "audio_network_adaptor/event_log_writer.cc",
909 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700910 "audio_network_adaptor/fec_controller_plr_based.cc",
911 "audio_network_adaptor/fec_controller_plr_based.h",
912 "audio_network_adaptor/fec_controller_rplr_based.cc",
913 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700914 "audio_network_adaptor/frame_length_controller.cc",
915 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700916 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700917 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700918 ]
minyue25f6a392016-09-22 22:23:20 -0700919
minyue41b9c802016-10-06 07:13:54 -0700920 deps = [
921 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -0700922 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -0800923 "../../base:rtc_base_approved",
924 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800925 "../../logging:rtc_event_log_api",
minyue41b9c802016-10-06 07:13:54 -0700926 "../../system_wrappers",
927 ]
928
minyue25f6a392016-09-22 22:23:20 -0700929 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700930 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700931 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700932 ":ana_debug_dump_proto",
933 ]
934 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ]
935 }
minyue4b7c9522017-01-24 04:54:59 -0800936
937 if (!build_with_chromium && is_clang) {
938 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
939 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
940 }
minyue7610f852016-09-07 13:51:51 -0700941}
942
kwiberg65cb70d2017-03-03 06:16:28 -0800943rtc_source_set("neteq_decoder_enum") {
944 sources = [
945 "neteq/neteq_decoder_enum.cc",
946 "neteq/neteq_decoder_enum.h",
947 ]
948 deps = [
949 "../../api/audio_codecs:audio_codecs_api",
950 "../../base:rtc_base_approved",
951 ]
952}
kjellander676e08f2016-12-07 08:23:27 -0800953
kwiberg65cb70d2017-03-03 06:16:28 -0800954rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000955 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000956 "neteq/accelerate.cc",
957 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000958 "neteq/audio_decoder_impl.cc",
959 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000960 "neteq/audio_multi_vector.cc",
961 "neteq/audio_multi_vector.h",
962 "neteq/audio_vector.cc",
963 "neteq/audio_vector.h",
964 "neteq/background_noise.cc",
965 "neteq/background_noise.h",
966 "neteq/buffer_level_filter.cc",
967 "neteq/buffer_level_filter.h",
968 "neteq/comfort_noise.cc",
969 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700970 "neteq/cross_correlation.cc",
971 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000972 "neteq/decision_logic.cc",
973 "neteq/decision_logic.h",
974 "neteq/decision_logic_fax.cc",
975 "neteq/decision_logic_fax.h",
976 "neteq/decision_logic_normal.cc",
977 "neteq/decision_logic_normal.h",
978 "neteq/decoder_database.cc",
979 "neteq/decoder_database.h",
980 "neteq/defines.h",
981 "neteq/delay_manager.cc",
982 "neteq/delay_manager.h",
983 "neteq/delay_peak_detector.cc",
984 "neteq/delay_peak_detector.h",
985 "neteq/dsp_helper.cc",
986 "neteq/dsp_helper.h",
987 "neteq/dtmf_buffer.cc",
988 "neteq/dtmf_buffer.h",
989 "neteq/dtmf_tone_generator.cc",
990 "neteq/dtmf_tone_generator.h",
991 "neteq/expand.cc",
992 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100993 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000994 "neteq/merge.cc",
995 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700996 "neteq/nack_tracker.cc",
997 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200998 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000999 "neteq/neteq_impl.cc",
1000 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001001 "neteq/normal.cc",
1002 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001003 "neteq/packet.cc",
1004 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001005 "neteq/packet_buffer.cc",
1006 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001007 "neteq/post_decode_vad.cc",
1008 "neteq/post_decode_vad.h",
1009 "neteq/preemptive_expand.cc",
1010 "neteq/preemptive_expand.h",
1011 "neteq/random_vector.cc",
1012 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001013 "neteq/red_payload_splitter.cc",
1014 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001015 "neteq/rtcp.cc",
1016 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001017 "neteq/statistics_calculator.cc",
1018 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001019 "neteq/sync_buffer.cc",
1020 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001021 "neteq/tick_timer.cc",
1022 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001023 "neteq/time_stretch.cc",
1024 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001025 "neteq/timestamp_scaler.cc",
1026 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001027 ]
1028
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001029 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001030 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001031 ":cng",
1032 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001033 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001034 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001035 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001036 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001037 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001038 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001039 "../../base:gtest_prod",
1040 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001041 "../../common_audio",
1042 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001043 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001044
1045 defines = []
1046
kwibergf8c2bac2016-01-18 06:38:32 -08001047 if (rtc_include_ilbc) {
1048 defines += [ "WEBRTC_CODEC_ILBC" ]
1049 deps += [ ":ilbc" ]
1050 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001051 if (rtc_include_opus) {
1052 defines += [ "WEBRTC_CODEC_OPUS" ]
1053 deps += [ ":webrtc_opus" ]
1054 }
kwiberg98ab3a42015-09-30 21:54:21 -07001055 if (!build_with_mozilla) {
1056 if (current_cpu == "arm") {
1057 defines += [ "WEBRTC_CODEC_ISACFX" ]
1058 deps += [ ":isac_fix" ]
1059 } else {
1060 defines += [ "WEBRTC_CODEC_ISAC" ]
1061 deps += [ ":isac" ]
1062 }
1063 defines += [ "WEBRTC_CODEC_G722" ]
1064 deps += [ ":g722" ]
1065 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001066}
kjellanderfb114242016-06-13 00:19:48 -07001067
henrik.lundin58466f62016-10-05 02:27:42 -07001068# Although providing only test support, this target must be outside of the
1069# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1070# that ultimately are built and run as a part of the Chromium ecosystem, which
1071# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001072rtc_source_set("neteq_tools_minimal") {
henrik.lundin58466f62016-10-05 02:27:42 -07001073 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001074 "neteq/tools/audio_sink.cc",
1075 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001076 "neteq/tools/encode_neteq_input.cc",
1077 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001078 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001079 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001080 "neteq/tools/neteq_test.cc",
1081 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001082 "neteq/tools/packet.cc",
1083 "neteq/tools/packet.h",
1084 "neteq/tools/packet_source.cc",
1085 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001086 ]
1087
kjellandere40a7ee2016-10-16 23:56:12 -07001088 if (!build_with_chromium && is_clang) {
1089 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001090 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1091 }
kjellander676e08f2016-12-07 08:23:27 -08001092
1093 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001094 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001095 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001096 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -07001097 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001098 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001099 "../../base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001100 "../rtp_rtcp",
kjellander676e08f2016-12-07 08:23:27 -08001101 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001102}
1103
kjellanderfb114242016-06-13 00:19:48 -07001104if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001105 group("audio_coding_tests") {
1106 testonly = true
1107 public_deps = [
1108 ":RTPchange",
1109 ":RTPencode",
1110 ":RTPjitter",
1111 ":RTPtimeshift",
1112 ":acm_receive_test",
1113 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001114 ":audio_codec_speed_tests",
1115 ":audio_decoder_unittests",
1116 ":audio_decoder_unittests",
1117 ":delay_test",
1118 ":g711_test",
1119 ":g722_test",
1120 ":ilbc_test",
1121 ":insert_packet_with_timing",
1122 ":isac_api_test",
1123 ":isac_fix_test",
1124 ":isac_switch_samprate_test",
1125 ":isac_test",
1126 ":neteq_ilbc_quality_test",
1127 ":neteq_isac_quality_test",
1128 ":neteq_opus_quality_test",
1129 ":neteq_pcmu_quality_test",
1130 ":neteq_speed_test",
1131 ":rtp_analyze",
1132 ":rtpcat",
1133 ":webrtc_opus_fec_test",
1134 ]
1135 if (rtc_enable_protobuf) {
1136 public_deps += [ ":neteq_rtpplay" ]
1137 }
1138 }
1139
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001140 rtc_source_set("audio_coding_modules_tests") {
1141 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001142
1143 # Skip restricting visibility on mobile platforms since the tests on those
1144 # gets additional generated targets which would require many lines here to
1145 # cover (which would be confusing to read and hard to maintain).
1146 if (!is_android && !is_ios) {
1147 visibility = [ "//webrtc/modules:modules_tests" ]
1148 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001149 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001150 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001151 "test/APITest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001152 "test/APITest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001153 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001154 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001155 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001156 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001157 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001158 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001159 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001160 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001161 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001162 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001163 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001164 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001165 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001166 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001167 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001168 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001169 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001170 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001171 "test/Tester.cc",
1172 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001173 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001174 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001175 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001176 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001177 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001178 "test/target_delay_unittest.cc",
1179 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001180 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001181 ]
1182 deps = [
1183 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001184 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001185 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001186 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001187 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001188 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001189 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001190 "../../base:rtc_base_approved",
1191 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001192 "../../test:test_support",
1193 ]
1194 defines = audio_coding_defines
1195 if (is_win) {
1196 cflags = [
1197 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1198 "/wd4373", # virtual function override.
1199 ]
1200 }
1201 if (!build_with_chromium && is_clang) {
1202 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1203 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1204 }
1205 }
1206
ehmaldonado021eef32017-01-05 07:09:50 -08001207 rtc_source_set("audio_coding_perf_tests") {
1208 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001209
1210 # Skip restricting visibility on mobile platforms since the tests on those
1211 # gets additional generated targets which would require many lines here to
1212 # cover (which would be confusing to read and hard to maintain).
1213 if (!is_android && !is_ios) {
1214 visibility = [ "//webrtc:webrtc_perf_tests" ]
1215 }
ehmaldonado021eef32017-01-05 07:09:50 -08001216 sources = [
1217 "codecs/opus/opus_complexity_unittest.cc",
1218 "neteq/test/neteq_performance_unittest.cc",
1219 ]
1220 deps = [
1221 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001222 ":neteq_test_tools",
ehmaldonado021eef32017-01-05 07:09:50 -08001223 ":webrtc_opus",
1224 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -07001225 "../../base:protobuf_utils",
ehmaldonado021eef32017-01-05 07:09:50 -08001226 "../../base:rtc_base_approved",
1227 "../../system_wrappers:system_wrappers",
1228 "../../test:test_support",
1229 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001230
ehmaldonado021eef32017-01-05 07:09:50 -08001231 if (!build_with_chromium && is_clang) {
1232 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1233 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1234 }
1235 }
1236
ehmaldonado38a21322016-09-02 04:10:34 -07001237 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001238 testonly = true
1239 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001240 "acm2/acm_receive_test.cc",
1241 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001242 ]
1243
kjellanderfb114242016-06-13 00:19:48 -07001244 defines = audio_coding_defines
1245
1246 deps = audio_coding_deps + [
1247 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001248 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001249 "../../api/audio_codecs:audio_codecs_api",
1250 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001251 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001252 "../../base:rtc_base_approved",
1253 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001254 "//testing/gtest",
1255 ]
1256 }
1257
ehmaldonado38a21322016-09-02 04:10:34 -07001258 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001259 testonly = true
1260 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001261 "acm2/acm_send_test.cc",
1262 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001263 ]
1264
kjellanderfb114242016-06-13 00:19:48 -07001265 defines = audio_coding_defines
1266
1267 deps = audio_coding_deps + [
1268 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001269 ":neteq_tools",
ossueb1fde42017-05-02 06:46:30 -07001270 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001271 "../../base:rtc_base_approved",
1272 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001273 "//testing/gtest",
1274 ]
1275 }
1276
ehmaldonado38a21322016-09-02 04:10:34 -07001277 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001278 testonly = true
1279 sources = [
1280 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001281 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001282 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001283 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001284 "test/delay_test.cc",
1285 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001286 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001287 ]
1288
aleloi333f2062016-07-28 01:21:29 -07001289 deps = [
1290 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001291 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001292 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001293 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001294 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001295 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001296 "../../system_wrappers",
1297 "../../system_wrappers:system_wrappers_default",
1298 "../../test:test_support",
1299 "../rtp_rtcp",
1300 "//testing/gtest",
1301 "//third_party/gflags:gflags",
1302 ]
1303 } # delay_test
1304
ehmaldonado38a21322016-09-02 04:10:34 -07001305 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001306 testonly = true
1307 sources = [
1308 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001309 "test/Channel.h",
aleloi00730c72016-07-28 01:27:10 -07001310 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001311 "test/PCMFile.h",
aleloi00730c72016-07-28 01:27:10 -07001312 "test/insert_packet_with_timing.cc",
1313 ]
1314
kjellandere40a7ee2016-10-16 23:56:12 -07001315 if (!build_with_chromium && is_clang) {
1316 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001317 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001318 }
1319
1320 deps = [
1321 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001322 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001323 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001324 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001325 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001326 "../../system_wrappers",
1327 "../../system_wrappers:system_wrappers_default",
1328 "../../test:test_support",
1329 "../rtp_rtcp",
1330 "//testing/gtest",
1331 "//third_party/gflags:gflags",
1332 ]
1333 } # insert_packet_with_timing
1334
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001335 audio_decoder_unittests_resources =
1336 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001337
1338 if (is_ios) {
1339 bundle_data("audio_decoder_unittests_bundle_data") {
1340 testonly = true
1341 sources = audio_decoder_unittests_resources
1342 outputs = [
1343 "{{bundle_resources_dir}}/{{source_file_part}}",
1344 ]
1345 }
1346 }
1347
ehmaldonado38a21322016-09-02 04:10:34 -07001348 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001349 testonly = true
1350 sources = [
1351 "neteq/audio_decoder_unittest.cc",
1352 ]
1353
kjellandere40a7ee2016-10-16 23:56:12 -07001354 if (!build_with_chromium && is_clang) {
1355 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001356 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001357 }
1358
1359 deps = []
1360
1361 defines = neteq_defines
1362
1363 deps += audio_coding_deps
1364 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001365 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001366 ":isac",
1367 ":isac_fix",
1368 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001369 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001370 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -07001371 "../../base:protobuf_utils",
kjellander6ceab082016-10-28 05:44:03 -07001372 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001373 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001374 "//testing/gtest",
1375 ]
1376
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001377 data = audio_decoder_unittests_resources
1378
charujainddf3e4a2016-08-01 07:49:42 -07001379 if (is_android) {
1380 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001381 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001382 }
kjellander32c4a202016-08-30 02:53:49 -07001383 if (is_ios) {
1384 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001385 }
1386 } # audio_decoder_unittests
1387
kjellanderfb114242016-06-13 00:19:48 -07001388 if (rtc_enable_protobuf) {
1389 proto_library("neteq_unittest_proto") {
1390 sources = [
1391 "neteq/neteq_unittest.proto",
1392 ]
kjellandere3e902e2017-02-28 08:01:46 -08001393 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001394 }
henrik.lundin03153f12016-06-21 05:38:42 -07001395
mbonadei3d7b0e22017-04-26 00:38:48 -07001396 rtc_static_library("rtc_event_log_source") {
1397 testonly = true
1398
1399 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1400 # Needs call.h to be moved to webrtc/api first.
1401 check_includes = false
1402
1403 sources = [
1404 "neteq/tools/rtc_event_log_source.cc",
1405 "neteq/tools/rtc_event_log_source.h",
1406 ]
1407
1408 if (!build_with_chromium && is_clang) {
1409 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1410 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1411 }
1412
1413 deps = [
1414 "../../base:rtc_base_approved",
1415 "../../logging:rtc_event_log_parser",
1416 ]
1417 public_deps = [
1418 "../../logging:rtc_event_log_proto",
1419 ]
1420 }
1421
ehmaldonado38a21322016-09-02 04:10:34 -07001422 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001423 testonly = true
1424 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001425 deps = [
1426 "..:module_api",
1427 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001428 sources = [
1429 "neteq/tools/neteq_rtpplay.cc",
1430 ]
1431
kjellandere40a7ee2016-10-16 23:56:12 -07001432 if (!build_with_chromium && is_clang) {
1433 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001434 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001435 }
1436
1437 if (is_win) {
1438 cflags = [
1439 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1440 "/wd4373", # virtual function override.
1441 ]
1442 }
1443
1444 deps += [
1445 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001446 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001447 "../..:webrtc_common",
1448 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001449 "../../system_wrappers:system_wrappers_default",
1450 "../../test:test_support",
1451 "//third_party/gflags",
1452 ]
1453 }
kjellanderfb114242016-06-13 00:19:48 -07001454 }
1455
ehmaldonado38a21322016-09-02 04:10:34 -07001456 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001457 testonly = true
1458 defines = []
1459 deps = []
1460 sources = [
1461 "codecs/isac/fix/test/isac_speed_test.cc",
1462 "codecs/opus/opus_speed_test.cc",
1463 "codecs/tools/audio_codec_speed_test.cc",
1464 "codecs/tools/audio_codec_speed_test.h",
1465 ]
1466
kjellandere40a7ee2016-10-16 23:56:12 -07001467 if (!build_with_chromium && is_clang) {
1468 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001469 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001470 }
1471
1472 if (is_android) {
1473 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001474 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001475 }
1476
1477 deps += [
1478 ":isac_fix",
1479 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001480 "../..:webrtc_common",
1481 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001482 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001483 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001484 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001485 "//testing/gtest",
1486 ]
1487 }
1488
ehmaldonado38a21322016-09-02 04:10:34 -07001489 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001490 testonly = true
1491 sources = [
1492 "neteq/tools/neteq_external_decoder_test.cc",
1493 "neteq/tools/neteq_external_decoder_test.h",
1494 "neteq/tools/neteq_performance_test.cc",
1495 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001496 ]
1497
kjellandere40a7ee2016-10-16 23:56:12 -07001498 if (!build_with_chromium && is_clang) {
1499 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001500 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001501 }
1502
1503 deps = [
1504 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001505 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001506 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001507 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001508 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001509 "../../api/audio_codecs:audio_codecs_api",
1510 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001511 "../../base:rtc_base_approved",
1512 "../../system_wrappers",
1513 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001514 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001515 ]
1516 }
1517
ehmaldonado38a21322016-09-02 04:10:34 -07001518 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001519 testonly = true
1520 sources = [
1521 "neteq/tools/neteq_quality_test.cc",
1522 "neteq/tools/neteq_quality_test.h",
1523 ]
1524
kjellandere40a7ee2016-10-16 23:56:12 -07001525 if (!build_with_chromium && is_clang) {
1526 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001527 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001528 }
1529
1530 deps = [
1531 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001532 ":neteq_test_tools",
mbonadei1140f972017-04-26 03:38:35 -07001533 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001534 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001535 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001536 "../../base:rtc_base_approved",
1537 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001538 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001539 "//third_party/gflags",
1540 ]
1541 }
1542
henrik.lundinb637a942017-04-28 00:59:45 -07001543 config("neteq_tools_config") {
mbonadei3d7b0e22017-04-26 00:38:48 -07001544 include_dirs = [ "tools" ]
1545 }
1546
henrik.lundinb637a942017-04-28 00:59:45 -07001547 rtc_source_set("neteq_tools") {
mbonadei3d7b0e22017-04-26 00:38:48 -07001548 sources = [
mbonadei3d7b0e22017-04-26 00:38:48 -07001549 "neteq/tools/fake_decode_from_file.cc",
1550 "neteq/tools/fake_decode_from_file.h",
1551 "neteq/tools/input_audio_file.cc",
1552 "neteq/tools/input_audio_file.h",
mbonadei3d7b0e22017-04-26 00:38:48 -07001553 "neteq/tools/neteq_replacement_input.cc",
1554 "neteq/tools/neteq_replacement_input.h",
mbonadei3d7b0e22017-04-26 00:38:48 -07001555 "neteq/tools/resample_input_audio_file.cc",
1556 "neteq/tools/resample_input_audio_file.h",
mbonadei3d7b0e22017-04-26 00:38:48 -07001557 ]
1558
henrik.lundinb637a942017-04-28 00:59:45 -07001559 public_configs = [ ":neteq_tools_config" ]
mbonadei3d7b0e22017-04-26 00:38:48 -07001560
1561 if (!build_with_chromium && is_clang) {
1562 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1563 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1564 }
1565
1566 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001567 "../..:webrtc_common",
1568 "../../api/audio_codecs:audio_codecs_api",
1569 "../../base:rtc_base_approved",
1570 "../../common_audio",
1571 "../rtp_rtcp",
1572 ]
1573
1574 public_deps = [
1575 ":neteq_tools_minimal",
1576 ]
1577 }
1578
1579 rtc_source_set("neteq_test_tools") {
1580 testonly = true
1581 sources = [
1582 "neteq/tools/audio_checksum.h",
1583 "neteq/tools/audio_loop.cc",
1584 "neteq/tools/audio_loop.h",
1585 "neteq/tools/constant_pcm_packet_source.cc",
1586 "neteq/tools/constant_pcm_packet_source.h",
1587 "neteq/tools/output_audio_file.h",
1588 "neteq/tools/output_wav_file.h",
1589 "neteq/tools/rtp_file_source.cc",
1590 "neteq/tools/rtp_file_source.h",
1591 "neteq/tools/rtp_generator.cc",
1592 "neteq/tools/rtp_generator.h",
1593 ]
1594
1595 public_configs = [ ":neteq_tools_config" ]
1596
1597 if (!build_with_chromium && is_clang) {
1598 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1599 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1600 }
1601
1602 deps = [
mbonadei3d7b0e22017-04-26 00:38:48 -07001603 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001604 "..:module_api",
mbonadei3d7b0e22017-04-26 00:38:48 -07001605 "../..:webrtc_common",
mbonadei3d7b0e22017-04-26 00:38:48 -07001606 "../../base:rtc_base_approved",
mbonadei148d5a22017-04-28 05:24:50 -07001607 "../../base:rtc_base_tests_utils",
mbonadei3d7b0e22017-04-26 00:38:48 -07001608 "../../common_audio",
1609 "../../test:rtp_test_utils",
1610 "../rtp_rtcp",
1611 ]
1612
1613 public_deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001614 ":neteq_tools",
1615 ":neteq_tools_minimal",
mbonadei3d7b0e22017-04-26 00:38:48 -07001616 ]
1617
1618 if (rtc_enable_protobuf) {
1619 sources += [
1620 "neteq/tools/neteq_packet_source_input.cc",
1621 "neteq/tools/neteq_packet_source_input.h",
1622 ]
1623 deps += [ ":rtc_event_log_source" ]
1624 }
1625 }
1626
henrik.lundinb637a942017-04-28 00:59:45 -07001627 rtc_source_set("neteq_test_tools_deprecated") {
aleloi3022a342016-07-26 06:36:03 -07001628 testonly = true
1629 sources = [
1630 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1631 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1632 "neteq/test/NETEQTEST_RTPpacket.cc",
1633 "neteq/test/NETEQTEST_RTPpacket.h",
1634 ]
1635
1636 deps = [
1637 ":cng",
1638 ":g711",
1639 ":g722",
1640 ":ilbc",
1641 ":isac",
1642 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001643 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001644 "../..:webrtc_common",
1645 "//testing/gtest",
1646 ]
1647
1648 include_dirs = [
1649 "neteq/include",
1650 "neteq/test",
1651 "../../",
1652 ]
1653
1654 if (is_win) {
1655 cflags = [
1656 # Disable warnings to enable Win64 build, issue 1323.
1657 "/wd4267", # size_t to int truncation
1658 ]
1659 }
1660 }
aleloi47bded42016-07-26 06:46:19 -07001661
aleloi82667732016-08-02 01:45:50 -07001662 config("RTPencode_config") {
1663 defines = [
1664 "CODEC_ILBC",
1665 "CODEC_PCM16B",
1666 "CODEC_G711",
1667 "CODEC_G722",
1668 "CODEC_ISAC",
1669 "CODEC_PCM16B_WB",
1670 "CODEC_ISAC_SWB",
1671 "CODEC_PCM16B_32KHZ",
1672 "CODEC_PCM16B_48KHZ",
1673 "CODEC_CNGCODEC8",
1674 "CODEC_CNGCODEC16",
1675 "CODEC_CNGCODEC32",
1676 "CODEC_ATEVENT_DECODE",
1677 "CODEC_RED",
1678 "CODEC_OPUS",
1679 ]
1680 }
1681
ehmaldonado38a21322016-09-02 04:10:34 -07001682 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001683 testonly = true
1684
1685 deps = [
1686 # TODO(hlundin): Make RTPencode use ACM to encode files.
1687 ":cng",
1688 ":g711",
1689 ":g722",
1690 ":ilbc",
1691 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001692 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001693 ":neteq_test_tools_deprecated",
aleloi82667732016-08-02 01:45:50 -07001694 ":pcm16b",
1695 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001696 "../..:webrtc_common",
1697 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001698 "../../common_audio",
1699 ]
1700
1701 configs += [ ":RTPencode_config" ]
1702
1703 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001704 "neteq/test/PayloadTypes.h",
aleloi82667732016-08-02 01:45:50 -07001705 "neteq/test/RTPencode.cc",
1706 ]
1707
1708 include_dirs = [
1709 "neteq/include",
1710 "neteq/test",
1711 ]
1712
1713 if (is_win) {
1714 cflags = [
1715 # Disable warnings to enable Win64 build, issue 1323.
1716 "/wd4267", # size_t to int truncation
1717 ]
1718 }
1719 }
1720
ehmaldonado38a21322016-09-02 04:10:34 -07001721 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001722 testonly = true
1723
1724 sources = [
1725 "neteq/test/RTPchange.cc",
1726 ]
1727
1728 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001729 ":neteq_test_tools_deprecated",
aleloi76cbe192016-08-02 02:05:03 -07001730 ]
1731 }
1732
ehmaldonado38a21322016-09-02 04:10:34 -07001733 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001734 testonly = true
1735
1736 sources = [
1737 "neteq/tools/rtpcat.cc",
1738 ]
1739
1740 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001741 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001742 "../../system_wrappers:system_wrappers_default",
1743 "../../test:rtp_test_utils",
1744 "//testing/gtest",
1745 ]
1746 }
1747
ehmaldonado38a21322016-09-02 04:10:34 -07001748 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001749 testonly = true
1750
1751 sources = [
1752 "neteq/test/RTPtimeshift.cc",
1753 ]
1754
1755 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001756 ":neteq_test_tools_deprecated",
kjellander676e08f2016-12-07 08:23:27 -08001757 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001758 "//testing/gtest",
1759 ]
1760 }
1761
ehmaldonado38a21322016-09-02 04:10:34 -07001762 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001763 testonly = true
1764 deps = [
1765 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001766 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001767 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001768 "//testing/gtest",
1769 ]
1770 sources = [
1771 "neteq/test/RTPjitter.cc",
1772 ]
1773 }
1774
ehmaldonado38a21322016-09-02 04:10:34 -07001775 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001776 testonly = true
1777
1778 sources = [
1779 "neteq/tools/rtp_analyze.cc",
1780 ]
1781
1782 deps = [
1783 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001784 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001785 ":pcm16b",
1786 "../../system_wrappers:system_wrappers_default",
1787 "//testing/gtest",
1788 "//third_party/gflags:gflags",
1789 ]
1790
kjellandere40a7ee2016-10-16 23:56:12 -07001791 if (!build_with_chromium && is_clang) {
1792 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001793 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001794 }
1795 }
aleloi630c6d52016-08-10 02:11:30 -07001796
ehmaldonado38a21322016-09-02 04:10:34 -07001797 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001798 testonly = true
1799
1800 sources = [
1801 "neteq/test/neteq_opus_quality_test.cc",
1802 ]
1803
1804 deps = [
1805 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001806 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001807 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001808 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001809 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001810 "//testing/gtest",
1811 "//third_party/gflags",
1812 ]
aleloi630c6d52016-08-10 02:11:30 -07001813 }
aleloi116fd612016-08-10 04:16:36 -07001814
ehmaldonado38a21322016-09-02 04:10:34 -07001815 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001816 testonly = true
1817
1818 sources = [
1819 "neteq/test/neteq_speed_test.cc",
1820 ]
1821
1822 deps = [
1823 ":neteq",
1824 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001825 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001826 "../../system_wrappers:system_wrappers_default",
1827 "../../test:test_support",
1828 "//third_party/gflags",
1829 ]
1830 }
aleloi63910122016-08-10 04:41:14 -07001831
ehmaldonado38a21322016-09-02 04:10:34 -07001832 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001833 testonly = true
1834
1835 sources = [
1836 "neteq/test/neteq_ilbc_quality_test.cc",
1837 ]
1838
1839 deps = [
1840 ":ilbc",
1841 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001842 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001843 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001844 "../..:webrtc_common",
1845 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001846 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001847 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001848 "//testing/gtest",
1849 "//third_party/gflags",
1850 ]
1851 }
aleloi6df36dc2016-08-10 05:04:47 -07001852
ehmaldonado38a21322016-09-02 04:10:34 -07001853 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001854 testonly = true
1855
1856 sources = [
1857 "neteq/test/neteq_isac_quality_test.cc",
1858 ]
1859
1860 deps = [
1861 ":isac_fix",
1862 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001863 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001864 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001865 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001866 "//testing/gtest",
1867 "//third_party/gflags",
1868 ]
1869 }
aleloic4ac7002016-08-10 05:06:27 -07001870
ehmaldonado38a21322016-09-02 04:10:34 -07001871 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001872 testonly = true
1873
1874 sources = [
1875 "neteq/test/neteq_pcmu_quality_test.cc",
1876 ]
1877
1878 deps = [
1879 ":g711",
1880 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001881 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001882 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001883 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001884 "//testing/gtest",
1885 "//third_party/gflags",
1886 ]
1887 }
aleloib7186d02016-08-16 01:47:16 -07001888
ehmaldonado38a21322016-09-02 04:10:34 -07001889 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001890 testonly = true
1891
1892 sources = [
1893 "codecs/isac/fix/test/kenny.cc",
1894 ]
1895
1896 deps = [
1897 ":isac_fix",
1898 "../../test:test_support",
1899 ]
1900
1901 if (is_win) {
1902 cflags = [
1903 # Disable warnings to enable Win64 build, issue 1323.
1904 "/wd4267", # size_t to int truncation
1905 ]
1906 }
1907 }
aleloi16f55a12016-08-23 08:08:23 -07001908
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001909 config("isac_test_warnings_config") {
1910 if (is_win && is_clang) {
1911 cflags = [
1912 # Disable warnings failing when compiling with Clang on Windows.
1913 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1914 "-Wno-format",
1915 ]
1916 }
1917 }
1918
kjellander7439f972016-12-05 22:47:46 -08001919 rtc_source_set("isac_test_util") {
1920 testonly = true
1921 sources = [
1922 "codecs/isac/main/util/utility.c",
1923 ]
1924 }
1925
ehmaldonado38a21322016-09-02 04:10:34 -07001926 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001927 testonly = true
1928
1929 sources = [
1930 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001931 ]
1932
1933 include_dirs = [
1934 "codecs/isac/main/include",
1935 "codecs/isac/main/test",
1936 "codecs/isac/main/util",
1937 ]
1938
1939 deps = [
1940 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001941 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001942 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001943 ]
1944
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001945 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001946 }
1947
ehmaldonado38a21322016-09-02 04:10:34 -07001948 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001949 testonly = true
1950
1951 sources = [
1952 "codecs/g711/test/testG711.cc",
1953 ]
1954
aleloi16f55a12016-08-23 08:08:23 -07001955 deps = [
1956 ":g711",
1957 ]
1958 }
aleloi9a117842016-08-23 08:36:10 -07001959
ehmaldonado38a21322016-09-02 04:10:34 -07001960 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001961 testonly = true
1962
1963 sources = [
1964 "codecs/g722/test/testG722.cc",
1965 ]
1966
aleloi9a117842016-08-23 08:36:10 -07001967 deps = [
1968 ":g722",
1969 "../..:webrtc_common",
1970 ]
1971 }
ivoc2c670db2016-08-24 06:11:18 -07001972
ehmaldonado38a21322016-09-02 04:10:34 -07001973 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001974 testonly = true
1975
1976 sources = [
1977 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001978 ]
1979
aleloicfee2152016-08-29 04:09:19 -07001980 deps = [
1981 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001982 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001983 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001984 ]
1985
1986 include_dirs = [
1987 "codecs/isac/main/include",
1988 "codecs/isac/main/test",
1989 "codecs/isac/main/util",
1990 ]
1991 }
1992
ehmaldonado38a21322016-09-02 04:10:34 -07001993 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001994 testonly = true
1995
1996 sources = [
1997 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07001998 ]
1999
aleloicfee2152016-08-29 04:09:19 -07002000 deps = [
2001 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002002 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07002003 ]
2004
2005 include_dirs = [
2006 "codecs/isac/main/include",
2007 "codecs/isac/main/test",
2008 "codecs/isac/main/util",
2009 "../../common_audio/signal_processing/include",
2010 ]
2011 }
2012
ehmaldonado38a21322016-09-02 04:10:34 -07002013 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002014 testonly = true
2015
2016 sources = [
2017 "codecs/ilbc/test/iLBC_test.c",
2018 ]
2019
aleloicfee2152016-08-29 04:09:19 -07002020 deps = [
2021 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002022 ]
2023 }
2024
ehmaldonado38a21322016-09-02 04:10:34 -07002025 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002026 testonly = true
2027
2028 sources = [
2029 "codecs/opus/opus_fec_test.cc",
2030 ]
2031
2032 deps = [
2033 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07002034 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07002035 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08002036 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002037 "//testing/gtest",
2038 ]
2039
kjellandere40a7ee2016-10-16 23:56:12 -07002040 if (!build_with_chromium && is_clang) {
2041 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002042 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002043 }
2044 }
ehmaldonado36268652017-01-19 08:27:11 -08002045
2046 rtc_source_set("audio_coding_unittests") {
2047 testonly = true
2048
kjellandere0629c02017-04-25 04:04:50 -07002049 # Skip restricting visibility on mobile platforms since the tests on those
2050 # gets additional generated targets which would require many lines here to
2051 # cover (which would be confusing to read and hard to maintain).
2052 if (!is_android && !is_ios) {
2053 visibility = [ "//webrtc/modules:modules_unittests" ]
2054 }
ehmaldonado36268652017-01-19 08:27:11 -08002055 sources = [
2056 "acm2/acm_receiver_unittest.cc",
2057 "acm2/audio_coding_module_unittest.cc",
2058 "acm2/call_statistics_unittest.cc",
2059 "acm2/codec_manager_unittest.cc",
2060 "acm2/rent_a_codec_unittest.cc",
2061 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2062 "audio_network_adaptor/bitrate_controller_unittest.cc",
2063 "audio_network_adaptor/channel_controller_unittest.cc",
2064 "audio_network_adaptor/controller_manager_unittest.cc",
2065 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002066 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002067 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2068 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002069 "audio_network_adaptor/frame_length_controller_unittest.cc",
2070 "audio_network_adaptor/mock/mock_controller.h",
2071 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002072 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002073 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002074 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002075 "codecs/cng/audio_encoder_cng_unittest.cc",
2076 "codecs/cng/cng_unittest.cc",
2077 "codecs/ilbc/ilbc_unittest.cc",
2078 "codecs/isac/fix/source/filterbanks_unittest.cc",
2079 "codecs/isac/fix/source/filters_unittest.cc",
2080 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2081 "codecs/isac/fix/source/transform_unittest.cc",
2082 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2083 "codecs/isac/main/source/isac_unittest.cc",
2084 "codecs/isac/unittest.cc",
2085 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002086 "codecs/opus/audio_encoder_opus_unittest.cc",
2087 "codecs/opus/opus_unittest.cc",
2088 "codecs/red/audio_encoder_copy_red_unittest.cc",
2089 "neteq/audio_multi_vector_unittest.cc",
2090 "neteq/audio_vector_unittest.cc",
2091 "neteq/background_noise_unittest.cc",
2092 "neteq/buffer_level_filter_unittest.cc",
2093 "neteq/comfort_noise_unittest.cc",
2094 "neteq/decision_logic_unittest.cc",
2095 "neteq/decoder_database_unittest.cc",
2096 "neteq/delay_manager_unittest.cc",
2097 "neteq/delay_peak_detector_unittest.cc",
2098 "neteq/dsp_helper_unittest.cc",
2099 "neteq/dtmf_buffer_unittest.cc",
2100 "neteq/dtmf_tone_generator_unittest.cc",
2101 "neteq/expand_unittest.cc",
2102 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002103 "neteq/mock/mock_buffer_level_filter.h",
2104 "neteq/mock/mock_decoder_database.h",
2105 "neteq/mock/mock_delay_manager.h",
2106 "neteq/mock/mock_delay_peak_detector.h",
2107 "neteq/mock/mock_dtmf_buffer.h",
2108 "neteq/mock/mock_dtmf_tone_generator.h",
2109 "neteq/mock/mock_expand.h",
2110 "neteq/mock/mock_external_decoder_pcm16b.h",
2111 "neteq/mock/mock_packet_buffer.h",
2112 "neteq/mock/mock_red_payload_splitter.h",
2113 "neteq/nack_tracker_unittest.cc",
2114 "neteq/neteq_external_decoder_unittest.cc",
2115 "neteq/neteq_impl_unittest.cc",
2116 "neteq/neteq_network_stats_unittest.cc",
2117 "neteq/neteq_stereo_unittest.cc",
2118 "neteq/neteq_unittest.cc",
2119 "neteq/normal_unittest.cc",
2120 "neteq/packet_buffer_unittest.cc",
2121 "neteq/post_decode_vad_unittest.cc",
2122 "neteq/random_vector_unittest.cc",
2123 "neteq/red_payload_splitter_unittest.cc",
2124 "neteq/sync_buffer_unittest.cc",
2125 "neteq/tick_timer_unittest.cc",
2126 "neteq/time_stretch_unittest.cc",
2127 "neteq/timestamp_scaler_unittest.cc",
2128 "neteq/tools/input_audio_file_unittest.cc",
2129 "neteq/tools/packet_unittest.cc",
2130 ]
2131
2132 deps = [
2133 ":acm_receive_test",
2134 ":acm_send_test",
2135 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002136 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002137 ":audio_format_conversion",
2138 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002139 ":cng",
2140 ":g711",
2141 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002142 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002143 ":isac_c",
2144 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002145 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002146 ":neteq",
2147 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002148 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002149 ":pcm16b",
2150 ":red",
2151 ":rent_a_codec",
2152 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002153 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002154 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002155 "../../api/audio_codecs:audio_codecs_api",
2156 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002157 "../../api/audio_codecs:builtin_audio_encoder_factory",
mbonadei7c2c8432017-04-07 00:59:12 -07002158 "../../base:protobuf_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002159 "../../base:rtc_base",
2160 "../../base:rtc_base_approved",
2161 "../../base:rtc_base_tests_utils",
2162 "../../common_audio",
2163 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002164 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002165 "../../test:field_trial",
2166 "../../test:rtp_test_utils",
2167 "../../test:test_common",
2168 "../../test:test_support",
2169 "//testing/gmock",
2170 "//testing/gtest",
2171 "//third_party/gflags",
2172 ]
2173
2174 defines = audio_coding_defines
2175
2176 if (rtc_enable_protobuf) {
2177 defines += [
2178 "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP",
2179 "WEBRTC_NETEQ_UNITTEST_BITEXACT",
2180 ]
2181 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}