blob: c0da0e36c9d20a020a8975774e1ba7ad4e9a7ecc [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",
kjellander7439f972016-12-05 22:47:46 -0800325 "../../base:rtc_base_approved",
326 "../../common_audio",
327 ]
328 public_deps = [
329 ":ilbc_c",
330 ]
331}
332
333rtc_source_set("ilbc_c") {
334 visibility = [ ":*" ] # Only targets in this file can depend on this.
335 sources = [
336 "codecs/ilbc/abs_quant.c",
337 "codecs/ilbc/abs_quant.h",
338 "codecs/ilbc/abs_quant_loop.c",
339 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000340 "codecs/ilbc/augmented_cb_corr.c",
341 "codecs/ilbc/augmented_cb_corr.h",
342 "codecs/ilbc/bw_expand.c",
343 "codecs/ilbc/bw_expand.h",
344 "codecs/ilbc/cb_construct.c",
345 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200346 "codecs/ilbc/cb_mem_energy.c",
347 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000348 "codecs/ilbc/cb_mem_energy_augmentation.c",
349 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000350 "codecs/ilbc/cb_mem_energy_calc.c",
351 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000352 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200353 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000354 "codecs/ilbc/cb_search_core.c",
355 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000356 "codecs/ilbc/cb_update_best_index.c",
357 "codecs/ilbc/cb_update_best_index.h",
358 "codecs/ilbc/chebyshev.c",
359 "codecs/ilbc/chebyshev.h",
360 "codecs/ilbc/comp_corr.c",
361 "codecs/ilbc/comp_corr.h",
362 "codecs/ilbc/constants.c",
363 "codecs/ilbc/constants.h",
364 "codecs/ilbc/create_augmented_vec.c",
365 "codecs/ilbc/create_augmented_vec.h",
366 "codecs/ilbc/decode.c",
367 "codecs/ilbc/decode.h",
368 "codecs/ilbc/decode_residual.c",
369 "codecs/ilbc/decode_residual.h",
370 "codecs/ilbc/decoder_interpolate_lsf.c",
371 "codecs/ilbc/decoder_interpolate_lsf.h",
372 "codecs/ilbc/defines.h",
373 "codecs/ilbc/do_plc.c",
374 "codecs/ilbc/do_plc.h",
375 "codecs/ilbc/encode.c",
376 "codecs/ilbc/encode.h",
377 "codecs/ilbc/energy_inverse.c",
378 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200379 "codecs/ilbc/enh_upsample.c",
380 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000381 "codecs/ilbc/enhancer.c",
382 "codecs/ilbc/enhancer.h",
383 "codecs/ilbc/enhancer_interface.c",
384 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000385 "codecs/ilbc/filtered_cb_vecs.c",
386 "codecs/ilbc/filtered_cb_vecs.h",
387 "codecs/ilbc/frame_classify.c",
388 "codecs/ilbc/frame_classify.h",
389 "codecs/ilbc/gain_dequant.c",
390 "codecs/ilbc/gain_dequant.h",
391 "codecs/ilbc/gain_quant.c",
392 "codecs/ilbc/gain_quant.h",
393 "codecs/ilbc/get_cd_vec.c",
394 "codecs/ilbc/get_cd_vec.h",
395 "codecs/ilbc/get_lsp_poly.c",
396 "codecs/ilbc/get_lsp_poly.h",
397 "codecs/ilbc/get_sync_seq.c",
398 "codecs/ilbc/get_sync_seq.h",
399 "codecs/ilbc/hp_input.c",
400 "codecs/ilbc/hp_input.h",
401 "codecs/ilbc/hp_output.c",
402 "codecs/ilbc/hp_output.h",
403 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100404 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000405 "codecs/ilbc/index_conv_dec.c",
406 "codecs/ilbc/index_conv_dec.h",
407 "codecs/ilbc/index_conv_enc.c",
408 "codecs/ilbc/index_conv_enc.h",
409 "codecs/ilbc/init_decode.c",
410 "codecs/ilbc/init_decode.h",
411 "codecs/ilbc/init_encode.c",
412 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000413 "codecs/ilbc/interpolate.c",
414 "codecs/ilbc/interpolate.h",
415 "codecs/ilbc/interpolate_samples.c",
416 "codecs/ilbc/interpolate_samples.h",
417 "codecs/ilbc/lpc_encode.c",
418 "codecs/ilbc/lpc_encode.h",
419 "codecs/ilbc/lsf_check.c",
420 "codecs/ilbc/lsf_check.h",
421 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
422 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
423 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
424 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
425 "codecs/ilbc/lsf_to_lsp.c",
426 "codecs/ilbc/lsf_to_lsp.h",
427 "codecs/ilbc/lsf_to_poly.c",
428 "codecs/ilbc/lsf_to_poly.h",
429 "codecs/ilbc/lsp_to_lsf.c",
430 "codecs/ilbc/lsp_to_lsf.h",
431 "codecs/ilbc/my_corr.c",
432 "codecs/ilbc/my_corr.h",
433 "codecs/ilbc/nearest_neighbor.c",
434 "codecs/ilbc/nearest_neighbor.h",
435 "codecs/ilbc/pack_bits.c",
436 "codecs/ilbc/pack_bits.h",
437 "codecs/ilbc/poly_to_lsf.c",
438 "codecs/ilbc/poly_to_lsf.h",
439 "codecs/ilbc/poly_to_lsp.c",
440 "codecs/ilbc/poly_to_lsp.h",
441 "codecs/ilbc/refiner.c",
442 "codecs/ilbc/refiner.h",
443 "codecs/ilbc/simple_interpolate_lsf.c",
444 "codecs/ilbc/simple_interpolate_lsf.h",
445 "codecs/ilbc/simple_lpc_analysis.c",
446 "codecs/ilbc/simple_lpc_analysis.h",
447 "codecs/ilbc/simple_lsf_dequant.c",
448 "codecs/ilbc/simple_lsf_dequant.h",
449 "codecs/ilbc/simple_lsf_quant.c",
450 "codecs/ilbc/simple_lsf_quant.h",
451 "codecs/ilbc/smooth.c",
452 "codecs/ilbc/smooth.h",
453 "codecs/ilbc/smooth_out_data.c",
454 "codecs/ilbc/smooth_out_data.h",
455 "codecs/ilbc/sort_sq.c",
456 "codecs/ilbc/sort_sq.h",
457 "codecs/ilbc/split_vq.c",
458 "codecs/ilbc/split_vq.h",
459 "codecs/ilbc/state_construct.c",
460 "codecs/ilbc/state_construct.h",
461 "codecs/ilbc/state_search.c",
462 "codecs/ilbc/state_search.h",
463 "codecs/ilbc/swap_bytes.c",
464 "codecs/ilbc/swap_bytes.h",
465 "codecs/ilbc/unpack_bits.c",
466 "codecs/ilbc/unpack_bits.h",
467 "codecs/ilbc/vq3.c",
468 "codecs/ilbc/vq3.h",
469 "codecs/ilbc/vq4.c",
470 "codecs/ilbc/vq4.h",
471 "codecs/ilbc/window32_w32.c",
472 "codecs/ilbc/window32_w32.h",
473 "codecs/ilbc/xcorr_coef.c",
474 "codecs/ilbc/xcorr_coef.h",
475 ]
476
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700477 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000478
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000479 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800480 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800481 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800482 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100483 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000484 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000485}
486
kjellanderb62dbbe2016-09-23 00:38:52 -0700487rtc_static_library("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700488 sources = [
489 "codecs/isac/audio_encoder_isac_t.h",
490 "codecs/isac/audio_encoder_isac_t_impl.h",
491 "codecs/isac/locked_bandwidth_info.cc",
492 "codecs/isac/locked_bandwidth_info.h",
493 ]
kjellander676e08f2016-12-07 08:23:27 -0800494 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800495 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700496 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800497 "../../base:rtc_base_approved",
498 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700499}
500
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000501config("isac_config") {
502 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000503 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100504 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000505 ]
506}
507
kjellanderb62dbbe2016-09-23 00:38:52 -0700508rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000509 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800510 "codecs/isac/main/include/audio_decoder_isac.h",
511 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800512 "codecs/isac/main/source/audio_decoder_isac.cc",
513 "codecs/isac/main/source/audio_encoder_isac.cc",
514 ]
515
516 deps = [
kjellander7439f972016-12-05 22:47:46 -0800517 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800518 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800519 ]
520 public_deps = [
521 ":isac_c",
522 ]
523}
524
525rtc_static_library("isac_c") {
526 visibility = [ ":*" ] # Only targets in this file can depend on this.
527 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100528 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000529 "codecs/isac/main/source/arith_routines.c",
530 "codecs/isac/main/source/arith_routines.h",
531 "codecs/isac/main/source/arith_routines_hist.c",
532 "codecs/isac/main/source/arith_routines_logist.c",
533 "codecs/isac/main/source/bandwidth_estimator.c",
534 "codecs/isac/main/source/bandwidth_estimator.h",
535 "codecs/isac/main/source/codec.h",
536 "codecs/isac/main/source/crc.c",
537 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000538 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200539 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000540 "codecs/isac/main/source/encode.c",
541 "codecs/isac/main/source/encode_lpc_swb.c",
542 "codecs/isac/main/source/encode_lpc_swb.h",
543 "codecs/isac/main/source/entropy_coding.c",
544 "codecs/isac/main/source/entropy_coding.h",
545 "codecs/isac/main/source/fft.c",
546 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200547 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000548 "codecs/isac/main/source/filterbank_tables.c",
549 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200550 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000551 "codecs/isac/main/source/intialize.c",
552 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200553 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000554 "codecs/isac/main/source/lattice.c",
555 "codecs/isac/main/source/lpc_analysis.c",
556 "codecs/isac/main/source/lpc_analysis.h",
557 "codecs/isac/main/source/lpc_gain_swb_tables.c",
558 "codecs/isac/main/source/lpc_gain_swb_tables.h",
559 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
560 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
561 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
562 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
563 "codecs/isac/main/source/lpc_tables.c",
564 "codecs/isac/main/source/lpc_tables.h",
565 "codecs/isac/main/source/os_specific_inline.h",
566 "codecs/isac/main/source/pitch_estimator.c",
567 "codecs/isac/main/source/pitch_estimator.h",
568 "codecs/isac/main/source/pitch_filter.c",
569 "codecs/isac/main/source/pitch_gain_tables.c",
570 "codecs/isac/main/source/pitch_gain_tables.h",
571 "codecs/isac/main/source/pitch_lag_tables.c",
572 "codecs/isac/main/source/pitch_lag_tables.h",
573 "codecs/isac/main/source/settings.h",
574 "codecs/isac/main/source/spectrum_ar_model_tables.c",
575 "codecs/isac/main/source/spectrum_ar_model_tables.h",
576 "codecs/isac/main/source/structs.h",
577 "codecs/isac/main/source/transform.c",
578 ]
579
580 if (is_linux) {
581 libs = [ "m" ]
582 }
583
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700584 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000585
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000586 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800587 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700588 "../..:webrtc_common",
mbonadei9baa7792017-05-15 08:06:47 -0700589 "../../base:compile_assert_c",
aleloicfee2152016-08-29 04:09:19 -0700590 "../../base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000591 "../../common_audio",
592 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000593}
594
595config("isac_fix_config") {
596 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000597 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100598 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000599 ]
600}
601
kjellanderb62dbbe2016-09-23 00:38:52 -0700602rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000603 sources = [
kjellander7439f972016-12-05 22:47:46 -0800604 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
605 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
606 ]
607
608 public_configs = [ ":isac_fix_config" ]
609
610 deps = [
kjellander7439f972016-12-05 22:47:46 -0800611 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800612 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800613 "../../common_audio",
614 "../../system_wrappers",
615 ]
616 public_deps = [
617 ":isac_fix_c",
618 ]
619
620 if (rtc_build_with_neon) {
621 deps += [ ":isac_neon" ]
622 }
623}
624
kwiberga6ca5182017-01-30 05:28:54 -0800625rtc_source_set("isac_fix_common") {
626 visibility = [ ":*" ] # Only targets in this file can depend on this.
627 sources = [
628 "codecs/isac/fix/source/codec.h",
629 "codecs/isac/fix/source/fft.c",
630 "codecs/isac/fix/source/fft.h",
631 "codecs/isac/fix/source/settings.h",
632 ]
633 public_configs = [ ":isac_fix_config" ]
634}
kjellander676e08f2016-12-07 08:23:27 -0800635
kwiberga6ca5182017-01-30 05:28:54 -0800636rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800637 visibility = [ ":*" ] # Only targets in this file can depend on this.
638 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100639 "codecs/isac/fix/include/audio_decoder_isacfix.h",
640 "codecs/isac/fix/include/audio_encoder_isacfix.h",
641 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000642 "codecs/isac/fix/source/arith_routines.c",
643 "codecs/isac/fix/source/arith_routines_hist.c",
644 "codecs/isac/fix/source/arith_routines_logist.c",
645 "codecs/isac/fix/source/arith_routins.h",
646 "codecs/isac/fix/source/bandwidth_estimator.c",
647 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000648 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200649 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000650 "codecs/isac/fix/source/decode_plc.c",
651 "codecs/isac/fix/source/encode.c",
652 "codecs/isac/fix/source/entropy_coding.c",
653 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000654 "codecs/isac/fix/source/filterbank_tables.c",
655 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200656 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000657 "codecs/isac/fix/source/filters.c",
658 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200659 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000660 "codecs/isac/fix/source/isacfix.c",
661 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700662 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000663 "codecs/isac/fix/source/lpc_masking_model.c",
664 "codecs/isac/fix/source/lpc_masking_model.h",
665 "codecs/isac/fix/source/lpc_tables.c",
666 "codecs/isac/fix/source/lpc_tables.h",
667 "codecs/isac/fix/source/pitch_estimator.c",
668 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700669 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000670 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700671 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000672 "codecs/isac/fix/source/pitch_gain_tables.c",
673 "codecs/isac/fix/source/pitch_gain_tables.h",
674 "codecs/isac/fix/source/pitch_lag_tables.c",
675 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000676 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
677 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
678 "codecs/isac/fix/source/structs.h",
679 "codecs/isac/fix/source/transform.c",
680 "codecs/isac/fix/source/transform_tables.c",
681 ]
682
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700683 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000684
kjellander676e08f2016-12-07 08:23:27 -0800685 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800686 ":isac_common",
687 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800688 "../../api/audio_codecs:audio_codecs_api",
mbonadei9baa7792017-05-15 08:06:47 -0700689 "../../base:compile_assert_c",
kjellander676e08f2016-12-07 08:23:27 -0800690 "../../base:rtc_base_approved",
691 "../../common_audio",
692 "../../system_wrappers",
693 ]
694
kwiberga6ca5182017-01-30 05:28:54 -0800695 public_deps = [
696 ":isac_fix_common",
697 ]
698
mbonadeie5dc3ce2017-01-25 05:34:46 -0800699 if (rtc_build_with_neon) {
700 deps += [ ":isac_neon" ]
701 }
702
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700703 if (current_cpu == "arm" && arm_version >= 7) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000704 sources += [
705 "codecs/isac/fix/source/lattice_armv7.S",
706 "codecs/isac/fix/source/pitch_filter_armv6.S",
707 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700708 sources -= [
709 "codecs/isac/fix/source/lattice_c.c",
710 "codecs/isac/fix/source/pitch_filter_c.c",
711 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000712 }
713
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000714 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000715 sources += [
716 "codecs/isac/fix/source/entropy_coding_mips.c",
717 "codecs/isac/fix/source/filters_mips.c",
718 "codecs/isac/fix/source/lattice_mips.c",
719 "codecs/isac/fix/source/pitch_estimator_mips.c",
720 "codecs/isac/fix/source/transform_mips.c",
721 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700722 sources -= [
723 "codecs/isac/fix/source/lattice_c.c",
724 "codecs/isac/fix/source/pitch_estimator_c.c",
725 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000726 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200727 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000728 }
729 if (mips_dsp_rev > 1) {
730 sources += [
731 "codecs/isac/fix/source/lpc_masking_model_mips.c",
732 "codecs/isac/fix/source/pitch_filter_mips.c",
733 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200734 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000735 }
736 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000737}
738
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700739if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700740 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800741 sources = [
742 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800743 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800744 "codecs/isac/fix/source/filters_neon.c",
745 "codecs/isac/fix/source/lattice_neon.c",
746 "codecs/isac/fix/source/transform_neon.c",
747 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000748
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700749 if (current_cpu != "arm64") {
750 # Enable compilation for the NEON instruction set. This is needed
751 # since //build/config/arm.gni only enables NEON for iOS, not Android.
752 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700753 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700754 cflags = [ "-mfpu=neon" ]
755 }
756
757 # Disable LTO on NEON targets due to compiler bug.
758 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000759 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000760 cflags -= [
761 "-flto",
762 "-ffat-lto-objects",
763 ]
764 }
765
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200766 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800767 ":isac_fix_common",
kjellander676e08f2016-12-07 08:23:27 -0800768 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200769 "../../common_audio",
770 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000771 }
772}
773
774config("pcm16b_config") {
775 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000776 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000777 "codecs/pcm16b/include",
778 ]
779}
780
kjellanderb62dbbe2016-09-23 00:38:52 -0700781rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000782 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200783 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100784 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200785 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100786 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000787 ]
788
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000789 deps = [
790 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800791 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800792 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800793 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800794 "../../base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000795 ]
kjellander7439f972016-12-05 22:47:46 -0800796 public_deps = [
797 ":pcm16b_c",
798 ]
799 public_configs = [ ":pcm16b_config" ]
800}
801
802rtc_source_set("pcm16b_c") {
803 visibility = [ ":*" ] # Only targets in this file can depend on this.
804 sources = [
805 "codecs/pcm16b/pcm16b.c",
806 "codecs/pcm16b/pcm16b.h",
807 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000808
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700809 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800810 deps = [
811 "../..:webrtc_common",
812 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000813}
814
815config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000816 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000817}
818
kjellanderb62dbbe2016-09-23 00:38:52 -0700819rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000820 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200821 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100822 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000823 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100824 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000825 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000826
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200827 deps = [
minyue41b9c802016-10-06 07:13:54 -0700828 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800829 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800830 "../../api/audio_codecs:audio_codecs_api",
kwibergfe1aa822017-06-17 18:23:03 -0700831 "../../api/audio_codecs/opus:audio_encoder_opus_config",
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
henrik.lundin875862c2016-11-22 02:07:54 -0800843
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000844 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800845 public_deps += [ rtc_opus_dir ]
846 } else if (build_with_mozilla) {
847 include_dirs = [ getenv("DIST") + "/include/opus" ]
848 }
849}
850
851rtc_source_set("webrtc_opus_c") {
852 visibility = [ ":*" ] # Only targets in this file can depend on this.
853 sources = [
854 "codecs/opus/opus_inst.h",
855 "codecs/opus/opus_interface.c",
856 "codecs/opus/opus_interface.h",
857 ]
858
minyue2e03c662017-02-01 17:31:11 -0800859 defines = audio_coding_defines
860
kjellander7439f972016-12-05 22:47:46 -0800861 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700862 public_deps = [
863 rtc_opus_dir,
864 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000865 } else if (build_with_mozilla) {
866 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000867 }
kjellander7439f972016-12-05 22:47:46 -0800868
869 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800870 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800871 "../../base:rtc_base_approved",
872 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000873}
874
minyue25f6a392016-09-22 22:23:20 -0700875if (rtc_enable_protobuf) {
876 proto_library("ana_debug_dump_proto") {
877 sources = [
878 "audio_network_adaptor/debug_dump.proto",
879 ]
sakal363a2912017-01-13 06:52:12 -0800880 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700881 }
minyuea1d9ad02016-10-02 14:53:37 -0700882 proto_library("ana_config_proto") {
883 sources = [
884 "audio_network_adaptor/config.proto",
885 ]
886 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
887 }
minyue25f6a392016-09-22 22:23:20 -0700888}
889
minyue0d382ef2016-10-07 07:59:28 -0700890rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700891 sources = [
892 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700893 "audio_network_adaptor/audio_network_adaptor_impl.cc",
894 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700895 "audio_network_adaptor/bitrate_controller.cc",
896 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700897 "audio_network_adaptor/channel_controller.cc",
898 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700899 "audio_network_adaptor/controller.cc",
900 "audio_network_adaptor/controller.h",
901 "audio_network_adaptor/controller_manager.cc",
902 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700903 "audio_network_adaptor/debug_dump_writer.cc",
904 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700905 "audio_network_adaptor/dtx_controller.cc",
906 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800907 "audio_network_adaptor/event_log_writer.cc",
908 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700909 "audio_network_adaptor/fec_controller_plr_based.cc",
910 "audio_network_adaptor/fec_controller_plr_based.h",
911 "audio_network_adaptor/fec_controller_rplr_based.cc",
912 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700913 "audio_network_adaptor/frame_length_controller.cc",
914 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700915 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700916 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700917 ]
minyue25f6a392016-09-22 22:23:20 -0700918
minyue41b9c802016-10-06 07:13:54 -0700919 deps = [
920 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -0700921 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -0800922 "../../base:rtc_base_approved",
923 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800924 "../../logging:rtc_event_log_api",
minyue41b9c802016-10-06 07:13:54 -0700925 "../../system_wrappers",
926 ]
927
minyue25f6a392016-09-22 22:23:20 -0700928 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700929 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700930 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700931 ":ana_debug_dump_proto",
932 ]
minyue25f6a392016-09-22 22:23:20 -0700933 }
minyue4b7c9522017-01-24 04:54:59 -0800934
935 if (!build_with_chromium && is_clang) {
936 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
937 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
938 }
minyue7610f852016-09-07 13:51:51 -0700939}
940
kwiberg65cb70d2017-03-03 06:16:28 -0800941rtc_source_set("neteq_decoder_enum") {
942 sources = [
943 "neteq/neteq_decoder_enum.cc",
944 "neteq/neteq_decoder_enum.h",
945 ]
946 deps = [
947 "../../api/audio_codecs:audio_codecs_api",
948 "../../base:rtc_base_approved",
949 ]
950}
kjellander676e08f2016-12-07 08:23:27 -0800951
kwiberg65cb70d2017-03-03 06:16:28 -0800952rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000953 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000954 "neteq/accelerate.cc",
955 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000956 "neteq/audio_decoder_impl.cc",
957 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000958 "neteq/audio_multi_vector.cc",
959 "neteq/audio_multi_vector.h",
960 "neteq/audio_vector.cc",
961 "neteq/audio_vector.h",
962 "neteq/background_noise.cc",
963 "neteq/background_noise.h",
964 "neteq/buffer_level_filter.cc",
965 "neteq/buffer_level_filter.h",
966 "neteq/comfort_noise.cc",
967 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700968 "neteq/cross_correlation.cc",
969 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000970 "neteq/decision_logic.cc",
971 "neteq/decision_logic.h",
972 "neteq/decision_logic_fax.cc",
973 "neteq/decision_logic_fax.h",
974 "neteq/decision_logic_normal.cc",
975 "neteq/decision_logic_normal.h",
976 "neteq/decoder_database.cc",
977 "neteq/decoder_database.h",
978 "neteq/defines.h",
979 "neteq/delay_manager.cc",
980 "neteq/delay_manager.h",
981 "neteq/delay_peak_detector.cc",
982 "neteq/delay_peak_detector.h",
983 "neteq/dsp_helper.cc",
984 "neteq/dsp_helper.h",
985 "neteq/dtmf_buffer.cc",
986 "neteq/dtmf_buffer.h",
987 "neteq/dtmf_tone_generator.cc",
988 "neteq/dtmf_tone_generator.h",
989 "neteq/expand.cc",
990 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100991 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000992 "neteq/merge.cc",
993 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700994 "neteq/nack_tracker.cc",
995 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200996 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000997 "neteq/neteq_impl.cc",
998 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000999 "neteq/normal.cc",
1000 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001001 "neteq/packet.cc",
1002 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001003 "neteq/packet_buffer.cc",
1004 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001005 "neteq/post_decode_vad.cc",
1006 "neteq/post_decode_vad.h",
1007 "neteq/preemptive_expand.cc",
1008 "neteq/preemptive_expand.h",
1009 "neteq/random_vector.cc",
1010 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001011 "neteq/red_payload_splitter.cc",
1012 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001013 "neteq/rtcp.cc",
1014 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001015 "neteq/statistics_calculator.cc",
1016 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001017 "neteq/sync_buffer.cc",
1018 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001019 "neteq/tick_timer.cc",
1020 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001021 "neteq/time_stretch.cc",
1022 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001023 "neteq/timestamp_scaler.cc",
1024 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001025 ]
1026
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001027 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001028 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001029 ":cng",
1030 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001031 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001032 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001033 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001034 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001035 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001036 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001037 "../../base:gtest_prod",
1038 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001039 "../../common_audio",
1040 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001041 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001042
1043 defines = []
1044
kwibergf8c2bac2016-01-18 06:38:32 -08001045 if (rtc_include_ilbc) {
1046 defines += [ "WEBRTC_CODEC_ILBC" ]
1047 deps += [ ":ilbc" ]
1048 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001049 if (rtc_include_opus) {
1050 defines += [ "WEBRTC_CODEC_OPUS" ]
1051 deps += [ ":webrtc_opus" ]
1052 }
kwiberg98ab3a42015-09-30 21:54:21 -07001053 if (!build_with_mozilla) {
1054 if (current_cpu == "arm") {
1055 defines += [ "WEBRTC_CODEC_ISACFX" ]
1056 deps += [ ":isac_fix" ]
1057 } else {
1058 defines += [ "WEBRTC_CODEC_ISAC" ]
1059 deps += [ ":isac" ]
1060 }
1061 defines += [ "WEBRTC_CODEC_G722" ]
1062 deps += [ ":g722" ]
1063 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001064}
kjellanderfb114242016-06-13 00:19:48 -07001065
henrik.lundin58466f62016-10-05 02:27:42 -07001066# Although providing only test support, this target must be outside of the
1067# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1068# that ultimately are built and run as a part of the Chromium ecosystem, which
1069# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001070rtc_source_set("neteq_tools_minimal") {
henrik.lundin58466f62016-10-05 02:27:42 -07001071 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001072 "neteq/tools/audio_sink.cc",
1073 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001074 "neteq/tools/encode_neteq_input.cc",
1075 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001076 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001077 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001078 "neteq/tools/neteq_test.cc",
1079 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001080 "neteq/tools/packet.cc",
1081 "neteq/tools/packet.h",
1082 "neteq/tools/packet_source.cc",
1083 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001084 ]
1085
kjellandere40a7ee2016-10-16 23:56:12 -07001086 if (!build_with_chromium && is_clang) {
1087 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001088 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1089 }
kjellander676e08f2016-12-07 08:23:27 -08001090
1091 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001092 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001093 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001094 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -07001095 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001096 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001097 "../../base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001098 "../rtp_rtcp",
kjellander676e08f2016-12-07 08:23:27 -08001099 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001100}
1101
mbonadei3edccb92017-06-01 04:47:20 -07001102rtc_source_set("neteq_test_tools") {
1103 testonly = true
1104 sources = [
1105 "neteq/tools/audio_checksum.h",
1106 "neteq/tools/audio_loop.cc",
1107 "neteq/tools/audio_loop.h",
1108 "neteq/tools/constant_pcm_packet_source.cc",
1109 "neteq/tools/constant_pcm_packet_source.h",
1110 "neteq/tools/output_audio_file.h",
1111 "neteq/tools/output_wav_file.h",
1112 "neteq/tools/rtp_file_source.cc",
1113 "neteq/tools/rtp_file_source.h",
1114 "neteq/tools/rtp_generator.cc",
1115 "neteq/tools/rtp_generator.h",
1116 ]
1117
1118 public_configs = [ ":neteq_tools_config" ]
1119
1120 if (!build_with_chromium && is_clang) {
1121 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1122 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1123 }
1124
1125 deps = [
1126 ":pcm16b",
1127 "..:module_api",
1128 "../..:webrtc_common",
1129 "../../base:rtc_base_approved",
1130 "../../base:rtc_base_tests_utils",
1131 "../../common_audio",
1132 "../../test:rtp_test_utils",
1133 "../rtp_rtcp",
1134 ]
1135
1136 public_deps = [
1137 ":neteq_tools",
1138 ":neteq_tools_minimal",
1139 ]
1140
1141 if (rtc_enable_protobuf) {
1142 sources += [
1143 "neteq/tools/neteq_packet_source_input.cc",
1144 "neteq/tools/neteq_packet_source_input.h",
1145 ]
1146 deps += [ ":rtc_event_log_source" ]
1147 }
1148}
1149
1150config("neteq_tools_config") {
1151 include_dirs = [ "tools" ]
1152}
1153
1154rtc_source_set("neteq_tools") {
1155 sources = [
1156 "neteq/tools/fake_decode_from_file.cc",
1157 "neteq/tools/fake_decode_from_file.h",
1158 "neteq/tools/input_audio_file.cc",
1159 "neteq/tools/input_audio_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001160 "neteq/tools/neteq_delay_analyzer.cc",
1161 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001162 "neteq/tools/neteq_replacement_input.cc",
1163 "neteq/tools/neteq_replacement_input.h",
1164 "neteq/tools/resample_input_audio_file.cc",
1165 "neteq/tools/resample_input_audio_file.h",
1166 ]
1167
1168 public_configs = [ ":neteq_tools_config" ]
1169
1170 if (!build_with_chromium && is_clang) {
1171 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1172 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1173 }
1174
1175 deps = [
1176 "../..:webrtc_common",
1177 "../../api/audio_codecs:audio_codecs_api",
1178 "../../base:rtc_base_approved",
1179 "../../common_audio",
1180 "../rtp_rtcp",
1181 ]
1182
1183 public_deps = [
1184 ":neteq_tools_minimal",
1185 ]
1186}
1187
1188if (rtc_enable_protobuf) {
1189 rtc_static_library("rtc_event_log_source") {
1190 testonly = true
1191
1192 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1193 # Needs call.h to be moved to webrtc/api first.
1194 check_includes = false
1195
1196 sources = [
1197 "neteq/tools/rtc_event_log_source.cc",
1198 "neteq/tools/rtc_event_log_source.h",
1199 ]
1200
1201 if (!build_with_chromium && is_clang) {
1202 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1203 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1204 }
1205
1206 deps = [
1207 "../../base:rtc_base_approved",
1208 "../../logging:rtc_event_log_parser",
1209 ]
1210 public_deps = [
1211 "../../logging:rtc_event_log_proto",
1212 ]
1213 }
1214}
1215
kjellanderfb114242016-06-13 00:19:48 -07001216if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001217 group("audio_coding_tests") {
1218 testonly = true
1219 public_deps = [
1220 ":RTPchange",
1221 ":RTPencode",
1222 ":RTPjitter",
1223 ":RTPtimeshift",
1224 ":acm_receive_test",
1225 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001226 ":audio_codec_speed_tests",
1227 ":audio_decoder_unittests",
1228 ":audio_decoder_unittests",
1229 ":delay_test",
1230 ":g711_test",
1231 ":g722_test",
1232 ":ilbc_test",
1233 ":insert_packet_with_timing",
1234 ":isac_api_test",
1235 ":isac_fix_test",
1236 ":isac_switch_samprate_test",
1237 ":isac_test",
1238 ":neteq_ilbc_quality_test",
1239 ":neteq_isac_quality_test",
1240 ":neteq_opus_quality_test",
1241 ":neteq_pcmu_quality_test",
1242 ":neteq_speed_test",
1243 ":rtp_analyze",
1244 ":rtpcat",
1245 ":webrtc_opus_fec_test",
1246 ]
1247 if (rtc_enable_protobuf) {
1248 public_deps += [ ":neteq_rtpplay" ]
1249 }
1250 }
1251
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001252 rtc_source_set("audio_coding_modules_tests") {
1253 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001254
1255 # Skip restricting visibility on mobile platforms since the tests on those
1256 # gets additional generated targets which would require many lines here to
1257 # cover (which would be confusing to read and hard to maintain).
1258 if (!is_android && !is_ios) {
1259 visibility = [ "//webrtc/modules:modules_tests" ]
1260 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001261 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001262 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001263 "test/APITest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001264 "test/APITest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001265 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001266 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001267 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001268 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001269 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001270 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001271 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001272 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001273 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001274 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001275 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001276 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001277 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001278 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001279 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001280 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001281 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001282 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001283 "test/Tester.cc",
1284 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001285 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001286 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001287 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001288 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001289 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001290 "test/target_delay_unittest.cc",
1291 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001292 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001293 ]
1294 deps = [
1295 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001296 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001297 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001298 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001299 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001300 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001301 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001302 "../../base:rtc_base_approved",
1303 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001304 "../../test:test_support",
1305 ]
1306 defines = audio_coding_defines
1307 if (is_win) {
1308 cflags = [
1309 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1310 "/wd4373", # virtual function override.
1311 ]
1312 }
1313 if (!build_with_chromium && is_clang) {
1314 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1315 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1316 }
1317 }
1318
ehmaldonado021eef32017-01-05 07:09:50 -08001319 rtc_source_set("audio_coding_perf_tests") {
1320 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001321
1322 # Skip restricting visibility on mobile platforms since the tests on those
1323 # gets additional generated targets which would require many lines here to
1324 # cover (which would be confusing to read and hard to maintain).
1325 if (!is_android && !is_ios) {
1326 visibility = [ "//webrtc:webrtc_perf_tests" ]
1327 }
ehmaldonado021eef32017-01-05 07:09:50 -08001328 sources = [
1329 "codecs/opus/opus_complexity_unittest.cc",
1330 "neteq/test/neteq_performance_unittest.cc",
1331 ]
1332 deps = [
1333 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001334 ":neteq_test_tools",
ehmaldonado021eef32017-01-05 07:09:50 -08001335 ":webrtc_opus",
1336 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -07001337 "../../base:protobuf_utils",
ehmaldonado021eef32017-01-05 07:09:50 -08001338 "../../base:rtc_base_approved",
1339 "../../system_wrappers:system_wrappers",
1340 "../../test:test_support",
1341 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001342
ehmaldonado021eef32017-01-05 07:09:50 -08001343 if (!build_with_chromium && is_clang) {
1344 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1345 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1346 }
1347 }
1348
ehmaldonado38a21322016-09-02 04:10:34 -07001349 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001350 testonly = true
1351 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001352 "acm2/acm_receive_test.cc",
1353 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001354 ]
1355
kjellanderfb114242016-06-13 00:19:48 -07001356 defines = audio_coding_defines
1357
1358 deps = audio_coding_deps + [
1359 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001360 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001361 "../../api/audio_codecs:audio_codecs_api",
1362 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001363 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001364 "../../base:rtc_base_approved",
1365 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001366 "//testing/gtest",
1367 ]
1368 }
1369
ehmaldonado38a21322016-09-02 04:10:34 -07001370 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001371 testonly = true
1372 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001373 "acm2/acm_send_test.cc",
1374 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001375 ]
1376
kjellanderfb114242016-06-13 00:19:48 -07001377 defines = audio_coding_defines
1378
1379 deps = audio_coding_deps + [
1380 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001381 ":neteq_tools",
ossueb1fde42017-05-02 06:46:30 -07001382 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001383 "../../base:rtc_base_approved",
1384 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001385 "//testing/gtest",
1386 ]
1387 }
1388
ehmaldonado38a21322016-09-02 04:10:34 -07001389 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001390 testonly = true
1391 sources = [
1392 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001393 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001394 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001395 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001396 "test/delay_test.cc",
1397 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001398 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001399 ]
1400
aleloi333f2062016-07-28 01:21:29 -07001401 deps = [
1402 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001403 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001404 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001405 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001406 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001407 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001408 "../../system_wrappers",
1409 "../../system_wrappers:system_wrappers_default",
1410 "../../test:test_support",
1411 "../rtp_rtcp",
1412 "//testing/gtest",
1413 "//third_party/gflags:gflags",
1414 ]
1415 } # delay_test
1416
ehmaldonado38a21322016-09-02 04:10:34 -07001417 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001418 testonly = true
1419 sources = [
1420 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001421 "test/Channel.h",
aleloi00730c72016-07-28 01:27:10 -07001422 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001423 "test/PCMFile.h",
aleloi00730c72016-07-28 01:27:10 -07001424 "test/insert_packet_with_timing.cc",
1425 ]
1426
kjellandere40a7ee2016-10-16 23:56:12 -07001427 if (!build_with_chromium && is_clang) {
1428 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001429 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001430 }
1431
1432 deps = [
1433 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001434 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001435 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001436 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001437 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001438 "../../system_wrappers",
1439 "../../system_wrappers:system_wrappers_default",
1440 "../../test:test_support",
1441 "../rtp_rtcp",
1442 "//testing/gtest",
1443 "//third_party/gflags:gflags",
1444 ]
1445 } # insert_packet_with_timing
1446
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001447 audio_decoder_unittests_resources =
1448 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001449
1450 if (is_ios) {
1451 bundle_data("audio_decoder_unittests_bundle_data") {
1452 testonly = true
1453 sources = audio_decoder_unittests_resources
1454 outputs = [
1455 "{{bundle_resources_dir}}/{{source_file_part}}",
1456 ]
1457 }
1458 }
1459
ehmaldonado38a21322016-09-02 04:10:34 -07001460 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001461 testonly = true
1462 sources = [
1463 "neteq/audio_decoder_unittest.cc",
1464 ]
1465
kjellandere40a7ee2016-10-16 23:56:12 -07001466 if (!build_with_chromium && is_clang) {
1467 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001468 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001469 }
1470
1471 deps = []
1472
1473 defines = neteq_defines
1474
1475 deps += audio_coding_deps
1476 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001477 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001478 ":isac",
1479 ":isac_fix",
1480 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001481 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001482 "../../api/audio_codecs:audio_codecs_api",
kwibergfe1aa822017-06-17 18:23:03 -07001483 "../../api/audio_codecs/opus:audio_encoder_opus",
mbonadei7c2c8432017-04-07 00:59:12 -07001484 "../../base:protobuf_utils",
kjellander6ceab082016-10-28 05:44:03 -07001485 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001486 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001487 "//testing/gtest",
1488 ]
1489
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001490 data = audio_decoder_unittests_resources
1491
charujainddf3e4a2016-08-01 07:49:42 -07001492 if (is_android) {
1493 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001494 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001495 }
kjellander32c4a202016-08-30 02:53:49 -07001496 if (is_ios) {
1497 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001498 }
1499 } # audio_decoder_unittests
1500
kjellanderfb114242016-06-13 00:19:48 -07001501 if (rtc_enable_protobuf) {
1502 proto_library("neteq_unittest_proto") {
1503 sources = [
1504 "neteq/neteq_unittest.proto",
1505 ]
kjellandere3e902e2017-02-28 08:01:46 -08001506 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001507 }
henrik.lundin03153f12016-06-21 05:38:42 -07001508
ehmaldonado38a21322016-09-02 04:10:34 -07001509 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001510 testonly = true
1511 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001512 deps = [
1513 "..:module_api",
1514 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001515 sources = [
1516 "neteq/tools/neteq_rtpplay.cc",
1517 ]
1518
kjellandere40a7ee2016-10-16 23:56:12 -07001519 if (!build_with_chromium && is_clang) {
1520 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001521 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001522 }
1523
1524 if (is_win) {
1525 cflags = [
1526 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1527 "/wd4373", # virtual function override.
1528 ]
1529 }
1530
1531 deps += [
1532 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001533 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001534 "../..:webrtc_common",
1535 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001536 "../../system_wrappers:system_wrappers_default",
1537 "../../test:test_support",
1538 "//third_party/gflags",
1539 ]
1540 }
kjellanderfb114242016-06-13 00:19:48 -07001541 }
1542
ehmaldonado38a21322016-09-02 04:10:34 -07001543 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001544 testonly = true
1545 defines = []
1546 deps = []
1547 sources = [
1548 "codecs/isac/fix/test/isac_speed_test.cc",
1549 "codecs/opus/opus_speed_test.cc",
1550 "codecs/tools/audio_codec_speed_test.cc",
1551 "codecs/tools/audio_codec_speed_test.h",
1552 ]
1553
kjellandere40a7ee2016-10-16 23:56:12 -07001554 if (!build_with_chromium && is_clang) {
1555 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001556 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001557 }
1558
1559 if (is_android) {
1560 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001561 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001562 }
1563
1564 deps += [
1565 ":isac_fix",
1566 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001567 "../..:webrtc_common",
1568 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001569 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001570 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001571 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001572 "//testing/gtest",
1573 ]
1574 }
1575
ehmaldonado38a21322016-09-02 04:10:34 -07001576 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001577 testonly = true
1578 sources = [
1579 "neteq/tools/neteq_external_decoder_test.cc",
1580 "neteq/tools/neteq_external_decoder_test.h",
1581 "neteq/tools/neteq_performance_test.cc",
1582 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001583 ]
1584
kjellandere40a7ee2016-10-16 23:56:12 -07001585 if (!build_with_chromium && is_clang) {
1586 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001587 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001588 }
1589
1590 deps = [
1591 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001592 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001593 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001594 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001595 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001596 "../../api/audio_codecs:audio_codecs_api",
1597 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001598 "../../base:rtc_base_approved",
1599 "../../system_wrappers",
1600 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001601 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001602 ]
1603 }
1604
ehmaldonado38a21322016-09-02 04:10:34 -07001605 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001606 testonly = true
1607 sources = [
1608 "neteq/tools/neteq_quality_test.cc",
1609 "neteq/tools/neteq_quality_test.h",
1610 ]
1611
kjellandere40a7ee2016-10-16 23:56:12 -07001612 if (!build_with_chromium && is_clang) {
1613 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001614 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001615 }
1616
1617 deps = [
1618 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001619 ":neteq_test_tools",
mbonadei1140f972017-04-26 03:38:35 -07001620 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001621 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001622 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001623 "../../base:rtc_base_approved",
1624 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001625 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001626 "//third_party/gflags",
1627 ]
1628 }
1629
henrik.lundinb637a942017-04-28 00:59:45 -07001630 rtc_source_set("neteq_test_tools_deprecated") {
aleloi3022a342016-07-26 06:36:03 -07001631 testonly = true
1632 sources = [
1633 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1634 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1635 "neteq/test/NETEQTEST_RTPpacket.cc",
1636 "neteq/test/NETEQTEST_RTPpacket.h",
1637 ]
1638
1639 deps = [
1640 ":cng",
1641 ":g711",
1642 ":g722",
1643 ":ilbc",
1644 ":isac",
1645 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001646 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001647 "../..:webrtc_common",
1648 "//testing/gtest",
1649 ]
1650
1651 include_dirs = [
1652 "neteq/include",
1653 "neteq/test",
1654 "../../",
1655 ]
1656
1657 if (is_win) {
1658 cflags = [
1659 # Disable warnings to enable Win64 build, issue 1323.
1660 "/wd4267", # size_t to int truncation
1661 ]
1662 }
1663 }
aleloi47bded42016-07-26 06:46:19 -07001664
aleloi82667732016-08-02 01:45:50 -07001665 config("RTPencode_config") {
1666 defines = [
1667 "CODEC_ILBC",
1668 "CODEC_PCM16B",
1669 "CODEC_G711",
1670 "CODEC_G722",
1671 "CODEC_ISAC",
1672 "CODEC_PCM16B_WB",
1673 "CODEC_ISAC_SWB",
1674 "CODEC_PCM16B_32KHZ",
1675 "CODEC_PCM16B_48KHZ",
1676 "CODEC_CNGCODEC8",
1677 "CODEC_CNGCODEC16",
1678 "CODEC_CNGCODEC32",
1679 "CODEC_ATEVENT_DECODE",
1680 "CODEC_RED",
1681 "CODEC_OPUS",
1682 ]
1683 }
1684
ehmaldonado38a21322016-09-02 04:10:34 -07001685 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001686 testonly = true
1687
1688 deps = [
1689 # TODO(hlundin): Make RTPencode use ACM to encode files.
1690 ":cng",
1691 ":g711",
1692 ":g722",
1693 ":ilbc",
1694 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001695 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001696 ":neteq_test_tools_deprecated",
aleloi82667732016-08-02 01:45:50 -07001697 ":pcm16b",
1698 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001699 "../..:webrtc_common",
1700 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001701 "../../common_audio",
1702 ]
1703
1704 configs += [ ":RTPencode_config" ]
1705
1706 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001707 "neteq/test/PayloadTypes.h",
aleloi82667732016-08-02 01:45:50 -07001708 "neteq/test/RTPencode.cc",
1709 ]
1710
1711 include_dirs = [
1712 "neteq/include",
1713 "neteq/test",
1714 ]
1715
1716 if (is_win) {
1717 cflags = [
1718 # Disable warnings to enable Win64 build, issue 1323.
1719 "/wd4267", # size_t to int truncation
1720 ]
1721 }
1722 }
1723
ehmaldonado38a21322016-09-02 04:10:34 -07001724 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001725 testonly = true
1726
1727 sources = [
1728 "neteq/test/RTPchange.cc",
1729 ]
1730
1731 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001732 ":neteq_test_tools_deprecated",
aleloi76cbe192016-08-02 02:05:03 -07001733 ]
1734 }
1735
ehmaldonado38a21322016-09-02 04:10:34 -07001736 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001737 testonly = true
1738
1739 sources = [
1740 "neteq/tools/rtpcat.cc",
1741 ]
1742
1743 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001744 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001745 "../../system_wrappers:system_wrappers_default",
1746 "../../test:rtp_test_utils",
1747 "//testing/gtest",
1748 ]
1749 }
1750
ehmaldonado38a21322016-09-02 04:10:34 -07001751 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001752 testonly = true
1753
1754 sources = [
1755 "neteq/test/RTPtimeshift.cc",
1756 ]
1757
1758 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001759 ":neteq_test_tools_deprecated",
kjellander676e08f2016-12-07 08:23:27 -08001760 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001761 "//testing/gtest",
1762 ]
1763 }
1764
ehmaldonado38a21322016-09-02 04:10:34 -07001765 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001766 testonly = true
1767 deps = [
1768 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001769 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001770 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001771 "//testing/gtest",
1772 ]
1773 sources = [
1774 "neteq/test/RTPjitter.cc",
1775 ]
1776 }
1777
ehmaldonado38a21322016-09-02 04:10:34 -07001778 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001779 testonly = true
1780
1781 sources = [
1782 "neteq/tools/rtp_analyze.cc",
1783 ]
1784
1785 deps = [
1786 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001787 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001788 ":pcm16b",
1789 "../../system_wrappers:system_wrappers_default",
1790 "//testing/gtest",
1791 "//third_party/gflags:gflags",
1792 ]
1793
kjellandere40a7ee2016-10-16 23:56:12 -07001794 if (!build_with_chromium && is_clang) {
1795 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001796 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001797 }
1798 }
aleloi630c6d52016-08-10 02:11:30 -07001799
ehmaldonado38a21322016-09-02 04:10:34 -07001800 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001801 testonly = true
1802
1803 sources = [
1804 "neteq/test/neteq_opus_quality_test.cc",
1805 ]
1806
1807 deps = [
1808 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001809 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001810 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001811 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001812 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001813 "//testing/gtest",
1814 "//third_party/gflags",
1815 ]
aleloi630c6d52016-08-10 02:11:30 -07001816 }
aleloi116fd612016-08-10 04:16:36 -07001817
ehmaldonado38a21322016-09-02 04:10:34 -07001818 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001819 testonly = true
1820
1821 sources = [
1822 "neteq/test/neteq_speed_test.cc",
1823 ]
1824
1825 deps = [
1826 ":neteq",
1827 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001828 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001829 "../../system_wrappers:system_wrappers_default",
1830 "../../test:test_support",
1831 "//third_party/gflags",
1832 ]
1833 }
aleloi63910122016-08-10 04:41:14 -07001834
ehmaldonado38a21322016-09-02 04:10:34 -07001835 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001836 testonly = true
1837
1838 sources = [
1839 "neteq/test/neteq_ilbc_quality_test.cc",
1840 ]
1841
1842 deps = [
1843 ":ilbc",
1844 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001845 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001846 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001847 "../..:webrtc_common",
1848 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001849 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001850 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001851 "//testing/gtest",
1852 "//third_party/gflags",
1853 ]
1854 }
aleloi6df36dc2016-08-10 05:04:47 -07001855
ehmaldonado38a21322016-09-02 04:10:34 -07001856 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001857 testonly = true
1858
1859 sources = [
1860 "neteq/test/neteq_isac_quality_test.cc",
1861 ]
1862
1863 deps = [
1864 ":isac_fix",
1865 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001866 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001867 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001868 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001869 "//testing/gtest",
1870 "//third_party/gflags",
1871 ]
1872 }
aleloic4ac7002016-08-10 05:06:27 -07001873
ehmaldonado38a21322016-09-02 04:10:34 -07001874 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001875 testonly = true
1876
1877 sources = [
1878 "neteq/test/neteq_pcmu_quality_test.cc",
1879 ]
1880
1881 deps = [
1882 ":g711",
1883 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001884 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001885 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001886 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001887 "//testing/gtest",
1888 "//third_party/gflags",
1889 ]
1890 }
aleloib7186d02016-08-16 01:47:16 -07001891
ehmaldonado38a21322016-09-02 04:10:34 -07001892 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001893 testonly = true
1894
1895 sources = [
1896 "codecs/isac/fix/test/kenny.cc",
1897 ]
1898
1899 deps = [
1900 ":isac_fix",
1901 "../../test:test_support",
1902 ]
1903
1904 if (is_win) {
1905 cflags = [
1906 # Disable warnings to enable Win64 build, issue 1323.
1907 "/wd4267", # size_t to int truncation
1908 ]
1909 }
1910 }
aleloi16f55a12016-08-23 08:08:23 -07001911
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001912 config("isac_test_warnings_config") {
1913 if (is_win && is_clang) {
1914 cflags = [
1915 # Disable warnings failing when compiling with Clang on Windows.
1916 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1917 "-Wno-format",
1918 ]
1919 }
1920 }
1921
kjellander7439f972016-12-05 22:47:46 -08001922 rtc_source_set("isac_test_util") {
1923 testonly = true
1924 sources = [
1925 "codecs/isac/main/util/utility.c",
1926 ]
1927 }
1928
ehmaldonado38a21322016-09-02 04:10:34 -07001929 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001930 testonly = true
1931
1932 sources = [
1933 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001934 ]
1935
1936 include_dirs = [
1937 "codecs/isac/main/include",
1938 "codecs/isac/main/test",
1939 "codecs/isac/main/util",
1940 ]
1941
1942 deps = [
1943 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001944 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001945 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001946 ]
1947
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001948 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001949 }
1950
ehmaldonado38a21322016-09-02 04:10:34 -07001951 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001952 testonly = true
1953
1954 sources = [
1955 "codecs/g711/test/testG711.cc",
1956 ]
1957
aleloi16f55a12016-08-23 08:08:23 -07001958 deps = [
1959 ":g711",
1960 ]
1961 }
aleloi9a117842016-08-23 08:36:10 -07001962
ehmaldonado38a21322016-09-02 04:10:34 -07001963 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001964 testonly = true
1965
1966 sources = [
1967 "codecs/g722/test/testG722.cc",
1968 ]
1969
aleloi9a117842016-08-23 08:36:10 -07001970 deps = [
1971 ":g722",
1972 "../..:webrtc_common",
1973 ]
1974 }
ivoc2c670db2016-08-24 06:11:18 -07001975
ehmaldonado38a21322016-09-02 04:10:34 -07001976 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001977 testonly = true
1978
1979 sources = [
1980 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001981 ]
1982
aleloicfee2152016-08-29 04:09:19 -07001983 deps = [
1984 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001985 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001986 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001987 ]
1988
1989 include_dirs = [
1990 "codecs/isac/main/include",
1991 "codecs/isac/main/test",
1992 "codecs/isac/main/util",
1993 ]
1994 }
1995
ehmaldonado38a21322016-09-02 04:10:34 -07001996 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001997 testonly = true
1998
1999 sources = [
2000 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002001 ]
2002
aleloicfee2152016-08-29 04:09:19 -07002003 deps = [
2004 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002005 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07002006 ]
2007
2008 include_dirs = [
2009 "codecs/isac/main/include",
2010 "codecs/isac/main/test",
2011 "codecs/isac/main/util",
2012 "../../common_audio/signal_processing/include",
2013 ]
2014 }
2015
ehmaldonado38a21322016-09-02 04:10:34 -07002016 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002017 testonly = true
2018
2019 sources = [
2020 "codecs/ilbc/test/iLBC_test.c",
2021 ]
2022
aleloicfee2152016-08-29 04:09:19 -07002023 deps = [
2024 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002025 ]
2026 }
2027
ehmaldonado38a21322016-09-02 04:10:34 -07002028 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002029 testonly = true
2030
2031 sources = [
2032 "codecs/opus/opus_fec_test.cc",
2033 ]
2034
2035 deps = [
2036 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07002037 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07002038 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08002039 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002040 "//testing/gtest",
2041 ]
2042
kjellandere40a7ee2016-10-16 23:56:12 -07002043 if (!build_with_chromium && is_clang) {
2044 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002045 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002046 }
2047 }
ehmaldonado36268652017-01-19 08:27:11 -08002048
2049 rtc_source_set("audio_coding_unittests") {
2050 testonly = true
2051
kjellandere0629c02017-04-25 04:04:50 -07002052 # Skip restricting visibility on mobile platforms since the tests on those
2053 # gets additional generated targets which would require many lines here to
2054 # cover (which would be confusing to read and hard to maintain).
2055 if (!is_android && !is_ios) {
2056 visibility = [ "//webrtc/modules:modules_unittests" ]
2057 }
ehmaldonado36268652017-01-19 08:27:11 -08002058 sources = [
2059 "acm2/acm_receiver_unittest.cc",
2060 "acm2/audio_coding_module_unittest.cc",
2061 "acm2/call_statistics_unittest.cc",
2062 "acm2/codec_manager_unittest.cc",
2063 "acm2/rent_a_codec_unittest.cc",
2064 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2065 "audio_network_adaptor/bitrate_controller_unittest.cc",
2066 "audio_network_adaptor/channel_controller_unittest.cc",
2067 "audio_network_adaptor/controller_manager_unittest.cc",
2068 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002069 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002070 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2071 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002072 "audio_network_adaptor/frame_length_controller_unittest.cc",
2073 "audio_network_adaptor/mock/mock_controller.h",
2074 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002075 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002076 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002077 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002078 "codecs/cng/audio_encoder_cng_unittest.cc",
2079 "codecs/cng/cng_unittest.cc",
2080 "codecs/ilbc/ilbc_unittest.cc",
2081 "codecs/isac/fix/source/filterbanks_unittest.cc",
2082 "codecs/isac/fix/source/filters_unittest.cc",
2083 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2084 "codecs/isac/fix/source/transform_unittest.cc",
2085 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2086 "codecs/isac/main/source/isac_unittest.cc",
2087 "codecs/isac/unittest.cc",
2088 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002089 "codecs/opus/audio_encoder_opus_unittest.cc",
2090 "codecs/opus/opus_unittest.cc",
2091 "codecs/red/audio_encoder_copy_red_unittest.cc",
2092 "neteq/audio_multi_vector_unittest.cc",
2093 "neteq/audio_vector_unittest.cc",
2094 "neteq/background_noise_unittest.cc",
2095 "neteq/buffer_level_filter_unittest.cc",
2096 "neteq/comfort_noise_unittest.cc",
2097 "neteq/decision_logic_unittest.cc",
2098 "neteq/decoder_database_unittest.cc",
2099 "neteq/delay_manager_unittest.cc",
2100 "neteq/delay_peak_detector_unittest.cc",
2101 "neteq/dsp_helper_unittest.cc",
2102 "neteq/dtmf_buffer_unittest.cc",
2103 "neteq/dtmf_tone_generator_unittest.cc",
2104 "neteq/expand_unittest.cc",
2105 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002106 "neteq/mock/mock_buffer_level_filter.h",
2107 "neteq/mock/mock_decoder_database.h",
2108 "neteq/mock/mock_delay_manager.h",
2109 "neteq/mock/mock_delay_peak_detector.h",
2110 "neteq/mock/mock_dtmf_buffer.h",
2111 "neteq/mock/mock_dtmf_tone_generator.h",
2112 "neteq/mock/mock_expand.h",
2113 "neteq/mock/mock_external_decoder_pcm16b.h",
2114 "neteq/mock/mock_packet_buffer.h",
2115 "neteq/mock/mock_red_payload_splitter.h",
2116 "neteq/nack_tracker_unittest.cc",
2117 "neteq/neteq_external_decoder_unittest.cc",
2118 "neteq/neteq_impl_unittest.cc",
2119 "neteq/neteq_network_stats_unittest.cc",
2120 "neteq/neteq_stereo_unittest.cc",
2121 "neteq/neteq_unittest.cc",
2122 "neteq/normal_unittest.cc",
2123 "neteq/packet_buffer_unittest.cc",
2124 "neteq/post_decode_vad_unittest.cc",
2125 "neteq/random_vector_unittest.cc",
2126 "neteq/red_payload_splitter_unittest.cc",
2127 "neteq/sync_buffer_unittest.cc",
2128 "neteq/tick_timer_unittest.cc",
2129 "neteq/time_stretch_unittest.cc",
2130 "neteq/timestamp_scaler_unittest.cc",
2131 "neteq/tools/input_audio_file_unittest.cc",
2132 "neteq/tools/packet_unittest.cc",
2133 ]
2134
2135 deps = [
2136 ":acm_receive_test",
2137 ":acm_send_test",
2138 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002139 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002140 ":audio_format_conversion",
2141 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002142 ":cng",
2143 ":g711",
2144 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002145 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002146 ":isac_c",
2147 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002148 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002149 ":neteq",
2150 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002151 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002152 ":pcm16b",
2153 ":red",
2154 ":rent_a_codec",
2155 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002156 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002157 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002158 "../../api/audio_codecs:audio_codecs_api",
2159 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002160 "../../api/audio_codecs:builtin_audio_encoder_factory",
mbonadei7c2c8432017-04-07 00:59:12 -07002161 "../../base:protobuf_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002162 "../../base:rtc_base",
2163 "../../base:rtc_base_approved",
2164 "../../base:rtc_base_tests_utils",
2165 "../../common_audio",
2166 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002167 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002168 "../../test:field_trial",
2169 "../../test:rtp_test_utils",
2170 "../../test:test_common",
2171 "../../test:test_support",
2172 "//testing/gmock",
2173 "//testing/gtest",
2174 "//third_party/gflags",
2175 ]
2176
2177 defines = audio_coding_defines
2178
2179 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002180 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002181 deps += [
2182 ":ana_config_proto",
2183 ":neteq_unittest_proto",
2184 ]
2185 }
2186
2187 if (!build_with_chromium && is_clang) {
2188 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2189 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2190 }
2191 }
kjellanderfb114242016-06-13 00:19:48 -07002192}
kwiberg087bd342017-02-10 08:15:44 -08002193
2194# For backwards compatibility only! Use
2195# webrtc/api/audio_codecs:audio_codecs_api instead.
2196# TODO(kwiberg): Remove this.
2197rtc_source_set("audio_decoder_interface") {
2198 sources = [
2199 "codecs/audio_decoder.h",
2200 ]
2201 deps = [
2202 "../../api/audio_codecs:audio_codecs_api",
2203 ]
2204}
2205
2206# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002207# webrtc/api/audio_codecs:audio_codecs_api instead.
2208# TODO(ossu): Remove this.
2209rtc_source_set("audio_encoder_interface") {
2210 sources = [
2211 "codecs/audio_encoder.h",
2212 ]
2213 deps = [
2214 "../../api/audio_codecs:audio_codecs_api",
2215 ]
2216}
2217
2218# For backwards compatibility only! Use
kwiberg087bd342017-02-10 08:15:44 -08002219# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2220# TODO(kwiberg): Remove this.
2221rtc_source_set("builtin_audio_decoder_factory") {
2222 sources = [
2223 "codecs/builtin_audio_decoder_factory.h",
2224 ]
2225 deps = [
2226 "../../api/audio_codecs:builtin_audio_decoder_factory",
2227 ]
2228}
ossueb1fde42017-05-02 06:46:30 -07002229
2230# For backwards compatibility only! Use
2231# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2232# TODO(ossu): Remove this.
2233rtc_source_set("builtin_audio_encoder_factory") {
2234 sources = [
2235 "codecs/builtin_audio_encoder_factory.h",
2236 ]
2237 deps = [
2238 "../../api/audio_codecs:builtin_audio_encoder_factory",
2239 ]
2240}