blob: 1b62973092d398536bb79019f6255b7e886a7808 [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",
mbonadei9baa7792017-05-15 08:06:47 -0700588 "../../base:compile_assert_c",
aleloicfee2152016-08-29 04:09:19 -0700589 "../../base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000590 "../../common_audio",
591 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000592}
593
594config("isac_fix_config") {
595 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000596 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100597 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000598 ]
599}
600
kjellanderb62dbbe2016-09-23 00:38:52 -0700601rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000602 sources = [
kjellander7439f972016-12-05 22:47:46 -0800603 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
604 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
605 ]
606
607 public_configs = [ ":isac_fix_config" ]
608
609 deps = [
kjellander7439f972016-12-05 22:47:46 -0800610 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800611 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800612 "../../common_audio",
613 "../../system_wrappers",
614 ]
615 public_deps = [
616 ":isac_fix_c",
617 ]
618
619 if (rtc_build_with_neon) {
620 deps += [ ":isac_neon" ]
621 }
622}
623
kwiberga6ca5182017-01-30 05:28:54 -0800624rtc_source_set("isac_fix_common") {
625 visibility = [ ":*" ] # Only targets in this file can depend on this.
626 sources = [
627 "codecs/isac/fix/source/codec.h",
628 "codecs/isac/fix/source/fft.c",
629 "codecs/isac/fix/source/fft.h",
630 "codecs/isac/fix/source/settings.h",
631 ]
632 public_configs = [ ":isac_fix_config" ]
633}
kjellander676e08f2016-12-07 08:23:27 -0800634
kwiberga6ca5182017-01-30 05:28:54 -0800635rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800636 visibility = [ ":*" ] # Only targets in this file can depend on this.
637 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100638 "codecs/isac/fix/include/audio_decoder_isacfix.h",
639 "codecs/isac/fix/include/audio_encoder_isacfix.h",
640 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000641 "codecs/isac/fix/source/arith_routines.c",
642 "codecs/isac/fix/source/arith_routines_hist.c",
643 "codecs/isac/fix/source/arith_routines_logist.c",
644 "codecs/isac/fix/source/arith_routins.h",
645 "codecs/isac/fix/source/bandwidth_estimator.c",
646 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000647 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200648 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000649 "codecs/isac/fix/source/decode_plc.c",
650 "codecs/isac/fix/source/encode.c",
651 "codecs/isac/fix/source/entropy_coding.c",
652 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000653 "codecs/isac/fix/source/filterbank_tables.c",
654 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200655 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000656 "codecs/isac/fix/source/filters.c",
657 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200658 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000659 "codecs/isac/fix/source/isacfix.c",
660 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700661 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000662 "codecs/isac/fix/source/lpc_masking_model.c",
663 "codecs/isac/fix/source/lpc_masking_model.h",
664 "codecs/isac/fix/source/lpc_tables.c",
665 "codecs/isac/fix/source/lpc_tables.h",
666 "codecs/isac/fix/source/pitch_estimator.c",
667 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700668 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000669 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700670 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000671 "codecs/isac/fix/source/pitch_gain_tables.c",
672 "codecs/isac/fix/source/pitch_gain_tables.h",
673 "codecs/isac/fix/source/pitch_lag_tables.c",
674 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000675 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
676 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
677 "codecs/isac/fix/source/structs.h",
678 "codecs/isac/fix/source/transform.c",
679 "codecs/isac/fix/source/transform_tables.c",
680 ]
681
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700682 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000683
kjellander676e08f2016-12-07 08:23:27 -0800684 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800685 ":isac_common",
686 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800687 "../../api/audio_codecs:audio_codecs_api",
mbonadei9baa7792017-05-15 08:06:47 -0700688 "../../base:compile_assert_c",
kjellander676e08f2016-12-07 08:23:27 -0800689 "../../base:rtc_base_approved",
690 "../../common_audio",
691 "../../system_wrappers",
692 ]
693
kwiberga6ca5182017-01-30 05:28:54 -0800694 public_deps = [
695 ":isac_fix_common",
696 ]
697
mbonadeie5dc3ce2017-01-25 05:34:46 -0800698 if (rtc_build_with_neon) {
699 deps += [ ":isac_neon" ]
700 }
701
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700702 if (current_cpu == "arm" && arm_version >= 7) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000703 sources += [
704 "codecs/isac/fix/source/lattice_armv7.S",
705 "codecs/isac/fix/source/pitch_filter_armv6.S",
706 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700707 sources -= [
708 "codecs/isac/fix/source/lattice_c.c",
709 "codecs/isac/fix/source/pitch_filter_c.c",
710 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000711 }
712
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000713 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000714 sources += [
715 "codecs/isac/fix/source/entropy_coding_mips.c",
716 "codecs/isac/fix/source/filters_mips.c",
717 "codecs/isac/fix/source/lattice_mips.c",
718 "codecs/isac/fix/source/pitch_estimator_mips.c",
719 "codecs/isac/fix/source/transform_mips.c",
720 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700721 sources -= [
722 "codecs/isac/fix/source/lattice_c.c",
723 "codecs/isac/fix/source/pitch_estimator_c.c",
724 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000725 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200726 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000727 }
728 if (mips_dsp_rev > 1) {
729 sources += [
730 "codecs/isac/fix/source/lpc_masking_model_mips.c",
731 "codecs/isac/fix/source/pitch_filter_mips.c",
732 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200733 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000734 }
735 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000736}
737
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700738if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700739 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800740 sources = [
741 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800742 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800743 "codecs/isac/fix/source/filters_neon.c",
744 "codecs/isac/fix/source/lattice_neon.c",
745 "codecs/isac/fix/source/transform_neon.c",
746 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000747
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700748 if (current_cpu != "arm64") {
749 # Enable compilation for the NEON instruction set. This is needed
750 # since //build/config/arm.gni only enables NEON for iOS, not Android.
751 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700752 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700753 cflags = [ "-mfpu=neon" ]
754 }
755
756 # Disable LTO on NEON targets due to compiler bug.
757 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000758 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000759 cflags -= [
760 "-flto",
761 "-ffat-lto-objects",
762 ]
763 }
764
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200765 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800766 ":isac_fix_common",
kjellander676e08f2016-12-07 08:23:27 -0800767 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200768 "../../common_audio",
769 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000770 }
771}
772
773config("pcm16b_config") {
774 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000775 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000776 "codecs/pcm16b/include",
777 ]
778}
779
kjellanderb62dbbe2016-09-23 00:38:52 -0700780rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000781 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200782 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100783 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200784 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100785 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000786 ]
787
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000788 deps = [
789 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800790 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800791 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800792 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800793 "../../base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000794 ]
kjellander7439f972016-12-05 22:47:46 -0800795 public_deps = [
796 ":pcm16b_c",
797 ]
798 public_configs = [ ":pcm16b_config" ]
799}
800
801rtc_source_set("pcm16b_c") {
802 visibility = [ ":*" ] # Only targets in this file can depend on this.
803 sources = [
804 "codecs/pcm16b/pcm16b.c",
805 "codecs/pcm16b/pcm16b.h",
806 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000807
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700808 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800809 deps = [
810 "../..:webrtc_common",
811 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000812}
813
814config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000815 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000816}
817
kjellanderb62dbbe2016-09-23 00:38:52 -0700818rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000819 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200820 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100821 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000822 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100823 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000824 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000825
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200826 deps = [
minyue41b9c802016-10-06 07:13:54 -0700827 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800828 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800829 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -0700830 "../../base:protobuf_utils",
Henrik Lundind048aa02015-12-03 17:47:21 +0100831 "../../base:rtc_base_approved",
tereliusbc5d9212017-01-13 09:14:33 -0800832 "../../base:rtc_numerics",
michaelt566d8202017-01-12 10:17:38 -0800833 "../../common_audio",
kjellander676e08f2016-12-07 08:23:27 -0800834 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200835 ]
kjellander7439f972016-12-05 22:47:46 -0800836 public_deps = [
837 ":webrtc_opus_c",
838 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000839
michaelta55f0212017-02-02 07:47:19 -0800840 defines = audio_codec_defines
henrik.lundinfd87f4a2016-11-28 11:15:54 -0800841 if (rtc_opus_variable_complexity) {
842 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
843 } else {
844 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
845 }
henrik.lundin875862c2016-11-22 02:07:54 -0800846
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000847 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800848 public_deps += [ rtc_opus_dir ]
849 } else if (build_with_mozilla) {
850 include_dirs = [ getenv("DIST") + "/include/opus" ]
851 }
852}
853
854rtc_source_set("webrtc_opus_c") {
855 visibility = [ ":*" ] # Only targets in this file can depend on this.
856 sources = [
857 "codecs/opus/opus_inst.h",
858 "codecs/opus/opus_interface.c",
859 "codecs/opus/opus_interface.h",
860 ]
861
minyue2e03c662017-02-01 17:31:11 -0800862 defines = audio_coding_defines
863
kjellander7439f972016-12-05 22:47:46 -0800864 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700865 public_deps = [
866 rtc_opus_dir,
867 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000868 } else if (build_with_mozilla) {
869 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000870 }
kjellander7439f972016-12-05 22:47:46 -0800871
872 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800873 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800874 "../../base:rtc_base_approved",
875 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000876}
877
minyue25f6a392016-09-22 22:23:20 -0700878if (rtc_enable_protobuf) {
879 proto_library("ana_debug_dump_proto") {
880 sources = [
881 "audio_network_adaptor/debug_dump.proto",
882 ]
sakal363a2912017-01-13 06:52:12 -0800883 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700884 }
minyuea1d9ad02016-10-02 14:53:37 -0700885 proto_library("ana_config_proto") {
886 sources = [
887 "audio_network_adaptor/config.proto",
888 ]
889 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
890 }
minyue25f6a392016-09-22 22:23:20 -0700891}
892
minyue0d382ef2016-10-07 07:59:28 -0700893rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700894 sources = [
895 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700896 "audio_network_adaptor/audio_network_adaptor_impl.cc",
897 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700898 "audio_network_adaptor/bitrate_controller.cc",
899 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700900 "audio_network_adaptor/channel_controller.cc",
901 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700902 "audio_network_adaptor/controller.cc",
903 "audio_network_adaptor/controller.h",
904 "audio_network_adaptor/controller_manager.cc",
905 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700906 "audio_network_adaptor/debug_dump_writer.cc",
907 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700908 "audio_network_adaptor/dtx_controller.cc",
909 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800910 "audio_network_adaptor/event_log_writer.cc",
911 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700912 "audio_network_adaptor/fec_controller_plr_based.cc",
913 "audio_network_adaptor/fec_controller_plr_based.h",
914 "audio_network_adaptor/fec_controller_rplr_based.cc",
915 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700916 "audio_network_adaptor/frame_length_controller.cc",
917 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700918 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700919 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700920 ]
minyue25f6a392016-09-22 22:23:20 -0700921
minyue41b9c802016-10-06 07:13:54 -0700922 deps = [
923 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -0700924 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -0800925 "../../base:rtc_base_approved",
926 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800927 "../../logging:rtc_event_log_api",
minyue41b9c802016-10-06 07:13:54 -0700928 "../../system_wrappers",
929 ]
930
minyue25f6a392016-09-22 22:23:20 -0700931 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700932 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700933 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700934 ":ana_debug_dump_proto",
935 ]
936 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ]
937 }
minyue4b7c9522017-01-24 04:54:59 -0800938
939 if (!build_with_chromium && is_clang) {
940 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
941 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
942 }
minyue7610f852016-09-07 13:51:51 -0700943}
944
kwiberg65cb70d2017-03-03 06:16:28 -0800945rtc_source_set("neteq_decoder_enum") {
946 sources = [
947 "neteq/neteq_decoder_enum.cc",
948 "neteq/neteq_decoder_enum.h",
949 ]
950 deps = [
951 "../../api/audio_codecs:audio_codecs_api",
952 "../../base:rtc_base_approved",
953 ]
954}
kjellander676e08f2016-12-07 08:23:27 -0800955
kwiberg65cb70d2017-03-03 06:16:28 -0800956rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000957 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000958 "neteq/accelerate.cc",
959 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000960 "neteq/audio_decoder_impl.cc",
961 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000962 "neteq/audio_multi_vector.cc",
963 "neteq/audio_multi_vector.h",
964 "neteq/audio_vector.cc",
965 "neteq/audio_vector.h",
966 "neteq/background_noise.cc",
967 "neteq/background_noise.h",
968 "neteq/buffer_level_filter.cc",
969 "neteq/buffer_level_filter.h",
970 "neteq/comfort_noise.cc",
971 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700972 "neteq/cross_correlation.cc",
973 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000974 "neteq/decision_logic.cc",
975 "neteq/decision_logic.h",
976 "neteq/decision_logic_fax.cc",
977 "neteq/decision_logic_fax.h",
978 "neteq/decision_logic_normal.cc",
979 "neteq/decision_logic_normal.h",
980 "neteq/decoder_database.cc",
981 "neteq/decoder_database.h",
982 "neteq/defines.h",
983 "neteq/delay_manager.cc",
984 "neteq/delay_manager.h",
985 "neteq/delay_peak_detector.cc",
986 "neteq/delay_peak_detector.h",
987 "neteq/dsp_helper.cc",
988 "neteq/dsp_helper.h",
989 "neteq/dtmf_buffer.cc",
990 "neteq/dtmf_buffer.h",
991 "neteq/dtmf_tone_generator.cc",
992 "neteq/dtmf_tone_generator.h",
993 "neteq/expand.cc",
994 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100995 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000996 "neteq/merge.cc",
997 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700998 "neteq/nack_tracker.cc",
999 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001000 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001001 "neteq/neteq_impl.cc",
1002 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001003 "neteq/normal.cc",
1004 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001005 "neteq/packet.cc",
1006 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001007 "neteq/packet_buffer.cc",
1008 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001009 "neteq/post_decode_vad.cc",
1010 "neteq/post_decode_vad.h",
1011 "neteq/preemptive_expand.cc",
1012 "neteq/preemptive_expand.h",
1013 "neteq/random_vector.cc",
1014 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001015 "neteq/red_payload_splitter.cc",
1016 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001017 "neteq/rtcp.cc",
1018 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001019 "neteq/statistics_calculator.cc",
1020 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001021 "neteq/sync_buffer.cc",
1022 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001023 "neteq/tick_timer.cc",
1024 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001025 "neteq/time_stretch.cc",
1026 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001027 "neteq/timestamp_scaler.cc",
1028 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001029 ]
1030
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001031 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001032 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001033 ":cng",
1034 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001035 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001036 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001037 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001038 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001039 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001040 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001041 "../../base:gtest_prod",
1042 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001043 "../../common_audio",
1044 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001045 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001046
1047 defines = []
1048
kwibergf8c2bac2016-01-18 06:38:32 -08001049 if (rtc_include_ilbc) {
1050 defines += [ "WEBRTC_CODEC_ILBC" ]
1051 deps += [ ":ilbc" ]
1052 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001053 if (rtc_include_opus) {
1054 defines += [ "WEBRTC_CODEC_OPUS" ]
1055 deps += [ ":webrtc_opus" ]
1056 }
kwiberg98ab3a42015-09-30 21:54:21 -07001057 if (!build_with_mozilla) {
1058 if (current_cpu == "arm") {
1059 defines += [ "WEBRTC_CODEC_ISACFX" ]
1060 deps += [ ":isac_fix" ]
1061 } else {
1062 defines += [ "WEBRTC_CODEC_ISAC" ]
1063 deps += [ ":isac" ]
1064 }
1065 defines += [ "WEBRTC_CODEC_G722" ]
1066 deps += [ ":g722" ]
1067 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001068}
kjellanderfb114242016-06-13 00:19:48 -07001069
henrik.lundin58466f62016-10-05 02:27:42 -07001070# Although providing only test support, this target must be outside of the
1071# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1072# that ultimately are built and run as a part of the Chromium ecosystem, which
1073# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001074rtc_source_set("neteq_tools_minimal") {
henrik.lundin58466f62016-10-05 02:27:42 -07001075 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001076 "neteq/tools/audio_sink.cc",
1077 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001078 "neteq/tools/encode_neteq_input.cc",
1079 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001080 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001081 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001082 "neteq/tools/neteq_test.cc",
1083 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001084 "neteq/tools/packet.cc",
1085 "neteq/tools/packet.h",
1086 "neteq/tools/packet_source.cc",
1087 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001088 ]
1089
kjellandere40a7ee2016-10-16 23:56:12 -07001090 if (!build_with_chromium && is_clang) {
1091 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001092 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1093 }
kjellander676e08f2016-12-07 08:23:27 -08001094
1095 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001096 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001097 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001098 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -07001099 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001100 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001101 "../../base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001102 "../rtp_rtcp",
kjellander676e08f2016-12-07 08:23:27 -08001103 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001104}
1105
kjellanderfb114242016-06-13 00:19:48 -07001106if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001107 group("audio_coding_tests") {
1108 testonly = true
1109 public_deps = [
1110 ":RTPchange",
1111 ":RTPencode",
1112 ":RTPjitter",
1113 ":RTPtimeshift",
1114 ":acm_receive_test",
1115 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001116 ":audio_codec_speed_tests",
1117 ":audio_decoder_unittests",
1118 ":audio_decoder_unittests",
1119 ":delay_test",
1120 ":g711_test",
1121 ":g722_test",
1122 ":ilbc_test",
1123 ":insert_packet_with_timing",
1124 ":isac_api_test",
1125 ":isac_fix_test",
1126 ":isac_switch_samprate_test",
1127 ":isac_test",
1128 ":neteq_ilbc_quality_test",
1129 ":neteq_isac_quality_test",
1130 ":neteq_opus_quality_test",
1131 ":neteq_pcmu_quality_test",
1132 ":neteq_speed_test",
1133 ":rtp_analyze",
1134 ":rtpcat",
1135 ":webrtc_opus_fec_test",
1136 ]
1137 if (rtc_enable_protobuf) {
1138 public_deps += [ ":neteq_rtpplay" ]
1139 }
1140 }
1141
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001142 rtc_source_set("audio_coding_modules_tests") {
1143 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001144
1145 # Skip restricting visibility on mobile platforms since the tests on those
1146 # gets additional generated targets which would require many lines here to
1147 # cover (which would be confusing to read and hard to maintain).
1148 if (!is_android && !is_ios) {
1149 visibility = [ "//webrtc/modules:modules_tests" ]
1150 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001151 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001152 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001153 "test/APITest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001154 "test/APITest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001155 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001156 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001157 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001158 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001159 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001160 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001161 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001162 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001163 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001164 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001165 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001166 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001167 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001168 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001169 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001170 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001171 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001172 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001173 "test/Tester.cc",
1174 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001175 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001176 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001177 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001178 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001179 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001180 "test/target_delay_unittest.cc",
1181 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001182 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001183 ]
1184 deps = [
1185 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001186 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001187 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001188 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001189 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001190 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001191 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001192 "../../base:rtc_base_approved",
1193 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001194 "../../test:test_support",
1195 ]
1196 defines = audio_coding_defines
1197 if (is_win) {
1198 cflags = [
1199 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1200 "/wd4373", # virtual function override.
1201 ]
1202 }
1203 if (!build_with_chromium && is_clang) {
1204 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1205 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1206 }
1207 }
1208
ehmaldonado021eef32017-01-05 07:09:50 -08001209 rtc_source_set("audio_coding_perf_tests") {
1210 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001211
1212 # Skip restricting visibility on mobile platforms since the tests on those
1213 # gets additional generated targets which would require many lines here to
1214 # cover (which would be confusing to read and hard to maintain).
1215 if (!is_android && !is_ios) {
1216 visibility = [ "//webrtc:webrtc_perf_tests" ]
1217 }
ehmaldonado021eef32017-01-05 07:09:50 -08001218 sources = [
1219 "codecs/opus/opus_complexity_unittest.cc",
1220 "neteq/test/neteq_performance_unittest.cc",
1221 ]
1222 deps = [
1223 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001224 ":neteq_test_tools",
ehmaldonado021eef32017-01-05 07:09:50 -08001225 ":webrtc_opus",
1226 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -07001227 "../../base:protobuf_utils",
ehmaldonado021eef32017-01-05 07:09:50 -08001228 "../../base:rtc_base_approved",
1229 "../../system_wrappers:system_wrappers",
1230 "../../test:test_support",
1231 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001232
ehmaldonado021eef32017-01-05 07:09:50 -08001233 if (!build_with_chromium && is_clang) {
1234 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1236 }
1237 }
1238
ehmaldonado38a21322016-09-02 04:10:34 -07001239 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001240 testonly = true
1241 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001242 "acm2/acm_receive_test.cc",
1243 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001244 ]
1245
kjellanderfb114242016-06-13 00:19:48 -07001246 defines = audio_coding_defines
1247
1248 deps = audio_coding_deps + [
1249 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001250 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001251 "../../api/audio_codecs:audio_codecs_api",
1252 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001253 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001254 "../../base:rtc_base_approved",
1255 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001256 "//testing/gtest",
1257 ]
1258 }
1259
ehmaldonado38a21322016-09-02 04:10:34 -07001260 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001261 testonly = true
1262 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001263 "acm2/acm_send_test.cc",
1264 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001265 ]
1266
kjellanderfb114242016-06-13 00:19:48 -07001267 defines = audio_coding_defines
1268
1269 deps = audio_coding_deps + [
1270 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001271 ":neteq_tools",
ossueb1fde42017-05-02 06:46:30 -07001272 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001273 "../../base:rtc_base_approved",
1274 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001275 "//testing/gtest",
1276 ]
1277 }
1278
ehmaldonado38a21322016-09-02 04:10:34 -07001279 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001280 testonly = true
1281 sources = [
1282 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001283 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001284 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001285 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001286 "test/delay_test.cc",
1287 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001288 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001289 ]
1290
aleloi333f2062016-07-28 01:21:29 -07001291 deps = [
1292 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001293 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001294 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001295 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001296 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001297 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001298 "../../system_wrappers",
1299 "../../system_wrappers:system_wrappers_default",
1300 "../../test:test_support",
1301 "../rtp_rtcp",
1302 "//testing/gtest",
1303 "//third_party/gflags:gflags",
1304 ]
1305 } # delay_test
1306
ehmaldonado38a21322016-09-02 04:10:34 -07001307 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001308 testonly = true
1309 sources = [
1310 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001311 "test/Channel.h",
aleloi00730c72016-07-28 01:27:10 -07001312 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001313 "test/PCMFile.h",
aleloi00730c72016-07-28 01:27:10 -07001314 "test/insert_packet_with_timing.cc",
1315 ]
1316
kjellandere40a7ee2016-10-16 23:56:12 -07001317 if (!build_with_chromium && is_clang) {
1318 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001319 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001320 }
1321
1322 deps = [
1323 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001324 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001325 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001326 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001327 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001328 "../../system_wrappers",
1329 "../../system_wrappers:system_wrappers_default",
1330 "../../test:test_support",
1331 "../rtp_rtcp",
1332 "//testing/gtest",
1333 "//third_party/gflags:gflags",
1334 ]
1335 } # insert_packet_with_timing
1336
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001337 audio_decoder_unittests_resources =
1338 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001339
1340 if (is_ios) {
1341 bundle_data("audio_decoder_unittests_bundle_data") {
1342 testonly = true
1343 sources = audio_decoder_unittests_resources
1344 outputs = [
1345 "{{bundle_resources_dir}}/{{source_file_part}}",
1346 ]
1347 }
1348 }
1349
ehmaldonado38a21322016-09-02 04:10:34 -07001350 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001351 testonly = true
1352 sources = [
1353 "neteq/audio_decoder_unittest.cc",
1354 ]
1355
kjellandere40a7ee2016-10-16 23:56:12 -07001356 if (!build_with_chromium && is_clang) {
1357 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001358 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001359 }
1360
1361 deps = []
1362
1363 defines = neteq_defines
1364
1365 deps += audio_coding_deps
1366 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001367 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001368 ":isac",
1369 ":isac_fix",
1370 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001371 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001372 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -07001373 "../../base:protobuf_utils",
kjellander6ceab082016-10-28 05:44:03 -07001374 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001375 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001376 "//testing/gtest",
1377 ]
1378
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001379 data = audio_decoder_unittests_resources
1380
charujainddf3e4a2016-08-01 07:49:42 -07001381 if (is_android) {
1382 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001383 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001384 }
kjellander32c4a202016-08-30 02:53:49 -07001385 if (is_ios) {
1386 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001387 }
1388 } # audio_decoder_unittests
1389
kjellanderfb114242016-06-13 00:19:48 -07001390 if (rtc_enable_protobuf) {
1391 proto_library("neteq_unittest_proto") {
1392 sources = [
1393 "neteq/neteq_unittest.proto",
1394 ]
kjellandere3e902e2017-02-28 08:01:46 -08001395 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001396 }
henrik.lundin03153f12016-06-21 05:38:42 -07001397
mbonadei3d7b0e22017-04-26 00:38:48 -07001398 rtc_static_library("rtc_event_log_source") {
1399 testonly = true
1400
1401 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1402 # Needs call.h to be moved to webrtc/api first.
1403 check_includes = false
1404
1405 sources = [
1406 "neteq/tools/rtc_event_log_source.cc",
1407 "neteq/tools/rtc_event_log_source.h",
1408 ]
1409
1410 if (!build_with_chromium && is_clang) {
1411 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1412 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1413 }
1414
1415 deps = [
1416 "../../base:rtc_base_approved",
1417 "../../logging:rtc_event_log_parser",
1418 ]
1419 public_deps = [
1420 "../../logging:rtc_event_log_proto",
1421 ]
1422 }
1423
ehmaldonado38a21322016-09-02 04:10:34 -07001424 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001425 testonly = true
1426 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001427 deps = [
1428 "..:module_api",
1429 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001430 sources = [
1431 "neteq/tools/neteq_rtpplay.cc",
1432 ]
1433
kjellandere40a7ee2016-10-16 23:56:12 -07001434 if (!build_with_chromium && is_clang) {
1435 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001436 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001437 }
1438
1439 if (is_win) {
1440 cflags = [
1441 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1442 "/wd4373", # virtual function override.
1443 ]
1444 }
1445
1446 deps += [
1447 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001448 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001449 "../..:webrtc_common",
1450 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001451 "../../system_wrappers:system_wrappers_default",
1452 "../../test:test_support",
1453 "//third_party/gflags",
1454 ]
1455 }
kjellanderfb114242016-06-13 00:19:48 -07001456 }
1457
ehmaldonado38a21322016-09-02 04:10:34 -07001458 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001459 testonly = true
1460 defines = []
1461 deps = []
1462 sources = [
1463 "codecs/isac/fix/test/isac_speed_test.cc",
1464 "codecs/opus/opus_speed_test.cc",
1465 "codecs/tools/audio_codec_speed_test.cc",
1466 "codecs/tools/audio_codec_speed_test.h",
1467 ]
1468
kjellandere40a7ee2016-10-16 23:56:12 -07001469 if (!build_with_chromium && is_clang) {
1470 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001471 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001472 }
1473
1474 if (is_android) {
1475 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001476 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001477 }
1478
1479 deps += [
1480 ":isac_fix",
1481 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001482 "../..:webrtc_common",
1483 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001484 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001485 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001486 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001487 "//testing/gtest",
1488 ]
1489 }
1490
ehmaldonado38a21322016-09-02 04:10:34 -07001491 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001492 testonly = true
1493 sources = [
1494 "neteq/tools/neteq_external_decoder_test.cc",
1495 "neteq/tools/neteq_external_decoder_test.h",
1496 "neteq/tools/neteq_performance_test.cc",
1497 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001498 ]
1499
kjellandere40a7ee2016-10-16 23:56:12 -07001500 if (!build_with_chromium && is_clang) {
1501 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001502 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001503 }
1504
1505 deps = [
1506 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001507 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001508 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001509 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001510 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001511 "../../api/audio_codecs:audio_codecs_api",
1512 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001513 "../../base:rtc_base_approved",
1514 "../../system_wrappers",
1515 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001516 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001517 ]
1518 }
1519
ehmaldonado38a21322016-09-02 04:10:34 -07001520 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001521 testonly = true
1522 sources = [
1523 "neteq/tools/neteq_quality_test.cc",
1524 "neteq/tools/neteq_quality_test.h",
1525 ]
1526
kjellandere40a7ee2016-10-16 23:56:12 -07001527 if (!build_with_chromium && is_clang) {
1528 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001529 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001530 }
1531
1532 deps = [
1533 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001534 ":neteq_test_tools",
mbonadei1140f972017-04-26 03:38:35 -07001535 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001536 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001537 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001538 "../../base:rtc_base_approved",
1539 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001540 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001541 "//third_party/gflags",
1542 ]
1543 }
1544
henrik.lundinb637a942017-04-28 00:59:45 -07001545 config("neteq_tools_config") {
mbonadei3d7b0e22017-04-26 00:38:48 -07001546 include_dirs = [ "tools" ]
1547 }
1548
henrik.lundinb637a942017-04-28 00:59:45 -07001549 rtc_source_set("neteq_tools") {
mbonadei3d7b0e22017-04-26 00:38:48 -07001550 sources = [
mbonadei3d7b0e22017-04-26 00:38:48 -07001551 "neteq/tools/fake_decode_from_file.cc",
1552 "neteq/tools/fake_decode_from_file.h",
1553 "neteq/tools/input_audio_file.cc",
1554 "neteq/tools/input_audio_file.h",
mbonadei3d7b0e22017-04-26 00:38:48 -07001555 "neteq/tools/neteq_replacement_input.cc",
1556 "neteq/tools/neteq_replacement_input.h",
mbonadei3d7b0e22017-04-26 00:38:48 -07001557 "neteq/tools/resample_input_audio_file.cc",
1558 "neteq/tools/resample_input_audio_file.h",
mbonadei3d7b0e22017-04-26 00:38:48 -07001559 ]
1560
henrik.lundinb637a942017-04-28 00:59:45 -07001561 public_configs = [ ":neteq_tools_config" ]
mbonadei3d7b0e22017-04-26 00:38:48 -07001562
1563 if (!build_with_chromium && is_clang) {
1564 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1565 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1566 }
1567
1568 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001569 "../..:webrtc_common",
1570 "../../api/audio_codecs:audio_codecs_api",
1571 "../../base:rtc_base_approved",
1572 "../../common_audio",
1573 "../rtp_rtcp",
1574 ]
1575
1576 public_deps = [
1577 ":neteq_tools_minimal",
1578 ]
1579 }
1580
1581 rtc_source_set("neteq_test_tools") {
1582 testonly = true
1583 sources = [
1584 "neteq/tools/audio_checksum.h",
1585 "neteq/tools/audio_loop.cc",
1586 "neteq/tools/audio_loop.h",
1587 "neteq/tools/constant_pcm_packet_source.cc",
1588 "neteq/tools/constant_pcm_packet_source.h",
1589 "neteq/tools/output_audio_file.h",
1590 "neteq/tools/output_wav_file.h",
1591 "neteq/tools/rtp_file_source.cc",
1592 "neteq/tools/rtp_file_source.h",
1593 "neteq/tools/rtp_generator.cc",
1594 "neteq/tools/rtp_generator.h",
1595 ]
1596
1597 public_configs = [ ":neteq_tools_config" ]
1598
1599 if (!build_with_chromium && is_clang) {
1600 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1601 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1602 }
1603
1604 deps = [
mbonadei3d7b0e22017-04-26 00:38:48 -07001605 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001606 "..:module_api",
mbonadei3d7b0e22017-04-26 00:38:48 -07001607 "../..:webrtc_common",
mbonadei3d7b0e22017-04-26 00:38:48 -07001608 "../../base:rtc_base_approved",
mbonadei148d5a22017-04-28 05:24:50 -07001609 "../../base:rtc_base_tests_utils",
mbonadei3d7b0e22017-04-26 00:38:48 -07001610 "../../common_audio",
1611 "../../test:rtp_test_utils",
1612 "../rtp_rtcp",
1613 ]
1614
1615 public_deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001616 ":neteq_tools",
1617 ":neteq_tools_minimal",
mbonadei3d7b0e22017-04-26 00:38:48 -07001618 ]
1619
1620 if (rtc_enable_protobuf) {
1621 sources += [
1622 "neteq/tools/neteq_packet_source_input.cc",
1623 "neteq/tools/neteq_packet_source_input.h",
1624 ]
1625 deps += [ ":rtc_event_log_source" ]
1626 }
1627 }
1628
henrik.lundinb637a942017-04-28 00:59:45 -07001629 rtc_source_set("neteq_test_tools_deprecated") {
aleloi3022a342016-07-26 06:36:03 -07001630 testonly = true
1631 sources = [
1632 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1633 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1634 "neteq/test/NETEQTEST_RTPpacket.cc",
1635 "neteq/test/NETEQTEST_RTPpacket.h",
1636 ]
1637
1638 deps = [
1639 ":cng",
1640 ":g711",
1641 ":g722",
1642 ":ilbc",
1643 ":isac",
1644 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001645 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001646 "../..:webrtc_common",
1647 "//testing/gtest",
1648 ]
1649
1650 include_dirs = [
1651 "neteq/include",
1652 "neteq/test",
1653 "../../",
1654 ]
1655
1656 if (is_win) {
1657 cflags = [
1658 # Disable warnings to enable Win64 build, issue 1323.
1659 "/wd4267", # size_t to int truncation
1660 ]
1661 }
1662 }
aleloi47bded42016-07-26 06:46:19 -07001663
aleloi82667732016-08-02 01:45:50 -07001664 config("RTPencode_config") {
1665 defines = [
1666 "CODEC_ILBC",
1667 "CODEC_PCM16B",
1668 "CODEC_G711",
1669 "CODEC_G722",
1670 "CODEC_ISAC",
1671 "CODEC_PCM16B_WB",
1672 "CODEC_ISAC_SWB",
1673 "CODEC_PCM16B_32KHZ",
1674 "CODEC_PCM16B_48KHZ",
1675 "CODEC_CNGCODEC8",
1676 "CODEC_CNGCODEC16",
1677 "CODEC_CNGCODEC32",
1678 "CODEC_ATEVENT_DECODE",
1679 "CODEC_RED",
1680 "CODEC_OPUS",
1681 ]
1682 }
1683
ehmaldonado38a21322016-09-02 04:10:34 -07001684 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001685 testonly = true
1686
1687 deps = [
1688 # TODO(hlundin): Make RTPencode use ACM to encode files.
1689 ":cng",
1690 ":g711",
1691 ":g722",
1692 ":ilbc",
1693 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001694 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001695 ":neteq_test_tools_deprecated",
aleloi82667732016-08-02 01:45:50 -07001696 ":pcm16b",
1697 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001698 "../..:webrtc_common",
1699 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001700 "../../common_audio",
1701 ]
1702
1703 configs += [ ":RTPencode_config" ]
1704
1705 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001706 "neteq/test/PayloadTypes.h",
aleloi82667732016-08-02 01:45:50 -07001707 "neteq/test/RTPencode.cc",
1708 ]
1709
1710 include_dirs = [
1711 "neteq/include",
1712 "neteq/test",
1713 ]
1714
1715 if (is_win) {
1716 cflags = [
1717 # Disable warnings to enable Win64 build, issue 1323.
1718 "/wd4267", # size_t to int truncation
1719 ]
1720 }
1721 }
1722
ehmaldonado38a21322016-09-02 04:10:34 -07001723 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001724 testonly = true
1725
1726 sources = [
1727 "neteq/test/RTPchange.cc",
1728 ]
1729
1730 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001731 ":neteq_test_tools_deprecated",
aleloi76cbe192016-08-02 02:05:03 -07001732 ]
1733 }
1734
ehmaldonado38a21322016-09-02 04:10:34 -07001735 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001736 testonly = true
1737
1738 sources = [
1739 "neteq/tools/rtpcat.cc",
1740 ]
1741
1742 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001743 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001744 "../../system_wrappers:system_wrappers_default",
1745 "../../test:rtp_test_utils",
1746 "//testing/gtest",
1747 ]
1748 }
1749
ehmaldonado38a21322016-09-02 04:10:34 -07001750 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001751 testonly = true
1752
1753 sources = [
1754 "neteq/test/RTPtimeshift.cc",
1755 ]
1756
1757 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001758 ":neteq_test_tools_deprecated",
kjellander676e08f2016-12-07 08:23:27 -08001759 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001760 "//testing/gtest",
1761 ]
1762 }
1763
ehmaldonado38a21322016-09-02 04:10:34 -07001764 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001765 testonly = true
1766 deps = [
1767 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001768 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001769 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001770 "//testing/gtest",
1771 ]
1772 sources = [
1773 "neteq/test/RTPjitter.cc",
1774 ]
1775 }
1776
ehmaldonado38a21322016-09-02 04:10:34 -07001777 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001778 testonly = true
1779
1780 sources = [
1781 "neteq/tools/rtp_analyze.cc",
1782 ]
1783
1784 deps = [
1785 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001786 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001787 ":pcm16b",
1788 "../../system_wrappers:system_wrappers_default",
1789 "//testing/gtest",
1790 "//third_party/gflags:gflags",
1791 ]
1792
kjellandere40a7ee2016-10-16 23:56:12 -07001793 if (!build_with_chromium && is_clang) {
1794 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001795 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001796 }
1797 }
aleloi630c6d52016-08-10 02:11:30 -07001798
ehmaldonado38a21322016-09-02 04:10:34 -07001799 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001800 testonly = true
1801
1802 sources = [
1803 "neteq/test/neteq_opus_quality_test.cc",
1804 ]
1805
1806 deps = [
1807 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001808 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001809 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001810 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001811 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001812 "//testing/gtest",
1813 "//third_party/gflags",
1814 ]
aleloi630c6d52016-08-10 02:11:30 -07001815 }
aleloi116fd612016-08-10 04:16:36 -07001816
ehmaldonado38a21322016-09-02 04:10:34 -07001817 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001818 testonly = true
1819
1820 sources = [
1821 "neteq/test/neteq_speed_test.cc",
1822 ]
1823
1824 deps = [
1825 ":neteq",
1826 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001827 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001828 "../../system_wrappers:system_wrappers_default",
1829 "../../test:test_support",
1830 "//third_party/gflags",
1831 ]
1832 }
aleloi63910122016-08-10 04:41:14 -07001833
ehmaldonado38a21322016-09-02 04:10:34 -07001834 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001835 testonly = true
1836
1837 sources = [
1838 "neteq/test/neteq_ilbc_quality_test.cc",
1839 ]
1840
1841 deps = [
1842 ":ilbc",
1843 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001844 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001845 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001846 "../..:webrtc_common",
1847 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001848 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001849 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001850 "//testing/gtest",
1851 "//third_party/gflags",
1852 ]
1853 }
aleloi6df36dc2016-08-10 05:04:47 -07001854
ehmaldonado38a21322016-09-02 04:10:34 -07001855 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001856 testonly = true
1857
1858 sources = [
1859 "neteq/test/neteq_isac_quality_test.cc",
1860 ]
1861
1862 deps = [
1863 ":isac_fix",
1864 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001865 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001866 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001867 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001868 "//testing/gtest",
1869 "//third_party/gflags",
1870 ]
1871 }
aleloic4ac7002016-08-10 05:06:27 -07001872
ehmaldonado38a21322016-09-02 04:10:34 -07001873 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001874 testonly = true
1875
1876 sources = [
1877 "neteq/test/neteq_pcmu_quality_test.cc",
1878 ]
1879
1880 deps = [
1881 ":g711",
1882 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001883 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001884 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001885 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001886 "//testing/gtest",
1887 "//third_party/gflags",
1888 ]
1889 }
aleloib7186d02016-08-16 01:47:16 -07001890
ehmaldonado38a21322016-09-02 04:10:34 -07001891 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001892 testonly = true
1893
1894 sources = [
1895 "codecs/isac/fix/test/kenny.cc",
1896 ]
1897
1898 deps = [
1899 ":isac_fix",
1900 "../../test:test_support",
1901 ]
1902
1903 if (is_win) {
1904 cflags = [
1905 # Disable warnings to enable Win64 build, issue 1323.
1906 "/wd4267", # size_t to int truncation
1907 ]
1908 }
1909 }
aleloi16f55a12016-08-23 08:08:23 -07001910
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001911 config("isac_test_warnings_config") {
1912 if (is_win && is_clang) {
1913 cflags = [
1914 # Disable warnings failing when compiling with Clang on Windows.
1915 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1916 "-Wno-format",
1917 ]
1918 }
1919 }
1920
kjellander7439f972016-12-05 22:47:46 -08001921 rtc_source_set("isac_test_util") {
1922 testonly = true
1923 sources = [
1924 "codecs/isac/main/util/utility.c",
1925 ]
1926 }
1927
ehmaldonado38a21322016-09-02 04:10:34 -07001928 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001929 testonly = true
1930
1931 sources = [
1932 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001933 ]
1934
1935 include_dirs = [
1936 "codecs/isac/main/include",
1937 "codecs/isac/main/test",
1938 "codecs/isac/main/util",
1939 ]
1940
1941 deps = [
1942 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001943 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001944 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001945 ]
1946
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001947 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001948 }
1949
ehmaldonado38a21322016-09-02 04:10:34 -07001950 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001951 testonly = true
1952
1953 sources = [
1954 "codecs/g711/test/testG711.cc",
1955 ]
1956
aleloi16f55a12016-08-23 08:08:23 -07001957 deps = [
1958 ":g711",
1959 ]
1960 }
aleloi9a117842016-08-23 08:36:10 -07001961
ehmaldonado38a21322016-09-02 04:10:34 -07001962 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001963 testonly = true
1964
1965 sources = [
1966 "codecs/g722/test/testG722.cc",
1967 ]
1968
aleloi9a117842016-08-23 08:36:10 -07001969 deps = [
1970 ":g722",
1971 "../..:webrtc_common",
1972 ]
1973 }
ivoc2c670db2016-08-24 06:11:18 -07001974
ehmaldonado38a21322016-09-02 04:10:34 -07001975 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001976 testonly = true
1977
1978 sources = [
1979 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001980 ]
1981
aleloicfee2152016-08-29 04:09:19 -07001982 deps = [
1983 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001984 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001985 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001986 ]
1987
1988 include_dirs = [
1989 "codecs/isac/main/include",
1990 "codecs/isac/main/test",
1991 "codecs/isac/main/util",
1992 ]
1993 }
1994
ehmaldonado38a21322016-09-02 04:10:34 -07001995 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001996 testonly = true
1997
1998 sources = [
1999 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002000 ]
2001
aleloicfee2152016-08-29 04:09:19 -07002002 deps = [
2003 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002004 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07002005 ]
2006
2007 include_dirs = [
2008 "codecs/isac/main/include",
2009 "codecs/isac/main/test",
2010 "codecs/isac/main/util",
2011 "../../common_audio/signal_processing/include",
2012 ]
2013 }
2014
ehmaldonado38a21322016-09-02 04:10:34 -07002015 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002016 testonly = true
2017
2018 sources = [
2019 "codecs/ilbc/test/iLBC_test.c",
2020 ]
2021
aleloicfee2152016-08-29 04:09:19 -07002022 deps = [
2023 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002024 ]
2025 }
2026
ehmaldonado38a21322016-09-02 04:10:34 -07002027 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002028 testonly = true
2029
2030 sources = [
2031 "codecs/opus/opus_fec_test.cc",
2032 ]
2033
2034 deps = [
2035 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07002036 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07002037 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08002038 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002039 "//testing/gtest",
2040 ]
2041
kjellandere40a7ee2016-10-16 23:56:12 -07002042 if (!build_with_chromium && is_clang) {
2043 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002044 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002045 }
2046 }
ehmaldonado36268652017-01-19 08:27:11 -08002047
2048 rtc_source_set("audio_coding_unittests") {
2049 testonly = true
2050
kjellandere0629c02017-04-25 04:04:50 -07002051 # Skip restricting visibility on mobile platforms since the tests on those
2052 # gets additional generated targets which would require many lines here to
2053 # cover (which would be confusing to read and hard to maintain).
2054 if (!is_android && !is_ios) {
2055 visibility = [ "//webrtc/modules:modules_unittests" ]
2056 }
ehmaldonado36268652017-01-19 08:27:11 -08002057 sources = [
2058 "acm2/acm_receiver_unittest.cc",
2059 "acm2/audio_coding_module_unittest.cc",
2060 "acm2/call_statistics_unittest.cc",
2061 "acm2/codec_manager_unittest.cc",
2062 "acm2/rent_a_codec_unittest.cc",
2063 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2064 "audio_network_adaptor/bitrate_controller_unittest.cc",
2065 "audio_network_adaptor/channel_controller_unittest.cc",
2066 "audio_network_adaptor/controller_manager_unittest.cc",
2067 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002068 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002069 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2070 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002071 "audio_network_adaptor/frame_length_controller_unittest.cc",
2072 "audio_network_adaptor/mock/mock_controller.h",
2073 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002074 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002075 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002076 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002077 "codecs/cng/audio_encoder_cng_unittest.cc",
2078 "codecs/cng/cng_unittest.cc",
2079 "codecs/ilbc/ilbc_unittest.cc",
2080 "codecs/isac/fix/source/filterbanks_unittest.cc",
2081 "codecs/isac/fix/source/filters_unittest.cc",
2082 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2083 "codecs/isac/fix/source/transform_unittest.cc",
2084 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2085 "codecs/isac/main/source/isac_unittest.cc",
2086 "codecs/isac/unittest.cc",
2087 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002088 "codecs/opus/audio_encoder_opus_unittest.cc",
2089 "codecs/opus/opus_unittest.cc",
2090 "codecs/red/audio_encoder_copy_red_unittest.cc",
2091 "neteq/audio_multi_vector_unittest.cc",
2092 "neteq/audio_vector_unittest.cc",
2093 "neteq/background_noise_unittest.cc",
2094 "neteq/buffer_level_filter_unittest.cc",
2095 "neteq/comfort_noise_unittest.cc",
2096 "neteq/decision_logic_unittest.cc",
2097 "neteq/decoder_database_unittest.cc",
2098 "neteq/delay_manager_unittest.cc",
2099 "neteq/delay_peak_detector_unittest.cc",
2100 "neteq/dsp_helper_unittest.cc",
2101 "neteq/dtmf_buffer_unittest.cc",
2102 "neteq/dtmf_tone_generator_unittest.cc",
2103 "neteq/expand_unittest.cc",
2104 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002105 "neteq/mock/mock_buffer_level_filter.h",
2106 "neteq/mock/mock_decoder_database.h",
2107 "neteq/mock/mock_delay_manager.h",
2108 "neteq/mock/mock_delay_peak_detector.h",
2109 "neteq/mock/mock_dtmf_buffer.h",
2110 "neteq/mock/mock_dtmf_tone_generator.h",
2111 "neteq/mock/mock_expand.h",
2112 "neteq/mock/mock_external_decoder_pcm16b.h",
2113 "neteq/mock/mock_packet_buffer.h",
2114 "neteq/mock/mock_red_payload_splitter.h",
2115 "neteq/nack_tracker_unittest.cc",
2116 "neteq/neteq_external_decoder_unittest.cc",
2117 "neteq/neteq_impl_unittest.cc",
2118 "neteq/neteq_network_stats_unittest.cc",
2119 "neteq/neteq_stereo_unittest.cc",
2120 "neteq/neteq_unittest.cc",
2121 "neteq/normal_unittest.cc",
2122 "neteq/packet_buffer_unittest.cc",
2123 "neteq/post_decode_vad_unittest.cc",
2124 "neteq/random_vector_unittest.cc",
2125 "neteq/red_payload_splitter_unittest.cc",
2126 "neteq/sync_buffer_unittest.cc",
2127 "neteq/tick_timer_unittest.cc",
2128 "neteq/time_stretch_unittest.cc",
2129 "neteq/timestamp_scaler_unittest.cc",
2130 "neteq/tools/input_audio_file_unittest.cc",
2131 "neteq/tools/packet_unittest.cc",
2132 ]
2133
2134 deps = [
2135 ":acm_receive_test",
2136 ":acm_send_test",
2137 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002138 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002139 ":audio_format_conversion",
2140 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002141 ":cng",
2142 ":g711",
2143 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002144 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002145 ":isac_c",
2146 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002147 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002148 ":neteq",
2149 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002150 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002151 ":pcm16b",
2152 ":red",
2153 ":rent_a_codec",
2154 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002155 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002156 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002157 "../../api/audio_codecs:audio_codecs_api",
2158 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002159 "../../api/audio_codecs:builtin_audio_encoder_factory",
mbonadei7c2c8432017-04-07 00:59:12 -07002160 "../../base:protobuf_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002161 "../../base:rtc_base",
2162 "../../base:rtc_base_approved",
2163 "../../base:rtc_base_tests_utils",
2164 "../../common_audio",
2165 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002166 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002167 "../../test:field_trial",
2168 "../../test:rtp_test_utils",
2169 "../../test:test_common",
2170 "../../test:test_support",
2171 "//testing/gmock",
2172 "//testing/gtest",
2173 "//third_party/gflags",
2174 ]
2175
2176 defines = audio_coding_defines
2177
2178 if (rtc_enable_protobuf) {
2179 defines += [
2180 "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP",
2181 "WEBRTC_NETEQ_UNITTEST_BITEXACT",
2182 ]
2183 deps += [
2184 ":ana_config_proto",
2185 ":neteq_unittest_proto",
2186 ]
2187 }
2188
2189 if (!build_with_chromium && is_clang) {
2190 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2191 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2192 }
2193 }
kjellanderfb114242016-06-13 00:19:48 -07002194}
kwiberg087bd342017-02-10 08:15:44 -08002195
2196# For backwards compatibility only! Use
2197# webrtc/api/audio_codecs:audio_codecs_api instead.
2198# TODO(kwiberg): Remove this.
2199rtc_source_set("audio_decoder_interface") {
2200 sources = [
2201 "codecs/audio_decoder.h",
2202 ]
2203 deps = [
2204 "../../api/audio_codecs:audio_codecs_api",
2205 ]
2206}
2207
2208# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002209# webrtc/api/audio_codecs:audio_codecs_api instead.
2210# TODO(ossu): Remove this.
2211rtc_source_set("audio_encoder_interface") {
2212 sources = [
2213 "codecs/audio_encoder.h",
2214 ]
2215 deps = [
2216 "../../api/audio_codecs:audio_codecs_api",
2217 ]
2218}
2219
2220# For backwards compatibility only! Use
kwiberg087bd342017-02-10 08:15:44 -08002221# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2222# TODO(kwiberg): Remove this.
2223rtc_source_set("builtin_audio_decoder_factory") {
2224 sources = [
2225 "codecs/builtin_audio_decoder_factory.h",
2226 ]
2227 deps = [
2228 "../../api/audio_codecs:builtin_audio_decoder_factory",
2229 ]
2230}
ossueb1fde42017-05-02 06:46:30 -07002231
2232# For backwards compatibility only! Use
2233# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2234# TODO(ossu): Remove this.
2235rtc_source_set("builtin_audio_encoder_factory") {
2236 sources = [
2237 "codecs/builtin_audio_encoder_factory.h",
2238 ]
2239 deps = [
2240 "../../api/audio_codecs:builtin_audio_encoder_factory",
2241 ]
2242}