blob: 1cc5fd1041a151ed870559a5cb271f016443e502 [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
9import("../../build/webrtc.gni")
kjellanderfb114242016-06-13 00:19:48 -070010import("audio_coding.gni")
11import("//build/config/arm.gni")
kjellanderfb114242016-06-13 00:19:48 -070012import("//third_party/protobuf/proto_library.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013
kwiberg0edb05b2016-01-19 05:54:28 -080014audio_codec_deps = [
15 ":cng",
16 ":g711",
17 ":pcm16b",
18]
kwiberg0edb05b2016-01-19 05:54:28 -080019if (rtc_include_ilbc) {
kwiberg0edb05b2016-01-19 05:54:28 -080020 audio_codec_deps += [ ":ilbc" ]
21}
22if (rtc_include_opus) {
kwiberg0edb05b2016-01-19 05:54:28 -080023 audio_codec_deps += [ ":webrtc_opus" ]
24}
25if (!build_with_mozilla) {
26 if (current_cpu == "arm") {
kwiberg0edb05b2016-01-19 05:54:28 -080027 audio_codec_deps += [ ":isac_fix" ]
28 } else {
kwiberg0edb05b2016-01-19 05:54:28 -080029 audio_codec_deps += [ ":isac" ]
30 }
kwiberg0edb05b2016-01-19 05:54:28 -080031 audio_codec_deps += [ ":g722" ]
32}
33if (!build_with_mozilla && !build_with_chromium) {
kwiberg0edb05b2016-01-19 05:54:28 -080034 audio_codec_deps += [ ":red" ]
35}
kjellanderfb114242016-06-13 00:19:48 -070036audio_coding_deps = audio_codec_deps + [
37 "../..:webrtc_common",
38 "../../common_audio",
39 "../../system_wrappers",
40 ]
kwiberg0edb05b2016-01-19 05:54:28 -080041
ehmaldonado38a21322016-09-02 04:10:34 -070042rtc_source_set("audio_decoder_factory_interface") {
kwibergc01c6a42016-04-28 14:23:32 -070043 sources = [
44 "codecs/audio_decoder_factory.h",
45 "codecs/audio_format.cc",
46 "codecs/audio_format.h",
47 ]
kwibergc01c6a42016-04-28 14:23:32 -070048 deps = [
49 "../..:webrtc_common",
50 ]
51}
52
ehmaldonado38a21322016-09-02 04:10:34 -070053rtc_source_set("builtin_audio_decoder_factory") {
kwibergc01c6a42016-04-28 14:23:32 -070054 sources = [
55 "codecs/builtin_audio_decoder_factory.cc",
56 "codecs/builtin_audio_decoder_factory.h",
57 ]
kwibergc01c6a42016-04-28 14:23:32 -070058 deps = [
59 "../..:webrtc_common",
60 ":audio_decoder_factory_interface",
61 ] + audio_codec_deps
62 defines = audio_codec_defines
63}
64
ehmaldonado38a21322016-09-02 04:10:34 -070065rtc_source_set("rent_a_codec") {
kwibergfce4a942015-10-27 11:40:24 -070066 sources = [
kjellander3e6db232015-11-26 04:44:54 -080067 "acm2/acm_codec_database.cc",
68 "acm2/acm_codec_database.h",
69 "acm2/rent_a_codec.cc",
70 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -070071 ]
kwiberg0edb05b2016-01-19 05:54:28 -080072 deps = [ "../..:webrtc_common" ] + audio_codec_deps
73 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -070074}
75
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000076config("audio_coding_config") {
77 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -080078 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010079 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000080 ]
81}
82
ehmaldonado38a21322016-09-02 04:10:34 -070083rtc_source_set("audio_coding") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000084 sources = [
kjellander3e6db232015-11-26 04:44:54 -080085 "acm2/acm_common_defs.h",
86 "acm2/acm_receiver.cc",
87 "acm2/acm_receiver.h",
88 "acm2/acm_resampler.cc",
89 "acm2/acm_resampler.h",
90 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -080091 "acm2/call_statistics.cc",
92 "acm2/call_statistics.h",
93 "acm2/codec_manager.cc",
94 "acm2/codec_manager.h",
95 "acm2/initial_delay_manager.cc",
96 "acm2/initial_delay_manager.h",
97 "include/audio_coding_module.h",
98 "include/audio_coding_module_typedefs.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000099 ]
100
101 defines = []
102
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700103 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000104
kjellanderfb114242016-06-13 00:19:48 -0700105 if (rtc_include_opus) {
106 public_deps = [
107 ":webrtc_opus",
108 ]
109 }
110
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000111 if (is_win) {
112 cflags = [
113 # TODO(kjellander): Bug 261: fix this warning.
114 "/wd4373", # virtual function override.
115 ]
116 }
117
kjellanderfb114242016-06-13 00:19:48 -0700118 deps = audio_coding_deps + [
minyue7610f852016-09-07 13:51:51 -0700119 ":audio_network_adaptor",
kwiberg0edb05b2016-01-19 05:54:28 -0800120 ":neteq",
121 ":rent_a_codec",
122 "../..:rtc_event_log",
kwiberg0edb05b2016-01-19 05:54:28 -0800123 ]
kjellanderfb114242016-06-13 00:19:48 -0700124 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000125}
126
ehmaldonado38a21322016-09-02 04:10:34 -0700127rtc_source_set("audio_decoder_interface") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000128 sources = [
129 "codecs/audio_decoder.cc",
130 "codecs/audio_decoder.h",
131 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200132 deps = [
133 "../..:webrtc_common",
kjellander4e7f6c12016-04-25 21:59:50 -0700134 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200135 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000136}
137
ehmaldonado38a21322016-09-02 04:10:34 -0700138rtc_source_set("audio_encoder_interface") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000139 sources = [
140 "codecs/audio_encoder.cc",
141 "codecs/audio_encoder.h",
142 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200143 deps = [
144 "../..:webrtc_common",
kjellander4e7f6c12016-04-25 21:59:50 -0700145 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200146 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000147}
148
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000149config("cng_config") {
150 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000151 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000152 "codecs/cng/include",
153 ]
154}
155
ehmaldonado38a21322016-09-02 04:10:34 -0700156rtc_source_set("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000157 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000158 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100159 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700160 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100161 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000162 ]
163
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700164 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000165
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000166 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000167 ":audio_encoder_interface",
Henrik Lundind048aa02015-12-03 17:47:21 +0100168 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000169 ]
170}
171
172config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200173 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000174}
175
ehmaldonado38a21322016-09-02 04:10:34 -0700176rtc_source_set("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000177 sources = [
178 "codecs/red/audio_encoder_copy_red.cc",
179 "codecs/red/audio_encoder_copy_red.h",
180 ]
181
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700182 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000183
184 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000185 ":audio_encoder_interface",
Henrik Lundind048aa02015-12-03 17:47:21 +0100186 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000187 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000188}
189
190config("g711_config") {
191 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000192 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000193 "codecs/g711/include",
194 ]
195}
196
ehmaldonado38a21322016-09-02 04:10:34 -0700197rtc_source_set("g711") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000198 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700199 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100200 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000201 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100202 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000203 "codecs/g711/g711.c",
204 "codecs/g711/g711.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200205 "codecs/g711/g711_interface.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100206 "codecs/g711/g711_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000207 ]
208
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700209 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000210
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200211 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100212 ":audio_decoder_interface",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200213 ":audio_encoder_interface",
214 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000215}
216
217config("g722_config") {
218 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000219 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000220 "codecs/g722/include",
221 ]
222}
223
ehmaldonado38a21322016-09-02 04:10:34 -0700224rtc_source_set("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000225 sources = [
kwibergada4c132015-09-17 03:12:35 -0700226 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100227 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000228 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100229 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000230 "codecs/g722/g722_decode.c",
231 "codecs/g722/g722_enc_dec.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200232 "codecs/g722/g722_encode.c",
233 "codecs/g722/g722_interface.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100234 "codecs/g722/g722_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000235 ]
236
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700237 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000238
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200239 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100240 ":audio_decoder_interface",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200241 ":audio_encoder_interface",
242 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000243}
244
245config("ilbc_config") {
246 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000247 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100248 "codecs/ilbc/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000249 ]
250}
251
ehmaldonado38a21322016-09-02 04:10:34 -0700252rtc_source_set("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000253 sources = [
254 "codecs/ilbc/abs_quant.c",
255 "codecs/ilbc/abs_quant.h",
256 "codecs/ilbc/abs_quant_loop.c",
257 "codecs/ilbc/abs_quant_loop.h",
kwibergfff9f172015-09-16 21:26:32 -0700258 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100259 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200260 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100261 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000262 "codecs/ilbc/augmented_cb_corr.c",
263 "codecs/ilbc/augmented_cb_corr.h",
264 "codecs/ilbc/bw_expand.c",
265 "codecs/ilbc/bw_expand.h",
266 "codecs/ilbc/cb_construct.c",
267 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200268 "codecs/ilbc/cb_mem_energy.c",
269 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000270 "codecs/ilbc/cb_mem_energy_augmentation.c",
271 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000272 "codecs/ilbc/cb_mem_energy_calc.c",
273 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000274 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200275 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000276 "codecs/ilbc/cb_search_core.c",
277 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000278 "codecs/ilbc/cb_update_best_index.c",
279 "codecs/ilbc/cb_update_best_index.h",
280 "codecs/ilbc/chebyshev.c",
281 "codecs/ilbc/chebyshev.h",
282 "codecs/ilbc/comp_corr.c",
283 "codecs/ilbc/comp_corr.h",
284 "codecs/ilbc/constants.c",
285 "codecs/ilbc/constants.h",
286 "codecs/ilbc/create_augmented_vec.c",
287 "codecs/ilbc/create_augmented_vec.h",
288 "codecs/ilbc/decode.c",
289 "codecs/ilbc/decode.h",
290 "codecs/ilbc/decode_residual.c",
291 "codecs/ilbc/decode_residual.h",
292 "codecs/ilbc/decoder_interpolate_lsf.c",
293 "codecs/ilbc/decoder_interpolate_lsf.h",
294 "codecs/ilbc/defines.h",
295 "codecs/ilbc/do_plc.c",
296 "codecs/ilbc/do_plc.h",
297 "codecs/ilbc/encode.c",
298 "codecs/ilbc/encode.h",
299 "codecs/ilbc/energy_inverse.c",
300 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200301 "codecs/ilbc/enh_upsample.c",
302 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000303 "codecs/ilbc/enhancer.c",
304 "codecs/ilbc/enhancer.h",
305 "codecs/ilbc/enhancer_interface.c",
306 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000307 "codecs/ilbc/filtered_cb_vecs.c",
308 "codecs/ilbc/filtered_cb_vecs.h",
309 "codecs/ilbc/frame_classify.c",
310 "codecs/ilbc/frame_classify.h",
311 "codecs/ilbc/gain_dequant.c",
312 "codecs/ilbc/gain_dequant.h",
313 "codecs/ilbc/gain_quant.c",
314 "codecs/ilbc/gain_quant.h",
315 "codecs/ilbc/get_cd_vec.c",
316 "codecs/ilbc/get_cd_vec.h",
317 "codecs/ilbc/get_lsp_poly.c",
318 "codecs/ilbc/get_lsp_poly.h",
319 "codecs/ilbc/get_sync_seq.c",
320 "codecs/ilbc/get_sync_seq.h",
321 "codecs/ilbc/hp_input.c",
322 "codecs/ilbc/hp_input.h",
323 "codecs/ilbc/hp_output.c",
324 "codecs/ilbc/hp_output.h",
325 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100326 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000327 "codecs/ilbc/index_conv_dec.c",
328 "codecs/ilbc/index_conv_dec.h",
329 "codecs/ilbc/index_conv_enc.c",
330 "codecs/ilbc/index_conv_enc.h",
331 "codecs/ilbc/init_decode.c",
332 "codecs/ilbc/init_decode.h",
333 "codecs/ilbc/init_encode.c",
334 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000335 "codecs/ilbc/interpolate.c",
336 "codecs/ilbc/interpolate.h",
337 "codecs/ilbc/interpolate_samples.c",
338 "codecs/ilbc/interpolate_samples.h",
339 "codecs/ilbc/lpc_encode.c",
340 "codecs/ilbc/lpc_encode.h",
341 "codecs/ilbc/lsf_check.c",
342 "codecs/ilbc/lsf_check.h",
343 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
344 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
345 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
346 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
347 "codecs/ilbc/lsf_to_lsp.c",
348 "codecs/ilbc/lsf_to_lsp.h",
349 "codecs/ilbc/lsf_to_poly.c",
350 "codecs/ilbc/lsf_to_poly.h",
351 "codecs/ilbc/lsp_to_lsf.c",
352 "codecs/ilbc/lsp_to_lsf.h",
353 "codecs/ilbc/my_corr.c",
354 "codecs/ilbc/my_corr.h",
355 "codecs/ilbc/nearest_neighbor.c",
356 "codecs/ilbc/nearest_neighbor.h",
357 "codecs/ilbc/pack_bits.c",
358 "codecs/ilbc/pack_bits.h",
359 "codecs/ilbc/poly_to_lsf.c",
360 "codecs/ilbc/poly_to_lsf.h",
361 "codecs/ilbc/poly_to_lsp.c",
362 "codecs/ilbc/poly_to_lsp.h",
363 "codecs/ilbc/refiner.c",
364 "codecs/ilbc/refiner.h",
365 "codecs/ilbc/simple_interpolate_lsf.c",
366 "codecs/ilbc/simple_interpolate_lsf.h",
367 "codecs/ilbc/simple_lpc_analysis.c",
368 "codecs/ilbc/simple_lpc_analysis.h",
369 "codecs/ilbc/simple_lsf_dequant.c",
370 "codecs/ilbc/simple_lsf_dequant.h",
371 "codecs/ilbc/simple_lsf_quant.c",
372 "codecs/ilbc/simple_lsf_quant.h",
373 "codecs/ilbc/smooth.c",
374 "codecs/ilbc/smooth.h",
375 "codecs/ilbc/smooth_out_data.c",
376 "codecs/ilbc/smooth_out_data.h",
377 "codecs/ilbc/sort_sq.c",
378 "codecs/ilbc/sort_sq.h",
379 "codecs/ilbc/split_vq.c",
380 "codecs/ilbc/split_vq.h",
381 "codecs/ilbc/state_construct.c",
382 "codecs/ilbc/state_construct.h",
383 "codecs/ilbc/state_search.c",
384 "codecs/ilbc/state_search.h",
385 "codecs/ilbc/swap_bytes.c",
386 "codecs/ilbc/swap_bytes.h",
387 "codecs/ilbc/unpack_bits.c",
388 "codecs/ilbc/unpack_bits.h",
389 "codecs/ilbc/vq3.c",
390 "codecs/ilbc/vq3.h",
391 "codecs/ilbc/vq4.c",
392 "codecs/ilbc/vq4.h",
393 "codecs/ilbc/window32_w32.c",
394 "codecs/ilbc/window32_w32.h",
395 "codecs/ilbc/xcorr_coef.c",
396 "codecs/ilbc/xcorr_coef.h",
397 ]
398
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700399 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000400
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000401 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100402 ":audio_decoder_interface",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000403 ":audio_encoder_interface",
kwiberg619a2112016-08-24 02:46:44 -0700404 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100405 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000406 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000407}
408
ehmaldonado38a21322016-09-02 04:10:34 -0700409rtc_source_set("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700410 sources = [
411 "codecs/isac/audio_encoder_isac_t.h",
412 "codecs/isac/audio_encoder_isac_t_impl.h",
413 "codecs/isac/locked_bandwidth_info.cc",
414 "codecs/isac/locked_bandwidth_info.h",
415 ]
416}
417
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000418config("isac_config") {
419 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000420 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100421 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000422 ]
423}
424
ehmaldonado38a21322016-09-02 04:10:34 -0700425rtc_source_set("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000426 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100427 "codecs/isac/main/include/audio_decoder_isac.h",
428 "codecs/isac/main/include/audio_encoder_isac.h",
429 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000430 "codecs/isac/main/source/arith_routines.c",
431 "codecs/isac/main/source/arith_routines.h",
432 "codecs/isac/main/source/arith_routines_hist.c",
433 "codecs/isac/main/source/arith_routines_logist.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200434 "codecs/isac/main/source/audio_decoder_isac.cc",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000435 "codecs/isac/main/source/audio_encoder_isac.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000436 "codecs/isac/main/source/bandwidth_estimator.c",
437 "codecs/isac/main/source/bandwidth_estimator.h",
438 "codecs/isac/main/source/codec.h",
439 "codecs/isac/main/source/crc.c",
440 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000441 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200442 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000443 "codecs/isac/main/source/encode.c",
444 "codecs/isac/main/source/encode_lpc_swb.c",
445 "codecs/isac/main/source/encode_lpc_swb.h",
446 "codecs/isac/main/source/entropy_coding.c",
447 "codecs/isac/main/source/entropy_coding.h",
448 "codecs/isac/main/source/fft.c",
449 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200450 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000451 "codecs/isac/main/source/filterbank_tables.c",
452 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200453 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000454 "codecs/isac/main/source/intialize.c",
455 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200456 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000457 "codecs/isac/main/source/lattice.c",
458 "codecs/isac/main/source/lpc_analysis.c",
459 "codecs/isac/main/source/lpc_analysis.h",
460 "codecs/isac/main/source/lpc_gain_swb_tables.c",
461 "codecs/isac/main/source/lpc_gain_swb_tables.h",
462 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
463 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
464 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
465 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
466 "codecs/isac/main/source/lpc_tables.c",
467 "codecs/isac/main/source/lpc_tables.h",
468 "codecs/isac/main/source/os_specific_inline.h",
469 "codecs/isac/main/source/pitch_estimator.c",
470 "codecs/isac/main/source/pitch_estimator.h",
471 "codecs/isac/main/source/pitch_filter.c",
472 "codecs/isac/main/source/pitch_gain_tables.c",
473 "codecs/isac/main/source/pitch_gain_tables.h",
474 "codecs/isac/main/source/pitch_lag_tables.c",
475 "codecs/isac/main/source/pitch_lag_tables.h",
476 "codecs/isac/main/source/settings.h",
477 "codecs/isac/main/source/spectrum_ar_model_tables.c",
478 "codecs/isac/main/source/spectrum_ar_model_tables.h",
479 "codecs/isac/main/source/structs.h",
480 "codecs/isac/main/source/transform.c",
481 ]
482
483 if (is_linux) {
484 libs = [ "m" ]
485 }
486
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700487 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000488
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000489 deps = [
490 ":audio_decoder_interface",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000491 ":audio_encoder_interface",
kwiberg608c3cf2015-08-24 02:03:23 -0700492 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700493 "../..:webrtc_common",
494 "../../base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000495 "../../common_audio",
496 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000497}
498
499config("isac_fix_config") {
500 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000501 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100502 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000503 ]
504}
505
ehmaldonado38a21322016-09-02 04:10:34 -0700506rtc_source_set("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000507 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100508 "codecs/isac/fix/include/audio_decoder_isacfix.h",
509 "codecs/isac/fix/include/audio_encoder_isacfix.h",
510 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000511 "codecs/isac/fix/source/arith_routines.c",
512 "codecs/isac/fix/source/arith_routines_hist.c",
513 "codecs/isac/fix/source/arith_routines_logist.c",
514 "codecs/isac/fix/source/arith_routins.h",
Karl Wiberg74043682015-09-22 19:31:40 +0200515 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
kwiberg@webrtc.org88bdec82014-12-16 12:49:37 +0000516 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000517 "codecs/isac/fix/source/bandwidth_estimator.c",
518 "codecs/isac/fix/source/bandwidth_estimator.h",
519 "codecs/isac/fix/source/codec.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000520 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200521 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000522 "codecs/isac/fix/source/decode_plc.c",
523 "codecs/isac/fix/source/encode.c",
524 "codecs/isac/fix/source/entropy_coding.c",
525 "codecs/isac/fix/source/entropy_coding.h",
526 "codecs/isac/fix/source/fft.c",
527 "codecs/isac/fix/source/fft.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000528 "codecs/isac/fix/source/filterbank_tables.c",
529 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200530 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000531 "codecs/isac/fix/source/filters.c",
532 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200533 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000534 "codecs/isac/fix/source/isacfix.c",
535 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700536 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000537 "codecs/isac/fix/source/lpc_masking_model.c",
538 "codecs/isac/fix/source/lpc_masking_model.h",
539 "codecs/isac/fix/source/lpc_tables.c",
540 "codecs/isac/fix/source/lpc_tables.h",
541 "codecs/isac/fix/source/pitch_estimator.c",
542 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700543 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000544 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700545 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000546 "codecs/isac/fix/source/pitch_gain_tables.c",
547 "codecs/isac/fix/source/pitch_gain_tables.h",
548 "codecs/isac/fix/source/pitch_lag_tables.c",
549 "codecs/isac/fix/source/pitch_lag_tables.h",
550 "codecs/isac/fix/source/settings.h",
551 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
552 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
553 "codecs/isac/fix/source/structs.h",
554 "codecs/isac/fix/source/transform.c",
555 "codecs/isac/fix/source/transform_tables.c",
556 ]
557
558 if (!is_win) {
559 defines = [ "WEBRTC_LINUX" ]
560 }
561
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700562 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000563
564 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100565 ":audio_decoder_interface",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000566 ":audio_encoder_interface",
kwiberg608c3cf2015-08-24 02:03:23 -0700567 ":isac_common",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000568 "../../common_audio",
569 "../../system_wrappers",
570 ]
571
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700572 if (rtc_build_with_neon) {
Zhongwei Yaoe8a197b2015-04-28 14:42:11 +0800573 deps += [ ":isac_neon" ]
574 }
575
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700576 if (current_cpu == "arm" && arm_version >= 7) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000577 sources += [
578 "codecs/isac/fix/source/lattice_armv7.S",
579 "codecs/isac/fix/source/pitch_filter_armv6.S",
580 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700581 sources -= [
582 "codecs/isac/fix/source/lattice_c.c",
583 "codecs/isac/fix/source/pitch_filter_c.c",
584 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000585 }
586
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000587 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000588 sources += [
589 "codecs/isac/fix/source/entropy_coding_mips.c",
590 "codecs/isac/fix/source/filters_mips.c",
591 "codecs/isac/fix/source/lattice_mips.c",
592 "codecs/isac/fix/source/pitch_estimator_mips.c",
593 "codecs/isac/fix/source/transform_mips.c",
594 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700595 sources -= [
596 "codecs/isac/fix/source/lattice_c.c",
597 "codecs/isac/fix/source/pitch_estimator_c.c",
598 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000599 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200600 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000601 }
602 if (mips_dsp_rev > 1) {
603 sources += [
604 "codecs/isac/fix/source/lpc_masking_model_mips.c",
605 "codecs/isac/fix/source/pitch_filter_mips.c",
606 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200607 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000608 }
609 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000610}
611
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700612if (rtc_build_with_neon) {
ehmaldonado38a21322016-09-02 04:10:34 -0700613 rtc_source_set("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800614 sources = [
615 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800616 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800617 "codecs/isac/fix/source/filters_neon.c",
618 "codecs/isac/fix/source/lattice_neon.c",
619 "codecs/isac/fix/source/transform_neon.c",
620 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000621
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700622 if (current_cpu != "arm64") {
623 # Enable compilation for the NEON instruction set. This is needed
624 # since //build/config/arm.gni only enables NEON for iOS, not Android.
625 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700626 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700627 cflags = [ "-mfpu=neon" ]
628 }
629
630 # Disable LTO on NEON targets due to compiler bug.
631 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000632 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000633 cflags -= [
634 "-flto",
635 "-ffat-lto-objects",
636 ]
637 }
638
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200639 deps = [
640 "../../common_audio",
641 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000642 }
643}
644
645config("pcm16b_config") {
646 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000647 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000648 "codecs/pcm16b/include",
649 ]
650}
651
ehmaldonado38a21322016-09-02 04:10:34 -0700652rtc_source_set("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000653 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200654 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100655 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200656 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100657 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000658 "codecs/pcm16b/pcm16b.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100659 "codecs/pcm16b/pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000660 ]
661
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000662 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100663 ":audio_decoder_interface",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000664 ":audio_encoder_interface",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000665 ":g711",
666 ]
667
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700668 public_configs = [ ":pcm16b_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000669}
670
671config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000672 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000673}
674
ehmaldonado38a21322016-09-02 04:10:34 -0700675rtc_source_set("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000676 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200677 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100678 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000679 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100680 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000681 "codecs/opus/opus_inst.h",
682 "codecs/opus/opus_interface.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100683 "codecs/opus/opus_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000684 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000685
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200686 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100687 ":audio_decoder_interface",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200688 ":audio_encoder_interface",
Henrik Lundind048aa02015-12-03 17:47:21 +0100689 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200690 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000691
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000692 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700693 public_deps = [
694 rtc_opus_dir,
695 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000696 } else if (build_with_mozilla) {
697 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000698 }
699}
700
minyue7610f852016-09-07 13:51:51 -0700701source_set("audio_network_adaptor") {
702 sources = [
703 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700704 "audio_network_adaptor/audio_network_adaptor_impl.cc",
705 "audio_network_adaptor/audio_network_adaptor_impl.h",
706 "audio_network_adaptor/controller.cc",
707 "audio_network_adaptor/controller.h",
708 "audio_network_adaptor/controller_manager.cc",
709 "audio_network_adaptor/controller_manager.h",
minyue7610f852016-09-07 13:51:51 -0700710 "audio_network_adaptor/include/audio_network_adaptor.h",
711 ]
712 configs += [ "../..:common_config" ]
713 public_configs = [ "../..:common_inherited_config" ]
714}
715
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000716config("neteq_config") {
717 include_dirs = [
718 # Need Opus header files for the audio classifier.
719 "//third_party/opus/src/celt",
720 "//third_party/opus/src/src",
721 ]
722}
723
ehmaldonado38a21322016-09-02 04:10:34 -0700724rtc_source_set("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000725 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000726 "neteq/accelerate.cc",
727 "neteq/accelerate.h",
728 "neteq/audio_classifier.cc",
729 "neteq/audio_classifier.h",
730 "neteq/audio_decoder_impl.cc",
731 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000732 "neteq/audio_multi_vector.cc",
733 "neteq/audio_multi_vector.h",
734 "neteq/audio_vector.cc",
735 "neteq/audio_vector.h",
736 "neteq/background_noise.cc",
737 "neteq/background_noise.h",
738 "neteq/buffer_level_filter.cc",
739 "neteq/buffer_level_filter.h",
740 "neteq/comfort_noise.cc",
741 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700742 "neteq/cross_correlation.cc",
743 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000744 "neteq/decision_logic.cc",
745 "neteq/decision_logic.h",
746 "neteq/decision_logic_fax.cc",
747 "neteq/decision_logic_fax.h",
748 "neteq/decision_logic_normal.cc",
749 "neteq/decision_logic_normal.h",
750 "neteq/decoder_database.cc",
751 "neteq/decoder_database.h",
752 "neteq/defines.h",
753 "neteq/delay_manager.cc",
754 "neteq/delay_manager.h",
755 "neteq/delay_peak_detector.cc",
756 "neteq/delay_peak_detector.h",
757 "neteq/dsp_helper.cc",
758 "neteq/dsp_helper.h",
759 "neteq/dtmf_buffer.cc",
760 "neteq/dtmf_buffer.h",
761 "neteq/dtmf_tone_generator.cc",
762 "neteq/dtmf_tone_generator.h",
763 "neteq/expand.cc",
764 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100765 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000766 "neteq/merge.cc",
767 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700768 "neteq/nack_tracker.cc",
769 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200770 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000771 "neteq/neteq_impl.cc",
772 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000773 "neteq/normal.cc",
774 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -0700775 "neteq/packet.cc",
776 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000777 "neteq/packet_buffer.cc",
778 "neteq/packet_buffer.h",
779 "neteq/payload_splitter.cc",
780 "neteq/payload_splitter.h",
781 "neteq/post_decode_vad.cc",
782 "neteq/post_decode_vad.h",
783 "neteq/preemptive_expand.cc",
784 "neteq/preemptive_expand.h",
785 "neteq/random_vector.cc",
786 "neteq/random_vector.h",
787 "neteq/rtcp.cc",
788 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200789 "neteq/statistics_calculator.cc",
790 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000791 "neteq/sync_buffer.cc",
792 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -0700793 "neteq/tick_timer.cc",
794 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000795 "neteq/time_stretch.cc",
796 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200797 "neteq/timestamp_scaler.cc",
798 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000799 ]
800
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700801 public_configs = [ ":neteq_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000802
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000803 deps = [
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000804 ":audio_decoder_interface",
kwiberg5178ee82016-05-03 01:39:01 -0700805 ":builtin_audio_decoder_factory",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000806 ":cng",
807 ":g711",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000808 ":pcm16b",
kwiberg5178ee82016-05-03 01:39:01 -0700809 ":rent_a_codec",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000810 "../..:webrtc_common",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000811 "../../common_audio",
812 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000813 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +0000814
815 defines = []
816
kwibergf8c2bac2016-01-18 06:38:32 -0800817 if (rtc_include_ilbc) {
818 defines += [ "WEBRTC_CODEC_ILBC" ]
819 deps += [ ":ilbc" ]
820 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +0000821 if (rtc_include_opus) {
822 defines += [ "WEBRTC_CODEC_OPUS" ]
823 deps += [ ":webrtc_opus" ]
824 }
kwiberg98ab3a42015-09-30 21:54:21 -0700825 if (!build_with_mozilla) {
826 if (current_cpu == "arm") {
827 defines += [ "WEBRTC_CODEC_ISACFX" ]
828 deps += [ ":isac_fix" ]
829 } else {
830 defines += [ "WEBRTC_CODEC_ISAC" ]
831 deps += [ ":isac" ]
832 }
833 defines += [ "WEBRTC_CODEC_G722" ]
834 deps += [ ":g722" ]
835 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000836}
kjellanderfb114242016-06-13 00:19:48 -0700837
838if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -0700839 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -0700840 testonly = true
841 sources = [
842 "acm2/acm_receive_test_oldapi.cc",
843 "acm2/acm_receive_test_oldapi.h",
844 ]
845
kjellanderfb114242016-06-13 00:19:48 -0700846 defines = audio_coding_defines
847
848 deps = audio_coding_deps + [
849 ":audio_coding",
850 ":neteq_unittest_tools",
851 "//testing/gtest",
852 ]
853 }
854
ehmaldonado38a21322016-09-02 04:10:34 -0700855 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -0700856 testonly = true
857 sources = [
858 "acm2/acm_send_test_oldapi.cc",
859 "acm2/acm_send_test_oldapi.h",
860 ]
861
kjellanderfb114242016-06-13 00:19:48 -0700862 defines = audio_coding_defines
863
864 deps = audio_coding_deps + [
865 ":audio_coding",
866 ":neteq_unittest_tools",
867 "//testing/gtest",
868 ]
869 }
870
ehmaldonado38a21322016-09-02 04:10:34 -0700871 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -0700872 testonly = true
873 sources = [
874 "test/Channel.cc",
875 "test/PCMFile.cc",
876 "test/delay_test.cc",
877 "test/utility.cc",
878 ]
879
aleloi333f2062016-07-28 01:21:29 -0700880 deps = [
881 ":audio_coding",
882 "../../:webrtc_common",
883 "../../system_wrappers",
884 "../../system_wrappers:system_wrappers_default",
885 "../../test:test_support",
886 "../rtp_rtcp",
887 "//testing/gtest",
888 "//third_party/gflags:gflags",
889 ]
890 } # delay_test
891
ehmaldonado38a21322016-09-02 04:10:34 -0700892 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -0700893 testonly = true
894 sources = [
895 "test/Channel.cc",
896 "test/PCMFile.cc",
897 "test/insert_packet_with_timing.cc",
898 ]
899
aleloi00730c72016-07-28 01:27:10 -0700900 if (is_clang) {
901 # Suppress warnings from Chrome's Clang plugins.
902 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -0700903 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -0700904 }
905
906 deps = [
907 ":audio_coding",
908 "../../:webrtc_common",
909 "../../system_wrappers",
910 "../../system_wrappers:system_wrappers_default",
911 "../../test:test_support",
912 "../rtp_rtcp",
913 "//testing/gtest",
914 "//third_party/gflags:gflags",
915 ]
916 } # insert_packet_with_timing
917
ehmaldonado3a7f35b2016-09-14 05:10:01 -0700918 audio_decoder_unittests_resources =
919 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -0700920
921 if (is_ios) {
922 bundle_data("audio_decoder_unittests_bundle_data") {
923 testonly = true
924 sources = audio_decoder_unittests_resources
925 outputs = [
926 "{{bundle_resources_dir}}/{{source_file_part}}",
927 ]
928 }
929 }
930
ehmaldonado38a21322016-09-02 04:10:34 -0700931 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -0700932 testonly = true
933 sources = [
934 "neteq/audio_decoder_unittest.cc",
935 ]
936
charujainddf3e4a2016-08-01 07:49:42 -0700937 if (is_clang) {
938 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700939 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -0700940 }
941
942 deps = []
943
944 defines = neteq_defines
945
946 deps += audio_coding_deps
947 deps += [
948 ":audio_decoder_interface",
949 ":isac",
950 ":isac_fix",
951 ":neteq",
952 ":neteq_unittest_tools",
953 "../../common_audio/",
954 "../../test:test_support_main",
955 "//testing/gtest",
956 ]
957
ehmaldonado3a7f35b2016-09-14 05:10:01 -0700958 data = audio_decoder_unittests_resources
959
charujainddf3e4a2016-08-01 07:49:42 -0700960 if (is_android) {
961 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -0700962 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -0700963 }
kjellander32c4a202016-08-30 02:53:49 -0700964 if (is_ios) {
965 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -0700966 }
967 } # audio_decoder_unittests
968
kjellanderfb114242016-06-13 00:19:48 -0700969 if (rtc_enable_protobuf) {
970 proto_library("neteq_unittest_proto") {
971 sources = [
972 "neteq/neteq_unittest.proto",
973 ]
974 proto_out_dir = "webrtc/audio_coding/neteq"
975 }
henrik.lundin03153f12016-06-21 05:38:42 -0700976
ehmaldonado38a21322016-09-02 04:10:34 -0700977 rtc_source_set("rtc_event_log_source") {
henrik.lundin03153f12016-06-21 05:38:42 -0700978 testonly = true
979 sources = [
980 "neteq/tools/rtc_event_log_source.cc",
981 "neteq/tools/rtc_event_log_source.h",
982 ]
983
984 if (is_clang) {
985 # Suppress warnings from the Chromium Clang plugins
986 # (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700987 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -0700988 }
989
990 deps = [
991 "../../:rtc_event_log_parser",
992 ]
993 public_deps = [
994 "../../:rtc_event_log_proto",
995 ]
996 }
997
ehmaldonado38a21322016-09-02 04:10:34 -0700998 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -0700999 testonly = true
1000 defines = []
1001 deps = []
1002 sources = [
1003 "neteq/tools/neteq_rtpplay.cc",
1004 ]
1005
1006 if (is_clang) {
1007 # Suppress warnings from the Chromium Clang plugins
1008 # (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001009 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001010 }
1011
1012 if (is_win) {
1013 cflags = [
1014 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1015 "/wd4373", # virtual function override.
1016 ]
1017 }
1018
1019 deps += [
1020 ":neteq",
1021 ":neteq_unittest_tools",
henrik.lundin03153f12016-06-21 05:38:42 -07001022 "../../system_wrappers:system_wrappers_default",
1023 "../../test:test_support",
1024 "//third_party/gflags",
1025 ]
1026 }
kjellanderfb114242016-06-13 00:19:48 -07001027 }
1028
ehmaldonado38a21322016-09-02 04:10:34 -07001029 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001030 testonly = true
1031 defines = []
1032 deps = []
1033 sources = [
1034 "codecs/isac/fix/test/isac_speed_test.cc",
1035 "codecs/opus/opus_speed_test.cc",
1036 "codecs/tools/audio_codec_speed_test.cc",
1037 "codecs/tools/audio_codec_speed_test.h",
1038 ]
1039
1040 if (is_clang) {
1041 # Suppress warnings from the Chromium Clang plugins
1042 # (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001043 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001044 }
1045
1046 if (is_android) {
1047 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001048 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001049 }
1050
1051 deps += [
1052 ":isac_fix",
1053 ":webrtc_opus",
1054 "../../system_wrappers:system_wrappers_default",
1055 "../../test:test_support_main",
1056 "../audio_processing/",
1057 "//testing/gtest",
1058 ]
1059 }
1060
ehmaldonado38a21322016-09-02 04:10:34 -07001061 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001062 testonly = true
1063 sources = [
1064 "neteq/tools/neteq_external_decoder_test.cc",
1065 "neteq/tools/neteq_external_decoder_test.h",
1066 "neteq/tools/neteq_performance_test.cc",
1067 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001068 ]
1069
kjellanderfb114242016-06-13 00:19:48 -07001070 if (is_clang) {
1071 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001072 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001073 }
1074
1075 deps = [
1076 ":neteq",
1077 ":neteq_unittest_tools",
1078 ":pcm16b",
1079 "//testing/gtest",
1080 "//third_party/gflags",
1081 ]
1082 }
1083
ehmaldonado38a21322016-09-02 04:10:34 -07001084 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001085 testonly = true
1086 sources = [
1087 "neteq/tools/neteq_quality_test.cc",
1088 "neteq/tools/neteq_quality_test.h",
1089 ]
1090
ehmaldonado861da3c2016-08-19 07:02:24 -07001091 if (is_clang) {
1092 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001093 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001094 }
1095
1096 deps = [
1097 ":neteq",
1098 ":neteq_unittest_tools",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001099 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001100 "//third_party/gflags",
1101 ]
1102 }
1103
kjellanderfb114242016-06-13 00:19:48 -07001104 config("neteq_unittest_tools_config") {
1105 include_dirs = [ "tools" ]
1106 }
1107
ehmaldonado38a21322016-09-02 04:10:34 -07001108 rtc_source_set("neteq_unittest_tools") {
kjellanderfb114242016-06-13 00:19:48 -07001109 testonly = true
1110 sources = [
1111 "neteq/tools/audio_checksum.h",
1112 "neteq/tools/audio_loop.cc",
1113 "neteq/tools/audio_loop.h",
aleloi0e0be0a2016-08-10 04:55:20 -07001114 "neteq/tools/audio_sink.cc",
kjellanderfb114242016-06-13 00:19:48 -07001115 "neteq/tools/audio_sink.h",
1116 "neteq/tools/constant_pcm_packet_source.cc",
1117 "neteq/tools/constant_pcm_packet_source.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001118 "neteq/tools/fake_decode_from_file.cc",
1119 "neteq/tools/fake_decode_from_file.h",
kjellanderfb114242016-06-13 00:19:48 -07001120 "neteq/tools/input_audio_file.cc",
1121 "neteq/tools/input_audio_file.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001122 "neteq/tools/neteq_input.h",
1123 "neteq/tools/neteq_packet_source_input.cc",
1124 "neteq/tools/neteq_packet_source_input.h",
1125 "neteq/tools/neteq_replacement_input.cc",
1126 "neteq/tools/neteq_replacement_input.h",
1127 "neteq/tools/neteq_test.cc",
1128 "neteq/tools/neteq_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001129 "neteq/tools/output_audio_file.h",
1130 "neteq/tools/output_wav_file.h",
1131 "neteq/tools/packet.cc",
1132 "neteq/tools/packet.h",
kwibergb8e56ee2016-08-29 06:37:33 -07001133 "neteq/tools/packet_source.cc",
kjellanderfb114242016-06-13 00:19:48 -07001134 "neteq/tools/packet_source.h",
1135 "neteq/tools/resample_input_audio_file.cc",
1136 "neteq/tools/resample_input_audio_file.h",
1137 "neteq/tools/rtp_file_source.cc",
1138 "neteq/tools/rtp_file_source.h",
1139 "neteq/tools/rtp_generator.cc",
1140 "neteq/tools/rtp_generator.h",
1141 ]
1142
ehmaldonadoe9cc6862016-09-05 06:10:18 -07001143 public_configs = [ ":neteq_unittest_tools_config" ]
kjellanderfb114242016-06-13 00:19:48 -07001144
1145 if (is_clang) {
1146 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001147 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001148 }
1149
1150 deps = [
1151 "../../common_audio",
1152 "../../test:rtp_test_utils",
1153 "../rtp_rtcp",
1154 ]
henrik.lundine8a77e32016-06-22 06:34:03 -07001155
1156 if (rtc_enable_protobuf) {
1157 deps += [ ":rtc_event_log_source" ]
1158 }
kjellanderfb114242016-06-13 00:19:48 -07001159 }
aleloi3022a342016-07-26 06:36:03 -07001160
ehmaldonado38a21322016-09-02 04:10:34 -07001161 rtc_source_set("neteq_test_tools") {
aleloi3022a342016-07-26 06:36:03 -07001162 testonly = true
1163 sources = [
1164 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1165 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1166 "neteq/test/NETEQTEST_RTPpacket.cc",
1167 "neteq/test/NETEQTEST_RTPpacket.h",
1168 ]
1169
1170 deps = [
1171 ":cng",
1172 ":g711",
1173 ":g722",
1174 ":ilbc",
1175 ":isac",
1176 ":pcm16b",
1177 "../..:webrtc_common",
1178 "//testing/gtest",
1179 ]
1180
1181 include_dirs = [
1182 "neteq/include",
1183 "neteq/test",
1184 "../../",
1185 ]
1186
1187 if (is_win) {
1188 cflags = [
1189 # Disable warnings to enable Win64 build, issue 1323.
1190 "/wd4267", # size_t to int truncation
1191 ]
1192 }
1193 }
aleloi47bded42016-07-26 06:46:19 -07001194
aleloi82667732016-08-02 01:45:50 -07001195 config("RTPencode_config") {
1196 defines = [
1197 "CODEC_ILBC",
1198 "CODEC_PCM16B",
1199 "CODEC_G711",
1200 "CODEC_G722",
1201 "CODEC_ISAC",
1202 "CODEC_PCM16B_WB",
1203 "CODEC_ISAC_SWB",
1204 "CODEC_PCM16B_32KHZ",
1205 "CODEC_PCM16B_48KHZ",
1206 "CODEC_CNGCODEC8",
1207 "CODEC_CNGCODEC16",
1208 "CODEC_CNGCODEC32",
1209 "CODEC_ATEVENT_DECODE",
1210 "CODEC_RED",
1211 "CODEC_OPUS",
1212 ]
1213 }
1214
ehmaldonado38a21322016-09-02 04:10:34 -07001215 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001216 testonly = true
1217
1218 deps = [
1219 # TODO(hlundin): Make RTPencode use ACM to encode files.
1220 ":cng",
1221 ":g711",
1222 ":g722",
1223 ":ilbc",
1224 ":isac",
1225 ":neteq_test_tools",
1226 ":pcm16b",
1227 ":webrtc_opus",
1228 "../../common_audio",
1229 ]
1230
1231 configs += [ ":RTPencode_config" ]
1232
1233 sources = [
1234 "neteq/test/RTPencode.cc",
1235 ]
1236
1237 include_dirs = [
1238 "neteq/include",
1239 "neteq/test",
1240 ]
1241
1242 if (is_win) {
1243 cflags = [
1244 # Disable warnings to enable Win64 build, issue 1323.
1245 "/wd4267", # size_t to int truncation
1246 ]
1247 }
1248 }
1249
ehmaldonado38a21322016-09-02 04:10:34 -07001250 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001251 testonly = true
1252
1253 sources = [
1254 "neteq/test/RTPchange.cc",
1255 ]
1256
1257 deps = [
1258 ":neteq_test_tools",
1259 ]
1260 }
1261
ehmaldonado38a21322016-09-02 04:10:34 -07001262 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001263 testonly = true
1264
1265 sources = [
1266 "neteq/tools/rtpcat.cc",
1267 ]
1268
1269 deps = [
1270 "../../system_wrappers:system_wrappers_default",
1271 "../../test:rtp_test_utils",
1272 "//testing/gtest",
1273 ]
1274 }
1275
ehmaldonado38a21322016-09-02 04:10:34 -07001276 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001277 testonly = true
1278
1279 sources = [
1280 "neteq/test/RTPtimeshift.cc",
1281 ]
1282
1283 deps = [
1284 ":neteq_test_tools",
1285 "//testing/gtest",
1286 ]
1287 }
1288
ehmaldonado38a21322016-09-02 04:10:34 -07001289 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001290 testonly = true
1291 deps = [
1292 "../..:webrtc_common",
1293 "//testing/gtest",
1294 ]
1295 sources = [
1296 "neteq/test/RTPjitter.cc",
1297 ]
1298 }
1299
ehmaldonado38a21322016-09-02 04:10:34 -07001300 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001301 testonly = true
1302
1303 sources = [
1304 "neteq/tools/rtp_analyze.cc",
1305 ]
1306
1307 deps = [
1308 ":neteq",
1309 ":neteq_unittest_tools",
1310 ":pcm16b",
1311 "../../system_wrappers:system_wrappers_default",
1312 "//testing/gtest",
1313 "//third_party/gflags:gflags",
1314 ]
1315
1316 if (is_clang) {
1317 # Suppress warnings from Chrome's Clang plugins.
1318 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -07001319 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001320 }
1321 }
aleloi630c6d52016-08-10 02:11:30 -07001322
ehmaldonado38a21322016-09-02 04:10:34 -07001323 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001324 testonly = true
1325
1326 sources = [
1327 "neteq/test/neteq_opus_quality_test.cc",
1328 ]
1329
1330 deps = [
1331 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001332 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001333 ":neteq_unittest_tools",
aleloi630c6d52016-08-10 02:11:30 -07001334 ":webrtc_opus",
1335 "../../test:test_support_main",
1336 "//testing/gtest",
1337 "//third_party/gflags",
1338 ]
aleloi630c6d52016-08-10 02:11:30 -07001339 }
aleloi116fd612016-08-10 04:16:36 -07001340
ehmaldonado38a21322016-09-02 04:10:34 -07001341 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001342 testonly = true
1343
1344 sources = [
1345 "neteq/test/neteq_speed_test.cc",
1346 ]
1347
1348 deps = [
1349 ":neteq",
1350 ":neteq_test_support",
1351 "../../system_wrappers:system_wrappers_default",
1352 "../../test:test_support",
1353 "//third_party/gflags",
1354 ]
1355 }
aleloi63910122016-08-10 04:41:14 -07001356
ehmaldonado38a21322016-09-02 04:10:34 -07001357 rtc_executable("audio_classifier_test") {
aleloi63910122016-08-10 04:41:14 -07001358 testonly = true
1359 sources = [
1360 "neteq/test/audio_classifier_test.cc",
1361 ]
1362 deps = [
1363 ":neteq",
1364 ":webrtc_opus",
1365 "../../system_wrappers:system_wrappers_default",
1366 ]
1367 }
aleloi0e0be0a2016-08-10 04:55:20 -07001368
ehmaldonado38a21322016-09-02 04:10:34 -07001369 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001370 testonly = true
1371
1372 sources = [
1373 "neteq/test/neteq_ilbc_quality_test.cc",
1374 ]
1375
1376 deps = [
1377 ":ilbc",
1378 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001379 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001380 ":neteq_unittest_tools",
1381 "../../system_wrappers:system_wrappers_default",
1382 "../../test:test_support_main",
1383 "//testing/gtest",
1384 "//third_party/gflags",
1385 ]
1386 }
aleloi6df36dc2016-08-10 05:04:47 -07001387
ehmaldonado38a21322016-09-02 04:10:34 -07001388 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001389 testonly = true
1390
1391 sources = [
1392 "neteq/test/neteq_isac_quality_test.cc",
1393 ]
1394
1395 deps = [
1396 ":isac_fix",
1397 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001398 ":neteq_quality_test_support",
aleloi6df36dc2016-08-10 05:04:47 -07001399 "../../test:test_support_main",
1400 "//testing/gtest",
1401 "//third_party/gflags",
1402 ]
1403 }
aleloic4ac7002016-08-10 05:06:27 -07001404
ehmaldonado38a21322016-09-02 04:10:34 -07001405 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001406 testonly = true
1407
1408 sources = [
1409 "neteq/test/neteq_pcmu_quality_test.cc",
1410 ]
1411
1412 deps = [
1413 ":g711",
1414 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001415 ":neteq_quality_test_support",
aleloic4ac7002016-08-10 05:06:27 -07001416 "../../test:test_support_main",
1417 "//testing/gtest",
1418 "//third_party/gflags",
1419 ]
1420 }
aleloib7186d02016-08-16 01:47:16 -07001421
ehmaldonado38a21322016-09-02 04:10:34 -07001422 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001423 testonly = true
1424
1425 sources = [
1426 "codecs/isac/fix/test/kenny.cc",
1427 ]
1428
1429 deps = [
1430 ":isac_fix",
1431 "../../test:test_support",
1432 ]
1433
1434 if (is_win) {
1435 cflags = [
1436 # Disable warnings to enable Win64 build, issue 1323.
1437 "/wd4267", # size_t to int truncation
1438 ]
1439 }
1440 }
aleloi16f55a12016-08-23 08:08:23 -07001441
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001442 config("isac_test_warnings_config") {
1443 if (is_win && is_clang) {
1444 cflags = [
1445 # Disable warnings failing when compiling with Clang on Windows.
1446 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1447 "-Wno-format",
1448 ]
1449 }
1450 }
1451
ehmaldonado38a21322016-09-02 04:10:34 -07001452 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001453 testonly = true
1454
1455 sources = [
1456 "codecs/isac/main/test/simpleKenny.c",
1457 "codecs/isac/main/util/utility.c",
1458 ]
1459
1460 include_dirs = [
1461 "codecs/isac/main/include",
1462 "codecs/isac/main/test",
1463 "codecs/isac/main/util",
1464 ]
1465
1466 deps = [
1467 ":isac",
ivoc48052312016-08-25 04:43:45 -07001468 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001469 ]
1470
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001471 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001472 }
1473
ehmaldonado38a21322016-09-02 04:10:34 -07001474 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001475 testonly = true
1476
1477 sources = [
1478 "codecs/g711/test/testG711.cc",
1479 ]
1480
aleloi16f55a12016-08-23 08:08:23 -07001481 deps = [
1482 ":g711",
1483 ]
1484 }
aleloi9a117842016-08-23 08:36:10 -07001485
ehmaldonado38a21322016-09-02 04:10:34 -07001486 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001487 testonly = true
1488
1489 sources = [
1490 "codecs/g722/test/testG722.cc",
1491 ]
1492
aleloi9a117842016-08-23 08:36:10 -07001493 deps = [
1494 ":g722",
1495 "../..:webrtc_common",
1496 ]
1497 }
ivoc2c670db2016-08-24 06:11:18 -07001498
ehmaldonado38a21322016-09-02 04:10:34 -07001499 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001500 testonly = true
1501
1502 sources = [
1503 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
1504 "codecs/isac/main/util/utility.c",
1505 ]
1506
aleloicfee2152016-08-29 04:09:19 -07001507 deps = [
1508 ":isac",
1509 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001510 ]
1511
1512 include_dirs = [
1513 "codecs/isac/main/include",
1514 "codecs/isac/main/test",
1515 "codecs/isac/main/util",
1516 ]
1517 }
1518
ehmaldonado38a21322016-09-02 04:10:34 -07001519 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001520 testonly = true
1521
1522 sources = [
1523 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
1524 "codecs/isac/main/util/utility.c",
1525 ]
1526
aleloicfee2152016-08-29 04:09:19 -07001527 deps = [
1528 ":isac",
aleloicfee2152016-08-29 04:09:19 -07001529 ]
1530
1531 include_dirs = [
1532 "codecs/isac/main/include",
1533 "codecs/isac/main/test",
1534 "codecs/isac/main/util",
1535 "../../common_audio/signal_processing/include",
1536 ]
1537 }
1538
ehmaldonado38a21322016-09-02 04:10:34 -07001539 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07001540 testonly = true
1541
1542 sources = [
1543 "codecs/ilbc/test/iLBC_test.c",
1544 ]
1545
aleloicfee2152016-08-29 04:09:19 -07001546 deps = [
1547 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07001548 ]
1549 }
1550
ehmaldonado38a21322016-09-02 04:10:34 -07001551 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07001552 testonly = true
1553
1554 sources = [
1555 "codecs/opus/opus_fec_test.cc",
1556 ]
1557
1558 deps = [
1559 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07001560 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07001561 "../../common_audio",
1562 "../../test:test_support",
1563 "../../test:test_support_main",
ivoc2c670db2016-08-24 06:11:18 -07001564 "//testing/gtest",
1565 ]
1566
1567 if (is_clang) {
1568 # Suppress warnings from Chrome's Clang plugins.
1569 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -07001570 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07001571 }
1572 }
kjellanderfb114242016-06-13 00:19:48 -07001573}