blob: d5b669c0eb381b8b19eaa3d4bf0e4a012cddfcb4 [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",
ehmaldonado370dd472017-07-10 05:58:42 -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",
ehmaldonado370dd472017-07-10 05:58:42 -070061 "../../base:protobuf_utils",
62 "../../base:rtc_base_approved",
ossueb1fde42017-05-02 06:46:30 -070063 "../../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",
ehmaldonado370dd472017-07-10 05:58:42 -070075 "../../base:protobuf_utils",
76 "../../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",
ehmaldonado370dd472017-07-10 05:58:42 -070092 "../../base:protobuf_utils",
93 "../../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",
ehmaldonado370dd472017-07-10 05:58:42 -0700159 "../../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",
ehmaldonado370dd472017-07-10 05:58:42 -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",
ehmaldonado370dd472017-07-10 05:58:42 -0700196 "../../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",
ehmaldonado370dd472017-07-10 05:58:42 -0700215 "../../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",
ehmaldonado370dd472017-07-10 05:58:42 -0700241 "../../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",
kwibergb8727ae2017-06-17 17:41:59 -0700282 "../../api/audio_codecs/g722:audio_encoder_g722_config",
ehmaldonado370dd472017-07-10 05:58:42 -0700283 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200284 ]
kjellander7439f972016-12-05 22:47:46 -0800285 public_deps = [
286 ":g722_c",
287 ]
288}
289
290rtc_source_set("g722_c") {
291 visibility = [ ":*" ] # Only targets in this file can depend on this.
292 sources = [
293 "codecs/g722/g722_decode.c",
294 "codecs/g722/g722_enc_dec.h",
295 "codecs/g722/g722_encode.c",
296 "codecs/g722/g722_interface.c",
297 "codecs/g722/g722_interface.h",
298 ]
kjellander676e08f2016-12-07 08:23:27 -0800299 deps = [
300 "../..:webrtc_common",
301 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000302}
303
304config("ilbc_config") {
305 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000306 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100307 "codecs/ilbc/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000308 ]
309}
310
kjellanderb62dbbe2016-09-23 00:38:52 -0700311rtc_static_library("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000312 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700313 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100314 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200315 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100316 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800317 ]
318
319 public_configs = [ ":ilbc_config" ]
320
321 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800322 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800323 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800324 "../../api/audio_codecs:audio_codecs_api",
solenbergdb3c9b02017-06-28 02:05:04 -0700325 "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
ehmaldonado370dd472017-07-10 05:58:42 -0700326 "../../base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800327 "../../common_audio",
328 ]
329 public_deps = [
330 ":ilbc_c",
331 ]
332}
333
334rtc_source_set("ilbc_c") {
335 visibility = [ ":*" ] # Only targets in this file can depend on this.
336 sources = [
337 "codecs/ilbc/abs_quant.c",
338 "codecs/ilbc/abs_quant.h",
339 "codecs/ilbc/abs_quant_loop.c",
340 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000341 "codecs/ilbc/augmented_cb_corr.c",
342 "codecs/ilbc/augmented_cb_corr.h",
343 "codecs/ilbc/bw_expand.c",
344 "codecs/ilbc/bw_expand.h",
345 "codecs/ilbc/cb_construct.c",
346 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200347 "codecs/ilbc/cb_mem_energy.c",
348 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000349 "codecs/ilbc/cb_mem_energy_augmentation.c",
350 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000351 "codecs/ilbc/cb_mem_energy_calc.c",
352 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000353 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200354 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000355 "codecs/ilbc/cb_search_core.c",
356 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000357 "codecs/ilbc/cb_update_best_index.c",
358 "codecs/ilbc/cb_update_best_index.h",
359 "codecs/ilbc/chebyshev.c",
360 "codecs/ilbc/chebyshev.h",
361 "codecs/ilbc/comp_corr.c",
362 "codecs/ilbc/comp_corr.h",
363 "codecs/ilbc/constants.c",
364 "codecs/ilbc/constants.h",
365 "codecs/ilbc/create_augmented_vec.c",
366 "codecs/ilbc/create_augmented_vec.h",
367 "codecs/ilbc/decode.c",
368 "codecs/ilbc/decode.h",
369 "codecs/ilbc/decode_residual.c",
370 "codecs/ilbc/decode_residual.h",
371 "codecs/ilbc/decoder_interpolate_lsf.c",
372 "codecs/ilbc/decoder_interpolate_lsf.h",
373 "codecs/ilbc/defines.h",
374 "codecs/ilbc/do_plc.c",
375 "codecs/ilbc/do_plc.h",
376 "codecs/ilbc/encode.c",
377 "codecs/ilbc/encode.h",
378 "codecs/ilbc/energy_inverse.c",
379 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200380 "codecs/ilbc/enh_upsample.c",
381 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000382 "codecs/ilbc/enhancer.c",
383 "codecs/ilbc/enhancer.h",
384 "codecs/ilbc/enhancer_interface.c",
385 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000386 "codecs/ilbc/filtered_cb_vecs.c",
387 "codecs/ilbc/filtered_cb_vecs.h",
388 "codecs/ilbc/frame_classify.c",
389 "codecs/ilbc/frame_classify.h",
390 "codecs/ilbc/gain_dequant.c",
391 "codecs/ilbc/gain_dequant.h",
392 "codecs/ilbc/gain_quant.c",
393 "codecs/ilbc/gain_quant.h",
394 "codecs/ilbc/get_cd_vec.c",
395 "codecs/ilbc/get_cd_vec.h",
396 "codecs/ilbc/get_lsp_poly.c",
397 "codecs/ilbc/get_lsp_poly.h",
398 "codecs/ilbc/get_sync_seq.c",
399 "codecs/ilbc/get_sync_seq.h",
400 "codecs/ilbc/hp_input.c",
401 "codecs/ilbc/hp_input.h",
402 "codecs/ilbc/hp_output.c",
403 "codecs/ilbc/hp_output.h",
404 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100405 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000406 "codecs/ilbc/index_conv_dec.c",
407 "codecs/ilbc/index_conv_dec.h",
408 "codecs/ilbc/index_conv_enc.c",
409 "codecs/ilbc/index_conv_enc.h",
410 "codecs/ilbc/init_decode.c",
411 "codecs/ilbc/init_decode.h",
412 "codecs/ilbc/init_encode.c",
413 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000414 "codecs/ilbc/interpolate.c",
415 "codecs/ilbc/interpolate.h",
416 "codecs/ilbc/interpolate_samples.c",
417 "codecs/ilbc/interpolate_samples.h",
418 "codecs/ilbc/lpc_encode.c",
419 "codecs/ilbc/lpc_encode.h",
420 "codecs/ilbc/lsf_check.c",
421 "codecs/ilbc/lsf_check.h",
422 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
423 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
424 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
425 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
426 "codecs/ilbc/lsf_to_lsp.c",
427 "codecs/ilbc/lsf_to_lsp.h",
428 "codecs/ilbc/lsf_to_poly.c",
429 "codecs/ilbc/lsf_to_poly.h",
430 "codecs/ilbc/lsp_to_lsf.c",
431 "codecs/ilbc/lsp_to_lsf.h",
432 "codecs/ilbc/my_corr.c",
433 "codecs/ilbc/my_corr.h",
434 "codecs/ilbc/nearest_neighbor.c",
435 "codecs/ilbc/nearest_neighbor.h",
436 "codecs/ilbc/pack_bits.c",
437 "codecs/ilbc/pack_bits.h",
438 "codecs/ilbc/poly_to_lsf.c",
439 "codecs/ilbc/poly_to_lsf.h",
440 "codecs/ilbc/poly_to_lsp.c",
441 "codecs/ilbc/poly_to_lsp.h",
442 "codecs/ilbc/refiner.c",
443 "codecs/ilbc/refiner.h",
444 "codecs/ilbc/simple_interpolate_lsf.c",
445 "codecs/ilbc/simple_interpolate_lsf.h",
446 "codecs/ilbc/simple_lpc_analysis.c",
447 "codecs/ilbc/simple_lpc_analysis.h",
448 "codecs/ilbc/simple_lsf_dequant.c",
449 "codecs/ilbc/simple_lsf_dequant.h",
450 "codecs/ilbc/simple_lsf_quant.c",
451 "codecs/ilbc/simple_lsf_quant.h",
452 "codecs/ilbc/smooth.c",
453 "codecs/ilbc/smooth.h",
454 "codecs/ilbc/smooth_out_data.c",
455 "codecs/ilbc/smooth_out_data.h",
456 "codecs/ilbc/sort_sq.c",
457 "codecs/ilbc/sort_sq.h",
458 "codecs/ilbc/split_vq.c",
459 "codecs/ilbc/split_vq.h",
460 "codecs/ilbc/state_construct.c",
461 "codecs/ilbc/state_construct.h",
462 "codecs/ilbc/state_search.c",
463 "codecs/ilbc/state_search.h",
464 "codecs/ilbc/swap_bytes.c",
465 "codecs/ilbc/swap_bytes.h",
466 "codecs/ilbc/unpack_bits.c",
467 "codecs/ilbc/unpack_bits.h",
468 "codecs/ilbc/vq3.c",
469 "codecs/ilbc/vq3.h",
470 "codecs/ilbc/vq4.c",
471 "codecs/ilbc/vq4.h",
472 "codecs/ilbc/window32_w32.c",
473 "codecs/ilbc/window32_w32.h",
474 "codecs/ilbc/xcorr_coef.c",
475 "codecs/ilbc/xcorr_coef.h",
476 ]
477
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700478 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000479
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000480 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800481 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800482 "../../api/audio_codecs:audio_codecs_api",
ehmaldonado370dd472017-07-10 05:58:42 -0700483 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100484 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000485 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000486}
487
kjellanderb62dbbe2016-09-23 00:38:52 -0700488rtc_static_library("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700489 sources = [
490 "codecs/isac/audio_encoder_isac_t.h",
491 "codecs/isac/audio_encoder_isac_t_impl.h",
492 "codecs/isac/locked_bandwidth_info.cc",
493 "codecs/isac/locked_bandwidth_info.h",
494 ]
kjellander676e08f2016-12-07 08:23:27 -0800495 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800496 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700497 "../../api/audio_codecs:audio_codecs_api",
ehmaldonado370dd472017-07-10 05:58:42 -0700498 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -0800499 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700500}
501
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000502config("isac_config") {
503 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000504 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100505 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000506 ]
507}
508
kjellanderb62dbbe2016-09-23 00:38:52 -0700509rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000510 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800511 "codecs/isac/main/include/audio_decoder_isac.h",
512 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800513 "codecs/isac/main/source/audio_decoder_isac.cc",
514 "codecs/isac/main/source/audio_encoder_isac.cc",
515 ]
516
517 deps = [
kjellander7439f972016-12-05 22:47:46 -0800518 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800519 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800520 ]
521 public_deps = [
522 ":isac_c",
523 ]
524}
525
526rtc_static_library("isac_c") {
527 visibility = [ ":*" ] # Only targets in this file can depend on this.
528 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100529 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000530 "codecs/isac/main/source/arith_routines.c",
531 "codecs/isac/main/source/arith_routines.h",
532 "codecs/isac/main/source/arith_routines_hist.c",
533 "codecs/isac/main/source/arith_routines_logist.c",
534 "codecs/isac/main/source/bandwidth_estimator.c",
535 "codecs/isac/main/source/bandwidth_estimator.h",
536 "codecs/isac/main/source/codec.h",
537 "codecs/isac/main/source/crc.c",
538 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000539 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200540 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000541 "codecs/isac/main/source/encode.c",
542 "codecs/isac/main/source/encode_lpc_swb.c",
543 "codecs/isac/main/source/encode_lpc_swb.h",
544 "codecs/isac/main/source/entropy_coding.c",
545 "codecs/isac/main/source/entropy_coding.h",
546 "codecs/isac/main/source/fft.c",
547 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200548 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000549 "codecs/isac/main/source/filterbank_tables.c",
550 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200551 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000552 "codecs/isac/main/source/intialize.c",
553 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200554 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000555 "codecs/isac/main/source/lattice.c",
556 "codecs/isac/main/source/lpc_analysis.c",
557 "codecs/isac/main/source/lpc_analysis.h",
558 "codecs/isac/main/source/lpc_gain_swb_tables.c",
559 "codecs/isac/main/source/lpc_gain_swb_tables.h",
560 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
561 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
562 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
563 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
564 "codecs/isac/main/source/lpc_tables.c",
565 "codecs/isac/main/source/lpc_tables.h",
566 "codecs/isac/main/source/os_specific_inline.h",
567 "codecs/isac/main/source/pitch_estimator.c",
568 "codecs/isac/main/source/pitch_estimator.h",
569 "codecs/isac/main/source/pitch_filter.c",
570 "codecs/isac/main/source/pitch_gain_tables.c",
571 "codecs/isac/main/source/pitch_gain_tables.h",
572 "codecs/isac/main/source/pitch_lag_tables.c",
573 "codecs/isac/main/source/pitch_lag_tables.h",
574 "codecs/isac/main/source/settings.h",
575 "codecs/isac/main/source/spectrum_ar_model_tables.c",
576 "codecs/isac/main/source/spectrum_ar_model_tables.h",
577 "codecs/isac/main/source/structs.h",
578 "codecs/isac/main/source/transform.c",
579 ]
580
581 if (is_linux) {
582 libs = [ "m" ]
583 }
584
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700585 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000586
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000587 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800588 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700589 "../..:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -0700590 "../../base:compile_assert_c",
591 "../../base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000592 "../../common_audio",
593 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000594}
595
596config("isac_fix_config") {
597 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000598 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100599 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000600 ]
601}
602
kjellanderb62dbbe2016-09-23 00:38:52 -0700603rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000604 sources = [
kjellander7439f972016-12-05 22:47:46 -0800605 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
606 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
607 ]
608
609 public_configs = [ ":isac_fix_config" ]
610
611 deps = [
kjellander7439f972016-12-05 22:47:46 -0800612 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800613 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800614 "../../common_audio",
615 "../../system_wrappers",
616 ]
617 public_deps = [
618 ":isac_fix_c",
619 ]
620
621 if (rtc_build_with_neon) {
622 deps += [ ":isac_neon" ]
623 }
624}
625
kwiberga6ca5182017-01-30 05:28:54 -0800626rtc_source_set("isac_fix_common") {
627 visibility = [ ":*" ] # Only targets in this file can depend on this.
628 sources = [
629 "codecs/isac/fix/source/codec.h",
630 "codecs/isac/fix/source/fft.c",
631 "codecs/isac/fix/source/fft.h",
632 "codecs/isac/fix/source/settings.h",
633 ]
634 public_configs = [ ":isac_fix_config" ]
635}
kjellander676e08f2016-12-07 08:23:27 -0800636
mbonadei5c0d7032017-07-06 03:48:55 -0700637rtc_source_set("isac_fix_c_arm_asm") {
638 sources = []
639 if (current_cpu == "arm" && arm_version >= 7) {
640 sources += [
641 "codecs/isac/fix/source/lattice_armv7.S",
642 "codecs/isac/fix/source/pitch_filter_armv6.S",
643 ]
644 }
645}
646
kwiberga6ca5182017-01-30 05:28:54 -0800647rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800648 visibility = [ ":*" ] # Only targets in this file can depend on this.
649 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100650 "codecs/isac/fix/include/audio_decoder_isacfix.h",
651 "codecs/isac/fix/include/audio_encoder_isacfix.h",
652 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000653 "codecs/isac/fix/source/arith_routines.c",
654 "codecs/isac/fix/source/arith_routines_hist.c",
655 "codecs/isac/fix/source/arith_routines_logist.c",
656 "codecs/isac/fix/source/arith_routins.h",
657 "codecs/isac/fix/source/bandwidth_estimator.c",
658 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000659 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200660 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000661 "codecs/isac/fix/source/decode_plc.c",
662 "codecs/isac/fix/source/encode.c",
663 "codecs/isac/fix/source/entropy_coding.c",
664 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000665 "codecs/isac/fix/source/filterbank_tables.c",
666 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200667 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000668 "codecs/isac/fix/source/filters.c",
669 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200670 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000671 "codecs/isac/fix/source/isacfix.c",
672 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700673 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000674 "codecs/isac/fix/source/lpc_masking_model.c",
675 "codecs/isac/fix/source/lpc_masking_model.h",
676 "codecs/isac/fix/source/lpc_tables.c",
677 "codecs/isac/fix/source/lpc_tables.h",
678 "codecs/isac/fix/source/pitch_estimator.c",
679 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700680 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000681 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700682 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000683 "codecs/isac/fix/source/pitch_gain_tables.c",
684 "codecs/isac/fix/source/pitch_gain_tables.h",
685 "codecs/isac/fix/source/pitch_lag_tables.c",
686 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000687 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
688 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
689 "codecs/isac/fix/source/structs.h",
690 "codecs/isac/fix/source/transform.c",
691 "codecs/isac/fix/source/transform_tables.c",
692 ]
693
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700694 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000695
kjellander676e08f2016-12-07 08:23:27 -0800696 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800697 ":isac_common",
698 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800699 "../../api/audio_codecs:audio_codecs_api",
ehmaldonado370dd472017-07-10 05:58:42 -0700700 "../../base:compile_assert_c",
701 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -0800702 "../../common_audio",
703 "../../system_wrappers",
704 ]
705
kwiberga6ca5182017-01-30 05:28:54 -0800706 public_deps = [
707 ":isac_fix_common",
708 ]
709
mbonadeie5dc3ce2017-01-25 05:34:46 -0800710 if (rtc_build_with_neon) {
711 deps += [ ":isac_neon" ]
712 }
713
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700714 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700715 sources -= [
716 "codecs/isac/fix/source/lattice_c.c",
717 "codecs/isac/fix/source/pitch_filter_c.c",
718 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700719 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000720 }
721
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000722 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000723 sources += [
724 "codecs/isac/fix/source/entropy_coding_mips.c",
725 "codecs/isac/fix/source/filters_mips.c",
726 "codecs/isac/fix/source/lattice_mips.c",
727 "codecs/isac/fix/source/pitch_estimator_mips.c",
728 "codecs/isac/fix/source/transform_mips.c",
729 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700730 sources -= [
731 "codecs/isac/fix/source/lattice_c.c",
732 "codecs/isac/fix/source/pitch_estimator_c.c",
733 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000734 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200735 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000736 }
737 if (mips_dsp_rev > 1) {
738 sources += [
739 "codecs/isac/fix/source/lpc_masking_model_mips.c",
740 "codecs/isac/fix/source/pitch_filter_mips.c",
741 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200742 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000743 }
744 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000745}
746
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700747if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700748 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800749 sources = [
750 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800751 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800752 "codecs/isac/fix/source/filters_neon.c",
753 "codecs/isac/fix/source/lattice_neon.c",
754 "codecs/isac/fix/source/transform_neon.c",
755 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000756
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700757 if (current_cpu != "arm64") {
758 # Enable compilation for the NEON instruction set. This is needed
759 # since //build/config/arm.gni only enables NEON for iOS, not Android.
760 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700761 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700762 cflags = [ "-mfpu=neon" ]
763 }
764
765 # Disable LTO on NEON targets due to compiler bug.
766 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000767 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000768 cflags -= [
769 "-flto",
770 "-ffat-lto-objects",
771 ]
772 }
773
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200774 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800775 ":isac_fix_common",
ehmaldonado370dd472017-07-10 05:58:42 -0700776 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200777 "../../common_audio",
778 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000779 }
780}
781
782config("pcm16b_config") {
783 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000784 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000785 "codecs/pcm16b/include",
786 ]
787}
788
kjellanderb62dbbe2016-09-23 00:38:52 -0700789rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000790 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200791 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100792 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200793 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100794 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000795 ]
796
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000797 deps = [
798 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800799 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800800 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800801 "../../api/audio_codecs:audio_codecs_api",
ehmaldonado370dd472017-07-10 05:58:42 -0700802 "../../base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000803 ]
kjellander7439f972016-12-05 22:47:46 -0800804 public_deps = [
805 ":pcm16b_c",
806 ]
807 public_configs = [ ":pcm16b_config" ]
808}
809
810rtc_source_set("pcm16b_c") {
811 visibility = [ ":*" ] # Only targets in this file can depend on this.
812 sources = [
813 "codecs/pcm16b/pcm16b.c",
814 "codecs/pcm16b/pcm16b.h",
815 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000816
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700817 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800818 deps = [
819 "../..:webrtc_common",
820 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000821}
822
823config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000824 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000825}
826
kjellanderb62dbbe2016-09-23 00:38:52 -0700827rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000828 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200829 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100830 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000831 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100832 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000833 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000834
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200835 deps = [
minyue41b9c802016-10-06 07:13:54 -0700836 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800837 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800838 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700839 "../../api/audio_codecs/opus:audio_encoder_opus_config",
ehmaldonado370dd472017-07-10 05:58:42 -0700840 "../../base:protobuf_utils",
841 "../../base:rtc_base_approved",
842 "../../base:rtc_numerics",
michaelt566d8202017-01-12 10:17:38 -0800843 "../../common_audio",
kjellander676e08f2016-12-07 08:23:27 -0800844 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200845 ]
kjellander7439f972016-12-05 22:47:46 -0800846 public_deps = [
847 ":webrtc_opus_c",
848 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000849
michaelta55f0212017-02-02 07:47:19 -0800850 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800851
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000852 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800853 public_deps += [ rtc_opus_dir ]
854 } else if (build_with_mozilla) {
855 include_dirs = [ getenv("DIST") + "/include/opus" ]
856 }
857}
858
859rtc_source_set("webrtc_opus_c") {
860 visibility = [ ":*" ] # Only targets in this file can depend on this.
861 sources = [
862 "codecs/opus/opus_inst.h",
863 "codecs/opus/opus_interface.c",
864 "codecs/opus/opus_interface.h",
865 ]
866
minyue2e03c662017-02-01 17:31:11 -0800867 defines = audio_coding_defines
868
kjellander7439f972016-12-05 22:47:46 -0800869 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700870 public_deps = [
871 rtc_opus_dir,
872 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000873 } else if (build_with_mozilla) {
874 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000875 }
kjellander7439f972016-12-05 22:47:46 -0800876
877 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800878 "../..:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -0700879 "../../base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800880 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000881}
882
minyue25f6a392016-09-22 22:23:20 -0700883if (rtc_enable_protobuf) {
884 proto_library("ana_debug_dump_proto") {
885 sources = [
886 "audio_network_adaptor/debug_dump.proto",
887 ]
sakal363a2912017-01-13 06:52:12 -0800888 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700889 }
minyuea1d9ad02016-10-02 14:53:37 -0700890 proto_library("ana_config_proto") {
891 sources = [
892 "audio_network_adaptor/config.proto",
893 ]
894 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
895 }
minyue25f6a392016-09-22 22:23:20 -0700896}
897
minyue0d382ef2016-10-07 07:59:28 -0700898rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700899 sources = [
900 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700901 "audio_network_adaptor/audio_network_adaptor_impl.cc",
902 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700903 "audio_network_adaptor/bitrate_controller.cc",
904 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700905 "audio_network_adaptor/channel_controller.cc",
906 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700907 "audio_network_adaptor/controller.cc",
908 "audio_network_adaptor/controller.h",
909 "audio_network_adaptor/controller_manager.cc",
910 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700911 "audio_network_adaptor/debug_dump_writer.cc",
912 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700913 "audio_network_adaptor/dtx_controller.cc",
914 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800915 "audio_network_adaptor/event_log_writer.cc",
916 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700917 "audio_network_adaptor/fec_controller_plr_based.cc",
918 "audio_network_adaptor/fec_controller_plr_based.h",
919 "audio_network_adaptor/fec_controller_rplr_based.cc",
920 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700921 "audio_network_adaptor/frame_length_controller.cc",
922 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700923 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700924 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700925 ]
minyue25f6a392016-09-22 22:23:20 -0700926
minyue41b9c802016-10-06 07:13:54 -0700927 deps = [
928 "../..:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -0700929 "../../base:protobuf_utils",
930 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -0800931 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800932 "../../logging:rtc_event_log_api",
minyue41b9c802016-10-06 07:13:54 -0700933 "../../system_wrappers",
934 ]
935
minyue25f6a392016-09-22 22:23:20 -0700936 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700937 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700938 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700939 ":ana_debug_dump_proto",
940 ]
minyue25f6a392016-09-22 22:23:20 -0700941 }
minyue4b7c9522017-01-24 04:54:59 -0800942
943 if (!build_with_chromium && is_clang) {
944 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
945 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
946 }
minyue7610f852016-09-07 13:51:51 -0700947}
948
kwiberg65cb70d2017-03-03 06:16:28 -0800949rtc_source_set("neteq_decoder_enum") {
950 sources = [
951 "neteq/neteq_decoder_enum.cc",
952 "neteq/neteq_decoder_enum.h",
953 ]
954 deps = [
955 "../../api/audio_codecs:audio_codecs_api",
ehmaldonado370dd472017-07-10 05:58:42 -0700956 "../../base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -0800957 ]
958}
kjellander676e08f2016-12-07 08:23:27 -0800959
kwiberg65cb70d2017-03-03 06:16:28 -0800960rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000961 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000962 "neteq/accelerate.cc",
963 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000964 "neteq/audio_decoder_impl.cc",
965 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000966 "neteq/audio_multi_vector.cc",
967 "neteq/audio_multi_vector.h",
968 "neteq/audio_vector.cc",
969 "neteq/audio_vector.h",
970 "neteq/background_noise.cc",
971 "neteq/background_noise.h",
972 "neteq/buffer_level_filter.cc",
973 "neteq/buffer_level_filter.h",
974 "neteq/comfort_noise.cc",
975 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700976 "neteq/cross_correlation.cc",
977 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000978 "neteq/decision_logic.cc",
979 "neteq/decision_logic.h",
980 "neteq/decision_logic_fax.cc",
981 "neteq/decision_logic_fax.h",
982 "neteq/decision_logic_normal.cc",
983 "neteq/decision_logic_normal.h",
984 "neteq/decoder_database.cc",
985 "neteq/decoder_database.h",
986 "neteq/defines.h",
987 "neteq/delay_manager.cc",
988 "neteq/delay_manager.h",
989 "neteq/delay_peak_detector.cc",
990 "neteq/delay_peak_detector.h",
991 "neteq/dsp_helper.cc",
992 "neteq/dsp_helper.h",
993 "neteq/dtmf_buffer.cc",
994 "neteq/dtmf_buffer.h",
995 "neteq/dtmf_tone_generator.cc",
996 "neteq/dtmf_tone_generator.h",
997 "neteq/expand.cc",
998 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100999 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001000 "neteq/merge.cc",
1001 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001002 "neteq/nack_tracker.cc",
1003 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001004 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001005 "neteq/neteq_impl.cc",
1006 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001007 "neteq/normal.cc",
1008 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001009 "neteq/packet.cc",
1010 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001011 "neteq/packet_buffer.cc",
1012 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001013 "neteq/post_decode_vad.cc",
1014 "neteq/post_decode_vad.h",
1015 "neteq/preemptive_expand.cc",
1016 "neteq/preemptive_expand.h",
1017 "neteq/random_vector.cc",
1018 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001019 "neteq/red_payload_splitter.cc",
1020 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001021 "neteq/rtcp.cc",
1022 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001023 "neteq/statistics_calculator.cc",
1024 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001025 "neteq/sync_buffer.cc",
1026 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001027 "neteq/tick_timer.cc",
1028 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001029 "neteq/time_stretch.cc",
1030 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001031 "neteq/timestamp_scaler.cc",
1032 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001033 ]
1034
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001035 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001036 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001037 ":cng",
1038 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001039 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001040 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001041 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001042 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001043 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001044 "../../api/audio_codecs:audio_codecs_api",
ehmaldonado370dd472017-07-10 05:58:42 -07001045 "../../base:gtest_prod",
1046 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001047 "../../common_audio",
1048 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001049 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001050
1051 defines = []
1052
kwibergf8c2bac2016-01-18 06:38:32 -08001053 if (rtc_include_ilbc) {
1054 defines += [ "WEBRTC_CODEC_ILBC" ]
1055 deps += [ ":ilbc" ]
1056 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001057 if (rtc_include_opus) {
1058 defines += [ "WEBRTC_CODEC_OPUS" ]
1059 deps += [ ":webrtc_opus" ]
1060 }
kwiberg98ab3a42015-09-30 21:54:21 -07001061 if (!build_with_mozilla) {
1062 if (current_cpu == "arm") {
1063 defines += [ "WEBRTC_CODEC_ISACFX" ]
1064 deps += [ ":isac_fix" ]
1065 } else {
1066 defines += [ "WEBRTC_CODEC_ISAC" ]
1067 deps += [ ":isac" ]
1068 }
1069 defines += [ "WEBRTC_CODEC_G722" ]
1070 deps += [ ":g722" ]
1071 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001072}
kjellanderfb114242016-06-13 00:19:48 -07001073
henrik.lundin58466f62016-10-05 02:27:42 -07001074# Although providing only test support, this target must be outside of the
1075# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1076# that ultimately are built and run as a part of the Chromium ecosystem, which
1077# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001078rtc_source_set("neteq_tools_minimal") {
henrik.lundin58466f62016-10-05 02:27:42 -07001079 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001080 "neteq/tools/audio_sink.cc",
1081 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001082 "neteq/tools/encode_neteq_input.cc",
1083 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001084 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001085 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001086 "neteq/tools/neteq_test.cc",
1087 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001088 "neteq/tools/packet.cc",
1089 "neteq/tools/packet.h",
1090 "neteq/tools/packet_source.cc",
1091 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001092 ]
1093
kjellandere40a7ee2016-10-16 23:56:12 -07001094 if (!build_with_chromium && is_clang) {
1095 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001096 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1097 }
kjellander676e08f2016-12-07 08:23:27 -08001098
1099 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001100 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001101 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001102 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -07001103 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001104 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado370dd472017-07-10 05:58:42 -07001105 "../../base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001106 "../rtp_rtcp",
kjellander676e08f2016-12-07 08:23:27 -08001107 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001108}
1109
mbonadei3edccb92017-06-01 04:47:20 -07001110rtc_source_set("neteq_test_tools") {
1111 testonly = true
1112 sources = [
1113 "neteq/tools/audio_checksum.h",
1114 "neteq/tools/audio_loop.cc",
1115 "neteq/tools/audio_loop.h",
1116 "neteq/tools/constant_pcm_packet_source.cc",
1117 "neteq/tools/constant_pcm_packet_source.h",
1118 "neteq/tools/output_audio_file.h",
1119 "neteq/tools/output_wav_file.h",
1120 "neteq/tools/rtp_file_source.cc",
1121 "neteq/tools/rtp_file_source.h",
1122 "neteq/tools/rtp_generator.cc",
1123 "neteq/tools/rtp_generator.h",
1124 ]
1125
1126 public_configs = [ ":neteq_tools_config" ]
1127
1128 if (!build_with_chromium && is_clang) {
1129 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1130 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1131 }
1132
1133 deps = [
1134 ":pcm16b",
1135 "..:module_api",
1136 "../..:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -07001137 "../../base:rtc_base_approved",
1138 "../../base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001139 "../../common_audio",
1140 "../../test:rtp_test_utils",
1141 "../rtp_rtcp",
1142 ]
1143
1144 public_deps = [
1145 ":neteq_tools",
1146 ":neteq_tools_minimal",
1147 ]
1148
1149 if (rtc_enable_protobuf) {
1150 sources += [
1151 "neteq/tools/neteq_packet_source_input.cc",
1152 "neteq/tools/neteq_packet_source_input.h",
1153 ]
1154 deps += [ ":rtc_event_log_source" ]
1155 }
1156}
1157
1158config("neteq_tools_config") {
1159 include_dirs = [ "tools" ]
1160}
1161
1162rtc_source_set("neteq_tools") {
1163 sources = [
1164 "neteq/tools/fake_decode_from_file.cc",
1165 "neteq/tools/fake_decode_from_file.h",
1166 "neteq/tools/input_audio_file.cc",
1167 "neteq/tools/input_audio_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001168 "neteq/tools/neteq_delay_analyzer.cc",
1169 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001170 "neteq/tools/neteq_replacement_input.cc",
1171 "neteq/tools/neteq_replacement_input.h",
1172 "neteq/tools/resample_input_audio_file.cc",
1173 "neteq/tools/resample_input_audio_file.h",
1174 ]
1175
1176 public_configs = [ ":neteq_tools_config" ]
1177
1178 if (!build_with_chromium && is_clang) {
1179 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1180 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1181 }
1182
1183 deps = [
1184 "../..:webrtc_common",
1185 "../../api/audio_codecs:audio_codecs_api",
ehmaldonado370dd472017-07-10 05:58:42 -07001186 "../../base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001187 "../../common_audio",
1188 "../rtp_rtcp",
1189 ]
1190
1191 public_deps = [
1192 ":neteq_tools_minimal",
1193 ]
1194}
1195
1196if (rtc_enable_protobuf) {
1197 rtc_static_library("rtc_event_log_source") {
1198 testonly = true
1199
1200 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1201 # Needs call.h to be moved to webrtc/api first.
1202 check_includes = false
1203
1204 sources = [
1205 "neteq/tools/rtc_event_log_source.cc",
1206 "neteq/tools/rtc_event_log_source.h",
1207 ]
1208
1209 if (!build_with_chromium && is_clang) {
1210 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1211 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1212 }
1213
1214 deps = [
ehmaldonado370dd472017-07-10 05:58:42 -07001215 "../../base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001216 "../../logging:rtc_event_log_parser",
1217 ]
1218 public_deps = [
1219 "../../logging:rtc_event_log_proto",
1220 ]
1221 }
1222}
1223
kjellanderfb114242016-06-13 00:19:48 -07001224if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001225 group("audio_coding_tests") {
1226 testonly = true
1227 public_deps = [
1228 ":RTPchange",
1229 ":RTPencode",
1230 ":RTPjitter",
1231 ":RTPtimeshift",
1232 ":acm_receive_test",
1233 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001234 ":audio_codec_speed_tests",
1235 ":audio_decoder_unittests",
1236 ":audio_decoder_unittests",
1237 ":delay_test",
1238 ":g711_test",
1239 ":g722_test",
1240 ":ilbc_test",
1241 ":insert_packet_with_timing",
1242 ":isac_api_test",
1243 ":isac_fix_test",
1244 ":isac_switch_samprate_test",
1245 ":isac_test",
1246 ":neteq_ilbc_quality_test",
1247 ":neteq_isac_quality_test",
1248 ":neteq_opus_quality_test",
1249 ":neteq_pcmu_quality_test",
1250 ":neteq_speed_test",
1251 ":rtp_analyze",
1252 ":rtpcat",
1253 ":webrtc_opus_fec_test",
1254 ]
1255 if (rtc_enable_protobuf) {
1256 public_deps += [ ":neteq_rtpplay" ]
1257 }
1258 }
1259
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001260 rtc_source_set("audio_coding_modules_tests") {
1261 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001262
1263 # Skip restricting visibility on mobile platforms since the tests on those
1264 # gets additional generated targets which would require many lines here to
1265 # cover (which would be confusing to read and hard to maintain).
1266 if (!is_android && !is_ios) {
1267 visibility = [ "//webrtc/modules:modules_tests" ]
1268 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001269 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001270 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001271 "test/APITest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001272 "test/APITest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001273 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001274 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001275 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001276 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001277 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001278 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001279 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001280 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001281 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001282 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001283 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001284 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001285 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001286 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001287 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001288 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001289 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001290 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001291 "test/Tester.cc",
1292 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001293 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001294 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001295 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001296 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001297 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001298 "test/target_delay_unittest.cc",
1299 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001300 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001301 ]
1302 deps = [
1303 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001304 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001305 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001306 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001307 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001308 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001309 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado370dd472017-07-10 05:58:42 -07001310 "../../base:rtc_base_approved",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001311 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001312 "../../test:test_support",
1313 ]
1314 defines = audio_coding_defines
1315 if (is_win) {
1316 cflags = [
1317 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1318 "/wd4373", # virtual function override.
1319 ]
1320 }
1321 if (!build_with_chromium && is_clang) {
1322 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1323 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1324 }
1325 }
1326
ehmaldonado021eef32017-01-05 07:09:50 -08001327 rtc_source_set("audio_coding_perf_tests") {
1328 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001329
1330 # Skip restricting visibility on mobile platforms since the tests on those
1331 # gets additional generated targets which would require many lines here to
1332 # cover (which would be confusing to read and hard to maintain).
1333 if (!is_android && !is_ios) {
1334 visibility = [ "//webrtc:webrtc_perf_tests" ]
1335 }
ehmaldonado021eef32017-01-05 07:09:50 -08001336 sources = [
1337 "codecs/opus/opus_complexity_unittest.cc",
1338 "neteq/test/neteq_performance_unittest.cc",
1339 ]
1340 deps = [
1341 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001342 ":neteq_test_tools",
ehmaldonado021eef32017-01-05 07:09:50 -08001343 ":webrtc_opus",
1344 "../..:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -07001345 "../../base:protobuf_utils",
1346 "../../base:rtc_base_approved",
ehmaldonado021eef32017-01-05 07:09:50 -08001347 "../../system_wrappers:system_wrappers",
1348 "../../test:test_support",
1349 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001350
ehmaldonado021eef32017-01-05 07:09:50 -08001351 if (!build_with_chromium && is_clang) {
1352 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1353 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1354 }
1355 }
1356
ehmaldonado38a21322016-09-02 04:10:34 -07001357 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001358 testonly = true
1359 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001360 "acm2/acm_receive_test.cc",
1361 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001362 ]
1363
kjellanderfb114242016-06-13 00:19:48 -07001364 defines = audio_coding_defines
1365
1366 deps = audio_coding_deps + [
1367 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001368 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001369 "../../api/audio_codecs:audio_codecs_api",
1370 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001371 ":neteq_tools",
ehmaldonado370dd472017-07-10 05:58:42 -07001372 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001373 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001374 "//testing/gtest",
1375 ]
1376 }
1377
ehmaldonado38a21322016-09-02 04:10:34 -07001378 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001379 testonly = true
1380 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001381 "acm2/acm_send_test.cc",
1382 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001383 ]
1384
kjellanderfb114242016-06-13 00:19:48 -07001385 defines = audio_coding_defines
1386
1387 deps = audio_coding_deps + [
1388 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001389 ":neteq_tools",
ossueb1fde42017-05-02 06:46:30 -07001390 "../../api/audio_codecs:audio_codecs_api",
ehmaldonado370dd472017-07-10 05:58:42 -07001391 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001392 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001393 "//testing/gtest",
1394 ]
1395 }
1396
ehmaldonado38a21322016-09-02 04:10:34 -07001397 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001398 testonly = true
1399 sources = [
1400 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001401 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001402 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001403 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001404 "test/delay_test.cc",
1405 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001406 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001407 ]
1408
aleloi333f2062016-07-28 01:21:29 -07001409 deps = [
1410 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001411 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001412 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001413 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001414 "../../:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -07001415 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001416 "../../system_wrappers",
1417 "../../system_wrappers:system_wrappers_default",
1418 "../../test:test_support",
1419 "../rtp_rtcp",
1420 "//testing/gtest",
1421 "//third_party/gflags:gflags",
1422 ]
1423 } # delay_test
1424
ehmaldonado38a21322016-09-02 04:10:34 -07001425 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001426 testonly = true
1427 sources = [
1428 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001429 "test/Channel.h",
aleloi00730c72016-07-28 01:27:10 -07001430 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001431 "test/PCMFile.h",
aleloi00730c72016-07-28 01:27:10 -07001432 "test/insert_packet_with_timing.cc",
1433 ]
1434
kjellandere40a7ee2016-10-16 23:56:12 -07001435 if (!build_with_chromium && is_clang) {
1436 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001437 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001438 }
1439
1440 deps = [
1441 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001442 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001443 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001444 "../../:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -07001445 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001446 "../../system_wrappers",
1447 "../../system_wrappers:system_wrappers_default",
1448 "../../test:test_support",
1449 "../rtp_rtcp",
1450 "//testing/gtest",
1451 "//third_party/gflags:gflags",
1452 ]
1453 } # insert_packet_with_timing
1454
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001455 audio_decoder_unittests_resources =
1456 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001457
1458 if (is_ios) {
1459 bundle_data("audio_decoder_unittests_bundle_data") {
1460 testonly = true
1461 sources = audio_decoder_unittests_resources
1462 outputs = [
1463 "{{bundle_resources_dir}}/{{source_file_part}}",
1464 ]
1465 }
1466 }
1467
ehmaldonado38a21322016-09-02 04:10:34 -07001468 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001469 testonly = true
1470 sources = [
1471 "neteq/audio_decoder_unittest.cc",
1472 ]
1473
kjellandere40a7ee2016-10-16 23:56:12 -07001474 if (!build_with_chromium && is_clang) {
1475 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001476 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001477 }
1478
1479 deps = []
1480
1481 defines = neteq_defines
1482
1483 deps += audio_coding_deps
1484 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001485 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001486 ":isac",
1487 ":isac_fix",
1488 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001489 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001490 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001491 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonado370dd472017-07-10 05:58:42 -07001492 "../../base:protobuf_utils",
kjellander6ceab082016-10-28 05:44:03 -07001493 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001494 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001495 "//testing/gtest",
1496 ]
1497
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001498 data = audio_decoder_unittests_resources
1499
charujainddf3e4a2016-08-01 07:49:42 -07001500 if (is_android) {
1501 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001502 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001503 }
kjellander32c4a202016-08-30 02:53:49 -07001504 if (is_ios) {
1505 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001506 }
1507 } # audio_decoder_unittests
1508
kjellanderfb114242016-06-13 00:19:48 -07001509 if (rtc_enable_protobuf) {
1510 proto_library("neteq_unittest_proto") {
1511 sources = [
1512 "neteq/neteq_unittest.proto",
1513 ]
kjellandere3e902e2017-02-28 08:01:46 -08001514 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001515 }
henrik.lundin03153f12016-06-21 05:38:42 -07001516
ehmaldonado38a21322016-09-02 04:10:34 -07001517 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001518 testonly = true
1519 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001520 deps = [
1521 "..:module_api",
1522 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001523 sources = [
1524 "neteq/tools/neteq_rtpplay.cc",
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" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001530 }
1531
1532 if (is_win) {
1533 cflags = [
1534 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1535 "/wd4373", # virtual function override.
1536 ]
1537 }
1538
1539 deps += [
1540 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001541 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001542 "../..:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -07001543 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001544 "../../system_wrappers:system_wrappers_default",
1545 "../../test:test_support",
1546 "//third_party/gflags",
1547 ]
1548 }
kjellanderfb114242016-06-13 00:19:48 -07001549 }
1550
ehmaldonado38a21322016-09-02 04:10:34 -07001551 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001552 testonly = true
1553 defines = []
1554 deps = []
1555 sources = [
1556 "codecs/isac/fix/test/isac_speed_test.cc",
1557 "codecs/opus/opus_speed_test.cc",
1558 "codecs/tools/audio_codec_speed_test.cc",
1559 "codecs/tools/audio_codec_speed_test.h",
1560 ]
1561
kjellandere40a7ee2016-10-16 23:56:12 -07001562 if (!build_with_chromium && is_clang) {
1563 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001564 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001565 }
1566
1567 if (is_android) {
1568 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001569 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001570 }
1571
1572 deps += [
1573 ":isac_fix",
1574 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001575 "../..:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -07001576 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001577 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001578 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001579 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001580 "//testing/gtest",
1581 ]
1582 }
1583
ehmaldonado38a21322016-09-02 04:10:34 -07001584 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001585 testonly = true
1586 sources = [
1587 "neteq/tools/neteq_external_decoder_test.cc",
1588 "neteq/tools/neteq_external_decoder_test.h",
1589 "neteq/tools/neteq_performance_test.cc",
1590 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001591 ]
1592
kjellandere40a7ee2016-10-16 23:56:12 -07001593 if (!build_with_chromium && is_clang) {
1594 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001595 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001596 }
1597
1598 deps = [
1599 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001600 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001601 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001602 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001603 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001604 "../../api/audio_codecs:audio_codecs_api",
1605 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado370dd472017-07-10 05:58:42 -07001606 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001607 "../../system_wrappers",
1608 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001609 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001610 ]
1611 }
1612
ehmaldonado38a21322016-09-02 04:10:34 -07001613 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001614 testonly = true
1615 sources = [
1616 "neteq/tools/neteq_quality_test.cc",
1617 "neteq/tools/neteq_quality_test.h",
1618 ]
1619
kjellandere40a7ee2016-10-16 23:56:12 -07001620 if (!build_with_chromium && is_clang) {
1621 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001622 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001623 }
1624
1625 deps = [
1626 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001627 ":neteq_test_tools",
mbonadei1140f972017-04-26 03:38:35 -07001628 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001629 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001630 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado370dd472017-07-10 05:58:42 -07001631 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001632 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001633 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001634 "//third_party/gflags",
1635 ]
1636 }
1637
henrik.lundinb637a942017-04-28 00:59:45 -07001638 rtc_source_set("neteq_test_tools_deprecated") {
aleloi3022a342016-07-26 06:36:03 -07001639 testonly = true
1640 sources = [
1641 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1642 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1643 "neteq/test/NETEQTEST_RTPpacket.cc",
1644 "neteq/test/NETEQTEST_RTPpacket.h",
1645 ]
1646
1647 deps = [
1648 ":cng",
1649 ":g711",
1650 ":g722",
1651 ":ilbc",
1652 ":isac",
1653 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001654 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001655 "../..:webrtc_common",
1656 "//testing/gtest",
1657 ]
1658
1659 include_dirs = [
1660 "neteq/include",
1661 "neteq/test",
1662 "../../",
1663 ]
1664
1665 if (is_win) {
1666 cflags = [
1667 # Disable warnings to enable Win64 build, issue 1323.
1668 "/wd4267", # size_t to int truncation
1669 ]
1670 }
1671 }
aleloi47bded42016-07-26 06:46:19 -07001672
aleloi82667732016-08-02 01:45:50 -07001673 config("RTPencode_config") {
1674 defines = [
1675 "CODEC_ILBC",
1676 "CODEC_PCM16B",
1677 "CODEC_G711",
1678 "CODEC_G722",
1679 "CODEC_ISAC",
1680 "CODEC_PCM16B_WB",
1681 "CODEC_ISAC_SWB",
1682 "CODEC_PCM16B_32KHZ",
1683 "CODEC_PCM16B_48KHZ",
1684 "CODEC_CNGCODEC8",
1685 "CODEC_CNGCODEC16",
1686 "CODEC_CNGCODEC32",
1687 "CODEC_ATEVENT_DECODE",
1688 "CODEC_RED",
1689 "CODEC_OPUS",
1690 ]
1691 }
1692
ehmaldonado38a21322016-09-02 04:10:34 -07001693 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001694 testonly = true
1695
1696 deps = [
1697 # TODO(hlundin): Make RTPencode use ACM to encode files.
1698 ":cng",
1699 ":g711",
1700 ":g722",
1701 ":ilbc",
1702 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001703 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001704 ":neteq_test_tools_deprecated",
aleloi82667732016-08-02 01:45:50 -07001705 ":pcm16b",
1706 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001707 "../..:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -07001708 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001709 "../../common_audio",
1710 ]
1711
1712 configs += [ ":RTPencode_config" ]
1713
1714 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001715 "neteq/test/PayloadTypes.h",
aleloi82667732016-08-02 01:45:50 -07001716 "neteq/test/RTPencode.cc",
1717 ]
1718
1719 include_dirs = [
1720 "neteq/include",
1721 "neteq/test",
1722 ]
1723
1724 if (is_win) {
1725 cflags = [
1726 # Disable warnings to enable Win64 build, issue 1323.
1727 "/wd4267", # size_t to int truncation
1728 ]
1729 }
1730 }
1731
ehmaldonado38a21322016-09-02 04:10:34 -07001732 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001733 testonly = true
1734
1735 sources = [
1736 "neteq/test/RTPchange.cc",
1737 ]
1738
1739 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001740 ":neteq_test_tools_deprecated",
aleloi76cbe192016-08-02 02:05:03 -07001741 ]
1742 }
1743
ehmaldonado38a21322016-09-02 04:10:34 -07001744 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001745 testonly = true
1746
1747 sources = [
1748 "neteq/tools/rtpcat.cc",
1749 ]
1750
1751 deps = [
ehmaldonado370dd472017-07-10 05:58:42 -07001752 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001753 "../../system_wrappers:system_wrappers_default",
1754 "../../test:rtp_test_utils",
1755 "//testing/gtest",
1756 ]
1757 }
1758
ehmaldonado38a21322016-09-02 04:10:34 -07001759 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001760 testonly = true
1761
1762 sources = [
1763 "neteq/test/RTPtimeshift.cc",
1764 ]
1765
1766 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001767 ":neteq_test_tools_deprecated",
kjellander676e08f2016-12-07 08:23:27 -08001768 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001769 "//testing/gtest",
1770 ]
1771 }
1772
ehmaldonado38a21322016-09-02 04:10:34 -07001773 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001774 testonly = true
1775 deps = [
1776 "../..:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -07001777 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001778 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001779 "//testing/gtest",
1780 ]
1781 sources = [
1782 "neteq/test/RTPjitter.cc",
1783 ]
1784 }
1785
ehmaldonado38a21322016-09-02 04:10:34 -07001786 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001787 testonly = true
1788
1789 sources = [
1790 "neteq/tools/rtp_analyze.cc",
1791 ]
1792
1793 deps = [
1794 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001795 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001796 ":pcm16b",
1797 "../../system_wrappers:system_wrappers_default",
1798 "//testing/gtest",
1799 "//third_party/gflags:gflags",
1800 ]
1801
kjellandere40a7ee2016-10-16 23:56:12 -07001802 if (!build_with_chromium && is_clang) {
1803 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001804 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001805 }
1806 }
aleloi630c6d52016-08-10 02:11:30 -07001807
ehmaldonado38a21322016-09-02 04:10:34 -07001808 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001809 testonly = true
1810
1811 sources = [
1812 "neteq/test/neteq_opus_quality_test.cc",
1813 ]
1814
1815 deps = [
1816 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001817 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001818 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001819 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001820 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001821 "//testing/gtest",
1822 "//third_party/gflags",
1823 ]
aleloi630c6d52016-08-10 02:11:30 -07001824 }
aleloi116fd612016-08-10 04:16:36 -07001825
ehmaldonado38a21322016-09-02 04:10:34 -07001826 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001827 testonly = true
1828
1829 sources = [
1830 "neteq/test/neteq_speed_test.cc",
1831 ]
1832
1833 deps = [
1834 ":neteq",
1835 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001836 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001837 "../../system_wrappers:system_wrappers_default",
1838 "../../test:test_support",
1839 "//third_party/gflags",
1840 ]
1841 }
aleloi63910122016-08-10 04:41:14 -07001842
ehmaldonado38a21322016-09-02 04:10:34 -07001843 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001844 testonly = true
1845
1846 sources = [
1847 "neteq/test/neteq_ilbc_quality_test.cc",
1848 ]
1849
1850 deps = [
1851 ":ilbc",
1852 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001853 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001854 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001855 "../..:webrtc_common",
ehmaldonado370dd472017-07-10 05:58:42 -07001856 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001857 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001858 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001859 "//testing/gtest",
1860 "//third_party/gflags",
1861 ]
1862 }
aleloi6df36dc2016-08-10 05:04:47 -07001863
ehmaldonado38a21322016-09-02 04:10:34 -07001864 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001865 testonly = true
1866
1867 sources = [
1868 "neteq/test/neteq_isac_quality_test.cc",
1869 ]
1870
1871 deps = [
1872 ":isac_fix",
1873 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001874 ":neteq_quality_test_support",
ehmaldonado370dd472017-07-10 05:58:42 -07001875 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001876 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001877 "//testing/gtest",
1878 "//third_party/gflags",
1879 ]
1880 }
aleloic4ac7002016-08-10 05:06:27 -07001881
ehmaldonado38a21322016-09-02 04:10:34 -07001882 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001883 testonly = true
1884
1885 sources = [
1886 "neteq/test/neteq_pcmu_quality_test.cc",
1887 ]
1888
1889 deps = [
1890 ":g711",
1891 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001892 ":neteq_quality_test_support",
ehmaldonado370dd472017-07-10 05:58:42 -07001893 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001894 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001895 "//testing/gtest",
1896 "//third_party/gflags",
1897 ]
1898 }
aleloib7186d02016-08-16 01:47:16 -07001899
ehmaldonado38a21322016-09-02 04:10:34 -07001900 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001901 testonly = true
1902
1903 sources = [
1904 "codecs/isac/fix/test/kenny.cc",
1905 ]
1906
1907 deps = [
1908 ":isac_fix",
1909 "../../test:test_support",
1910 ]
1911
1912 if (is_win) {
1913 cflags = [
1914 # Disable warnings to enable Win64 build, issue 1323.
1915 "/wd4267", # size_t to int truncation
1916 ]
1917 }
1918 }
aleloi16f55a12016-08-23 08:08:23 -07001919
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001920 config("isac_test_warnings_config") {
1921 if (is_win && is_clang) {
1922 cflags = [
1923 # Disable warnings failing when compiling with Clang on Windows.
1924 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1925 "-Wno-format",
1926 ]
1927 }
1928 }
1929
kjellander7439f972016-12-05 22:47:46 -08001930 rtc_source_set("isac_test_util") {
1931 testonly = true
1932 sources = [
1933 "codecs/isac/main/util/utility.c",
1934 ]
1935 }
1936
ehmaldonado38a21322016-09-02 04:10:34 -07001937 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001938 testonly = true
1939
1940 sources = [
1941 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001942 ]
1943
1944 include_dirs = [
1945 "codecs/isac/main/include",
1946 "codecs/isac/main/test",
1947 "codecs/isac/main/util",
1948 ]
1949
1950 deps = [
1951 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001952 ":isac_test_util",
ehmaldonado370dd472017-07-10 05:58:42 -07001953 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001954 ]
1955
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001956 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001957 }
1958
ehmaldonado38a21322016-09-02 04:10:34 -07001959 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001960 testonly = true
1961
1962 sources = [
1963 "codecs/g711/test/testG711.cc",
1964 ]
1965
aleloi16f55a12016-08-23 08:08:23 -07001966 deps = [
1967 ":g711",
1968 ]
1969 }
aleloi9a117842016-08-23 08:36:10 -07001970
ehmaldonado38a21322016-09-02 04:10:34 -07001971 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001972 testonly = true
1973
1974 sources = [
1975 "codecs/g722/test/testG722.cc",
1976 ]
1977
aleloi9a117842016-08-23 08:36:10 -07001978 deps = [
1979 ":g722",
1980 "../..:webrtc_common",
1981 ]
1982 }
ivoc2c670db2016-08-24 06:11:18 -07001983
ehmaldonado38a21322016-09-02 04:10:34 -07001984 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001985 testonly = true
1986
1987 sources = [
1988 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001989 ]
1990
aleloicfee2152016-08-29 04:09:19 -07001991 deps = [
1992 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001993 ":isac_test_util",
ehmaldonado370dd472017-07-10 05:58:42 -07001994 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001995 ]
1996
1997 include_dirs = [
1998 "codecs/isac/main/include",
1999 "codecs/isac/main/test",
2000 "codecs/isac/main/util",
2001 ]
2002 }
2003
ehmaldonado38a21322016-09-02 04:10:34 -07002004 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002005 testonly = true
2006
2007 sources = [
2008 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002009 ]
2010
aleloicfee2152016-08-29 04:09:19 -07002011 deps = [
2012 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002013 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07002014 ]
2015
2016 include_dirs = [
2017 "codecs/isac/main/include",
2018 "codecs/isac/main/test",
2019 "codecs/isac/main/util",
2020 "../../common_audio/signal_processing/include",
2021 ]
2022 }
2023
ehmaldonado38a21322016-09-02 04:10:34 -07002024 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002025 testonly = true
2026
2027 sources = [
2028 "codecs/ilbc/test/iLBC_test.c",
2029 ]
2030
aleloicfee2152016-08-29 04:09:19 -07002031 deps = [
2032 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002033 ]
2034 }
2035
ehmaldonado38a21322016-09-02 04:10:34 -07002036 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002037 testonly = true
2038
2039 sources = [
2040 "codecs/opus/opus_fec_test.cc",
2041 ]
2042
2043 deps = [
2044 ":webrtc_opus",
ehmaldonado370dd472017-07-10 05:58:42 -07002045 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07002046 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08002047 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002048 "//testing/gtest",
2049 ]
2050
kjellandere40a7ee2016-10-16 23:56:12 -07002051 if (!build_with_chromium && is_clang) {
2052 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002053 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002054 }
2055 }
ehmaldonado36268652017-01-19 08:27:11 -08002056
2057 rtc_source_set("audio_coding_unittests") {
2058 testonly = true
2059
kjellandere0629c02017-04-25 04:04:50 -07002060 # Skip restricting visibility on mobile platforms since the tests on those
2061 # gets additional generated targets which would require many lines here to
2062 # cover (which would be confusing to read and hard to maintain).
2063 if (!is_android && !is_ios) {
2064 visibility = [ "//webrtc/modules:modules_unittests" ]
2065 }
ehmaldonado36268652017-01-19 08:27:11 -08002066 sources = [
2067 "acm2/acm_receiver_unittest.cc",
2068 "acm2/audio_coding_module_unittest.cc",
2069 "acm2/call_statistics_unittest.cc",
2070 "acm2/codec_manager_unittest.cc",
2071 "acm2/rent_a_codec_unittest.cc",
2072 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2073 "audio_network_adaptor/bitrate_controller_unittest.cc",
2074 "audio_network_adaptor/channel_controller_unittest.cc",
2075 "audio_network_adaptor/controller_manager_unittest.cc",
2076 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002077 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002078 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2079 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002080 "audio_network_adaptor/frame_length_controller_unittest.cc",
2081 "audio_network_adaptor/mock/mock_controller.h",
2082 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002083 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002084 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002085 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002086 "codecs/cng/audio_encoder_cng_unittest.cc",
2087 "codecs/cng/cng_unittest.cc",
2088 "codecs/ilbc/ilbc_unittest.cc",
2089 "codecs/isac/fix/source/filterbanks_unittest.cc",
2090 "codecs/isac/fix/source/filters_unittest.cc",
2091 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2092 "codecs/isac/fix/source/transform_unittest.cc",
2093 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2094 "codecs/isac/main/source/isac_unittest.cc",
2095 "codecs/isac/unittest.cc",
2096 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002097 "codecs/opus/audio_encoder_opus_unittest.cc",
2098 "codecs/opus/opus_unittest.cc",
2099 "codecs/red/audio_encoder_copy_red_unittest.cc",
2100 "neteq/audio_multi_vector_unittest.cc",
2101 "neteq/audio_vector_unittest.cc",
2102 "neteq/background_noise_unittest.cc",
2103 "neteq/buffer_level_filter_unittest.cc",
2104 "neteq/comfort_noise_unittest.cc",
2105 "neteq/decision_logic_unittest.cc",
2106 "neteq/decoder_database_unittest.cc",
2107 "neteq/delay_manager_unittest.cc",
2108 "neteq/delay_peak_detector_unittest.cc",
2109 "neteq/dsp_helper_unittest.cc",
2110 "neteq/dtmf_buffer_unittest.cc",
2111 "neteq/dtmf_tone_generator_unittest.cc",
2112 "neteq/expand_unittest.cc",
2113 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002114 "neteq/mock/mock_buffer_level_filter.h",
2115 "neteq/mock/mock_decoder_database.h",
2116 "neteq/mock/mock_delay_manager.h",
2117 "neteq/mock/mock_delay_peak_detector.h",
2118 "neteq/mock/mock_dtmf_buffer.h",
2119 "neteq/mock/mock_dtmf_tone_generator.h",
2120 "neteq/mock/mock_expand.h",
2121 "neteq/mock/mock_external_decoder_pcm16b.h",
2122 "neteq/mock/mock_packet_buffer.h",
2123 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002124 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002125 "neteq/nack_tracker_unittest.cc",
2126 "neteq/neteq_external_decoder_unittest.cc",
2127 "neteq/neteq_impl_unittest.cc",
2128 "neteq/neteq_network_stats_unittest.cc",
2129 "neteq/neteq_stereo_unittest.cc",
2130 "neteq/neteq_unittest.cc",
2131 "neteq/normal_unittest.cc",
2132 "neteq/packet_buffer_unittest.cc",
2133 "neteq/post_decode_vad_unittest.cc",
2134 "neteq/random_vector_unittest.cc",
2135 "neteq/red_payload_splitter_unittest.cc",
2136 "neteq/sync_buffer_unittest.cc",
2137 "neteq/tick_timer_unittest.cc",
2138 "neteq/time_stretch_unittest.cc",
2139 "neteq/timestamp_scaler_unittest.cc",
2140 "neteq/tools/input_audio_file_unittest.cc",
2141 "neteq/tools/packet_unittest.cc",
2142 ]
2143
2144 deps = [
2145 ":acm_receive_test",
2146 ":acm_send_test",
2147 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002148 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002149 ":audio_format_conversion",
2150 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002151 ":cng",
2152 ":g711",
2153 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002154 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002155 ":isac_c",
2156 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002157 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002158 ":neteq",
2159 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002160 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002161 ":pcm16b",
2162 ":red",
2163 ":rent_a_codec",
2164 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002165 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002166 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002167 "../../api/audio_codecs:audio_codecs_api",
2168 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002169 "../../api/audio_codecs:builtin_audio_encoder_factory",
ehmaldonado370dd472017-07-10 05:58:42 -07002170 "../../base:protobuf_utils",
2171 "../../base:rtc_base",
2172 "../../base:rtc_base_approved",
2173 "../../base:rtc_base_tests_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002174 "../../common_audio",
2175 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002176 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002177 "../../test:field_trial",
2178 "../../test:rtp_test_utils",
2179 "../../test:test_common",
2180 "../../test:test_support",
2181 "//testing/gmock",
2182 "//testing/gtest",
2183 "//third_party/gflags",
2184 ]
2185
2186 defines = audio_coding_defines
2187
2188 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002189 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002190 deps += [
2191 ":ana_config_proto",
2192 ":neteq_unittest_proto",
2193 ]
2194 }
2195
2196 if (!build_with_chromium && is_clang) {
2197 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2198 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2199 }
2200 }
kjellanderfb114242016-06-13 00:19:48 -07002201}
kwiberg087bd342017-02-10 08:15:44 -08002202
2203# For backwards compatibility only! Use
2204# webrtc/api/audio_codecs:audio_codecs_api instead.
2205# TODO(kwiberg): Remove this.
2206rtc_source_set("audio_decoder_interface") {
2207 sources = [
2208 "codecs/audio_decoder.h",
2209 ]
2210 deps = [
2211 "../../api/audio_codecs:audio_codecs_api",
2212 ]
2213}
2214
2215# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002216# webrtc/api/audio_codecs:audio_codecs_api instead.
2217# TODO(ossu): Remove this.
2218rtc_source_set("audio_encoder_interface") {
2219 sources = [
2220 "codecs/audio_encoder.h",
2221 ]
2222 deps = [
2223 "../../api/audio_codecs:audio_codecs_api",
2224 ]
2225}
2226
2227# For backwards compatibility only! Use
kwiberg087bd342017-02-10 08:15:44 -08002228# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2229# TODO(kwiberg): Remove this.
2230rtc_source_set("builtin_audio_decoder_factory") {
2231 sources = [
2232 "codecs/builtin_audio_decoder_factory.h",
2233 ]
2234 deps = [
2235 "../../api/audio_codecs:builtin_audio_decoder_factory",
2236 ]
2237}
ossueb1fde42017-05-02 06:46:30 -07002238
2239# For backwards compatibility only! Use
2240# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2241# TODO(ossu): Remove this.
2242rtc_source_set("builtin_audio_encoder_factory") {
2243 sources = [
2244 "codecs/builtin_audio_encoder_factory.h",
2245 ]
2246 deps = [
2247 "../../api/audio_codecs:builtin_audio_encoder_factory",
2248 ]
2249}