blob: afd2720f39ca7244c880baacb2e2eb92eee248d1 [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",
mbonadei7c2c8432017-04-07 00:59:12 -0700831 "../../base:protobuf_utils",
Henrik Lundind048aa02015-12-03 17:47:21 +0100832 "../../base:rtc_base_approved",
tereliusbc5d9212017-01-13 09:14:33 -0800833 "../../base:rtc_numerics",
michaelt566d8202017-01-12 10:17:38 -0800834 "../../common_audio",
kjellander676e08f2016-12-07 08:23:27 -0800835 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200836 ]
kjellander7439f972016-12-05 22:47:46 -0800837 public_deps = [
838 ":webrtc_opus_c",
839 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000840
michaelta55f0212017-02-02 07:47:19 -0800841 defines = audio_codec_defines
charujain1a610f12017-06-18 02:38:58 -0700842 if (rtc_opus_variable_complexity) {
843 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
844 } else {
845 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
846 }
henrik.lundin875862c2016-11-22 02:07:54 -0800847
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000848 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800849 public_deps += [ rtc_opus_dir ]
850 } else if (build_with_mozilla) {
851 include_dirs = [ getenv("DIST") + "/include/opus" ]
852 }
853}
854
855rtc_source_set("webrtc_opus_c") {
856 visibility = [ ":*" ] # Only targets in this file can depend on this.
857 sources = [
858 "codecs/opus/opus_inst.h",
859 "codecs/opus/opus_interface.c",
860 "codecs/opus/opus_interface.h",
861 ]
862
minyue2e03c662017-02-01 17:31:11 -0800863 defines = audio_coding_defines
864
kjellander7439f972016-12-05 22:47:46 -0800865 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700866 public_deps = [
867 rtc_opus_dir,
868 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000869 } else if (build_with_mozilla) {
870 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000871 }
kjellander7439f972016-12-05 22:47:46 -0800872
873 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800874 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800875 "../../base:rtc_base_approved",
876 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000877}
878
minyue25f6a392016-09-22 22:23:20 -0700879if (rtc_enable_protobuf) {
880 proto_library("ana_debug_dump_proto") {
881 sources = [
882 "audio_network_adaptor/debug_dump.proto",
883 ]
sakal363a2912017-01-13 06:52:12 -0800884 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700885 }
minyuea1d9ad02016-10-02 14:53:37 -0700886 proto_library("ana_config_proto") {
887 sources = [
888 "audio_network_adaptor/config.proto",
889 ]
890 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
891 }
minyue25f6a392016-09-22 22:23:20 -0700892}
893
minyue0d382ef2016-10-07 07:59:28 -0700894rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700895 sources = [
896 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700897 "audio_network_adaptor/audio_network_adaptor_impl.cc",
898 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700899 "audio_network_adaptor/bitrate_controller.cc",
900 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700901 "audio_network_adaptor/channel_controller.cc",
902 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700903 "audio_network_adaptor/controller.cc",
904 "audio_network_adaptor/controller.h",
905 "audio_network_adaptor/controller_manager.cc",
906 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700907 "audio_network_adaptor/debug_dump_writer.cc",
908 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700909 "audio_network_adaptor/dtx_controller.cc",
910 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800911 "audio_network_adaptor/event_log_writer.cc",
912 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700913 "audio_network_adaptor/fec_controller_plr_based.cc",
914 "audio_network_adaptor/fec_controller_plr_based.h",
915 "audio_network_adaptor/fec_controller_rplr_based.cc",
916 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700917 "audio_network_adaptor/frame_length_controller.cc",
918 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700919 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700920 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700921 ]
minyue25f6a392016-09-22 22:23:20 -0700922
minyue41b9c802016-10-06 07:13:54 -0700923 deps = [
924 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -0700925 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -0800926 "../../base:rtc_base_approved",
927 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800928 "../../logging:rtc_event_log_api",
minyue41b9c802016-10-06 07:13:54 -0700929 "../../system_wrappers",
930 ]
931
minyue25f6a392016-09-22 22:23:20 -0700932 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700933 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700934 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700935 ":ana_debug_dump_proto",
936 ]
minyue25f6a392016-09-22 22:23:20 -0700937 }
minyue4b7c9522017-01-24 04:54:59 -0800938
939 if (!build_with_chromium && is_clang) {
940 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
941 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
942 }
minyue7610f852016-09-07 13:51:51 -0700943}
944
kwiberg65cb70d2017-03-03 06:16:28 -0800945rtc_source_set("neteq_decoder_enum") {
946 sources = [
947 "neteq/neteq_decoder_enum.cc",
948 "neteq/neteq_decoder_enum.h",
949 ]
950 deps = [
951 "../../api/audio_codecs:audio_codecs_api",
952 "../../base:rtc_base_approved",
953 ]
954}
kjellander676e08f2016-12-07 08:23:27 -0800955
kwiberg65cb70d2017-03-03 06:16:28 -0800956rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000957 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000958 "neteq/accelerate.cc",
959 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000960 "neteq/audio_decoder_impl.cc",
961 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000962 "neteq/audio_multi_vector.cc",
963 "neteq/audio_multi_vector.h",
964 "neteq/audio_vector.cc",
965 "neteq/audio_vector.h",
966 "neteq/background_noise.cc",
967 "neteq/background_noise.h",
968 "neteq/buffer_level_filter.cc",
969 "neteq/buffer_level_filter.h",
970 "neteq/comfort_noise.cc",
971 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700972 "neteq/cross_correlation.cc",
973 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000974 "neteq/decision_logic.cc",
975 "neteq/decision_logic.h",
976 "neteq/decision_logic_fax.cc",
977 "neteq/decision_logic_fax.h",
978 "neteq/decision_logic_normal.cc",
979 "neteq/decision_logic_normal.h",
980 "neteq/decoder_database.cc",
981 "neteq/decoder_database.h",
982 "neteq/defines.h",
983 "neteq/delay_manager.cc",
984 "neteq/delay_manager.h",
985 "neteq/delay_peak_detector.cc",
986 "neteq/delay_peak_detector.h",
987 "neteq/dsp_helper.cc",
988 "neteq/dsp_helper.h",
989 "neteq/dtmf_buffer.cc",
990 "neteq/dtmf_buffer.h",
991 "neteq/dtmf_tone_generator.cc",
992 "neteq/dtmf_tone_generator.h",
993 "neteq/expand.cc",
994 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100995 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000996 "neteq/merge.cc",
997 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700998 "neteq/nack_tracker.cc",
999 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001000 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001001 "neteq/neteq_impl.cc",
1002 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001003 "neteq/normal.cc",
1004 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001005 "neteq/packet.cc",
1006 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001007 "neteq/packet_buffer.cc",
1008 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001009 "neteq/post_decode_vad.cc",
1010 "neteq/post_decode_vad.h",
1011 "neteq/preemptive_expand.cc",
1012 "neteq/preemptive_expand.h",
1013 "neteq/random_vector.cc",
1014 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001015 "neteq/red_payload_splitter.cc",
1016 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001017 "neteq/rtcp.cc",
1018 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001019 "neteq/statistics_calculator.cc",
1020 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001021 "neteq/sync_buffer.cc",
1022 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001023 "neteq/tick_timer.cc",
1024 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001025 "neteq/time_stretch.cc",
1026 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001027 "neteq/timestamp_scaler.cc",
1028 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001029 ]
1030
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001031 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001032 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001033 ":cng",
1034 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001035 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001036 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001037 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001038 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001039 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001040 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001041 "../../base:gtest_prod",
1042 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001043 "../../common_audio",
1044 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001045 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001046
1047 defines = []
1048
kwibergf8c2bac2016-01-18 06:38:32 -08001049 if (rtc_include_ilbc) {
1050 defines += [ "WEBRTC_CODEC_ILBC" ]
1051 deps += [ ":ilbc" ]
1052 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001053 if (rtc_include_opus) {
1054 defines += [ "WEBRTC_CODEC_OPUS" ]
1055 deps += [ ":webrtc_opus" ]
1056 }
kwiberg98ab3a42015-09-30 21:54:21 -07001057 if (!build_with_mozilla) {
1058 if (current_cpu == "arm") {
1059 defines += [ "WEBRTC_CODEC_ISACFX" ]
1060 deps += [ ":isac_fix" ]
1061 } else {
1062 defines += [ "WEBRTC_CODEC_ISAC" ]
1063 deps += [ ":isac" ]
1064 }
1065 defines += [ "WEBRTC_CODEC_G722" ]
1066 deps += [ ":g722" ]
1067 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001068}
kjellanderfb114242016-06-13 00:19:48 -07001069
henrik.lundin58466f62016-10-05 02:27:42 -07001070# Although providing only test support, this target must be outside of the
1071# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1072# that ultimately are built and run as a part of the Chromium ecosystem, which
1073# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001074rtc_source_set("neteq_tools_minimal") {
henrik.lundin58466f62016-10-05 02:27:42 -07001075 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001076 "neteq/tools/audio_sink.cc",
1077 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001078 "neteq/tools/encode_neteq_input.cc",
1079 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001080 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001081 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001082 "neteq/tools/neteq_test.cc",
1083 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001084 "neteq/tools/packet.cc",
1085 "neteq/tools/packet.h",
1086 "neteq/tools/packet_source.cc",
1087 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001088 ]
1089
kjellandere40a7ee2016-10-16 23:56:12 -07001090 if (!build_with_chromium && is_clang) {
1091 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001092 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1093 }
kjellander676e08f2016-12-07 08:23:27 -08001094
1095 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001096 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001097 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001098 "../..:webrtc_common",
ossueb1fde42017-05-02 06:46:30 -07001099 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001100 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001101 "../../base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001102 "../rtp_rtcp",
kjellander676e08f2016-12-07 08:23:27 -08001103 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001104}
1105
mbonadei3edccb92017-06-01 04:47:20 -07001106rtc_source_set("neteq_test_tools") {
1107 testonly = true
1108 sources = [
1109 "neteq/tools/audio_checksum.h",
1110 "neteq/tools/audio_loop.cc",
1111 "neteq/tools/audio_loop.h",
1112 "neteq/tools/constant_pcm_packet_source.cc",
1113 "neteq/tools/constant_pcm_packet_source.h",
1114 "neteq/tools/output_audio_file.h",
1115 "neteq/tools/output_wav_file.h",
1116 "neteq/tools/rtp_file_source.cc",
1117 "neteq/tools/rtp_file_source.h",
1118 "neteq/tools/rtp_generator.cc",
1119 "neteq/tools/rtp_generator.h",
1120 ]
1121
1122 public_configs = [ ":neteq_tools_config" ]
1123
1124 if (!build_with_chromium && is_clang) {
1125 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1126 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1127 }
1128
1129 deps = [
1130 ":pcm16b",
1131 "..:module_api",
1132 "../..:webrtc_common",
1133 "../../base:rtc_base_approved",
1134 "../../base:rtc_base_tests_utils",
1135 "../../common_audio",
1136 "../../test:rtp_test_utils",
1137 "../rtp_rtcp",
1138 ]
1139
1140 public_deps = [
1141 ":neteq_tools",
1142 ":neteq_tools_minimal",
1143 ]
1144
1145 if (rtc_enable_protobuf) {
1146 sources += [
1147 "neteq/tools/neteq_packet_source_input.cc",
1148 "neteq/tools/neteq_packet_source_input.h",
1149 ]
1150 deps += [ ":rtc_event_log_source" ]
1151 }
1152}
1153
1154config("neteq_tools_config") {
1155 include_dirs = [ "tools" ]
1156}
1157
1158rtc_source_set("neteq_tools") {
1159 sources = [
1160 "neteq/tools/fake_decode_from_file.cc",
1161 "neteq/tools/fake_decode_from_file.h",
1162 "neteq/tools/input_audio_file.cc",
1163 "neteq/tools/input_audio_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001164 "neteq/tools/neteq_delay_analyzer.cc",
1165 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001166 "neteq/tools/neteq_replacement_input.cc",
1167 "neteq/tools/neteq_replacement_input.h",
1168 "neteq/tools/resample_input_audio_file.cc",
1169 "neteq/tools/resample_input_audio_file.h",
1170 ]
1171
1172 public_configs = [ ":neteq_tools_config" ]
1173
1174 if (!build_with_chromium && is_clang) {
1175 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1176 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1177 }
1178
1179 deps = [
1180 "../..:webrtc_common",
1181 "../../api/audio_codecs:audio_codecs_api",
1182 "../../base:rtc_base_approved",
1183 "../../common_audio",
1184 "../rtp_rtcp",
1185 ]
1186
1187 public_deps = [
1188 ":neteq_tools_minimal",
1189 ]
1190}
1191
1192if (rtc_enable_protobuf) {
1193 rtc_static_library("rtc_event_log_source") {
1194 testonly = true
1195
1196 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1197 # Needs call.h to be moved to webrtc/api first.
1198 check_includes = false
1199
1200 sources = [
1201 "neteq/tools/rtc_event_log_source.cc",
1202 "neteq/tools/rtc_event_log_source.h",
1203 ]
1204
1205 if (!build_with_chromium && is_clang) {
1206 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1207 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1208 }
1209
1210 deps = [
1211 "../../base:rtc_base_approved",
1212 "../../logging:rtc_event_log_parser",
1213 ]
1214 public_deps = [
1215 "../../logging:rtc_event_log_proto",
1216 ]
1217 }
1218}
1219
kjellanderfb114242016-06-13 00:19:48 -07001220if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001221 group("audio_coding_tests") {
1222 testonly = true
1223 public_deps = [
1224 ":RTPchange",
1225 ":RTPencode",
1226 ":RTPjitter",
1227 ":RTPtimeshift",
1228 ":acm_receive_test",
1229 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001230 ":audio_codec_speed_tests",
1231 ":audio_decoder_unittests",
1232 ":audio_decoder_unittests",
1233 ":delay_test",
1234 ":g711_test",
1235 ":g722_test",
1236 ":ilbc_test",
1237 ":insert_packet_with_timing",
1238 ":isac_api_test",
1239 ":isac_fix_test",
1240 ":isac_switch_samprate_test",
1241 ":isac_test",
1242 ":neteq_ilbc_quality_test",
1243 ":neteq_isac_quality_test",
1244 ":neteq_opus_quality_test",
1245 ":neteq_pcmu_quality_test",
1246 ":neteq_speed_test",
1247 ":rtp_analyze",
1248 ":rtpcat",
1249 ":webrtc_opus_fec_test",
1250 ]
1251 if (rtc_enable_protobuf) {
1252 public_deps += [ ":neteq_rtpplay" ]
1253 }
1254 }
1255
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001256 rtc_source_set("audio_coding_modules_tests") {
1257 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001258
1259 # Skip restricting visibility on mobile platforms since the tests on those
1260 # gets additional generated targets which would require many lines here to
1261 # cover (which would be confusing to read and hard to maintain).
1262 if (!is_android && !is_ios) {
1263 visibility = [ "//webrtc/modules:modules_tests" ]
1264 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001265 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001266 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001267 "test/APITest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001268 "test/APITest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001269 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001270 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001271 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001272 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001273 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001274 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001275 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001276 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001277 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001278 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001279 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001280 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001281 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001282 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001283 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001284 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001285 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001286 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001287 "test/Tester.cc",
1288 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001289 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001290 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001291 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001292 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001293 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001294 "test/target_delay_unittest.cc",
1295 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001296 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001297 ]
1298 deps = [
1299 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001300 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001301 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001302 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001303 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001304 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001305 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001306 "../../base:rtc_base_approved",
1307 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001308 "../../test:test_support",
1309 ]
1310 defines = audio_coding_defines
1311 if (is_win) {
1312 cflags = [
1313 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1314 "/wd4373", # virtual function override.
1315 ]
1316 }
1317 if (!build_with_chromium && is_clang) {
1318 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1319 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1320 }
1321 }
1322
ehmaldonado021eef32017-01-05 07:09:50 -08001323 rtc_source_set("audio_coding_perf_tests") {
1324 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001325
1326 # Skip restricting visibility on mobile platforms since the tests on those
1327 # gets additional generated targets which would require many lines here to
1328 # cover (which would be confusing to read and hard to maintain).
1329 if (!is_android && !is_ios) {
1330 visibility = [ "//webrtc:webrtc_perf_tests" ]
1331 }
ehmaldonado021eef32017-01-05 07:09:50 -08001332 sources = [
1333 "codecs/opus/opus_complexity_unittest.cc",
1334 "neteq/test/neteq_performance_unittest.cc",
1335 ]
1336 deps = [
1337 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001338 ":neteq_test_tools",
ehmaldonado021eef32017-01-05 07:09:50 -08001339 ":webrtc_opus",
1340 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -07001341 "../../base:protobuf_utils",
ehmaldonado021eef32017-01-05 07:09:50 -08001342 "../../base:rtc_base_approved",
1343 "../../system_wrappers:system_wrappers",
1344 "../../test:test_support",
1345 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001346
ehmaldonado021eef32017-01-05 07:09:50 -08001347 if (!build_with_chromium && is_clang) {
1348 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1349 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1350 }
1351 }
1352
ehmaldonado38a21322016-09-02 04:10:34 -07001353 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001354 testonly = true
1355 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001356 "acm2/acm_receive_test.cc",
1357 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001358 ]
1359
kjellanderfb114242016-06-13 00:19:48 -07001360 defines = audio_coding_defines
1361
1362 deps = audio_coding_deps + [
1363 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001364 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001365 "../../api/audio_codecs:audio_codecs_api",
1366 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001367 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001368 "../../base:rtc_base_approved",
1369 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001370 "//testing/gtest",
1371 ]
1372 }
1373
ehmaldonado38a21322016-09-02 04:10:34 -07001374 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001375 testonly = true
1376 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001377 "acm2/acm_send_test.cc",
1378 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001379 ]
1380
kjellanderfb114242016-06-13 00:19:48 -07001381 defines = audio_coding_defines
1382
1383 deps = audio_coding_deps + [
1384 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001385 ":neteq_tools",
ossueb1fde42017-05-02 06:46:30 -07001386 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001387 "../../base:rtc_base_approved",
1388 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001389 "//testing/gtest",
1390 ]
1391 }
1392
ehmaldonado38a21322016-09-02 04:10:34 -07001393 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001394 testonly = true
1395 sources = [
1396 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001397 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001398 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001399 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001400 "test/delay_test.cc",
1401 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001402 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001403 ]
1404
aleloi333f2062016-07-28 01:21:29 -07001405 deps = [
1406 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001407 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001408 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001409 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001410 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001411 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001412 "../../system_wrappers",
1413 "../../system_wrappers:system_wrappers_default",
1414 "../../test:test_support",
1415 "../rtp_rtcp",
1416 "//testing/gtest",
1417 "//third_party/gflags:gflags",
1418 ]
1419 } # delay_test
1420
ehmaldonado38a21322016-09-02 04:10:34 -07001421 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001422 testonly = true
1423 sources = [
1424 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001425 "test/Channel.h",
aleloi00730c72016-07-28 01:27:10 -07001426 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001427 "test/PCMFile.h",
aleloi00730c72016-07-28 01:27:10 -07001428 "test/insert_packet_with_timing.cc",
1429 ]
1430
kjellandere40a7ee2016-10-16 23:56:12 -07001431 if (!build_with_chromium && is_clang) {
1432 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001433 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001434 }
1435
1436 deps = [
1437 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001438 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001439 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001440 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001441 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001442 "../../system_wrappers",
1443 "../../system_wrappers:system_wrappers_default",
1444 "../../test:test_support",
1445 "../rtp_rtcp",
1446 "//testing/gtest",
1447 "//third_party/gflags:gflags",
1448 ]
1449 } # insert_packet_with_timing
1450
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001451 audio_decoder_unittests_resources =
1452 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001453
1454 if (is_ios) {
1455 bundle_data("audio_decoder_unittests_bundle_data") {
1456 testonly = true
1457 sources = audio_decoder_unittests_resources
1458 outputs = [
1459 "{{bundle_resources_dir}}/{{source_file_part}}",
1460 ]
1461 }
1462 }
1463
ehmaldonado38a21322016-09-02 04:10:34 -07001464 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001465 testonly = true
1466 sources = [
1467 "neteq/audio_decoder_unittest.cc",
1468 ]
1469
kjellandere40a7ee2016-10-16 23:56:12 -07001470 if (!build_with_chromium && is_clang) {
1471 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001472 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001473 }
1474
1475 deps = []
1476
1477 defines = neteq_defines
1478
1479 deps += audio_coding_deps
1480 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001481 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001482 ":isac",
1483 ":isac_fix",
1484 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001485 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001486 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -07001487 "../../base:protobuf_utils",
kjellander6ceab082016-10-28 05:44:03 -07001488 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001489 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001490 "//testing/gtest",
1491 ]
1492
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001493 data = audio_decoder_unittests_resources
1494
charujainddf3e4a2016-08-01 07:49:42 -07001495 if (is_android) {
1496 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001497 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001498 }
kjellander32c4a202016-08-30 02:53:49 -07001499 if (is_ios) {
1500 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001501 }
1502 } # audio_decoder_unittests
1503
kjellanderfb114242016-06-13 00:19:48 -07001504 if (rtc_enable_protobuf) {
1505 proto_library("neteq_unittest_proto") {
1506 sources = [
1507 "neteq/neteq_unittest.proto",
1508 ]
kjellandere3e902e2017-02-28 08:01:46 -08001509 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001510 }
henrik.lundin03153f12016-06-21 05:38:42 -07001511
ehmaldonado38a21322016-09-02 04:10:34 -07001512 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001513 testonly = true
1514 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001515 deps = [
1516 "..:module_api",
1517 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001518 sources = [
1519 "neteq/tools/neteq_rtpplay.cc",
1520 ]
1521
kjellandere40a7ee2016-10-16 23:56:12 -07001522 if (!build_with_chromium && is_clang) {
1523 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001524 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001525 }
1526
1527 if (is_win) {
1528 cflags = [
1529 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1530 "/wd4373", # virtual function override.
1531 ]
1532 }
1533
1534 deps += [
1535 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001536 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001537 "../..:webrtc_common",
1538 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001539 "../../system_wrappers:system_wrappers_default",
1540 "../../test:test_support",
1541 "//third_party/gflags",
1542 ]
1543 }
kjellanderfb114242016-06-13 00:19:48 -07001544 }
1545
ehmaldonado38a21322016-09-02 04:10:34 -07001546 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001547 testonly = true
1548 defines = []
1549 deps = []
1550 sources = [
1551 "codecs/isac/fix/test/isac_speed_test.cc",
1552 "codecs/opus/opus_speed_test.cc",
1553 "codecs/tools/audio_codec_speed_test.cc",
1554 "codecs/tools/audio_codec_speed_test.h",
1555 ]
1556
kjellandere40a7ee2016-10-16 23:56:12 -07001557 if (!build_with_chromium && is_clang) {
1558 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001559 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001560 }
1561
1562 if (is_android) {
1563 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001564 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001565 }
1566
1567 deps += [
1568 ":isac_fix",
1569 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001570 "../..:webrtc_common",
1571 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001572 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001573 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001574 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001575 "//testing/gtest",
1576 ]
1577 }
1578
ehmaldonado38a21322016-09-02 04:10:34 -07001579 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001580 testonly = true
1581 sources = [
1582 "neteq/tools/neteq_external_decoder_test.cc",
1583 "neteq/tools/neteq_external_decoder_test.h",
1584 "neteq/tools/neteq_performance_test.cc",
1585 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001586 ]
1587
kjellandere40a7ee2016-10-16 23:56:12 -07001588 if (!build_with_chromium && is_clang) {
1589 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001590 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001591 }
1592
1593 deps = [
1594 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001595 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001596 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001597 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001598 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001599 "../../api/audio_codecs:audio_codecs_api",
1600 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001601 "../../base:rtc_base_approved",
1602 "../../system_wrappers",
1603 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001604 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001605 ]
1606 }
1607
ehmaldonado38a21322016-09-02 04:10:34 -07001608 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001609 testonly = true
1610 sources = [
1611 "neteq/tools/neteq_quality_test.cc",
1612 "neteq/tools/neteq_quality_test.h",
1613 ]
1614
kjellandere40a7ee2016-10-16 23:56:12 -07001615 if (!build_with_chromium && is_clang) {
1616 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001617 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001618 }
1619
1620 deps = [
1621 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001622 ":neteq_test_tools",
mbonadei1140f972017-04-26 03:38:35 -07001623 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001624 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001625 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001626 "../../base:rtc_base_approved",
1627 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001628 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001629 "//third_party/gflags",
1630 ]
1631 }
1632
henrik.lundinb637a942017-04-28 00:59:45 -07001633 rtc_source_set("neteq_test_tools_deprecated") {
aleloi3022a342016-07-26 06:36:03 -07001634 testonly = true
1635 sources = [
1636 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1637 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1638 "neteq/test/NETEQTEST_RTPpacket.cc",
1639 "neteq/test/NETEQTEST_RTPpacket.h",
1640 ]
1641
1642 deps = [
1643 ":cng",
1644 ":g711",
1645 ":g722",
1646 ":ilbc",
1647 ":isac",
1648 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001649 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001650 "../..:webrtc_common",
1651 "//testing/gtest",
1652 ]
1653
1654 include_dirs = [
1655 "neteq/include",
1656 "neteq/test",
1657 "../../",
1658 ]
1659
1660 if (is_win) {
1661 cflags = [
1662 # Disable warnings to enable Win64 build, issue 1323.
1663 "/wd4267", # size_t to int truncation
1664 ]
1665 }
1666 }
aleloi47bded42016-07-26 06:46:19 -07001667
aleloi82667732016-08-02 01:45:50 -07001668 config("RTPencode_config") {
1669 defines = [
1670 "CODEC_ILBC",
1671 "CODEC_PCM16B",
1672 "CODEC_G711",
1673 "CODEC_G722",
1674 "CODEC_ISAC",
1675 "CODEC_PCM16B_WB",
1676 "CODEC_ISAC_SWB",
1677 "CODEC_PCM16B_32KHZ",
1678 "CODEC_PCM16B_48KHZ",
1679 "CODEC_CNGCODEC8",
1680 "CODEC_CNGCODEC16",
1681 "CODEC_CNGCODEC32",
1682 "CODEC_ATEVENT_DECODE",
1683 "CODEC_RED",
1684 "CODEC_OPUS",
1685 ]
1686 }
1687
ehmaldonado38a21322016-09-02 04:10:34 -07001688 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001689 testonly = true
1690
1691 deps = [
1692 # TODO(hlundin): Make RTPencode use ACM to encode files.
1693 ":cng",
1694 ":g711",
1695 ":g722",
1696 ":ilbc",
1697 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001698 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001699 ":neteq_test_tools_deprecated",
aleloi82667732016-08-02 01:45:50 -07001700 ":pcm16b",
1701 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001702 "../..:webrtc_common",
1703 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001704 "../../common_audio",
1705 ]
1706
1707 configs += [ ":RTPencode_config" ]
1708
1709 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001710 "neteq/test/PayloadTypes.h",
aleloi82667732016-08-02 01:45:50 -07001711 "neteq/test/RTPencode.cc",
1712 ]
1713
1714 include_dirs = [
1715 "neteq/include",
1716 "neteq/test",
1717 ]
1718
1719 if (is_win) {
1720 cflags = [
1721 # Disable warnings to enable Win64 build, issue 1323.
1722 "/wd4267", # size_t to int truncation
1723 ]
1724 }
1725 }
1726
ehmaldonado38a21322016-09-02 04:10:34 -07001727 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001728 testonly = true
1729
1730 sources = [
1731 "neteq/test/RTPchange.cc",
1732 ]
1733
1734 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001735 ":neteq_test_tools_deprecated",
aleloi76cbe192016-08-02 02:05:03 -07001736 ]
1737 }
1738
ehmaldonado38a21322016-09-02 04:10:34 -07001739 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001740 testonly = true
1741
1742 sources = [
1743 "neteq/tools/rtpcat.cc",
1744 ]
1745
1746 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001747 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001748 "../../system_wrappers:system_wrappers_default",
1749 "../../test:rtp_test_utils",
1750 "//testing/gtest",
1751 ]
1752 }
1753
ehmaldonado38a21322016-09-02 04:10:34 -07001754 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001755 testonly = true
1756
1757 sources = [
1758 "neteq/test/RTPtimeshift.cc",
1759 ]
1760
1761 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001762 ":neteq_test_tools_deprecated",
kjellander676e08f2016-12-07 08:23:27 -08001763 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001764 "//testing/gtest",
1765 ]
1766 }
1767
ehmaldonado38a21322016-09-02 04:10:34 -07001768 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001769 testonly = true
1770 deps = [
1771 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001772 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001773 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001774 "//testing/gtest",
1775 ]
1776 sources = [
1777 "neteq/test/RTPjitter.cc",
1778 ]
1779 }
1780
ehmaldonado38a21322016-09-02 04:10:34 -07001781 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001782 testonly = true
1783
1784 sources = [
1785 "neteq/tools/rtp_analyze.cc",
1786 ]
1787
1788 deps = [
1789 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001790 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001791 ":pcm16b",
1792 "../../system_wrappers:system_wrappers_default",
1793 "//testing/gtest",
1794 "//third_party/gflags:gflags",
1795 ]
1796
kjellandere40a7ee2016-10-16 23:56:12 -07001797 if (!build_with_chromium && is_clang) {
1798 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001799 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001800 }
1801 }
aleloi630c6d52016-08-10 02:11:30 -07001802
ehmaldonado38a21322016-09-02 04:10:34 -07001803 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001804 testonly = true
1805
1806 sources = [
1807 "neteq/test/neteq_opus_quality_test.cc",
1808 ]
1809
1810 deps = [
1811 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001812 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001813 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001814 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001815 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001816 "//testing/gtest",
1817 "//third_party/gflags",
1818 ]
aleloi630c6d52016-08-10 02:11:30 -07001819 }
aleloi116fd612016-08-10 04:16:36 -07001820
ehmaldonado38a21322016-09-02 04:10:34 -07001821 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001822 testonly = true
1823
1824 sources = [
1825 "neteq/test/neteq_speed_test.cc",
1826 ]
1827
1828 deps = [
1829 ":neteq",
1830 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001831 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001832 "../../system_wrappers:system_wrappers_default",
1833 "../../test:test_support",
1834 "//third_party/gflags",
1835 ]
1836 }
aleloi63910122016-08-10 04:41:14 -07001837
ehmaldonado38a21322016-09-02 04:10:34 -07001838 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001839 testonly = true
1840
1841 sources = [
1842 "neteq/test/neteq_ilbc_quality_test.cc",
1843 ]
1844
1845 deps = [
1846 ":ilbc",
1847 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001848 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001849 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001850 "../..:webrtc_common",
1851 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001852 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001853 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001854 "//testing/gtest",
1855 "//third_party/gflags",
1856 ]
1857 }
aleloi6df36dc2016-08-10 05:04:47 -07001858
ehmaldonado38a21322016-09-02 04:10:34 -07001859 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001860 testonly = true
1861
1862 sources = [
1863 "neteq/test/neteq_isac_quality_test.cc",
1864 ]
1865
1866 deps = [
1867 ":isac_fix",
1868 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001869 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001870 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001871 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001872 "//testing/gtest",
1873 "//third_party/gflags",
1874 ]
1875 }
aleloic4ac7002016-08-10 05:06:27 -07001876
ehmaldonado38a21322016-09-02 04:10:34 -07001877 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001878 testonly = true
1879
1880 sources = [
1881 "neteq/test/neteq_pcmu_quality_test.cc",
1882 ]
1883
1884 deps = [
1885 ":g711",
1886 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001887 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001888 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001889 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001890 "//testing/gtest",
1891 "//third_party/gflags",
1892 ]
1893 }
aleloib7186d02016-08-16 01:47:16 -07001894
ehmaldonado38a21322016-09-02 04:10:34 -07001895 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001896 testonly = true
1897
1898 sources = [
1899 "codecs/isac/fix/test/kenny.cc",
1900 ]
1901
1902 deps = [
1903 ":isac_fix",
1904 "../../test:test_support",
1905 ]
1906
1907 if (is_win) {
1908 cflags = [
1909 # Disable warnings to enable Win64 build, issue 1323.
1910 "/wd4267", # size_t to int truncation
1911 ]
1912 }
1913 }
aleloi16f55a12016-08-23 08:08:23 -07001914
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001915 config("isac_test_warnings_config") {
1916 if (is_win && is_clang) {
1917 cflags = [
1918 # Disable warnings failing when compiling with Clang on Windows.
1919 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1920 "-Wno-format",
1921 ]
1922 }
1923 }
1924
kjellander7439f972016-12-05 22:47:46 -08001925 rtc_source_set("isac_test_util") {
1926 testonly = true
1927 sources = [
1928 "codecs/isac/main/util/utility.c",
1929 ]
1930 }
1931
ehmaldonado38a21322016-09-02 04:10:34 -07001932 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001933 testonly = true
1934
1935 sources = [
1936 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001937 ]
1938
1939 include_dirs = [
1940 "codecs/isac/main/include",
1941 "codecs/isac/main/test",
1942 "codecs/isac/main/util",
1943 ]
1944
1945 deps = [
1946 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001947 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001948 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001949 ]
1950
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001951 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001952 }
1953
ehmaldonado38a21322016-09-02 04:10:34 -07001954 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001955 testonly = true
1956
1957 sources = [
1958 "codecs/g711/test/testG711.cc",
1959 ]
1960
aleloi16f55a12016-08-23 08:08:23 -07001961 deps = [
1962 ":g711",
1963 ]
1964 }
aleloi9a117842016-08-23 08:36:10 -07001965
ehmaldonado38a21322016-09-02 04:10:34 -07001966 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001967 testonly = true
1968
1969 sources = [
1970 "codecs/g722/test/testG722.cc",
1971 ]
1972
aleloi9a117842016-08-23 08:36:10 -07001973 deps = [
1974 ":g722",
1975 "../..:webrtc_common",
1976 ]
1977 }
ivoc2c670db2016-08-24 06:11:18 -07001978
ehmaldonado38a21322016-09-02 04:10:34 -07001979 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001980 testonly = true
1981
1982 sources = [
1983 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001984 ]
1985
aleloicfee2152016-08-29 04:09:19 -07001986 deps = [
1987 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001988 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001989 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001990 ]
1991
1992 include_dirs = [
1993 "codecs/isac/main/include",
1994 "codecs/isac/main/test",
1995 "codecs/isac/main/util",
1996 ]
1997 }
1998
ehmaldonado38a21322016-09-02 04:10:34 -07001999 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002000 testonly = true
2001
2002 sources = [
2003 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002004 ]
2005
aleloicfee2152016-08-29 04:09:19 -07002006 deps = [
2007 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002008 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07002009 ]
2010
2011 include_dirs = [
2012 "codecs/isac/main/include",
2013 "codecs/isac/main/test",
2014 "codecs/isac/main/util",
2015 "../../common_audio/signal_processing/include",
2016 ]
2017 }
2018
ehmaldonado38a21322016-09-02 04:10:34 -07002019 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002020 testonly = true
2021
2022 sources = [
2023 "codecs/ilbc/test/iLBC_test.c",
2024 ]
2025
aleloicfee2152016-08-29 04:09:19 -07002026 deps = [
2027 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002028 ]
2029 }
2030
ehmaldonado38a21322016-09-02 04:10:34 -07002031 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002032 testonly = true
2033
2034 sources = [
2035 "codecs/opus/opus_fec_test.cc",
2036 ]
2037
2038 deps = [
2039 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07002040 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07002041 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08002042 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002043 "//testing/gtest",
2044 ]
2045
kjellandere40a7ee2016-10-16 23:56:12 -07002046 if (!build_with_chromium && is_clang) {
2047 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002048 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002049 }
2050 }
ehmaldonado36268652017-01-19 08:27:11 -08002051
2052 rtc_source_set("audio_coding_unittests") {
2053 testonly = true
2054
kjellandere0629c02017-04-25 04:04:50 -07002055 # Skip restricting visibility on mobile platforms since the tests on those
2056 # gets additional generated targets which would require many lines here to
2057 # cover (which would be confusing to read and hard to maintain).
2058 if (!is_android && !is_ios) {
2059 visibility = [ "//webrtc/modules:modules_unittests" ]
2060 }
ehmaldonado36268652017-01-19 08:27:11 -08002061 sources = [
2062 "acm2/acm_receiver_unittest.cc",
2063 "acm2/audio_coding_module_unittest.cc",
2064 "acm2/call_statistics_unittest.cc",
2065 "acm2/codec_manager_unittest.cc",
2066 "acm2/rent_a_codec_unittest.cc",
2067 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2068 "audio_network_adaptor/bitrate_controller_unittest.cc",
2069 "audio_network_adaptor/channel_controller_unittest.cc",
2070 "audio_network_adaptor/controller_manager_unittest.cc",
2071 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002072 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002073 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2074 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002075 "audio_network_adaptor/frame_length_controller_unittest.cc",
2076 "audio_network_adaptor/mock/mock_controller.h",
2077 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002078 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002079 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002080 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002081 "codecs/cng/audio_encoder_cng_unittest.cc",
2082 "codecs/cng/cng_unittest.cc",
2083 "codecs/ilbc/ilbc_unittest.cc",
2084 "codecs/isac/fix/source/filterbanks_unittest.cc",
2085 "codecs/isac/fix/source/filters_unittest.cc",
2086 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2087 "codecs/isac/fix/source/transform_unittest.cc",
2088 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2089 "codecs/isac/main/source/isac_unittest.cc",
2090 "codecs/isac/unittest.cc",
2091 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002092 "codecs/opus/audio_encoder_opus_unittest.cc",
2093 "codecs/opus/opus_unittest.cc",
2094 "codecs/red/audio_encoder_copy_red_unittest.cc",
2095 "neteq/audio_multi_vector_unittest.cc",
2096 "neteq/audio_vector_unittest.cc",
2097 "neteq/background_noise_unittest.cc",
2098 "neteq/buffer_level_filter_unittest.cc",
2099 "neteq/comfort_noise_unittest.cc",
2100 "neteq/decision_logic_unittest.cc",
2101 "neteq/decoder_database_unittest.cc",
2102 "neteq/delay_manager_unittest.cc",
2103 "neteq/delay_peak_detector_unittest.cc",
2104 "neteq/dsp_helper_unittest.cc",
2105 "neteq/dtmf_buffer_unittest.cc",
2106 "neteq/dtmf_tone_generator_unittest.cc",
2107 "neteq/expand_unittest.cc",
2108 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002109 "neteq/mock/mock_buffer_level_filter.h",
2110 "neteq/mock/mock_decoder_database.h",
2111 "neteq/mock/mock_delay_manager.h",
2112 "neteq/mock/mock_delay_peak_detector.h",
2113 "neteq/mock/mock_dtmf_buffer.h",
2114 "neteq/mock/mock_dtmf_tone_generator.h",
2115 "neteq/mock/mock_expand.h",
2116 "neteq/mock/mock_external_decoder_pcm16b.h",
2117 "neteq/mock/mock_packet_buffer.h",
2118 "neteq/mock/mock_red_payload_splitter.h",
2119 "neteq/nack_tracker_unittest.cc",
2120 "neteq/neteq_external_decoder_unittest.cc",
2121 "neteq/neteq_impl_unittest.cc",
2122 "neteq/neteq_network_stats_unittest.cc",
2123 "neteq/neteq_stereo_unittest.cc",
2124 "neteq/neteq_unittest.cc",
2125 "neteq/normal_unittest.cc",
2126 "neteq/packet_buffer_unittest.cc",
2127 "neteq/post_decode_vad_unittest.cc",
2128 "neteq/random_vector_unittest.cc",
2129 "neteq/red_payload_splitter_unittest.cc",
2130 "neteq/sync_buffer_unittest.cc",
2131 "neteq/tick_timer_unittest.cc",
2132 "neteq/time_stretch_unittest.cc",
2133 "neteq/timestamp_scaler_unittest.cc",
2134 "neteq/tools/input_audio_file_unittest.cc",
2135 "neteq/tools/packet_unittest.cc",
2136 ]
2137
2138 deps = [
2139 ":acm_receive_test",
2140 ":acm_send_test",
2141 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002142 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002143 ":audio_format_conversion",
2144 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002145 ":cng",
2146 ":g711",
2147 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002148 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002149 ":isac_c",
2150 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002151 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002152 ":neteq",
2153 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002154 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002155 ":pcm16b",
2156 ":red",
2157 ":rent_a_codec",
2158 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002159 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002160 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002161 "../../api/audio_codecs:audio_codecs_api",
2162 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002163 "../../api/audio_codecs:builtin_audio_encoder_factory",
mbonadei7c2c8432017-04-07 00:59:12 -07002164 "../../base:protobuf_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002165 "../../base:rtc_base",
2166 "../../base:rtc_base_approved",
2167 "../../base:rtc_base_tests_utils",
2168 "../../common_audio",
2169 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002170 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002171 "../../test:field_trial",
2172 "../../test:rtp_test_utils",
2173 "../../test:test_common",
2174 "../../test:test_support",
2175 "//testing/gmock",
2176 "//testing/gtest",
2177 "//third_party/gflags",
2178 ]
2179
2180 defines = audio_coding_defines
2181
2182 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002183 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002184 deps += [
2185 ":ana_config_proto",
2186 ":neteq_unittest_proto",
2187 ]
2188 }
2189
2190 if (!build_with_chromium && is_clang) {
2191 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2192 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2193 }
2194 }
kjellanderfb114242016-06-13 00:19:48 -07002195}
kwiberg087bd342017-02-10 08:15:44 -08002196
2197# For backwards compatibility only! Use
2198# webrtc/api/audio_codecs:audio_codecs_api instead.
2199# TODO(kwiberg): Remove this.
2200rtc_source_set("audio_decoder_interface") {
2201 sources = [
2202 "codecs/audio_decoder.h",
2203 ]
2204 deps = [
2205 "../../api/audio_codecs:audio_codecs_api",
2206 ]
2207}
2208
2209# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002210# webrtc/api/audio_codecs:audio_codecs_api instead.
2211# TODO(ossu): Remove this.
2212rtc_source_set("audio_encoder_interface") {
2213 sources = [
2214 "codecs/audio_encoder.h",
2215 ]
2216 deps = [
2217 "../../api/audio_codecs:audio_codecs_api",
2218 ]
2219}
2220
2221# For backwards compatibility only! Use
kwiberg087bd342017-02-10 08:15:44 -08002222# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2223# TODO(kwiberg): Remove this.
2224rtc_source_set("builtin_audio_decoder_factory") {
2225 sources = [
2226 "codecs/builtin_audio_decoder_factory.h",
2227 ]
2228 deps = [
2229 "../../api/audio_codecs:builtin_audio_decoder_factory",
2230 ]
2231}
ossueb1fde42017-05-02 06:46:30 -07002232
2233# For backwards compatibility only! Use
2234# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2235# TODO(ossu): Remove this.
2236rtc_source_set("builtin_audio_encoder_factory") {
2237 sources = [
2238 "codecs/builtin_audio_encoder_factory.h",
2239 ]
2240 deps = [
2241 "../../api/audio_codecs:builtin_audio_encoder_factory",
2242 ]
2243}