blob: e5854ef1fc0a069af8472ae3e5a546b9cf3a44c8 [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}
Karl Wibergeb254b42017-11-01 15:08:12 +010025if (current_cpu == "arm") {
26 audio_codec_deps += [ ":isac_fix" ]
27} else {
28 audio_codec_deps += [ ":isac" ]
kwiberg0edb05b2016-01-19 05:54:28 -080029}
Karl Wibergeb254b42017-11-01 15:08:12 +010030audio_codec_deps += [ ":g722" ]
kwiberg0edb05b2016-01-19 05:54:28 -080031if (!build_with_mozilla && !build_with_chromium) {
kwiberg0edb05b2016-01-19 05:54:28 -080032 audio_codec_deps += [ ":red" ]
33}
kjellanderfb114242016-06-13 00:19:48 -070034audio_coding_deps = audio_codec_deps + [
35 "../..:webrtc_common",
36 "../../common_audio",
37 "../../system_wrappers",
38 ]
kwiberg0edb05b2016-01-19 05:54:28 -080039
kwibergda2bf4e2016-10-24 13:47:09 -070040rtc_static_library("audio_format_conversion") {
41 sources = [
42 "codecs/audio_format_conversion.cc",
43 "codecs/audio_format_conversion.h",
44 ]
45 deps = [
kwiberga6b82982016-10-24 16:31:17 -070046 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -070047 "../../api:array_view",
kwiberg84f6a3f2017-09-05 08:43:13 -070048 "../../api:optional",
kwiberg087bd342017-02-10 08:15:44 -080049 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -070050 "../../rtc_base:rtc_base_approved",
kwibergda2bf4e2016-10-24 13:47:09 -070051 ]
52}
53
kjellanderb62dbbe2016-09-23 00:38:52 -070054rtc_static_library("rent_a_codec") {
kwibergfce4a942015-10-27 11:40:24 -070055 sources = [
kjellander3e6db232015-11-26 04:44:54 -080056 "acm2/acm_codec_database.cc",
57 "acm2/acm_codec_database.h",
58 "acm2/rent_a_codec.cc",
59 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -070060 ]
kjellander676e08f2016-12-07 08:23:27 -080061 deps = [
kwiberg529662a2017-09-04 05:43:17 -070062 "../../api:array_view",
kwiberg84f6a3f2017-09-05 08:43:13 -070063 "../../api:optional",
kwiberg087bd342017-02-10 08:15:44 -080064 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -080065 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -070066 "../../rtc_base:protobuf_utils",
67 "../../rtc_base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -080068 "../../system_wrappers",
69 ":audio_coding_module_typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -080070 ":isac_common",
71 ":isac_fix_c",
72 ":neteq_decoder_enum",
kjellander676e08f2016-12-07 08:23:27 -080073 ] + audio_codec_deps
mbonadei7c2c8432017-04-07 00:59:12 -070074
kwiberg0edb05b2016-01-19 05:54:28 -080075 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -070076}
77
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000078config("audio_coding_config") {
79 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -080080 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010081 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000082 ]
83}
84
kwiberg65cb70d2017-03-03 06:16:28 -080085rtc_source_set("audio_coding_module_typedefs") {
86 sources = [
87 "include/audio_coding_module_typedefs.h",
88 ]
89 deps = [
mbonadei1140f972017-04-26 03:38:35 -070090 "..:module_api",
kwiberg65cb70d2017-03-03 06:16:28 -080091 "../..:webrtc_common",
92 ]
93}
94
kjellanderb62dbbe2016-09-23 00:38:52 -070095rtc_static_library("audio_coding") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000096 sources = [
kjellander3e6db232015-11-26 04:44:54 -080097 "acm2/acm_receiver.cc",
98 "acm2/acm_receiver.h",
99 "acm2/acm_resampler.cc",
100 "acm2/acm_resampler.h",
101 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800102 "acm2/call_statistics.cc",
103 "acm2/call_statistics.h",
104 "acm2/codec_manager.cc",
105 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800106 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000107 ]
108
109 defines = []
110
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700111 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000112
kjellanderfb114242016-06-13 00:19:48 -0700113 if (rtc_include_opus) {
114 public_deps = [
115 ":webrtc_opus",
116 ]
117 }
118
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000119 if (is_win) {
120 cflags = [
121 # TODO(kjellander): Bug 261: fix this warning.
122 "/wd4373", # virtual function override.
123 ]
124 }
125
kjellanderfb114242016-06-13 00:19:48 -0700126 deps = audio_coding_deps + [
mbonadei1140f972017-04-26 03:38:35 -0700127 "..:module_api",
kwiberg529662a2017-09-04 05:43:17 -0700128 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800129 "../../api/audio_codecs:audio_codecs_api",
130 "../../api/audio_codecs:builtin_audio_decoder_factory",
kwiberg65cb70d2017-03-03 06:16:28 -0800131 ":audio_coding_module_typedefs",
kwiberg0edb05b2016-01-19 05:54:28 -0800132 ":neteq",
133 ":rent_a_codec",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700134 "../../rtc_base:rtc_base_approved",
kwiberg84f6a3f2017-09-05 08:43:13 -0700135 "../../api:optional",
skvladcc91d282016-10-03 18:31:22 -0700136 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800137 ]
kjellanderfb114242016-06-13 00:19:48 -0700138 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000139}
140
kwiberg087bd342017-02-10 08:15:44 -0800141rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000142 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700143 "codecs/legacy_encoded_audio_frame.cc",
144 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000145 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200146 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700147 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800148 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700149 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200150 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000151}
152
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000153config("cng_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200154 include_dirs = [ "codecs/cng/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000155}
156
kjellanderb62dbbe2016-09-23 00:38:52 -0700157rtc_static_library("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000158 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000159 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100160 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700161 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100162 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000163 ]
164
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700165 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000166
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000167 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800168 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700169 "../../api:array_view",
ossueb1fde42017-05-02 06:46:30 -0700170 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100171 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700172 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000173 ]
174}
175
176config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200177 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000178}
179
kjellanderb62dbbe2016-09-23 00:38:52 -0700180rtc_static_library("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000181 sources = [
182 "codecs/red/audio_encoder_copy_red.cc",
183 "codecs/red/audio_encoder_copy_red.h",
184 ]
185
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700186 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000187
188 deps = [
ossueb1fde42017-05-02 06:46:30 -0700189 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100190 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700191 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000192 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000193}
194
195config("g711_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200196 include_dirs = [ "codecs/g711/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000197}
198
kjellanderb62dbbe2016-09-23 00:38:52 -0700199rtc_static_library("g711") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000200 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700201 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100202 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000203 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100204 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000205 ]
206
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700207 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000208
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200209 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800210 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800211 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800212 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700213 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200214 ]
kjellander7439f972016-12-05 22:47:46 -0800215 public_deps = [
216 ":g711_c",
217 ]
218}
219
220rtc_source_set("g711_c") {
221 visibility = [ ":*" ] # Only targets in this file can depend on this.
222 sources = [
223 "codecs/g711/g711.c",
224 "codecs/g711/g711.h",
225 "codecs/g711/g711_interface.c",
226 "codecs/g711/g711_interface.h",
227 ]
kjellander676e08f2016-12-07 08:23:27 -0800228 deps = [
229 "../..:webrtc_common",
230 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000231}
232
233config("g722_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200234 include_dirs = [ "codecs/g722/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000235}
236
kjellanderb62dbbe2016-09-23 00:38:52 -0700237rtc_static_library("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000238 sources = [
kwibergada4c132015-09-17 03:12:35 -0700239 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100240 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000241 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100242 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000243 ]
244
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700245 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000246
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200247 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800248 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800249 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800250 "../../api/audio_codecs:audio_codecs_api",
kwibergb8727ae2017-06-17 17:41:59 -0700251 "../../api/audio_codecs/g722:audio_encoder_g722_config",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700252 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200253 ]
kjellander7439f972016-12-05 22:47:46 -0800254 public_deps = [
255 ":g722_c",
256 ]
257}
258
259rtc_source_set("g722_c") {
260 visibility = [ ":*" ] # Only targets in this file can depend on this.
261 sources = [
262 "codecs/g722/g722_decode.c",
263 "codecs/g722/g722_enc_dec.h",
264 "codecs/g722/g722_encode.c",
265 "codecs/g722/g722_interface.c",
266 "codecs/g722/g722_interface.h",
267 ]
kjellander676e08f2016-12-07 08:23:27 -0800268 deps = [
269 "../..:webrtc_common",
270 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000271}
272
273config("ilbc_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200274 include_dirs = [ "codecs/ilbc/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000275}
276
kjellanderb62dbbe2016-09-23 00:38:52 -0700277rtc_static_library("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000278 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700279 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100280 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200281 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100282 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800283 ]
284
285 public_configs = [ ":ilbc_config" ]
286
287 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800288 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800289 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800290 "../../api/audio_codecs:audio_codecs_api",
solenbergdb3c9b02017-06-28 02:05:04 -0700291 "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
kjellander7439f972016-12-05 22:47:46 -0800292 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700293 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800294 ]
295 public_deps = [
296 ":ilbc_c",
297 ]
298}
299
300rtc_source_set("ilbc_c") {
301 visibility = [ ":*" ] # Only targets in this file can depend on this.
302 sources = [
303 "codecs/ilbc/abs_quant.c",
304 "codecs/ilbc/abs_quant.h",
305 "codecs/ilbc/abs_quant_loop.c",
306 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000307 "codecs/ilbc/augmented_cb_corr.c",
308 "codecs/ilbc/augmented_cb_corr.h",
309 "codecs/ilbc/bw_expand.c",
310 "codecs/ilbc/bw_expand.h",
311 "codecs/ilbc/cb_construct.c",
312 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200313 "codecs/ilbc/cb_mem_energy.c",
314 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000315 "codecs/ilbc/cb_mem_energy_augmentation.c",
316 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000317 "codecs/ilbc/cb_mem_energy_calc.c",
318 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000319 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200320 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000321 "codecs/ilbc/cb_search_core.c",
322 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000323 "codecs/ilbc/cb_update_best_index.c",
324 "codecs/ilbc/cb_update_best_index.h",
325 "codecs/ilbc/chebyshev.c",
326 "codecs/ilbc/chebyshev.h",
327 "codecs/ilbc/comp_corr.c",
328 "codecs/ilbc/comp_corr.h",
329 "codecs/ilbc/constants.c",
330 "codecs/ilbc/constants.h",
331 "codecs/ilbc/create_augmented_vec.c",
332 "codecs/ilbc/create_augmented_vec.h",
333 "codecs/ilbc/decode.c",
334 "codecs/ilbc/decode.h",
335 "codecs/ilbc/decode_residual.c",
336 "codecs/ilbc/decode_residual.h",
337 "codecs/ilbc/decoder_interpolate_lsf.c",
338 "codecs/ilbc/decoder_interpolate_lsf.h",
339 "codecs/ilbc/defines.h",
340 "codecs/ilbc/do_plc.c",
341 "codecs/ilbc/do_plc.h",
342 "codecs/ilbc/encode.c",
343 "codecs/ilbc/encode.h",
344 "codecs/ilbc/energy_inverse.c",
345 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200346 "codecs/ilbc/enh_upsample.c",
347 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000348 "codecs/ilbc/enhancer.c",
349 "codecs/ilbc/enhancer.h",
350 "codecs/ilbc/enhancer_interface.c",
351 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000352 "codecs/ilbc/filtered_cb_vecs.c",
353 "codecs/ilbc/filtered_cb_vecs.h",
354 "codecs/ilbc/frame_classify.c",
355 "codecs/ilbc/frame_classify.h",
356 "codecs/ilbc/gain_dequant.c",
357 "codecs/ilbc/gain_dequant.h",
358 "codecs/ilbc/gain_quant.c",
359 "codecs/ilbc/gain_quant.h",
360 "codecs/ilbc/get_cd_vec.c",
361 "codecs/ilbc/get_cd_vec.h",
362 "codecs/ilbc/get_lsp_poly.c",
363 "codecs/ilbc/get_lsp_poly.h",
364 "codecs/ilbc/get_sync_seq.c",
365 "codecs/ilbc/get_sync_seq.h",
366 "codecs/ilbc/hp_input.c",
367 "codecs/ilbc/hp_input.h",
368 "codecs/ilbc/hp_output.c",
369 "codecs/ilbc/hp_output.h",
370 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100371 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000372 "codecs/ilbc/index_conv_dec.c",
373 "codecs/ilbc/index_conv_dec.h",
374 "codecs/ilbc/index_conv_enc.c",
375 "codecs/ilbc/index_conv_enc.h",
376 "codecs/ilbc/init_decode.c",
377 "codecs/ilbc/init_decode.h",
378 "codecs/ilbc/init_encode.c",
379 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000380 "codecs/ilbc/interpolate.c",
381 "codecs/ilbc/interpolate.h",
382 "codecs/ilbc/interpolate_samples.c",
383 "codecs/ilbc/interpolate_samples.h",
384 "codecs/ilbc/lpc_encode.c",
385 "codecs/ilbc/lpc_encode.h",
386 "codecs/ilbc/lsf_check.c",
387 "codecs/ilbc/lsf_check.h",
388 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
389 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
390 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
391 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
392 "codecs/ilbc/lsf_to_lsp.c",
393 "codecs/ilbc/lsf_to_lsp.h",
394 "codecs/ilbc/lsf_to_poly.c",
395 "codecs/ilbc/lsf_to_poly.h",
396 "codecs/ilbc/lsp_to_lsf.c",
397 "codecs/ilbc/lsp_to_lsf.h",
398 "codecs/ilbc/my_corr.c",
399 "codecs/ilbc/my_corr.h",
400 "codecs/ilbc/nearest_neighbor.c",
401 "codecs/ilbc/nearest_neighbor.h",
402 "codecs/ilbc/pack_bits.c",
403 "codecs/ilbc/pack_bits.h",
404 "codecs/ilbc/poly_to_lsf.c",
405 "codecs/ilbc/poly_to_lsf.h",
406 "codecs/ilbc/poly_to_lsp.c",
407 "codecs/ilbc/poly_to_lsp.h",
408 "codecs/ilbc/refiner.c",
409 "codecs/ilbc/refiner.h",
410 "codecs/ilbc/simple_interpolate_lsf.c",
411 "codecs/ilbc/simple_interpolate_lsf.h",
412 "codecs/ilbc/simple_lpc_analysis.c",
413 "codecs/ilbc/simple_lpc_analysis.h",
414 "codecs/ilbc/simple_lsf_dequant.c",
415 "codecs/ilbc/simple_lsf_dequant.h",
416 "codecs/ilbc/simple_lsf_quant.c",
417 "codecs/ilbc/simple_lsf_quant.h",
418 "codecs/ilbc/smooth.c",
419 "codecs/ilbc/smooth.h",
420 "codecs/ilbc/smooth_out_data.c",
421 "codecs/ilbc/smooth_out_data.h",
422 "codecs/ilbc/sort_sq.c",
423 "codecs/ilbc/sort_sq.h",
424 "codecs/ilbc/split_vq.c",
425 "codecs/ilbc/split_vq.h",
426 "codecs/ilbc/state_construct.c",
427 "codecs/ilbc/state_construct.h",
428 "codecs/ilbc/state_search.c",
429 "codecs/ilbc/state_search.h",
430 "codecs/ilbc/swap_bytes.c",
431 "codecs/ilbc/swap_bytes.h",
432 "codecs/ilbc/unpack_bits.c",
433 "codecs/ilbc/unpack_bits.h",
434 "codecs/ilbc/vq3.c",
435 "codecs/ilbc/vq3.h",
436 "codecs/ilbc/vq4.c",
437 "codecs/ilbc/vq4.h",
438 "codecs/ilbc/window32_w32.c",
439 "codecs/ilbc/window32_w32.h",
440 "codecs/ilbc/xcorr_coef.c",
441 "codecs/ilbc/xcorr_coef.h",
442 ]
443
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700444 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000445
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000446 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800447 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800448 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100449 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700450 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000451 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000452}
453
kjellanderb62dbbe2016-09-23 00:38:52 -0700454rtc_static_library("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700455 sources = [
456 "codecs/isac/audio_encoder_isac_t.h",
457 "codecs/isac/audio_encoder_isac_t_impl.h",
458 "codecs/isac/locked_bandwidth_info.cc",
459 "codecs/isac/locked_bandwidth_info.h",
460 ]
kjellander676e08f2016-12-07 08:23:27 -0800461 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800462 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700463 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700464 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -0800465 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700466}
467
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000468config("isac_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200469 include_dirs = [ "codecs/isac/main/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000470}
471
kjellanderb62dbbe2016-09-23 00:38:52 -0700472rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000473 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800474 "codecs/isac/main/include/audio_decoder_isac.h",
475 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800476 "codecs/isac/main/source/audio_decoder_isac.cc",
477 "codecs/isac/main/source/audio_encoder_isac.cc",
478 ]
479
480 deps = [
kjellander7439f972016-12-05 22:47:46 -0800481 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800482 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800483 ]
484 public_deps = [
485 ":isac_c",
486 ]
487}
488
489rtc_static_library("isac_c") {
490 visibility = [ ":*" ] # Only targets in this file can depend on this.
491 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100492 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000493 "codecs/isac/main/source/arith_routines.c",
494 "codecs/isac/main/source/arith_routines.h",
495 "codecs/isac/main/source/arith_routines_hist.c",
496 "codecs/isac/main/source/arith_routines_logist.c",
497 "codecs/isac/main/source/bandwidth_estimator.c",
498 "codecs/isac/main/source/bandwidth_estimator.h",
499 "codecs/isac/main/source/codec.h",
500 "codecs/isac/main/source/crc.c",
501 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000502 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200503 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000504 "codecs/isac/main/source/encode.c",
505 "codecs/isac/main/source/encode_lpc_swb.c",
506 "codecs/isac/main/source/encode_lpc_swb.h",
507 "codecs/isac/main/source/entropy_coding.c",
508 "codecs/isac/main/source/entropy_coding.h",
509 "codecs/isac/main/source/fft.c",
510 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200511 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000512 "codecs/isac/main/source/filterbank_tables.c",
513 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200514 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000515 "codecs/isac/main/source/intialize.c",
516 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200517 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000518 "codecs/isac/main/source/lattice.c",
519 "codecs/isac/main/source/lpc_analysis.c",
520 "codecs/isac/main/source/lpc_analysis.h",
521 "codecs/isac/main/source/lpc_gain_swb_tables.c",
522 "codecs/isac/main/source/lpc_gain_swb_tables.h",
523 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
524 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
525 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
526 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
527 "codecs/isac/main/source/lpc_tables.c",
528 "codecs/isac/main/source/lpc_tables.h",
529 "codecs/isac/main/source/os_specific_inline.h",
530 "codecs/isac/main/source/pitch_estimator.c",
531 "codecs/isac/main/source/pitch_estimator.h",
532 "codecs/isac/main/source/pitch_filter.c",
533 "codecs/isac/main/source/pitch_gain_tables.c",
534 "codecs/isac/main/source/pitch_gain_tables.h",
535 "codecs/isac/main/source/pitch_lag_tables.c",
536 "codecs/isac/main/source/pitch_lag_tables.h",
537 "codecs/isac/main/source/settings.h",
538 "codecs/isac/main/source/spectrum_ar_model_tables.c",
539 "codecs/isac/main/source/spectrum_ar_model_tables.h",
540 "codecs/isac/main/source/structs.h",
541 "codecs/isac/main/source/transform.c",
542 ]
543
544 if (is_linux) {
545 libs = [ "m" ]
546 }
547
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700548 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000549
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000550 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800551 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700552 "../..:webrtc_common",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000553 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700554 "../../rtc_base:compile_assert_c",
555 "../../rtc_base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000556 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000557}
558
559config("isac_fix_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200560 include_dirs = [ "codecs/isac/fix/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000561}
562
kjellanderb62dbbe2016-09-23 00:38:52 -0700563rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000564 sources = [
kjellander7439f972016-12-05 22:47:46 -0800565 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
566 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
567 ]
568
569 public_configs = [ ":isac_fix_config" ]
570
571 deps = [
kjellander7439f972016-12-05 22:47:46 -0800572 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800573 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800574 "../../common_audio",
575 "../../system_wrappers",
576 ]
577 public_deps = [
578 ":isac_fix_c",
579 ]
580
581 if (rtc_build_with_neon) {
582 deps += [ ":isac_neon" ]
583 }
584}
585
kwiberga6ca5182017-01-30 05:28:54 -0800586rtc_source_set("isac_fix_common") {
587 visibility = [ ":*" ] # Only targets in this file can depend on this.
588 sources = [
589 "codecs/isac/fix/source/codec.h",
590 "codecs/isac/fix/source/fft.c",
591 "codecs/isac/fix/source/fft.h",
592 "codecs/isac/fix/source/settings.h",
593 ]
594 public_configs = [ ":isac_fix_config" ]
595}
kjellander676e08f2016-12-07 08:23:27 -0800596
mbonadei5c0d7032017-07-06 03:48:55 -0700597rtc_source_set("isac_fix_c_arm_asm") {
598 sources = []
599 if (current_cpu == "arm" && arm_version >= 7) {
600 sources += [
601 "codecs/isac/fix/source/lattice_armv7.S",
602 "codecs/isac/fix/source/pitch_filter_armv6.S",
603 ]
604 }
605}
606
kwiberga6ca5182017-01-30 05:28:54 -0800607rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800608 visibility = [ ":*" ] # Only targets in this file can depend on this.
609 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100610 "codecs/isac/fix/include/audio_decoder_isacfix.h",
611 "codecs/isac/fix/include/audio_encoder_isacfix.h",
612 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000613 "codecs/isac/fix/source/arith_routines.c",
614 "codecs/isac/fix/source/arith_routines_hist.c",
615 "codecs/isac/fix/source/arith_routines_logist.c",
616 "codecs/isac/fix/source/arith_routins.h",
617 "codecs/isac/fix/source/bandwidth_estimator.c",
618 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000619 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200620 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000621 "codecs/isac/fix/source/decode_plc.c",
622 "codecs/isac/fix/source/encode.c",
623 "codecs/isac/fix/source/entropy_coding.c",
624 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000625 "codecs/isac/fix/source/filterbank_tables.c",
626 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200627 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000628 "codecs/isac/fix/source/filters.c",
629 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200630 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000631 "codecs/isac/fix/source/isacfix.c",
632 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700633 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000634 "codecs/isac/fix/source/lpc_masking_model.c",
635 "codecs/isac/fix/source/lpc_masking_model.h",
636 "codecs/isac/fix/source/lpc_tables.c",
637 "codecs/isac/fix/source/lpc_tables.h",
638 "codecs/isac/fix/source/pitch_estimator.c",
639 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700640 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000641 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700642 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000643 "codecs/isac/fix/source/pitch_gain_tables.c",
644 "codecs/isac/fix/source/pitch_gain_tables.h",
645 "codecs/isac/fix/source/pitch_lag_tables.c",
646 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000647 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
648 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
649 "codecs/isac/fix/source/structs.h",
650 "codecs/isac/fix/source/transform.c",
651 "codecs/isac/fix/source/transform_tables.c",
652 ]
653
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700654 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000655
kjellander676e08f2016-12-07 08:23:27 -0800656 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800657 ":isac_common",
658 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800659 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800660 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700661 "../../rtc_base:compile_assert_c",
662 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -0800663 "../../system_wrappers",
664 ]
665
kwiberga6ca5182017-01-30 05:28:54 -0800666 public_deps = [
667 ":isac_fix_common",
668 ]
669
mbonadeie5dc3ce2017-01-25 05:34:46 -0800670 if (rtc_build_with_neon) {
671 deps += [ ":isac_neon" ]
672 }
673
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700674 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700675 sources -= [
676 "codecs/isac/fix/source/lattice_c.c",
677 "codecs/isac/fix/source/pitch_filter_c.c",
678 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700679 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000680 }
681
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000682 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000683 sources += [
684 "codecs/isac/fix/source/entropy_coding_mips.c",
685 "codecs/isac/fix/source/filters_mips.c",
686 "codecs/isac/fix/source/lattice_mips.c",
687 "codecs/isac/fix/source/pitch_estimator_mips.c",
688 "codecs/isac/fix/source/transform_mips.c",
689 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700690 sources -= [
691 "codecs/isac/fix/source/lattice_c.c",
692 "codecs/isac/fix/source/pitch_estimator_c.c",
693 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000694 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200695 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000696 }
697 if (mips_dsp_rev > 1) {
698 sources += [
699 "codecs/isac/fix/source/lpc_masking_model_mips.c",
700 "codecs/isac/fix/source/pitch_filter_mips.c",
701 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200702 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000703 }
704 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000705}
706
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700707if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700708 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800709 sources = [
710 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800711 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800712 "codecs/isac/fix/source/filters_neon.c",
713 "codecs/isac/fix/source/lattice_neon.c",
714 "codecs/isac/fix/source/transform_neon.c",
715 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000716
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700717 if (current_cpu != "arm64") {
718 # Enable compilation for the NEON instruction set. This is needed
719 # since //build/config/arm.gni only enables NEON for iOS, not Android.
720 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700721 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700722 cflags = [ "-mfpu=neon" ]
723 }
724
725 # Disable LTO on NEON targets due to compiler bug.
726 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000727 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000728 cflags -= [
729 "-flto",
730 "-ffat-lto-objects",
731 ]
732 }
733
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200734 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800735 ":isac_fix_common",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200736 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700737 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200738 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000739 }
740}
741
742config("pcm16b_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200743 include_dirs = [ "codecs/pcm16b/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000744}
745
kjellanderb62dbbe2016-09-23 00:38:52 -0700746rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000747 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200748 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100749 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200750 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100751 "codecs/pcm16b/audio_encoder_pcm16b.h",
kwiberg7ea6e592017-08-16 06:12:57 -0700752 "codecs/pcm16b/pcm16b_common.cc",
753 "codecs/pcm16b/pcm16b_common.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000754 ]
755
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000756 deps = [
757 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800758 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800759 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800760 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700761 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000762 ]
kjellander7439f972016-12-05 22:47:46 -0800763 public_deps = [
764 ":pcm16b_c",
765 ]
766 public_configs = [ ":pcm16b_config" ]
767}
768
769rtc_source_set("pcm16b_c") {
770 visibility = [ ":*" ] # Only targets in this file can depend on this.
771 sources = [
772 "codecs/pcm16b/pcm16b.c",
773 "codecs/pcm16b/pcm16b.h",
774 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000775
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700776 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800777 deps = [
778 "../..:webrtc_common",
779 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000780}
781
kjellanderb62dbbe2016-09-23 00:38:52 -0700782rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000783 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200784 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100785 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000786 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100787 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000788 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000789
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200790 deps = [
minyue41b9c802016-10-06 07:13:54 -0700791 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800792 "../..:webrtc_common",
kwiberg84f6a3f2017-09-05 08:43:13 -0700793 "../../api:optional",
kwiberg087bd342017-02-10 08:15:44 -0800794 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700795 "../../api/audio_codecs/opus:audio_encoder_opus_config",
michaelt566d8202017-01-12 10:17:38 -0800796 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700797 "../../rtc_base:rtc_base_approved",
798 "../../rtc_base:rtc_numerics",
kjellander676e08f2016-12-07 08:23:27 -0800799 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200800 ]
kjellander7439f972016-12-05 22:47:46 -0800801 public_deps = [
802 ":webrtc_opus_c",
kwiberge5eb7242017-08-25 03:10:50 -0700803 "../../rtc_base:protobuf_utils",
kjellander7439f972016-12-05 22:47:46 -0800804 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000805
michaelta55f0212017-02-02 07:47:19 -0800806 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800807
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000808 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800809 public_deps += [ rtc_opus_dir ]
810 } else if (build_with_mozilla) {
811 include_dirs = [ getenv("DIST") + "/include/opus" ]
812 }
813}
814
815rtc_source_set("webrtc_opus_c") {
816 visibility = [ ":*" ] # Only targets in this file can depend on this.
817 sources = [
818 "codecs/opus/opus_inst.h",
819 "codecs/opus/opus_interface.c",
820 "codecs/opus/opus_interface.h",
821 ]
822
minyue2e03c662017-02-01 17:31:11 -0800823 defines = audio_coding_defines
824
kjellander7439f972016-12-05 22:47:46 -0800825 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700826 public_deps = [
827 rtc_opus_dir,
828 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000829 } else if (build_with_mozilla) {
830 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000831 }
kjellander7439f972016-12-05 22:47:46 -0800832
833 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800834 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700835 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800836 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000837}
838
minyue25f6a392016-09-22 22:23:20 -0700839if (rtc_enable_protobuf) {
840 proto_library("ana_debug_dump_proto") {
841 sources = [
842 "audio_network_adaptor/debug_dump.proto",
843 ]
jbudorick58f17252017-07-26 14:49:20 -0700844 deps = [
845 ":ana_config_proto",
846 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200847 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700848 }
minyuea1d9ad02016-10-02 14:53:37 -0700849 proto_library("ana_config_proto") {
850 sources = [
851 "audio_network_adaptor/config.proto",
852 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200853 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyuea1d9ad02016-10-02 14:53:37 -0700854 }
minyue25f6a392016-09-22 22:23:20 -0700855}
856
eladalon1e7dd312017-09-12 04:38:25 -0700857rtc_static_library("audio_network_adaptor_config") {
858 sources = [
859 "audio_network_adaptor/audio_network_adaptor_config.cc",
860 "audio_network_adaptor/include/audio_network_adaptor_config.h",
861 ]
862 deps = [
863 "../../api:optional",
864 ]
865}
866
minyue0d382ef2016-10-07 07:59:28 -0700867rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700868 sources = [
minyuecaa9cb22016-09-13 13:34:15 -0700869 "audio_network_adaptor/audio_network_adaptor_impl.cc",
870 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700871 "audio_network_adaptor/bitrate_controller.cc",
872 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700873 "audio_network_adaptor/channel_controller.cc",
874 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700875 "audio_network_adaptor/controller.cc",
876 "audio_network_adaptor/controller.h",
877 "audio_network_adaptor/controller_manager.cc",
878 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700879 "audio_network_adaptor/debug_dump_writer.cc",
880 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700881 "audio_network_adaptor/dtx_controller.cc",
882 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800883 "audio_network_adaptor/event_log_writer.cc",
884 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700885 "audio_network_adaptor/fec_controller_plr_based.cc",
886 "audio_network_adaptor/fec_controller_plr_based.h",
887 "audio_network_adaptor/fec_controller_rplr_based.cc",
888 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700889 "audio_network_adaptor/frame_length_controller.cc",
890 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700891 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700892 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700893 ]
minyue25f6a392016-09-22 22:23:20 -0700894
eladalon1e7dd312017-09-12 04:38:25 -0700895 public_deps = [
896 ":audio_network_adaptor_config",
897 ]
898
minyue41b9c802016-10-06 07:13:54 -0700899 deps = [
900 "../..:webrtc_common",
kwiberg84f6a3f2017-09-05 08:43:13 -0700901 "../../api:optional",
ivoce1198e02017-09-08 08:13:19 -0700902 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800903 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800904 "../../logging:rtc_event_log_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700905 "../../rtc_base:protobuf_utils",
906 "../../rtc_base:rtc_base_approved",
minyue41b9c802016-10-06 07:13:54 -0700907 "../../system_wrappers",
908 ]
909
minyue25f6a392016-09-22 22:23:20 -0700910 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700911 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700912 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700913 ":ana_debug_dump_proto",
914 ]
minyue25f6a392016-09-22 22:23:20 -0700915 }
minyue4b7c9522017-01-24 04:54:59 -0800916
917 if (!build_with_chromium && is_clang) {
918 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
919 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
920 }
minyue7610f852016-09-07 13:51:51 -0700921}
922
kwiberg65cb70d2017-03-03 06:16:28 -0800923rtc_source_set("neteq_decoder_enum") {
924 sources = [
925 "neteq/neteq_decoder_enum.cc",
926 "neteq/neteq_decoder_enum.h",
927 ]
928 deps = [
kwiberg84f6a3f2017-09-05 08:43:13 -0700929 "../../api:optional",
kwiberg65cb70d2017-03-03 06:16:28 -0800930 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700931 "../../rtc_base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -0800932 ]
933}
kjellander676e08f2016-12-07 08:23:27 -0800934
kwiberg65cb70d2017-03-03 06:16:28 -0800935rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000936 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000937 "neteq/accelerate.cc",
938 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000939 "neteq/audio_multi_vector.cc",
940 "neteq/audio_multi_vector.h",
941 "neteq/audio_vector.cc",
942 "neteq/audio_vector.h",
943 "neteq/background_noise.cc",
944 "neteq/background_noise.h",
945 "neteq/buffer_level_filter.cc",
946 "neteq/buffer_level_filter.h",
947 "neteq/comfort_noise.cc",
948 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700949 "neteq/cross_correlation.cc",
950 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000951 "neteq/decision_logic.cc",
952 "neteq/decision_logic.h",
953 "neteq/decision_logic_fax.cc",
954 "neteq/decision_logic_fax.h",
955 "neteq/decision_logic_normal.cc",
956 "neteq/decision_logic_normal.h",
957 "neteq/decoder_database.cc",
958 "neteq/decoder_database.h",
959 "neteq/defines.h",
960 "neteq/delay_manager.cc",
961 "neteq/delay_manager.h",
962 "neteq/delay_peak_detector.cc",
963 "neteq/delay_peak_detector.h",
964 "neteq/dsp_helper.cc",
965 "neteq/dsp_helper.h",
966 "neteq/dtmf_buffer.cc",
967 "neteq/dtmf_buffer.h",
968 "neteq/dtmf_tone_generator.cc",
969 "neteq/dtmf_tone_generator.h",
970 "neteq/expand.cc",
971 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100972 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000973 "neteq/merge.cc",
974 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700975 "neteq/nack_tracker.cc",
976 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200977 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000978 "neteq/neteq_impl.cc",
979 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000980 "neteq/normal.cc",
981 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -0700982 "neteq/packet.cc",
983 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000984 "neteq/packet_buffer.cc",
985 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000986 "neteq/post_decode_vad.cc",
987 "neteq/post_decode_vad.h",
988 "neteq/preemptive_expand.cc",
989 "neteq/preemptive_expand.h",
990 "neteq/random_vector.cc",
991 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -0700992 "neteq/red_payload_splitter.cc",
993 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000994 "neteq/rtcp.cc",
995 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200996 "neteq/statistics_calculator.cc",
997 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000998 "neteq/sync_buffer.cc",
999 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001000 "neteq/tick_timer.cc",
1001 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001002 "neteq/time_stretch.cc",
1003 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001004 "neteq/timestamp_scaler.cc",
1005 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001006 ]
1007
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001008 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001009 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001010 ":cng",
kwiberg65cb70d2017-03-03 06:16:28 -08001011 ":neteq_decoder_enum",
mbonadei1140f972017-04-26 03:38:35 -07001012 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001013 "../..:webrtc_common",
kwiberg84f6a3f2017-09-05 08:43:13 -07001014 "../../api:optional",
kwiberg087bd342017-02-10 08:15:44 -08001015 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001016 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001017 "../../rtc_base:gtest_prod",
1018 "../../rtc_base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001019 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001020 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001021}
kjellanderfb114242016-06-13 00:19:48 -07001022
henrik.lundin58466f62016-10-05 02:27:42 -07001023# Although providing only test support, this target must be outside of the
1024# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1025# that ultimately are built and run as a part of the Chromium ecosystem, which
1026# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001027rtc_source_set("neteq_tools_minimal") {
henrik.lundin58466f62016-10-05 02:27:42 -07001028 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001029 "neteq/tools/audio_sink.cc",
1030 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001031 "neteq/tools/encode_neteq_input.cc",
1032 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001033 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001034 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001035 "neteq/tools/neteq_test.cc",
1036 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001037 "neteq/tools/packet.cc",
1038 "neteq/tools/packet.h",
1039 "neteq/tools/packet_source.cc",
1040 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001041 ]
1042
kjellandere40a7ee2016-10-16 23:56:12 -07001043 if (!build_with_chromium && is_clang) {
1044 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001045 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1046 }
kjellander676e08f2016-12-07 08:23:27 -08001047
1048 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001049 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001050 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001051 "../..:webrtc_common",
kwiberg84f6a3f2017-09-05 08:43:13 -07001052 "../../api:optional",
ossueb1fde42017-05-02 06:46:30 -07001053 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001054 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001055 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001056 "../rtp_rtcp",
kjellander676e08f2016-12-07 08:23:27 -08001057 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001058}
1059
mbonadei3edccb92017-06-01 04:47:20 -07001060rtc_source_set("neteq_test_tools") {
1061 testonly = true
1062 sources = [
1063 "neteq/tools/audio_checksum.h",
1064 "neteq/tools/audio_loop.cc",
1065 "neteq/tools/audio_loop.h",
1066 "neteq/tools/constant_pcm_packet_source.cc",
1067 "neteq/tools/constant_pcm_packet_source.h",
1068 "neteq/tools/output_audio_file.h",
1069 "neteq/tools/output_wav_file.h",
1070 "neteq/tools/rtp_file_source.cc",
1071 "neteq/tools/rtp_file_source.h",
1072 "neteq/tools/rtp_generator.cc",
1073 "neteq/tools/rtp_generator.h",
1074 ]
1075
1076 public_configs = [ ":neteq_tools_config" ]
1077
1078 if (!build_with_chromium && is_clang) {
1079 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1080 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1081 }
1082
1083 deps = [
1084 ":pcm16b",
1085 "..:module_api",
1086 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001087 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001088 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001089 "../../rtc_base:rtc_base_approved",
1090 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001091 "../../test:rtp_test_utils",
1092 "../rtp_rtcp",
1093 ]
1094
1095 public_deps = [
1096 ":neteq_tools",
1097 ":neteq_tools_minimal",
1098 ]
1099
1100 if (rtc_enable_protobuf) {
1101 sources += [
1102 "neteq/tools/neteq_packet_source_input.cc",
1103 "neteq/tools/neteq_packet_source_input.h",
1104 ]
1105 deps += [ ":rtc_event_log_source" ]
1106 }
1107}
1108
1109config("neteq_tools_config") {
1110 include_dirs = [ "tools" ]
1111}
1112
1113rtc_source_set("neteq_tools") {
1114 sources = [
1115 "neteq/tools/fake_decode_from_file.cc",
1116 "neteq/tools/fake_decode_from_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001117 "neteq/tools/neteq_delay_analyzer.cc",
1118 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001119 "neteq/tools/neteq_replacement_input.cc",
1120 "neteq/tools/neteq_replacement_input.h",
mbonadei3edccb92017-06-01 04:47:20 -07001121 ]
1122
1123 public_configs = [ ":neteq_tools_config" ]
1124
1125 if (!build_with_chromium && is_clang) {
1126 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1127 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1128 }
1129
1130 deps = [
1131 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001132 "../../api:array_view",
kwiberg84f6a3f2017-09-05 08:43:13 -07001133 "../../api:optional",
mbonadei3edccb92017-06-01 04:47:20 -07001134 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001135 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001136 "../rtp_rtcp",
1137 ]
1138
1139 public_deps = [
Ivo Creusen385b10b2017-10-13 12:37:27 +02001140 ":neteq_input_audio_tools",
mbonadei3edccb92017-06-01 04:47:20 -07001141 ":neteq_tools_minimal",
1142 ]
1143}
1144
Ivo Creusen385b10b2017-10-13 12:37:27 +02001145rtc_source_set("neteq_input_audio_tools") {
1146 sources = [
1147 "neteq/tools/input_audio_file.cc",
1148 "neteq/tools/input_audio_file.h",
1149 "neteq/tools/resample_input_audio_file.cc",
1150 "neteq/tools/resample_input_audio_file.h",
1151 ]
1152
1153 deps = [
1154 "../..:webrtc_common",
1155 "../../common_audio",
1156 "../../rtc_base:rtc_base_approved",
1157 ]
1158}
1159
mbonadei3edccb92017-06-01 04:47:20 -07001160if (rtc_enable_protobuf) {
1161 rtc_static_library("rtc_event_log_source") {
1162 testonly = true
1163
1164 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1165 # Needs call.h to be moved to webrtc/api first.
1166 check_includes = false
1167
1168 sources = [
1169 "neteq/tools/rtc_event_log_source.cc",
1170 "neteq/tools/rtc_event_log_source.h",
1171 ]
1172
1173 if (!build_with_chromium && is_clang) {
1174 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1175 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1176 }
1177
1178 deps = [
mbonadei3edccb92017-06-01 04:47:20 -07001179 "../../logging:rtc_event_log_parser",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001180 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001181 ]
1182 public_deps = [
1183 "../../logging:rtc_event_log_proto",
1184 ]
1185 }
1186}
1187
kjellanderfb114242016-06-13 00:19:48 -07001188if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001189 group("audio_coding_tests") {
1190 testonly = true
1191 public_deps = [
1192 ":RTPchange",
1193 ":RTPencode",
1194 ":RTPjitter",
1195 ":RTPtimeshift",
1196 ":acm_receive_test",
1197 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001198 ":audio_codec_speed_tests",
1199 ":audio_decoder_unittests",
1200 ":audio_decoder_unittests",
1201 ":delay_test",
1202 ":g711_test",
1203 ":g722_test",
1204 ":ilbc_test",
1205 ":insert_packet_with_timing",
1206 ":isac_api_test",
1207 ":isac_fix_test",
1208 ":isac_switch_samprate_test",
1209 ":isac_test",
1210 ":neteq_ilbc_quality_test",
1211 ":neteq_isac_quality_test",
1212 ":neteq_opus_quality_test",
1213 ":neteq_pcmu_quality_test",
1214 ":neteq_speed_test",
1215 ":rtp_analyze",
1216 ":rtpcat",
1217 ":webrtc_opus_fec_test",
1218 ]
1219 if (rtc_enable_protobuf) {
1220 public_deps += [ ":neteq_rtpplay" ]
1221 }
1222 }
1223
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001224 rtc_source_set("audio_coding_modules_tests") {
1225 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001226
1227 # Skip restricting visibility on mobile platforms since the tests on those
1228 # gets additional generated targets which would require many lines here to
1229 # cover (which would be confusing to read and hard to maintain).
1230 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -07001231 visibility = [ "..:modules_tests" ]
kjellandere0629c02017-04-25 04:04:50 -07001232 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001233 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001234 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001235 "test/APITest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001236 "test/APITest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001237 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001238 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001239 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001240 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001241 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001242 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001243 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001244 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001245 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001246 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001247 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001248 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001249 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001250 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001251 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001252 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001253 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001254 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001255 "test/Tester.cc",
1256 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001257 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001258 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001259 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001260 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001261 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001262 "test/target_delay_unittest.cc",
1263 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001264 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001265 ]
1266 deps = [
1267 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001268 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001269 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001270 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001271 "..:module_api",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001272 "../..:webrtc_common",
kwiberg84f6a3f2017-09-05 08:43:13 -07001273 "../../api:optional",
kwiberg087bd342017-02-10 08:15:44 -08001274 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001275 "../../rtc_base:rtc_base_approved",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001276 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001277 "../../test:test_support",
1278 ]
1279 defines = audio_coding_defines
1280 if (is_win) {
1281 cflags = [
1282 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1283 "/wd4373", # virtual function override.
1284 ]
1285 }
1286 if (!build_with_chromium && is_clang) {
1287 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1288 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1289 }
1290 }
1291
ehmaldonado021eef32017-01-05 07:09:50 -08001292 rtc_source_set("audio_coding_perf_tests") {
1293 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001294
1295 # Skip restricting visibility on mobile platforms since the tests on those
1296 # gets additional generated targets which would require many lines here to
1297 # cover (which would be confusing to read and hard to maintain).
1298 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -07001299 visibility = [ "../..:webrtc_perf_tests" ]
kjellandere0629c02017-04-25 04:04:50 -07001300 }
ehmaldonado021eef32017-01-05 07:09:50 -08001301 sources = [
1302 "codecs/opus/opus_complexity_unittest.cc",
1303 "neteq/test/neteq_performance_unittest.cc",
1304 ]
1305 deps = [
1306 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001307 ":neteq_test_tools",
ehmaldonado021eef32017-01-05 07:09:50 -08001308 "../..:webrtc_common",
Karl Wiberg7275e182017-10-25 09:57:40 +02001309 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001310 "../../rtc_base:protobuf_utils",
1311 "../../rtc_base:rtc_base_approved",
ehmaldonado021eef32017-01-05 07:09:50 -08001312 "../../system_wrappers:system_wrappers",
1313 "../../test:test_support",
1314 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001315
ehmaldonado021eef32017-01-05 07:09:50 -08001316 if (!build_with_chromium && is_clang) {
1317 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1318 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1319 }
1320 }
1321
ehmaldonado38a21322016-09-02 04:10:34 -07001322 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001323 testonly = true
1324 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001325 "acm2/acm_receive_test.cc",
1326 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001327 ]
1328
kjellanderfb114242016-06-13 00:19:48 -07001329 defines = audio_coding_defines
1330
1331 deps = audio_coding_deps + [
1332 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001333 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001334 "../../api/audio_codecs:audio_codecs_api",
1335 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001336 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001337 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001338 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001339 "//testing/gtest",
1340 ]
1341 }
1342
ehmaldonado38a21322016-09-02 04:10:34 -07001343 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001344 testonly = true
1345 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001346 "acm2/acm_send_test.cc",
1347 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001348 ]
1349
kjellanderfb114242016-06-13 00:19:48 -07001350 defines = audio_coding_defines
1351
1352 deps = audio_coding_deps + [
1353 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001354 ":neteq_tools",
ossueb1fde42017-05-02 06:46:30 -07001355 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001356 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001357 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001358 "//testing/gtest",
1359 ]
1360 }
1361
ehmaldonado38a21322016-09-02 04:10:34 -07001362 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001363 testonly = true
1364 sources = [
1365 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001366 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001367 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001368 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001369 "test/delay_test.cc",
1370 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001371 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001372 ]
1373
aleloi333f2062016-07-28 01:21:29 -07001374 deps = [
1375 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001376 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001377 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001378 "..:module_api",
aleloi333f2062016-07-28 01:21:29 -07001379 "../../:webrtc_common",
kwiberg84f6a3f2017-09-05 08:43:13 -07001380 "../../api:optional",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001381 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001382 "../../system_wrappers",
1383 "../../system_wrappers:system_wrappers_default",
1384 "../../test:test_support",
1385 "../rtp_rtcp",
1386 "//testing/gtest",
aleloi333f2062016-07-28 01:21:29 -07001387 ]
1388 } # delay_test
1389
ehmaldonado38a21322016-09-02 04:10:34 -07001390 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001391 testonly = true
1392 sources = [
1393 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001394 "test/Channel.h",
aleloi00730c72016-07-28 01:27:10 -07001395 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001396 "test/PCMFile.h",
aleloi00730c72016-07-28 01:27:10 -07001397 "test/insert_packet_with_timing.cc",
1398 ]
1399
kjellandere40a7ee2016-10-16 23:56:12 -07001400 if (!build_with_chromium && is_clang) {
1401 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001402 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001403 }
1404
1405 deps = [
1406 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001407 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001408 "..:module_api",
aleloi00730c72016-07-28 01:27:10 -07001409 "../../:webrtc_common",
kwiberg84f6a3f2017-09-05 08:43:13 -07001410 "../../api:optional",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001411 "../../rtc_base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001412 "../../system_wrappers",
1413 "../../system_wrappers:system_wrappers_default",
1414 "../../test:test_support",
1415 "../rtp_rtcp",
1416 "//testing/gtest",
aleloi00730c72016-07-28 01:27:10 -07001417 ]
1418 } # insert_packet_with_timing
1419
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001420 audio_decoder_unittests_resources =
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001421 [ "../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001422
1423 if (is_ios) {
1424 bundle_data("audio_decoder_unittests_bundle_data") {
1425 testonly = true
1426 sources = audio_decoder_unittests_resources
1427 outputs = [
1428 "{{bundle_resources_dir}}/{{source_file_part}}",
1429 ]
1430 }
1431 }
1432
ehmaldonado38a21322016-09-02 04:10:34 -07001433 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001434 testonly = true
1435 sources = [
1436 "neteq/audio_decoder_unittest.cc",
1437 ]
1438
kjellandere40a7ee2016-10-16 23:56:12 -07001439 if (!build_with_chromium && is_clang) {
1440 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001441 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001442 }
1443
1444 deps = []
1445
1446 defines = neteq_defines
1447
1448 deps += audio_coding_deps
1449 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001450 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001451 ":isac",
1452 ":isac_fix",
1453 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001454 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001455 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001456 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001457 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001458 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001459 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001460 "//testing/gtest",
1461 ]
1462
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001463 data = audio_decoder_unittests_resources
1464
charujainddf3e4a2016-08-01 07:49:42 -07001465 if (is_android) {
1466 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001467 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001468 }
kjellander32c4a202016-08-30 02:53:49 -07001469 if (is_ios) {
1470 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001471 }
1472 } # audio_decoder_unittests
1473
kjellanderfb114242016-06-13 00:19:48 -07001474 if (rtc_enable_protobuf) {
1475 proto_library("neteq_unittest_proto") {
1476 sources = [
1477 "neteq/neteq_unittest.proto",
1478 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001479 proto_out_dir = "modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001480 }
henrik.lundin03153f12016-06-21 05:38:42 -07001481
ehmaldonado38a21322016-09-02 04:10:34 -07001482 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001483 testonly = true
1484 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001485 deps = [
1486 "..:module_api",
1487 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001488 sources = [
1489 "neteq/tools/neteq_rtpplay.cc",
1490 ]
1491
kjellandere40a7ee2016-10-16 23:56:12 -07001492 if (!build_with_chromium && is_clang) {
1493 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001494 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001495 }
1496
1497 if (is_win) {
1498 cflags = [
1499 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1500 "/wd4373", # virtual function override.
1501 ]
1502 }
1503
1504 deps += [
1505 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001506 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001507 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001508 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001509 "../../system_wrappers:system_wrappers_default",
1510 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001511 ]
1512 }
kjellanderfb114242016-06-13 00:19:48 -07001513 }
1514
minyue81f1da32017-07-27 05:49:57 -07001515 audio_codec_speed_tests_resources = [
1516 "//resources/audio_coding/music_stereo_48kHz.pcm",
1517 "//resources/audio_coding/speech_mono_16kHz.pcm",
1518 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1519 ]
1520
1521 if (is_ios) {
1522 bundle_data("audio_codec_speed_tests_data") {
1523 testonly = true
1524 sources = audio_codec_speed_tests_resources
1525 outputs = [
1526 "{{bundle_resources_dir}}/{{source_file_part}}",
1527 ]
1528 }
1529 }
1530
ehmaldonado38a21322016-09-02 04:10:34 -07001531 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001532 testonly = true
1533 defines = []
1534 deps = []
1535 sources = [
1536 "codecs/isac/fix/test/isac_speed_test.cc",
1537 "codecs/opus/opus_speed_test.cc",
1538 "codecs/tools/audio_codec_speed_test.cc",
1539 "codecs/tools/audio_codec_speed_test.h",
1540 ]
1541
kjellandere40a7ee2016-10-16 23:56:12 -07001542 if (!build_with_chromium && is_clang) {
1543 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001544 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001545 }
1546
minyue81f1da32017-07-27 05:49:57 -07001547 data = audio_codec_speed_tests_resources
1548
aleloie6b60a42016-07-28 02:34:30 -07001549 if (is_android) {
1550 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001551 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001552 }
1553
minyue81f1da32017-07-27 05:49:57 -07001554 if (is_ios) {
1555 deps += [ ":audio_codec_speed_tests_data" ]
1556 }
1557
aleloie6b60a42016-07-28 02:34:30 -07001558 deps += [
1559 ":isac_fix",
1560 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001561 "../..:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001562 "../../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001563 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001564 "../../system_wrappers:metrics_default",
aleloie6b60a42016-07-28 02:34:30 -07001565 "../../system_wrappers:system_wrappers_default",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001566 "../../test:field_trial",
ehmaldonado26bddb92016-11-30 06:12:01 -08001567 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001568 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001569 "//testing/gtest",
1570 ]
1571 }
1572
ehmaldonado38a21322016-09-02 04:10:34 -07001573 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001574 testonly = true
1575 sources = [
1576 "neteq/tools/neteq_external_decoder_test.cc",
1577 "neteq/tools/neteq_external_decoder_test.h",
1578 "neteq/tools/neteq_performance_test.cc",
1579 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001580 ]
1581
kjellandere40a7ee2016-10-16 23:56:12 -07001582 if (!build_with_chromium && is_clang) {
1583 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001584 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001585 }
1586
1587 deps = [
1588 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001589 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001590 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001591 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001592 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001593 "../../api/audio_codecs:audio_codecs_api",
1594 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001595 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001596 "../../system_wrappers",
1597 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001598 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001599 ]
1600 }
1601
ehmaldonado38a21322016-09-02 04:10:34 -07001602 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001603 testonly = true
1604 sources = [
1605 "neteq/tools/neteq_quality_test.cc",
1606 "neteq/tools/neteq_quality_test.h",
1607 ]
1608
kjellandere40a7ee2016-10-16 23:56:12 -07001609 if (!build_with_chromium && is_clang) {
1610 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001611 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001612 }
1613
1614 deps = [
1615 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001616 ":neteq_test_tools",
mbonadei1140f972017-04-26 03:38:35 -07001617 "..:module_api",
kjellander676e08f2016-12-07 08:23:27 -08001618 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001619 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001620 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001621 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001622 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001623 ]
1624 }
1625
henrik.lundinb637a942017-04-28 00:59:45 -07001626 rtc_source_set("neteq_test_tools_deprecated") {
aleloi3022a342016-07-26 06:36:03 -07001627 testonly = true
1628 sources = [
1629 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1630 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1631 "neteq/test/NETEQTEST_RTPpacket.cc",
1632 "neteq/test/NETEQTEST_RTPpacket.h",
1633 ]
1634
1635 deps = [
1636 ":cng",
1637 ":g711",
1638 ":g722",
1639 ":ilbc",
1640 ":isac",
1641 ":pcm16b",
mbonadei1140f972017-04-26 03:38:35 -07001642 "..:module_api",
aleloi3022a342016-07-26 06:36:03 -07001643 "../..:webrtc_common",
1644 "//testing/gtest",
1645 ]
1646
1647 include_dirs = [
1648 "neteq/include",
1649 "neteq/test",
aleloi3022a342016-07-26 06:36:03 -07001650 ]
1651
1652 if (is_win) {
1653 cflags = [
1654 # Disable warnings to enable Win64 build, issue 1323.
1655 "/wd4267", # size_t to int truncation
1656 ]
1657 }
1658 }
aleloi47bded42016-07-26 06:46:19 -07001659
aleloi82667732016-08-02 01:45:50 -07001660 config("RTPencode_config") {
1661 defines = [
1662 "CODEC_ILBC",
1663 "CODEC_PCM16B",
1664 "CODEC_G711",
1665 "CODEC_G722",
1666 "CODEC_ISAC",
1667 "CODEC_PCM16B_WB",
1668 "CODEC_ISAC_SWB",
1669 "CODEC_PCM16B_32KHZ",
1670 "CODEC_PCM16B_48KHZ",
1671 "CODEC_CNGCODEC8",
1672 "CODEC_CNGCODEC16",
1673 "CODEC_CNGCODEC32",
1674 "CODEC_ATEVENT_DECODE",
1675 "CODEC_RED",
1676 "CODEC_OPUS",
1677 ]
1678 }
1679
ehmaldonado38a21322016-09-02 04:10:34 -07001680 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001681 testonly = true
1682
1683 deps = [
1684 # TODO(hlundin): Make RTPencode use ACM to encode files.
1685 ":cng",
1686 ":g711",
1687 ":g722",
1688 ":ilbc",
1689 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001690 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001691 ":neteq_test_tools_deprecated",
aleloi82667732016-08-02 01:45:50 -07001692 ":pcm16b",
1693 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001694 "../..:webrtc_common",
aleloi82667732016-08-02 01:45:50 -07001695 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001696 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001697 "../../system_wrappers:metrics_default",
1698 "../../test:field_trial",
aleloi82667732016-08-02 01:45:50 -07001699 ]
1700
1701 configs += [ ":RTPencode_config" ]
1702
1703 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001704 "neteq/test/PayloadTypes.h",
aleloi82667732016-08-02 01:45:50 -07001705 "neteq/test/RTPencode.cc",
1706 ]
1707
1708 include_dirs = [
1709 "neteq/include",
1710 "neteq/test",
1711 ]
1712
1713 if (is_win) {
1714 cflags = [
1715 # Disable warnings to enable Win64 build, issue 1323.
1716 "/wd4267", # size_t to int truncation
1717 ]
1718 }
1719 }
1720
ehmaldonado38a21322016-09-02 04:10:34 -07001721 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001722 testonly = true
1723
1724 sources = [
1725 "neteq/test/RTPchange.cc",
1726 ]
1727
1728 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001729 ":neteq_test_tools_deprecated",
aleloi76cbe192016-08-02 02:05:03 -07001730 ]
1731 }
1732
ehmaldonado38a21322016-09-02 04:10:34 -07001733 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001734 testonly = true
1735
1736 sources = [
1737 "neteq/tools/rtpcat.cc",
1738 ]
1739
1740 deps = [
ehmaldonadof6a861a2017-07-19 10:40:47 -07001741 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001742 "../../system_wrappers:system_wrappers_default",
1743 "../../test:rtp_test_utils",
1744 "//testing/gtest",
1745 ]
1746 }
1747
ehmaldonado38a21322016-09-02 04:10:34 -07001748 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001749 testonly = true
1750
1751 sources = [
1752 "neteq/test/RTPtimeshift.cc",
1753 ]
1754
1755 deps = [
henrik.lundinb637a942017-04-28 00:59:45 -07001756 ":neteq_test_tools_deprecated",
kjellander676e08f2016-12-07 08:23:27 -08001757 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001758 "//testing/gtest",
1759 ]
1760 }
1761
ehmaldonado38a21322016-09-02 04:10:34 -07001762 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001763 testonly = true
1764 deps = [
1765 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001766 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001767 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001768 "//testing/gtest",
1769 ]
1770 sources = [
1771 "neteq/test/RTPjitter.cc",
1772 ]
1773 }
1774
ehmaldonado38a21322016-09-02 04:10:34 -07001775 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001776 testonly = true
1777
1778 sources = [
1779 "neteq/tools/rtp_analyze.cc",
1780 ]
1781
1782 deps = [
1783 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001784 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001785 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001786 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001787 "../../system_wrappers:system_wrappers_default",
1788 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001789 ]
1790
kjellandere40a7ee2016-10-16 23:56:12 -07001791 if (!build_with_chromium && is_clang) {
1792 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001793 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001794 }
1795 }
aleloi630c6d52016-08-10 02:11:30 -07001796
ehmaldonado38a21322016-09-02 04:10:34 -07001797 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001798 testonly = true
1799
1800 sources = [
1801 "neteq/test/neteq_opus_quality_test.cc",
1802 ]
1803
1804 deps = [
1805 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001806 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001807 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001808 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001809 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001810 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001811 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001812 ]
aleloi630c6d52016-08-10 02:11:30 -07001813 }
aleloi116fd612016-08-10 04:16:36 -07001814
ehmaldonado38a21322016-09-02 04:10:34 -07001815 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001816 testonly = true
1817
1818 sources = [
1819 "neteq/test/neteq_speed_test.cc",
1820 ]
1821
1822 deps = [
1823 ":neteq",
1824 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001825 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001826 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001827 "../../system_wrappers:system_wrappers_default",
1828 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001829 ]
1830 }
aleloi63910122016-08-10 04:41:14 -07001831
ehmaldonado38a21322016-09-02 04:10:34 -07001832 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001833 testonly = true
1834
1835 sources = [
1836 "neteq/test/neteq_ilbc_quality_test.cc",
1837 ]
1838
1839 deps = [
1840 ":ilbc",
1841 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001842 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001843 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001844 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001845 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001846 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001847 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001848 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001849 ]
1850 }
aleloi6df36dc2016-08-10 05:04:47 -07001851
ehmaldonado38a21322016-09-02 04:10:34 -07001852 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001853 testonly = true
1854
1855 sources = [
1856 "neteq/test/neteq_isac_quality_test.cc",
1857 ]
1858
1859 deps = [
1860 ":isac_fix",
1861 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001862 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001863 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001864 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001865 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001866 ]
1867 }
aleloic4ac7002016-08-10 05:06:27 -07001868
ehmaldonado38a21322016-09-02 04:10:34 -07001869 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001870 testonly = true
1871
1872 sources = [
1873 "neteq/test/neteq_pcmu_quality_test.cc",
1874 ]
1875
1876 deps = [
1877 ":g711",
1878 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001879 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001880 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001881 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001882 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001883 ]
1884 }
aleloib7186d02016-08-16 01:47:16 -07001885
ehmaldonado38a21322016-09-02 04:10:34 -07001886 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001887 testonly = true
1888
1889 sources = [
1890 "codecs/isac/fix/test/kenny.cc",
1891 ]
1892
1893 deps = [
1894 ":isac_fix",
1895 "../../test:test_support",
1896 ]
1897
ehmaldonado25586ce2017-09-07 23:18:35 -07001898 data = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001899 "../../resources/speech_and_misc_wb.pcm",
ehmaldonado25586ce2017-09-07 23:18:35 -07001900 ]
1901
aleloib7186d02016-08-16 01:47:16 -07001902 if (is_win) {
1903 cflags = [
1904 # Disable warnings to enable Win64 build, issue 1323.
1905 "/wd4267", # size_t to int truncation
1906 ]
1907 }
1908 }
aleloi16f55a12016-08-23 08:08:23 -07001909
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001910 config("isac_test_warnings_config") {
1911 if (is_win && is_clang) {
1912 cflags = [
1913 # Disable warnings failing when compiling with Clang on Windows.
1914 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1915 "-Wno-format",
1916 ]
1917 }
1918 }
1919
kjellander7439f972016-12-05 22:47:46 -08001920 rtc_source_set("isac_test_util") {
1921 testonly = true
1922 sources = [
1923 "codecs/isac/main/util/utility.c",
1924 ]
1925 }
1926
ehmaldonado38a21322016-09-02 04:10:34 -07001927 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001928 testonly = true
1929
1930 sources = [
1931 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001932 ]
1933
1934 include_dirs = [
1935 "codecs/isac/main/include",
1936 "codecs/isac/main/test",
1937 "codecs/isac/main/util",
1938 ]
1939
1940 deps = [
1941 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001942 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001943 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001944 ]
1945
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001946 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001947 }
1948
ehmaldonado38a21322016-09-02 04:10:34 -07001949 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001950 testonly = true
1951
1952 sources = [
1953 "codecs/g711/test/testG711.cc",
1954 ]
1955
aleloi16f55a12016-08-23 08:08:23 -07001956 deps = [
1957 ":g711",
1958 ]
1959 }
aleloi9a117842016-08-23 08:36:10 -07001960
ehmaldonado38a21322016-09-02 04:10:34 -07001961 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001962 testonly = true
1963
1964 sources = [
1965 "codecs/g722/test/testG722.cc",
1966 ]
1967
aleloi9a117842016-08-23 08:36:10 -07001968 deps = [
1969 ":g722",
1970 "../..:webrtc_common",
1971 ]
1972 }
ivoc2c670db2016-08-24 06:11:18 -07001973
ehmaldonado38a21322016-09-02 04:10:34 -07001974 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001975 testonly = true
1976
1977 sources = [
1978 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001979 ]
1980
aleloicfee2152016-08-29 04:09:19 -07001981 deps = [
1982 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001983 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001984 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001985 ]
1986
1987 include_dirs = [
1988 "codecs/isac/main/include",
1989 "codecs/isac/main/test",
1990 "codecs/isac/main/util",
1991 ]
1992 }
1993
ehmaldonado38a21322016-09-02 04:10:34 -07001994 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001995 testonly = true
1996
1997 sources = [
1998 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07001999 ]
2000
aleloicfee2152016-08-29 04:09:19 -07002001 deps = [
2002 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002003 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07002004 ]
2005
2006 include_dirs = [
2007 "codecs/isac/main/include",
2008 "codecs/isac/main/test",
2009 "codecs/isac/main/util",
2010 "../../common_audio/signal_processing/include",
2011 ]
2012 }
2013
ehmaldonado38a21322016-09-02 04:10:34 -07002014 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002015 testonly = true
2016
2017 sources = [
2018 "codecs/ilbc/test/iLBC_test.c",
2019 ]
2020
aleloicfee2152016-08-29 04:09:19 -07002021 deps = [
2022 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002023 ]
2024 }
2025
ehmaldonado38a21322016-09-02 04:10:34 -07002026 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002027 testonly = true
2028
2029 sources = [
2030 "codecs/opus/opus_fec_test.cc",
2031 ]
2032
2033 deps = [
2034 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002035 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002036 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08002037 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002038 "//testing/gtest",
2039 ]
2040
kjellandere40a7ee2016-10-16 23:56:12 -07002041 if (!build_with_chromium && is_clang) {
2042 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002043 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002044 }
2045 }
ehmaldonado36268652017-01-19 08:27:11 -08002046
2047 rtc_source_set("audio_coding_unittests") {
2048 testonly = true
2049
kjellandere0629c02017-04-25 04:04:50 -07002050 # Skip restricting visibility on mobile platforms since the tests on those
2051 # gets additional generated targets which would require many lines here to
2052 # cover (which would be confusing to read and hard to maintain).
2053 if (!is_android && !is_ios) {
jianjun.zhuc0247402017-07-11 06:20:45 -07002054 visibility = [ "..:modules_unittests" ]
kjellandere0629c02017-04-25 04:04:50 -07002055 }
ehmaldonado36268652017-01-19 08:27:11 -08002056 sources = [
2057 "acm2/acm_receiver_unittest.cc",
2058 "acm2/audio_coding_module_unittest.cc",
2059 "acm2/call_statistics_unittest.cc",
2060 "acm2/codec_manager_unittest.cc",
2061 "acm2/rent_a_codec_unittest.cc",
2062 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2063 "audio_network_adaptor/bitrate_controller_unittest.cc",
2064 "audio_network_adaptor/channel_controller_unittest.cc",
2065 "audio_network_adaptor/controller_manager_unittest.cc",
2066 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002067 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002068 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2069 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002070 "audio_network_adaptor/frame_length_controller_unittest.cc",
2071 "audio_network_adaptor/mock/mock_controller.h",
2072 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002073 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002074 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002075 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002076 "codecs/cng/audio_encoder_cng_unittest.cc",
2077 "codecs/cng/cng_unittest.cc",
2078 "codecs/ilbc/ilbc_unittest.cc",
2079 "codecs/isac/fix/source/filterbanks_unittest.cc",
2080 "codecs/isac/fix/source/filters_unittest.cc",
2081 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2082 "codecs/isac/fix/source/transform_unittest.cc",
2083 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2084 "codecs/isac/main/source/isac_unittest.cc",
2085 "codecs/isac/unittest.cc",
2086 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002087 "codecs/opus/audio_encoder_opus_unittest.cc",
2088 "codecs/opus/opus_unittest.cc",
2089 "codecs/red/audio_encoder_copy_red_unittest.cc",
2090 "neteq/audio_multi_vector_unittest.cc",
2091 "neteq/audio_vector_unittest.cc",
2092 "neteq/background_noise_unittest.cc",
2093 "neteq/buffer_level_filter_unittest.cc",
2094 "neteq/comfort_noise_unittest.cc",
2095 "neteq/decision_logic_unittest.cc",
2096 "neteq/decoder_database_unittest.cc",
2097 "neteq/delay_manager_unittest.cc",
2098 "neteq/delay_peak_detector_unittest.cc",
2099 "neteq/dsp_helper_unittest.cc",
2100 "neteq/dtmf_buffer_unittest.cc",
2101 "neteq/dtmf_tone_generator_unittest.cc",
2102 "neteq/expand_unittest.cc",
2103 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002104 "neteq/mock/mock_buffer_level_filter.h",
2105 "neteq/mock/mock_decoder_database.h",
2106 "neteq/mock/mock_delay_manager.h",
2107 "neteq/mock/mock_delay_peak_detector.h",
2108 "neteq/mock/mock_dtmf_buffer.h",
2109 "neteq/mock/mock_dtmf_tone_generator.h",
2110 "neteq/mock/mock_expand.h",
2111 "neteq/mock/mock_external_decoder_pcm16b.h",
2112 "neteq/mock/mock_packet_buffer.h",
2113 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002114 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002115 "neteq/nack_tracker_unittest.cc",
2116 "neteq/neteq_external_decoder_unittest.cc",
2117 "neteq/neteq_impl_unittest.cc",
2118 "neteq/neteq_network_stats_unittest.cc",
2119 "neteq/neteq_stereo_unittest.cc",
2120 "neteq/neteq_unittest.cc",
2121 "neteq/normal_unittest.cc",
2122 "neteq/packet_buffer_unittest.cc",
2123 "neteq/post_decode_vad_unittest.cc",
2124 "neteq/random_vector_unittest.cc",
2125 "neteq/red_payload_splitter_unittest.cc",
Henrik Lundinac0a5032017-09-25 12:22:46 +02002126 "neteq/statistics_calculator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002127 "neteq/sync_buffer_unittest.cc",
2128 "neteq/tick_timer_unittest.cc",
2129 "neteq/time_stretch_unittest.cc",
2130 "neteq/timestamp_scaler_unittest.cc",
2131 "neteq/tools/input_audio_file_unittest.cc",
2132 "neteq/tools/packet_unittest.cc",
2133 ]
2134
2135 deps = [
2136 ":acm_receive_test",
2137 ":acm_send_test",
2138 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002139 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002140 ":audio_format_conversion",
2141 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002142 ":cng",
2143 ":g711",
2144 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002145 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002146 ":isac_c",
2147 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002148 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002149 ":neteq",
2150 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002151 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002152 ":pcm16b",
2153 ":red",
2154 ":rent_a_codec",
2155 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002156 "..:module_api",
ehmaldonado36268652017-01-19 08:27:11 -08002157 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002158 "../../api/audio_codecs:audio_codecs_api",
2159 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002160 "../../api/audio_codecs:builtin_audio_encoder_factory",
Karl Wiberg7275e182017-10-25 09:57:40 +02002161 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonado36268652017-01-19 08:27:11 -08002162 "../../common_audio",
charujain9a451162017-09-15 03:51:34 -07002163 "../../common_audio:mock_common_audio",
Elad Alon4a87e1c2017-10-03 16:11:34 +02002164 "../../logging:rtc_event_log_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002165 "../../rtc_base:protobuf_utils",
2166 "../../rtc_base:rtc_base",
2167 "../../rtc_base:rtc_base_approved",
2168 "../../rtc_base:rtc_base_tests_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002169 "../../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",
ehmaldonado36268652017-01-19 08:27:11 -08002177 ]
2178
2179 defines = audio_coding_defines
2180
2181 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002182 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002183 deps += [
2184 ":ana_config_proto",
2185 ":neteq_unittest_proto",
2186 ]
2187 }
2188
2189 if (!build_with_chromium && is_clang) {
2190 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2191 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2192 }
2193 }
kjellanderfb114242016-06-13 00:19:48 -07002194}
kwiberg087bd342017-02-10 08:15:44 -08002195
2196# For backwards compatibility only! Use
2197# webrtc/api/audio_codecs:audio_codecs_api instead.
2198# TODO(kwiberg): Remove this.
2199rtc_source_set("audio_decoder_interface") {
2200 sources = [
2201 "codecs/audio_decoder.h",
2202 ]
2203 deps = [
2204 "../../api/audio_codecs:audio_codecs_api",
2205 ]
2206}
2207
2208# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002209# webrtc/api/audio_codecs:audio_codecs_api instead.
2210# TODO(ossu): Remove this.
2211rtc_source_set("audio_encoder_interface") {
2212 sources = [
2213 "codecs/audio_encoder.h",
2214 ]
2215 deps = [
2216 "../../api/audio_codecs:audio_codecs_api",
2217 ]
2218}
2219
2220# For backwards compatibility only! Use
kwiberg087bd342017-02-10 08:15:44 -08002221# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2222# TODO(kwiberg): Remove this.
2223rtc_source_set("builtin_audio_decoder_factory") {
2224 sources = [
2225 "codecs/builtin_audio_decoder_factory.h",
2226 ]
2227 deps = [
2228 "../../api/audio_codecs:builtin_audio_decoder_factory",
2229 ]
2230}
ossueb1fde42017-05-02 06:46:30 -07002231
2232# For backwards compatibility only! Use
2233# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2234# TODO(ossu): Remove this.
2235rtc_source_set("builtin_audio_encoder_factory") {
2236 sources = [
2237 "codecs/builtin_audio_encoder_factory.h",
2238 ]
2239 deps = [
2240 "../../api/audio_codecs:builtin_audio_encoder_factory",
2241 ]
2242}