blob: 30460ba203d4093c248776f8c3e29b20b166350e [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellanderfb114242016-06-13 00:19:48 -070010import("audio_coding.gni")
11import("//build/config/arm.gni")
kjellanderfb114242016-06-13 00:19:48 -070012import("//third_party/protobuf/proto_library.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013
kwiberg0edb05b2016-01-19 05:54:28 -080014audio_codec_deps = [
15 ":cng",
16 ":g711",
17 ":pcm16b",
18]
kwiberg0edb05b2016-01-19 05:54:28 -080019if (rtc_include_ilbc) {
kwiberg0edb05b2016-01-19 05:54:28 -080020 audio_codec_deps += [ ":ilbc" ]
21}
22if (rtc_include_opus) {
kwiberg0edb05b2016-01-19 05:54:28 -080023 audio_codec_deps += [ ":webrtc_opus" ]
24}
25if (!build_with_mozilla) {
26 if (current_cpu == "arm") {
kwiberg0edb05b2016-01-19 05:54:28 -080027 audio_codec_deps += [ ":isac_fix" ]
28 } else {
kwiberg0edb05b2016-01-19 05:54:28 -080029 audio_codec_deps += [ ":isac" ]
30 }
kwiberg0edb05b2016-01-19 05:54:28 -080031 audio_codec_deps += [ ":g722" ]
32}
33if (!build_with_mozilla && !build_with_chromium) {
kwiberg0edb05b2016-01-19 05:54:28 -080034 audio_codec_deps += [ ":red" ]
35}
kjellanderfb114242016-06-13 00:19:48 -070036audio_coding_deps = audio_codec_deps + [
37 "../..:webrtc_common",
38 "../../common_audio",
39 "../../system_wrappers",
40 ]
kwiberg0edb05b2016-01-19 05:54:28 -080041
kwibergda2bf4e2016-10-24 13:47:09 -070042rtc_static_library("audio_format_conversion") {
43 sources = [
44 "codecs/audio_format_conversion.cc",
45 "codecs/audio_format_conversion.h",
46 ]
47 deps = [
kwiberga6b82982016-10-24 16:31:17 -070048 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -080049 "../../api/audio_codecs:audio_codecs_api",
kwiberga6b82982016-10-24 16:31:17 -070050 "../../base:rtc_base_approved",
kwibergda2bf4e2016-10-24 13:47:09 -070051 ]
52}
53
kwiberg087bd342017-02-10 08:15:44 -080054rtc_static_library("builtin_audio_decoder_factory_internal") {
kwibergda2bf4e2016-10-24 13:47:09 -070055 sources = [
kwiberg087bd342017-02-10 08:15:44 -080056 "codecs/builtin_audio_decoder_factory_internal.cc",
57 "codecs/builtin_audio_decoder_factory_internal.h",
kwibergc01c6a42016-04-28 14:23:32 -070058 ]
kwibergc01c6a42016-04-28 14:23:32 -070059 deps = [
60 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -070061 "../../base:protobuf_utils",
62 "../../base:rtc_base_approved",
63 "../../api/audio_codecs:audio_codecs_api",
64 ] + audio_codec_deps
65 defines = audio_codec_defines
66}
67
68rtc_static_library("builtin_audio_encoder_factory_internal") {
69 sources = [
70 "codecs/builtin_audio_encoder_factory_internal.cc",
71 "codecs/builtin_audio_encoder_factory_internal.h",
72 ]
73 deps = [
74 "../..:webrtc_common",
75 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -080076 "../../base:rtc_base_approved",
kwiberg087bd342017-02-10 08:15:44 -080077 "../../api/audio_codecs:audio_codecs_api",
kwibergc01c6a42016-04-28 14:23:32 -070078 ] + audio_codec_deps
79 defines = audio_codec_defines
80}
81
kjellanderb62dbbe2016-09-23 00:38:52 -070082rtc_static_library("rent_a_codec") {
kwibergfce4a942015-10-27 11:40:24 -070083 sources = [
kjellander3e6db232015-11-26 04:44:54 -080084 "acm2/acm_codec_database.cc",
85 "acm2/acm_codec_database.h",
86 "acm2/rent_a_codec.cc",
87 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -070088 ]
kjellander676e08f2016-12-07 08:23:27 -080089 deps = [
kwiberg087bd342017-02-10 08:15:44 -080090 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -080091 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -070092 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -080093 "../../base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -080094 "../../system_wrappers",
95 ":audio_coding_module_typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -080096 ":isac_common",
97 ":isac_fix_c",
98 ":neteq_decoder_enum",
kjellander676e08f2016-12-07 08:23:27 -080099 ] + audio_codec_deps
mbonadei7c2c8432017-04-07 00:59:12 -0700100
kwiberg0edb05b2016-01-19 05:54:28 -0800101 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -0700102}
103
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000104config("audio_coding_config") {
105 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -0800106 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +0100107 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000108 ]
109}
110
kwiberg65cb70d2017-03-03 06:16:28 -0800111rtc_source_set("audio_coding_module_typedefs") {
112 sources = [
113 "include/audio_coding_module_typedefs.h",
114 ]
115 deps = [
mbonadei1140f972017-04-26 03:38:35 -0700116 "..:module_api",
kwiberg65cb70d2017-03-03 06:16:28 -0800117 "../..:webrtc_common",
118 ]
119}
120
kjellanderb62dbbe2016-09-23 00:38:52 -0700121rtc_static_library("audio_coding") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000122 sources = [
kjellander3e6db232015-11-26 04:44:54 -0800123 "acm2/acm_receiver.cc",
124 "acm2/acm_receiver.h",
125 "acm2/acm_resampler.cc",
126 "acm2/acm_resampler.h",
127 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800128 "acm2/call_statistics.cc",
129 "acm2/call_statistics.h",
130 "acm2/codec_manager.cc",
131 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800132 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000133 ]
134
135 defines = []
136
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700137 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000138
kjellanderfb114242016-06-13 00:19:48 -0700139 if (rtc_include_opus) {
140 public_deps = [
141 ":webrtc_opus",
142 ]
143 }
144
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000145 if (is_win) {
146 cflags = [
147 # TODO(kjellander): Bug 261: fix this warning.
148 "/wd4373", # virtual function override.
149 ]
150 }
151
kjellanderfb114242016-06-13 00:19:48 -0700152 deps = audio_coding_deps + [
mbonadei1140f972017-04-26 03:38:35 -0700153 "..:module_api",
kwiberg087bd342017-02-10 08:15:44 -0800154 "../../api/audio_codecs:audio_codecs_api",
155 "../../api/audio_codecs:builtin_audio_decoder_factory",
kwiberg65cb70d2017-03-03 06:16:28 -0800156 ":audio_coding_module_typedefs",
kwiberg0edb05b2016-01-19 05:54:28 -0800157 ":neteq",
158 ":rent_a_codec",
kjellander676e08f2016-12-07 08:23:27 -0800159 "../../base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -0700160 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800161 ]
kjellanderfb114242016-06-13 00:19:48 -0700162 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000163}
164
kwiberg087bd342017-02-10 08:15:44 -0800165rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000166 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700167 "codecs/legacy_encoded_audio_frame.cc",
168 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000169 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200170 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800171 "../../api/audio_codecs:audio_codecs_api",
kjellander4e7f6c12016-04-25 21:59:50 -0700172 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200173 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000174}
175
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000176config("cng_config") {
177 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000178 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000179 "codecs/cng/include",
180 ]
181}
182
kjellanderb62dbbe2016-09-23 00:38:52 -0700183rtc_static_library("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000184 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000185 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100186 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700187 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100188 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000189 ]
190
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700191 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000192
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000193 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800194 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -0700195 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800196 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100197 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000198 ]
199}
200
201config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200202 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000203}
204
kjellanderb62dbbe2016-09-23 00:38:52 -0700205rtc_static_library("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000206 sources = [
207 "codecs/red/audio_encoder_copy_red.cc",
208 "codecs/red/audio_encoder_copy_red.h",
209 ]
210
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700211 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000212
213 deps = [
ossueb1fde42017-05-02 06:46:30 -0700214 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800215 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100216 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000217 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000218}
219
220config("g711_config") {
221 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000222 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000223 "codecs/g711/include",
224 ]
225}
226
kjellanderb62dbbe2016-09-23 00:38:52 -0700227rtc_static_library("g711") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000228 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700229 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100230 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000231 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100232 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000233 ]
234
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700235 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000236
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200237 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800238 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800239 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800240 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800241 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200242 ]
kjellander7439f972016-12-05 22:47:46 -0800243 public_deps = [
244 ":g711_c",
245 ]
246}
247
248rtc_source_set("g711_c") {
249 visibility = [ ":*" ] # Only targets in this file can depend on this.
250 sources = [
251 "codecs/g711/g711.c",
252 "codecs/g711/g711.h",
253 "codecs/g711/g711_interface.c",
254 "codecs/g711/g711_interface.h",
255 ]
kjellander676e08f2016-12-07 08:23:27 -0800256 deps = [
257 "../..:webrtc_common",
258 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000259}
260
261config("g722_config") {
262 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000263 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000264 "codecs/g722/include",
265 ]
266}
267
kjellanderb62dbbe2016-09-23 00:38:52 -0700268rtc_static_library("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000269 sources = [
kwibergada4c132015-09-17 03:12:35 -0700270 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100271 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000272 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100273 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000274 ]
275
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700276 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000277
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200278 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800279 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800280 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800281 "../../api/audio_codecs:audio_codecs_api",
kwibergb8727ae2017-06-17 17:41:59 -0700282 "../../api/audio_codecs/g722:audio_encoder_g722_config",
kjellander676e08f2016-12-07 08:23:27 -0800283 "../../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",
kjellander7439f972016-12-05 22:47:46 -0800326 "../../base:rtc_base_approved",
327 "../../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",
kjellander676e08f2016-12-07 08:23:27 -0800483 "../../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",
kjellander676e08f2016-12-07 08:23:27 -0800498 "../../base:rtc_base_approved",
499 ]
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",
mbonadei9baa7792017-05-15 08:06:47 -0700590 "../../base:compile_assert_c",
aleloicfee2152016-08-29 04:09:19 -0700591 "../../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
kwiberga6ca5182017-01-30 05:28:54 -0800637rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800638 visibility = [ ":*" ] # Only targets in this file can depend on this.
639 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100640 "codecs/isac/fix/include/audio_decoder_isacfix.h",
641 "codecs/isac/fix/include/audio_encoder_isacfix.h",
642 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000643 "codecs/isac/fix/source/arith_routines.c",
644 "codecs/isac/fix/source/arith_routines_hist.c",
645 "codecs/isac/fix/source/arith_routines_logist.c",
646 "codecs/isac/fix/source/arith_routins.h",
647 "codecs/isac/fix/source/bandwidth_estimator.c",
648 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000649 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200650 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000651 "codecs/isac/fix/source/decode_plc.c",
652 "codecs/isac/fix/source/encode.c",
653 "codecs/isac/fix/source/entropy_coding.c",
654 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000655 "codecs/isac/fix/source/filterbank_tables.c",
656 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200657 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000658 "codecs/isac/fix/source/filters.c",
659 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200660 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000661 "codecs/isac/fix/source/isacfix.c",
662 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700663 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000664 "codecs/isac/fix/source/lpc_masking_model.c",
665 "codecs/isac/fix/source/lpc_masking_model.h",
666 "codecs/isac/fix/source/lpc_tables.c",
667 "codecs/isac/fix/source/lpc_tables.h",
668 "codecs/isac/fix/source/pitch_estimator.c",
669 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700670 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000671 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700672 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000673 "codecs/isac/fix/source/pitch_gain_tables.c",
674 "codecs/isac/fix/source/pitch_gain_tables.h",
675 "codecs/isac/fix/source/pitch_lag_tables.c",
676 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000677 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
678 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
679 "codecs/isac/fix/source/structs.h",
680 "codecs/isac/fix/source/transform.c",
681 "codecs/isac/fix/source/transform_tables.c",
682 ]
683
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700684 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000685
kjellander676e08f2016-12-07 08:23:27 -0800686 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800687 ":isac_common",
688 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800689 "../../api/audio_codecs:audio_codecs_api",
mbonadei9baa7792017-05-15 08:06:47 -0700690 "../../base:compile_assert_c",
kjellander676e08f2016-12-07 08:23:27 -0800691 "../../base:rtc_base_approved",
692 "../../common_audio",
693 "../../system_wrappers",
694 ]
695
kwiberga6ca5182017-01-30 05:28:54 -0800696 public_deps = [
697 ":isac_fix_common",
698 ]
699
mbonadeie5dc3ce2017-01-25 05:34:46 -0800700 if (rtc_build_with_neon) {
701 deps += [ ":isac_neon" ]
702 }
703
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700704 if (current_cpu == "arm" && arm_version >= 7) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000705 sources += [
706 "codecs/isac/fix/source/lattice_armv7.S",
707 "codecs/isac/fix/source/pitch_filter_armv6.S",
708 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700709 sources -= [
710 "codecs/isac/fix/source/lattice_c.c",
711 "codecs/isac/fix/source/pitch_filter_c.c",
712 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000713 }
714
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000715 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000716 sources += [
717 "codecs/isac/fix/source/entropy_coding_mips.c",
718 "codecs/isac/fix/source/filters_mips.c",
719 "codecs/isac/fix/source/lattice_mips.c",
720 "codecs/isac/fix/source/pitch_estimator_mips.c",
721 "codecs/isac/fix/source/transform_mips.c",
722 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700723 sources -= [
724 "codecs/isac/fix/source/lattice_c.c",
725 "codecs/isac/fix/source/pitch_estimator_c.c",
726 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000727 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200728 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000729 }
730 if (mips_dsp_rev > 1) {
731 sources += [
732 "codecs/isac/fix/source/lpc_masking_model_mips.c",
733 "codecs/isac/fix/source/pitch_filter_mips.c",
734 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200735 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000736 }
737 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000738}
739
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700740if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700741 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800742 sources = [
743 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800744 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800745 "codecs/isac/fix/source/filters_neon.c",
746 "codecs/isac/fix/source/lattice_neon.c",
747 "codecs/isac/fix/source/transform_neon.c",
748 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000749
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700750 if (current_cpu != "arm64") {
751 # Enable compilation for the NEON instruction set. This is needed
752 # since //build/config/arm.gni only enables NEON for iOS, not Android.
753 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700754 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700755 cflags = [ "-mfpu=neon" ]
756 }
757
758 # Disable LTO on NEON targets due to compiler bug.
759 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000760 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000761 cflags -= [
762 "-flto",
763 "-ffat-lto-objects",
764 ]
765 }
766
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200767 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800768 ":isac_fix_common",
kjellander676e08f2016-12-07 08:23:27 -0800769 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200770 "../../common_audio",
771 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000772 }
773}
774
775config("pcm16b_config") {
776 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000777 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000778 "codecs/pcm16b/include",
779 ]
780}
781
kjellanderb62dbbe2016-09-23 00:38:52 -0700782rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000783 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200784 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100785 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200786 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100787 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000788 ]
789
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000790 deps = [
791 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800792 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800793 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800794 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800795 "../../base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000796 ]
kjellander7439f972016-12-05 22:47:46 -0800797 public_deps = [
798 ":pcm16b_c",
799 ]
800 public_configs = [ ":pcm16b_config" ]
801}
802
803rtc_source_set("pcm16b_c") {
804 visibility = [ ":*" ] # Only targets in this file can depend on this.
805 sources = [
806 "codecs/pcm16b/pcm16b.c",
807 "codecs/pcm16b/pcm16b.h",
808 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000809
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700810 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800811 deps = [
812 "../..:webrtc_common",
813 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000814}
815
816config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000817 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000818}
819
kjellanderb62dbbe2016-09-23 00:38:52 -0700820rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000821 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200822 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100823 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000824 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100825 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000826 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000827
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200828 deps = [
minyue41b9c802016-10-06 07:13:54 -0700829 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800830 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800831 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -0700832 "../../base:protobuf_utils",
Henrik Lundind048aa02015-12-03 17:47:21 +0100833 "../../base:rtc_base_approved",
tereliusbc5d9212017-01-13 09:14:33 -0800834 "../../base:rtc_numerics",
michaelt566d8202017-01-12 10:17:38 -0800835 "../../common_audio",
kjellander676e08f2016-12-07 08:23:27 -0800836 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200837 ]
kjellander7439f972016-12-05 22:47:46 -0800838 public_deps = [
839 ":webrtc_opus_c",
840 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000841
michaelta55f0212017-02-02 07:47:19 -0800842 defines = audio_codec_defines
charujain1a610f12017-06-18 02:38:58 -0700843 if (rtc_opus_variable_complexity) {
844 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
845 } else {
846 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
847 }
henrik.lundin875862c2016-11-22 02:07:54 -0800848
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000849 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800850 public_deps += [ rtc_opus_dir ]
851 } else if (build_with_mozilla) {
852 include_dirs = [ getenv("DIST") + "/include/opus" ]
853 }
854}
855
856rtc_source_set("webrtc_opus_c") {
857 visibility = [ ":*" ] # Only targets in this file can depend on this.
858 sources = [
859 "codecs/opus/opus_inst.h",
860 "codecs/opus/opus_interface.c",
861 "codecs/opus/opus_interface.h",
862 ]
863
minyue2e03c662017-02-01 17:31:11 -0800864 defines = audio_coding_defines
865
kjellander7439f972016-12-05 22:47:46 -0800866 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700867 public_deps = [
868 rtc_opus_dir,
869 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000870 } else if (build_with_mozilla) {
871 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000872 }
kjellander7439f972016-12-05 22:47:46 -0800873
874 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800875 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800876 "../../base:rtc_base_approved",
877 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000878}
879
minyue25f6a392016-09-22 22:23:20 -0700880if (rtc_enable_protobuf) {
881 proto_library("ana_debug_dump_proto") {
882 sources = [
883 "audio_network_adaptor/debug_dump.proto",
884 ]
sakal363a2912017-01-13 06:52:12 -0800885 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700886 }
minyuea1d9ad02016-10-02 14:53:37 -0700887 proto_library("ana_config_proto") {
888 sources = [
889 "audio_network_adaptor/config.proto",
890 ]
891 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
892 }
minyue25f6a392016-09-22 22:23:20 -0700893}
894
minyue0d382ef2016-10-07 07:59:28 -0700895rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700896 sources = [
897 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700898 "audio_network_adaptor/audio_network_adaptor_impl.cc",
899 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700900 "audio_network_adaptor/bitrate_controller.cc",
901 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700902 "audio_network_adaptor/channel_controller.cc",
903 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700904 "audio_network_adaptor/controller.cc",
905 "audio_network_adaptor/controller.h",
906 "audio_network_adaptor/controller_manager.cc",
907 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700908 "audio_network_adaptor/debug_dump_writer.cc",
909 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700910 "audio_network_adaptor/dtx_controller.cc",
911 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800912 "audio_network_adaptor/event_log_writer.cc",
913 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700914 "audio_network_adaptor/fec_controller_plr_based.cc",
915 "audio_network_adaptor/fec_controller_plr_based.h",
916 "audio_network_adaptor/fec_controller_rplr_based.cc",
917 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700918 "audio_network_adaptor/frame_length_controller.cc",
919 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700920 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700921 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700922 ]
minyue25f6a392016-09-22 22:23:20 -0700923
minyue41b9c802016-10-06 07:13:54 -0700924 deps = [
925 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -0700926 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -0800927 "../../base:rtc_base_approved",
928 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800929 "../../logging:rtc_event_log_api",
minyue41b9c802016-10-06 07:13:54 -0700930 "../../system_wrappers",
931 ]
932
minyue25f6a392016-09-22 22:23:20 -0700933 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700934 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700935 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700936 ":ana_debug_dump_proto",
937 ]
minyue25f6a392016-09-22 22:23:20 -0700938 }
minyue4b7c9522017-01-24 04:54:59 -0800939
940 if (!build_with_chromium && is_clang) {
941 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
942 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
943 }
minyue7610f852016-09-07 13:51:51 -0700944}
945
kwiberg65cb70d2017-03-03 06:16:28 -0800946rtc_source_set("neteq_decoder_enum") {
947 sources = [
948 "neteq/neteq_decoder_enum.cc",
949 "neteq/neteq_decoder_enum.h",
950 ]
951 deps = [
952 "../../api/audio_codecs:audio_codecs_api",
953 "../../base:rtc_base_approved",
954 ]
955}
kjellander676e08f2016-12-07 08:23:27 -0800956
kwiberg65cb70d2017-03-03 06:16:28 -0800957rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000958 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000959 "neteq/accelerate.cc",
960 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000961 "neteq/audio_decoder_impl.cc",
962 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000963 "neteq/audio_multi_vector.cc",
964 "neteq/audio_multi_vector.h",
965 "neteq/audio_vector.cc",
966 "neteq/audio_vector.h",
967 "neteq/background_noise.cc",
968 "neteq/background_noise.h",
969 "neteq/buffer_level_filter.cc",
970 "neteq/buffer_level_filter.h",
971 "neteq/comfort_noise.cc",
972 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700973 "neteq/cross_correlation.cc",
974 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000975 "neteq/decision_logic.cc",
976 "neteq/decision_logic.h",
977 "neteq/decision_logic_fax.cc",
978 "neteq/decision_logic_fax.h",
979 "neteq/decision_logic_normal.cc",
980 "neteq/decision_logic_normal.h",
981 "neteq/decoder_database.cc",
982 "neteq/decoder_database.h",
983 "neteq/defines.h",
984 "neteq/delay_manager.cc",
985 "neteq/delay_manager.h",
986 "neteq/delay_peak_detector.cc",
987 "neteq/delay_peak_detector.h",
988 "neteq/dsp_helper.cc",
989 "neteq/dsp_helper.h",
990 "neteq/dtmf_buffer.cc",
991 "neteq/dtmf_buffer.h",
992 "neteq/dtmf_tone_generator.cc",
993 "neteq/dtmf_tone_generator.h",
994 "neteq/expand.cc",
995 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100996 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000997 "neteq/merge.cc",
998 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700999 "neteq/nack_tracker.cc",
1000 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001001 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001002 "neteq/neteq_impl.cc",
1003 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001004 "neteq/normal.cc",
1005 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001006 "neteq/packet.cc",
1007 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001008 "neteq/packet_buffer.cc",
1009 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001010 "neteq/post_decode_vad.cc",
1011 "neteq/post_decode_vad.h",
1012 "neteq/preemptive_expand.cc",
1013 "neteq/preemptive_expand.h",
1014 "neteq/random_vector.cc",
1015 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001016 "neteq/red_payload_splitter.cc",
1017 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001018 "neteq/rtcp.cc",
1019 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001020 "neteq/statistics_calculator.cc",
1021 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001022 "neteq/sync_buffer.cc",
1023 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001024 "neteq/tick_timer.cc",
1025 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001026 "neteq/time_stretch.cc",
1027 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001028 "neteq/timestamp_scaler.cc",
1029 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001030 ]
1031
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001032 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001033 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001034 ":cng",
1035 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001036 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001037 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001038 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001039 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001040 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001041 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001042 "../../base:gtest_prod",
1043 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001044 "../../common_audio",
1045 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001046 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001047
1048 defines = []
1049
kwibergf8c2bac2016-01-18 06:38:32 -08001050 if (rtc_include_ilbc) {
1051 defines += [ "WEBRTC_CODEC_ILBC" ]
1052 deps += [ ":ilbc" ]
1053 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001054 if (rtc_include_opus) {
1055 defines += [ "WEBRTC_CODEC_OPUS" ]
1056 deps += [ ":webrtc_opus" ]
1057 }
kwiberg98ab3a42015-09-30 21:54:21 -07001058 if (!build_with_mozilla) {
1059 if (current_cpu == "arm") {
1060 defines += [ "WEBRTC_CODEC_ISACFX" ]
1061 deps += [ ":isac_fix" ]
1062 } else {
1063 defines += [ "WEBRTC_CODEC_ISAC" ]
1064 deps += [ ":isac" ]
1065 }
1066 defines += [ "WEBRTC_CODEC_G722" ]
1067 deps += [ ":g722" ]
1068 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001069}
kjellanderfb114242016-06-13 00:19:48 -07001070
henrik.lundin58466f62016-10-05 02:27:42 -07001071# Although providing only test support, this target must be outside of the
1072# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1073# that ultimately are built and run as a part of the Chromium ecosystem, which
1074# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001075rtc_source_set("neteq_tools_minimal") {
henrik.lundin58466f62016-10-05 02:27:42 -07001076 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001077 "neteq/tools/audio_sink.cc",
1078 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001079 "neteq/tools/encode_neteq_input.cc",
1080 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001081 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001082 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001083 "neteq/tools/neteq_test.cc",
1084 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001085 "neteq/tools/packet.cc",
1086 "neteq/tools/packet.h",
1087 "neteq/tools/packet_source.cc",
1088 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001089 ]
1090
kjellandere40a7ee2016-10-16 23:56:12 -07001091 if (!build_with_chromium && is_clang) {
1092 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001093 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1094 }
kjellander676e08f2016-12-07 08:23:27 -08001095
1096 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001097 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001098 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001099 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -07001100 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001101 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001102 "../../base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001103 "../rtp_rtcp",
kjellander676e08f2016-12-07 08:23:27 -08001104 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001105}
1106
mbonadei3edccb92017-06-01 04:47:20 -07001107rtc_source_set("neteq_test_tools") {
1108 testonly = true
1109 sources = [
1110 "neteq/tools/audio_checksum.h",
1111 "neteq/tools/audio_loop.cc",
1112 "neteq/tools/audio_loop.h",
1113 "neteq/tools/constant_pcm_packet_source.cc",
1114 "neteq/tools/constant_pcm_packet_source.h",
1115 "neteq/tools/output_audio_file.h",
1116 "neteq/tools/output_wav_file.h",
1117 "neteq/tools/rtp_file_source.cc",
1118 "neteq/tools/rtp_file_source.h",
1119 "neteq/tools/rtp_generator.cc",
1120 "neteq/tools/rtp_generator.h",
1121 ]
1122
1123 public_configs = [ ":neteq_tools_config" ]
1124
1125 if (!build_with_chromium && is_clang) {
1126 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1127 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1128 }
1129
1130 deps = [
1131 ":pcm16b",
1132 "..:module_api",
1133 "../..:webrtc_common",
1134 "../../base:rtc_base_approved",
1135 "../../base:rtc_base_tests_utils",
1136 "../../common_audio",
1137 "../../test:rtp_test_utils",
1138 "../rtp_rtcp",
1139 ]
1140
1141 public_deps = [
1142 ":neteq_tools",
1143 ":neteq_tools_minimal",
1144 ]
1145
1146 if (rtc_enable_protobuf) {
1147 sources += [
1148 "neteq/tools/neteq_packet_source_input.cc",
1149 "neteq/tools/neteq_packet_source_input.h",
1150 ]
1151 deps += [ ":rtc_event_log_source" ]
1152 }
1153}
1154
1155config("neteq_tools_config") {
1156 include_dirs = [ "tools" ]
1157}
1158
1159rtc_source_set("neteq_tools") {
1160 sources = [
1161 "neteq/tools/fake_decode_from_file.cc",
1162 "neteq/tools/fake_decode_from_file.h",
1163 "neteq/tools/input_audio_file.cc",
1164 "neteq/tools/input_audio_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001165 "neteq/tools/neteq_delay_analyzer.cc",
1166 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001167 "neteq/tools/neteq_replacement_input.cc",
1168 "neteq/tools/neteq_replacement_input.h",
1169 "neteq/tools/resample_input_audio_file.cc",
1170 "neteq/tools/resample_input_audio_file.h",
1171 ]
1172
1173 public_configs = [ ":neteq_tools_config" ]
1174
1175 if (!build_with_chromium && is_clang) {
1176 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1177 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1178 }
1179
1180 deps = [
1181 "../..:webrtc_common",
1182 "../../api/audio_codecs:audio_codecs_api",
1183 "../../base:rtc_base_approved",
1184 "../../common_audio",
1185 "../rtp_rtcp",
1186 ]
1187
1188 public_deps = [
1189 ":neteq_tools_minimal",
1190 ]
1191}
1192
1193if (rtc_enable_protobuf) {
1194 rtc_static_library("rtc_event_log_source") {
1195 testonly = true
1196
1197 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1198 # Needs call.h to be moved to webrtc/api first.
1199 check_includes = false
1200
1201 sources = [
1202 "neteq/tools/rtc_event_log_source.cc",
1203 "neteq/tools/rtc_event_log_source.h",
1204 ]
1205
1206 if (!build_with_chromium && is_clang) {
1207 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1208 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1209 }
1210
1211 deps = [
1212 "../../base:rtc_base_approved",
1213 "../../logging:rtc_event_log_parser",
1214 ]
1215 public_deps = [
1216 "../../logging:rtc_event_log_proto",
1217 ]
1218 }
1219}
1220
kjellanderfb114242016-06-13 00:19:48 -07001221if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001222 group("audio_coding_tests") {
1223 testonly = true
1224 public_deps = [
1225 ":RTPchange",
1226 ":RTPencode",
1227 ":RTPjitter",
1228 ":RTPtimeshift",
1229 ":acm_receive_test",
1230 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001231 ":audio_codec_speed_tests",
1232 ":audio_decoder_unittests",
1233 ":audio_decoder_unittests",
1234 ":delay_test",
1235 ":g711_test",
1236 ":g722_test",
1237 ":ilbc_test",
1238 ":insert_packet_with_timing",
1239 ":isac_api_test",
1240 ":isac_fix_test",
1241 ":isac_switch_samprate_test",
1242 ":isac_test",
1243 ":neteq_ilbc_quality_test",
1244 ":neteq_isac_quality_test",
1245 ":neteq_opus_quality_test",
1246 ":neteq_pcmu_quality_test",
1247 ":neteq_speed_test",
1248 ":rtp_analyze",
1249 ":rtpcat",
1250 ":webrtc_opus_fec_test",
1251 ]
1252 if (rtc_enable_protobuf) {
1253 public_deps += [ ":neteq_rtpplay" ]
1254 }
1255 }
1256
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001257 rtc_source_set("audio_coding_modules_tests") {
1258 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001259
1260 # Skip restricting visibility on mobile platforms since the tests on those
1261 # gets additional generated targets which would require many lines here to
1262 # cover (which would be confusing to read and hard to maintain).
1263 if (!is_android && !is_ios) {
1264 visibility = [ "//webrtc/modules:modules_tests" ]
1265 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001266 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001267 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001268 "test/APITest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001269 "test/APITest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001270 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001271 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001272 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001273 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001274 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001275 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001276 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001277 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001278 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001279 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001280 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001281 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001282 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001283 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001284 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001285 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001286 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001287 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001288 "test/Tester.cc",
1289 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001290 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001291 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001292 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001293 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001294 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001295 "test/target_delay_unittest.cc",
1296 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001297 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001298 ]
1299 deps = [
1300 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001301 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001302 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001303 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001304 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001305 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001306 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001307 "../../base:rtc_base_approved",
1308 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001309 "../../test:test_support",
1310 ]
1311 defines = audio_coding_defines
1312 if (is_win) {
1313 cflags = [
1314 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1315 "/wd4373", # virtual function override.
1316 ]
1317 }
1318 if (!build_with_chromium && is_clang) {
1319 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1320 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1321 }
1322 }
1323
ehmaldonado021eef32017-01-05 07:09:50 -08001324 rtc_source_set("audio_coding_perf_tests") {
1325 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001326
1327 # Skip restricting visibility on mobile platforms since the tests on those
1328 # gets additional generated targets which would require many lines here to
1329 # cover (which would be confusing to read and hard to maintain).
1330 if (!is_android && !is_ios) {
1331 visibility = [ "//webrtc:webrtc_perf_tests" ]
1332 }
ehmaldonado021eef32017-01-05 07:09:50 -08001333 sources = [
1334 "codecs/opus/opus_complexity_unittest.cc",
1335 "neteq/test/neteq_performance_unittest.cc",
1336 ]
1337 deps = [
1338 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001339 ":neteq_test_tools",
ehmaldonado021eef32017-01-05 07:09:50 -08001340 ":webrtc_opus",
1341 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -07001342 "../../base:protobuf_utils",
ehmaldonado021eef32017-01-05 07:09:50 -08001343 "../../base:rtc_base_approved",
1344 "../../system_wrappers:system_wrappers",
1345 "../../test:test_support",
1346 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001347
ehmaldonado021eef32017-01-05 07:09:50 -08001348 if (!build_with_chromium && is_clang) {
1349 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1350 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1351 }
1352 }
1353
ehmaldonado38a21322016-09-02 04:10:34 -07001354 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001355 testonly = true
1356 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001357 "acm2/acm_receive_test.cc",
1358 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001359 ]
1360
kjellanderfb114242016-06-13 00:19:48 -07001361 defines = audio_coding_defines
1362
1363 deps = audio_coding_deps + [
1364 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001365 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001366 "../../api/audio_codecs:audio_codecs_api",
1367 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001368 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001369 "../../base:rtc_base_approved",
1370 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001371 "//testing/gtest",
1372 ]
1373 }
1374
ehmaldonado38a21322016-09-02 04:10:34 -07001375 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001376 testonly = true
1377 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001378 "acm2/acm_send_test.cc",
1379 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001380 ]
1381
kjellanderfb114242016-06-13 00:19:48 -07001382 defines = audio_coding_defines
1383
1384 deps = audio_coding_deps + [
1385 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001386 ":neteq_tools",
ossueb1fde42017-05-02 06:46:30 -07001387 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001388 "../../base:rtc_base_approved",
1389 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001390 "//testing/gtest",
1391 ]
1392 }
1393
ehmaldonado38a21322016-09-02 04:10:34 -07001394 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001395 testonly = true
1396 sources = [
1397 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001398 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001399 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001400 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001401 "test/delay_test.cc",
1402 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001403 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001404 ]
1405
aleloi333f2062016-07-28 01:21:29 -07001406 deps = [
1407 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001408 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001409 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001410 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001411 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001412 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001413 "../../system_wrappers",
1414 "../../system_wrappers:system_wrappers_default",
1415 "../../test:test_support",
1416 "../rtp_rtcp",
1417 "//testing/gtest",
1418 "//third_party/gflags:gflags",
1419 ]
1420 } # delay_test
1421
ehmaldonado38a21322016-09-02 04:10:34 -07001422 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001423 testonly = true
1424 sources = [
1425 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001426 "test/Channel.h",
aleloi00730c72016-07-28 01:27:10 -07001427 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001428 "test/PCMFile.h",
aleloi00730c72016-07-28 01:27:10 -07001429 "test/insert_packet_with_timing.cc",
1430 ]
1431
kjellandere40a7ee2016-10-16 23:56:12 -07001432 if (!build_with_chromium && is_clang) {
1433 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001434 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001435 }
1436
1437 deps = [
1438 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001439 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001440 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001441 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001442 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001443 "../../system_wrappers",
1444 "../../system_wrappers:system_wrappers_default",
1445 "../../test:test_support",
1446 "../rtp_rtcp",
1447 "//testing/gtest",
1448 "//third_party/gflags:gflags",
1449 ]
1450 } # insert_packet_with_timing
1451
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001452 audio_decoder_unittests_resources =
1453 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001454
1455 if (is_ios) {
1456 bundle_data("audio_decoder_unittests_bundle_data") {
1457 testonly = true
1458 sources = audio_decoder_unittests_resources
1459 outputs = [
1460 "{{bundle_resources_dir}}/{{source_file_part}}",
1461 ]
1462 }
1463 }
1464
ehmaldonado38a21322016-09-02 04:10:34 -07001465 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001466 testonly = true
1467 sources = [
1468 "neteq/audio_decoder_unittest.cc",
1469 ]
1470
kjellandere40a7ee2016-10-16 23:56:12 -07001471 if (!build_with_chromium && is_clang) {
1472 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001473 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001474 }
1475
1476 deps = []
1477
1478 defines = neteq_defines
1479
1480 deps += audio_coding_deps
1481 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001482 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001483 ":isac",
1484 ":isac_fix",
1485 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001486 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001487 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -07001488 "../../base:protobuf_utils",
kjellander6ceab082016-10-28 05:44:03 -07001489 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001490 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001491 "//testing/gtest",
1492 ]
1493
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001494 data = audio_decoder_unittests_resources
1495
charujainddf3e4a2016-08-01 07:49:42 -07001496 if (is_android) {
1497 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001498 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001499 }
kjellander32c4a202016-08-30 02:53:49 -07001500 if (is_ios) {
1501 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001502 }
1503 } # audio_decoder_unittests
1504
kjellanderfb114242016-06-13 00:19:48 -07001505 if (rtc_enable_protobuf) {
1506 proto_library("neteq_unittest_proto") {
1507 sources = [
1508 "neteq/neteq_unittest.proto",
1509 ]
kjellandere3e902e2017-02-28 08:01:46 -08001510 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001511 }
henrik.lundin03153f12016-06-21 05:38:42 -07001512
ehmaldonado38a21322016-09-02 04:10:34 -07001513 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001514 testonly = true
1515 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001516 deps = [
1517 "..:module_api",
1518 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001519 sources = [
1520 "neteq/tools/neteq_rtpplay.cc",
1521 ]
1522
kjellandere40a7ee2016-10-16 23:56:12 -07001523 if (!build_with_chromium && is_clang) {
1524 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001525 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001526 }
1527
1528 if (is_win) {
1529 cflags = [
1530 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1531 "/wd4373", # virtual function override.
1532 ]
1533 }
1534
1535 deps += [
1536 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001537 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001538 "../..:webrtc_common",
1539 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001540 "../../system_wrappers:system_wrappers_default",
1541 "../../test:test_support",
1542 "//third_party/gflags",
1543 ]
1544 }
kjellanderfb114242016-06-13 00:19:48 -07001545 }
1546
ehmaldonado38a21322016-09-02 04:10:34 -07001547 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001548 testonly = true
1549 defines = []
1550 deps = []
1551 sources = [
1552 "codecs/isac/fix/test/isac_speed_test.cc",
1553 "codecs/opus/opus_speed_test.cc",
1554 "codecs/tools/audio_codec_speed_test.cc",
1555 "codecs/tools/audio_codec_speed_test.h",
1556 ]
1557
kjellandere40a7ee2016-10-16 23:56:12 -07001558 if (!build_with_chromium && is_clang) {
1559 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001560 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001561 }
1562
1563 if (is_android) {
1564 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001565 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001566 }
1567
1568 deps += [
1569 ":isac_fix",
1570 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001571 "../..:webrtc_common",
1572 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001573 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001574 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001575 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001576 "//testing/gtest",
1577 ]
1578 }
1579
ehmaldonado38a21322016-09-02 04:10:34 -07001580 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001581 testonly = true
1582 sources = [
1583 "neteq/tools/neteq_external_decoder_test.cc",
1584 "neteq/tools/neteq_external_decoder_test.h",
1585 "neteq/tools/neteq_performance_test.cc",
1586 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001587 ]
1588
kjellandere40a7ee2016-10-16 23:56:12 -07001589 if (!build_with_chromium && is_clang) {
1590 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001591 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001592 }
1593
1594 deps = [
1595 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001596 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001597 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001598 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001599 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001600 "../../api/audio_codecs:audio_codecs_api",
1601 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001602 "../../base:rtc_base_approved",
1603 "../../system_wrappers",
1604 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001605 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001606 ]
1607 }
1608
ehmaldonado38a21322016-09-02 04:10:34 -07001609 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001610 testonly = true
1611 sources = [
1612 "neteq/tools/neteq_quality_test.cc",
1613 "neteq/tools/neteq_quality_test.h",
1614 ]
1615
kjellandere40a7ee2016-10-16 23:56:12 -07001616 if (!build_with_chromium && is_clang) {
1617 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001618 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001619 }
1620
1621 deps = [
1622 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001623 ":neteq_test_tools",
mbonadei1140f972017-04-26 03:38:35 -07001624 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001625 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001626 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001627 "../../base:rtc_base_approved",
1628 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001629 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001630 "//third_party/gflags",
1631 ]
1632 }
1633
henrik.lundinb637a942017-04-28 00:59:45 -07001634 rtc_source_set("neteq_test_tools_deprecated") {
aleloi3022a342016-07-26 06:36:03 -07001635 testonly = true
1636 sources = [
1637 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1638 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1639 "neteq/test/NETEQTEST_RTPpacket.cc",
1640 "neteq/test/NETEQTEST_RTPpacket.h",
1641 ]
1642
1643 deps = [
1644 ":cng",
1645 ":g711",
1646 ":g722",
1647 ":ilbc",
1648 ":isac",
1649 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001650 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001651 "../..:webrtc_common",
1652 "//testing/gtest",
1653 ]
1654
1655 include_dirs = [
1656 "neteq/include",
1657 "neteq/test",
1658 "../../",
1659 ]
1660
1661 if (is_win) {
1662 cflags = [
1663 # Disable warnings to enable Win64 build, issue 1323.
1664 "/wd4267", # size_t to int truncation
1665 ]
1666 }
1667 }
aleloi47bded42016-07-26 06:46:19 -07001668
aleloi82667732016-08-02 01:45:50 -07001669 config("RTPencode_config") {
1670 defines = [
1671 "CODEC_ILBC",
1672 "CODEC_PCM16B",
1673 "CODEC_G711",
1674 "CODEC_G722",
1675 "CODEC_ISAC",
1676 "CODEC_PCM16B_WB",
1677 "CODEC_ISAC_SWB",
1678 "CODEC_PCM16B_32KHZ",
1679 "CODEC_PCM16B_48KHZ",
1680 "CODEC_CNGCODEC8",
1681 "CODEC_CNGCODEC16",
1682 "CODEC_CNGCODEC32",
1683 "CODEC_ATEVENT_DECODE",
1684 "CODEC_RED",
1685 "CODEC_OPUS",
1686 ]
1687 }
1688
ehmaldonado38a21322016-09-02 04:10:34 -07001689 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001690 testonly = true
1691
1692 deps = [
1693 # TODO(hlundin): Make RTPencode use ACM to encode files.
1694 ":cng",
1695 ":g711",
1696 ":g722",
1697 ":ilbc",
1698 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001699 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001700 ":neteq_test_tools_deprecated",
aleloi82667732016-08-02 01:45:50 -07001701 ":pcm16b",
1702 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001703 "../..:webrtc_common",
1704 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001705 "../../common_audio",
1706 ]
1707
1708 configs += [ ":RTPencode_config" ]
1709
1710 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001711 "neteq/test/PayloadTypes.h",
aleloi82667732016-08-02 01:45:50 -07001712 "neteq/test/RTPencode.cc",
1713 ]
1714
1715 include_dirs = [
1716 "neteq/include",
1717 "neteq/test",
1718 ]
1719
1720 if (is_win) {
1721 cflags = [
1722 # Disable warnings to enable Win64 build, issue 1323.
1723 "/wd4267", # size_t to int truncation
1724 ]
1725 }
1726 }
1727
ehmaldonado38a21322016-09-02 04:10:34 -07001728 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001729 testonly = true
1730
1731 sources = [
1732 "neteq/test/RTPchange.cc",
1733 ]
1734
1735 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001736 ":neteq_test_tools_deprecated",
aleloi76cbe192016-08-02 02:05:03 -07001737 ]
1738 }
1739
ehmaldonado38a21322016-09-02 04:10:34 -07001740 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001741 testonly = true
1742
1743 sources = [
1744 "neteq/tools/rtpcat.cc",
1745 ]
1746
1747 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001748 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001749 "../../system_wrappers:system_wrappers_default",
1750 "../../test:rtp_test_utils",
1751 "//testing/gtest",
1752 ]
1753 }
1754
ehmaldonado38a21322016-09-02 04:10:34 -07001755 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001756 testonly = true
1757
1758 sources = [
1759 "neteq/test/RTPtimeshift.cc",
1760 ]
1761
1762 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001763 ":neteq_test_tools_deprecated",
kjellander676e08f2016-12-07 08:23:27 -08001764 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001765 "//testing/gtest",
1766 ]
1767 }
1768
ehmaldonado38a21322016-09-02 04:10:34 -07001769 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001770 testonly = true
1771 deps = [
1772 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001773 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001774 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001775 "//testing/gtest",
1776 ]
1777 sources = [
1778 "neteq/test/RTPjitter.cc",
1779 ]
1780 }
1781
ehmaldonado38a21322016-09-02 04:10:34 -07001782 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001783 testonly = true
1784
1785 sources = [
1786 "neteq/tools/rtp_analyze.cc",
1787 ]
1788
1789 deps = [
1790 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001791 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001792 ":pcm16b",
1793 "../../system_wrappers:system_wrappers_default",
1794 "//testing/gtest",
1795 "//third_party/gflags:gflags",
1796 ]
1797
kjellandere40a7ee2016-10-16 23:56:12 -07001798 if (!build_with_chromium && is_clang) {
1799 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001800 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001801 }
1802 }
aleloi630c6d52016-08-10 02:11:30 -07001803
ehmaldonado38a21322016-09-02 04:10:34 -07001804 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001805 testonly = true
1806
1807 sources = [
1808 "neteq/test/neteq_opus_quality_test.cc",
1809 ]
1810
1811 deps = [
1812 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001813 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001814 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001815 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001816 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001817 "//testing/gtest",
1818 "//third_party/gflags",
1819 ]
aleloi630c6d52016-08-10 02:11:30 -07001820 }
aleloi116fd612016-08-10 04:16:36 -07001821
ehmaldonado38a21322016-09-02 04:10:34 -07001822 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001823 testonly = true
1824
1825 sources = [
1826 "neteq/test/neteq_speed_test.cc",
1827 ]
1828
1829 deps = [
1830 ":neteq",
1831 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001832 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001833 "../../system_wrappers:system_wrappers_default",
1834 "../../test:test_support",
1835 "//third_party/gflags",
1836 ]
1837 }
aleloi63910122016-08-10 04:41:14 -07001838
ehmaldonado38a21322016-09-02 04:10:34 -07001839 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001840 testonly = true
1841
1842 sources = [
1843 "neteq/test/neteq_ilbc_quality_test.cc",
1844 ]
1845
1846 deps = [
1847 ":ilbc",
1848 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001849 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001850 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001851 "../..:webrtc_common",
1852 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001853 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001854 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001855 "//testing/gtest",
1856 "//third_party/gflags",
1857 ]
1858 }
aleloi6df36dc2016-08-10 05:04:47 -07001859
ehmaldonado38a21322016-09-02 04:10:34 -07001860 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001861 testonly = true
1862
1863 sources = [
1864 "neteq/test/neteq_isac_quality_test.cc",
1865 ]
1866
1867 deps = [
1868 ":isac_fix",
1869 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001870 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001871 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001872 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001873 "//testing/gtest",
1874 "//third_party/gflags",
1875 ]
1876 }
aleloic4ac7002016-08-10 05:06:27 -07001877
ehmaldonado38a21322016-09-02 04:10:34 -07001878 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001879 testonly = true
1880
1881 sources = [
1882 "neteq/test/neteq_pcmu_quality_test.cc",
1883 ]
1884
1885 deps = [
1886 ":g711",
1887 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001888 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001889 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001890 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001891 "//testing/gtest",
1892 "//third_party/gflags",
1893 ]
1894 }
aleloib7186d02016-08-16 01:47:16 -07001895
ehmaldonado38a21322016-09-02 04:10:34 -07001896 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001897 testonly = true
1898
1899 sources = [
1900 "codecs/isac/fix/test/kenny.cc",
1901 ]
1902
1903 deps = [
1904 ":isac_fix",
1905 "../../test:test_support",
1906 ]
1907
1908 if (is_win) {
1909 cflags = [
1910 # Disable warnings to enable Win64 build, issue 1323.
1911 "/wd4267", # size_t to int truncation
1912 ]
1913 }
1914 }
aleloi16f55a12016-08-23 08:08:23 -07001915
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001916 config("isac_test_warnings_config") {
1917 if (is_win && is_clang) {
1918 cflags = [
1919 # Disable warnings failing when compiling with Clang on Windows.
1920 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1921 "-Wno-format",
1922 ]
1923 }
1924 }
1925
kjellander7439f972016-12-05 22:47:46 -08001926 rtc_source_set("isac_test_util") {
1927 testonly = true
1928 sources = [
1929 "codecs/isac/main/util/utility.c",
1930 ]
1931 }
1932
ehmaldonado38a21322016-09-02 04:10:34 -07001933 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001934 testonly = true
1935
1936 sources = [
1937 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001938 ]
1939
1940 include_dirs = [
1941 "codecs/isac/main/include",
1942 "codecs/isac/main/test",
1943 "codecs/isac/main/util",
1944 ]
1945
1946 deps = [
1947 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001948 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001949 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001950 ]
1951
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001952 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001953 }
1954
ehmaldonado38a21322016-09-02 04:10:34 -07001955 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001956 testonly = true
1957
1958 sources = [
1959 "codecs/g711/test/testG711.cc",
1960 ]
1961
aleloi16f55a12016-08-23 08:08:23 -07001962 deps = [
1963 ":g711",
1964 ]
1965 }
aleloi9a117842016-08-23 08:36:10 -07001966
ehmaldonado38a21322016-09-02 04:10:34 -07001967 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001968 testonly = true
1969
1970 sources = [
1971 "codecs/g722/test/testG722.cc",
1972 ]
1973
aleloi9a117842016-08-23 08:36:10 -07001974 deps = [
1975 ":g722",
1976 "../..:webrtc_common",
1977 ]
1978 }
ivoc2c670db2016-08-24 06:11:18 -07001979
ehmaldonado38a21322016-09-02 04:10:34 -07001980 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001981 testonly = true
1982
1983 sources = [
1984 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001985 ]
1986
aleloicfee2152016-08-29 04:09:19 -07001987 deps = [
1988 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001989 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001990 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001991 ]
1992
1993 include_dirs = [
1994 "codecs/isac/main/include",
1995 "codecs/isac/main/test",
1996 "codecs/isac/main/util",
1997 ]
1998 }
1999
ehmaldonado38a21322016-09-02 04:10:34 -07002000 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002001 testonly = true
2002
2003 sources = [
2004 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002005 ]
2006
aleloicfee2152016-08-29 04:09:19 -07002007 deps = [
2008 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002009 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07002010 ]
2011
2012 include_dirs = [
2013 "codecs/isac/main/include",
2014 "codecs/isac/main/test",
2015 "codecs/isac/main/util",
2016 "../../common_audio/signal_processing/include",
2017 ]
2018 }
2019
ehmaldonado38a21322016-09-02 04:10:34 -07002020 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002021 testonly = true
2022
2023 sources = [
2024 "codecs/ilbc/test/iLBC_test.c",
2025 ]
2026
aleloicfee2152016-08-29 04:09:19 -07002027 deps = [
2028 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002029 ]
2030 }
2031
ehmaldonado38a21322016-09-02 04:10:34 -07002032 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002033 testonly = true
2034
2035 sources = [
2036 "codecs/opus/opus_fec_test.cc",
2037 ]
2038
2039 deps = [
2040 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07002041 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07002042 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08002043 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002044 "//testing/gtest",
2045 ]
2046
kjellandere40a7ee2016-10-16 23:56:12 -07002047 if (!build_with_chromium && is_clang) {
2048 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002049 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002050 }
2051 }
ehmaldonado36268652017-01-19 08:27:11 -08002052
2053 rtc_source_set("audio_coding_unittests") {
2054 testonly = true
2055
kjellandere0629c02017-04-25 04:04:50 -07002056 # Skip restricting visibility on mobile platforms since the tests on those
2057 # gets additional generated targets which would require many lines here to
2058 # cover (which would be confusing to read and hard to maintain).
2059 if (!is_android && !is_ios) {
2060 visibility = [ "//webrtc/modules:modules_unittests" ]
2061 }
ehmaldonado36268652017-01-19 08:27:11 -08002062 sources = [
2063 "acm2/acm_receiver_unittest.cc",
2064 "acm2/audio_coding_module_unittest.cc",
2065 "acm2/call_statistics_unittest.cc",
2066 "acm2/codec_manager_unittest.cc",
2067 "acm2/rent_a_codec_unittest.cc",
2068 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2069 "audio_network_adaptor/bitrate_controller_unittest.cc",
2070 "audio_network_adaptor/channel_controller_unittest.cc",
2071 "audio_network_adaptor/controller_manager_unittest.cc",
2072 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002073 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002074 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2075 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002076 "audio_network_adaptor/frame_length_controller_unittest.cc",
2077 "audio_network_adaptor/mock/mock_controller.h",
2078 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002079 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002080 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002081 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002082 "codecs/cng/audio_encoder_cng_unittest.cc",
2083 "codecs/cng/cng_unittest.cc",
2084 "codecs/ilbc/ilbc_unittest.cc",
2085 "codecs/isac/fix/source/filterbanks_unittest.cc",
2086 "codecs/isac/fix/source/filters_unittest.cc",
2087 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2088 "codecs/isac/fix/source/transform_unittest.cc",
2089 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2090 "codecs/isac/main/source/isac_unittest.cc",
2091 "codecs/isac/unittest.cc",
2092 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002093 "codecs/opus/audio_encoder_opus_unittest.cc",
2094 "codecs/opus/opus_unittest.cc",
2095 "codecs/red/audio_encoder_copy_red_unittest.cc",
2096 "neteq/audio_multi_vector_unittest.cc",
2097 "neteq/audio_vector_unittest.cc",
2098 "neteq/background_noise_unittest.cc",
2099 "neteq/buffer_level_filter_unittest.cc",
2100 "neteq/comfort_noise_unittest.cc",
2101 "neteq/decision_logic_unittest.cc",
2102 "neteq/decoder_database_unittest.cc",
2103 "neteq/delay_manager_unittest.cc",
2104 "neteq/delay_peak_detector_unittest.cc",
2105 "neteq/dsp_helper_unittest.cc",
2106 "neteq/dtmf_buffer_unittest.cc",
2107 "neteq/dtmf_tone_generator_unittest.cc",
2108 "neteq/expand_unittest.cc",
2109 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002110 "neteq/mock/mock_buffer_level_filter.h",
2111 "neteq/mock/mock_decoder_database.h",
2112 "neteq/mock/mock_delay_manager.h",
2113 "neteq/mock/mock_delay_peak_detector.h",
2114 "neteq/mock/mock_dtmf_buffer.h",
2115 "neteq/mock/mock_dtmf_tone_generator.h",
2116 "neteq/mock/mock_expand.h",
2117 "neteq/mock/mock_external_decoder_pcm16b.h",
2118 "neteq/mock/mock_packet_buffer.h",
2119 "neteq/mock/mock_red_payload_splitter.h",
2120 "neteq/nack_tracker_unittest.cc",
2121 "neteq/neteq_external_decoder_unittest.cc",
2122 "neteq/neteq_impl_unittest.cc",
2123 "neteq/neteq_network_stats_unittest.cc",
2124 "neteq/neteq_stereo_unittest.cc",
2125 "neteq/neteq_unittest.cc",
2126 "neteq/normal_unittest.cc",
2127 "neteq/packet_buffer_unittest.cc",
2128 "neteq/post_decode_vad_unittest.cc",
2129 "neteq/random_vector_unittest.cc",
2130 "neteq/red_payload_splitter_unittest.cc",
2131 "neteq/sync_buffer_unittest.cc",
2132 "neteq/tick_timer_unittest.cc",
2133 "neteq/time_stretch_unittest.cc",
2134 "neteq/timestamp_scaler_unittest.cc",
2135 "neteq/tools/input_audio_file_unittest.cc",
2136 "neteq/tools/packet_unittest.cc",
2137 ]
2138
2139 deps = [
2140 ":acm_receive_test",
2141 ":acm_send_test",
2142 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002143 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002144 ":audio_format_conversion",
2145 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002146 ":cng",
2147 ":g711",
2148 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002149 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002150 ":isac_c",
2151 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002152 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002153 ":neteq",
2154 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002155 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002156 ":pcm16b",
2157 ":red",
2158 ":rent_a_codec",
2159 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002160 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002161 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002162 "../../api/audio_codecs:audio_codecs_api",
2163 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002164 "../../api/audio_codecs:builtin_audio_encoder_factory",
mbonadei7c2c8432017-04-07 00:59:12 -07002165 "../../base:protobuf_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002166 "../../base:rtc_base",
2167 "../../base:rtc_base_approved",
2168 "../../base:rtc_base_tests_utils",
2169 "../../common_audio",
2170 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002171 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002172 "../../test:field_trial",
2173 "../../test:rtp_test_utils",
2174 "../../test:test_common",
2175 "../../test:test_support",
2176 "//testing/gmock",
2177 "//testing/gtest",
2178 "//third_party/gflags",
2179 ]
2180
2181 defines = audio_coding_defines
2182
2183 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002184 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002185 deps += [
2186 ":ana_config_proto",
2187 ":neteq_unittest_proto",
2188 ]
2189 }
2190
2191 if (!build_with_chromium && is_clang) {
2192 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2193 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2194 }
2195 }
kjellanderfb114242016-06-13 00:19:48 -07002196}
kwiberg087bd342017-02-10 08:15:44 -08002197
2198# For backwards compatibility only! Use
2199# webrtc/api/audio_codecs:audio_codecs_api instead.
2200# TODO(kwiberg): Remove this.
2201rtc_source_set("audio_decoder_interface") {
2202 sources = [
2203 "codecs/audio_decoder.h",
2204 ]
2205 deps = [
2206 "../../api/audio_codecs:audio_codecs_api",
2207 ]
2208}
2209
2210# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002211# webrtc/api/audio_codecs:audio_codecs_api instead.
2212# TODO(ossu): Remove this.
2213rtc_source_set("audio_encoder_interface") {
2214 sources = [
2215 "codecs/audio_encoder.h",
2216 ]
2217 deps = [
2218 "../../api/audio_codecs:audio_codecs_api",
2219 ]
2220}
2221
2222# For backwards compatibility only! Use
kwiberg087bd342017-02-10 08:15:44 -08002223# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2224# TODO(kwiberg): Remove this.
2225rtc_source_set("builtin_audio_decoder_factory") {
2226 sources = [
2227 "codecs/builtin_audio_decoder_factory.h",
2228 ]
2229 deps = [
2230 "../../api/audio_codecs:builtin_audio_decoder_factory",
2231 ]
2232}
ossueb1fde42017-05-02 06:46:30 -07002233
2234# For backwards compatibility only! Use
2235# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2236# TODO(ossu): Remove this.
2237rtc_source_set("builtin_audio_encoder_factory") {
2238 sources = [
2239 "codecs/builtin_audio_encoder_factory.h",
2240 ]
2241 deps = [
2242 "../../api/audio_codecs:builtin_audio_encoder_factory",
2243 ]
2244}