blob: c59dfa2067ffa67141c78e17c632be2b229b37dd [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
kjellanderb62dbbe2016-09-23 00:38:52 -070042rtc_static_library("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
kjellanderb62dbbe2016-09-23 00:38:52 -070053rtc_static_library("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
kjellanderb62dbbe2016-09-23 00:38:52 -070065rtc_static_library("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
kjellanderb62dbbe2016-09-23 00:38:52 -070083rtc_static_library("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
kjellanderb62dbbe2016-09-23 00:38:52 -0700127rtc_static_library("audio_decoder_interface") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000128 sources = [
129 "codecs/audio_decoder.cc",
130 "codecs/audio_decoder.h",
ossu7f40ba42016-09-21 05:50:37 -0700131 "codecs/legacy_encoded_audio_frame.cc",
132 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000133 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200134 deps = [
135 "../..:webrtc_common",
kjellander4e7f6c12016-04-25 21:59:50 -0700136 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200137 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000138}
139
kjellanderb62dbbe2016-09-23 00:38:52 -0700140rtc_static_library("audio_encoder_interface") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000141 sources = [
142 "codecs/audio_encoder.cc",
143 "codecs/audio_encoder.h",
144 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200145 deps = [
146 "../..:webrtc_common",
kjellander4e7f6c12016-04-25 21:59:50 -0700147 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200148 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000149}
150
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000151config("cng_config") {
152 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000153 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000154 "codecs/cng/include",
155 ]
156}
157
kjellanderb62dbbe2016-09-23 00:38:52 -0700158rtc_static_library("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000159 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000160 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100161 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700162 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100163 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000164 ]
165
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700166 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000167
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000168 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000169 ":audio_encoder_interface",
Henrik Lundind048aa02015-12-03 17:47:21 +0100170 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000171 ]
172}
173
174config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200175 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000176}
177
kjellanderb62dbbe2016-09-23 00:38:52 -0700178rtc_static_library("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000179 sources = [
180 "codecs/red/audio_encoder_copy_red.cc",
181 "codecs/red/audio_encoder_copy_red.h",
182 ]
183
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700184 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000185
186 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000187 ":audio_encoder_interface",
Henrik Lundind048aa02015-12-03 17:47:21 +0100188 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000189 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000190}
191
192config("g711_config") {
193 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000194 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000195 "codecs/g711/include",
196 ]
197}
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 "codecs/g711/g711.c",
206 "codecs/g711/g711.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200207 "codecs/g711/g711_interface.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100208 "codecs/g711/g711_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000209 ]
210
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700211 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000212
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200213 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100214 ":audio_decoder_interface",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200215 ":audio_encoder_interface",
216 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000217}
218
219config("g722_config") {
220 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000221 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000222 "codecs/g722/include",
223 ]
224}
225
kjellanderb62dbbe2016-09-23 00:38:52 -0700226rtc_static_library("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000227 sources = [
kwibergada4c132015-09-17 03:12:35 -0700228 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100229 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000230 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100231 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000232 "codecs/g722/g722_decode.c",
233 "codecs/g722/g722_enc_dec.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200234 "codecs/g722/g722_encode.c",
235 "codecs/g722/g722_interface.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100236 "codecs/g722/g722_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000237 ]
238
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700239 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000240
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200241 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100242 ":audio_decoder_interface",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200243 ":audio_encoder_interface",
244 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000245}
246
247config("ilbc_config") {
248 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000249 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100250 "codecs/ilbc/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000251 ]
252}
253
kjellanderb62dbbe2016-09-23 00:38:52 -0700254rtc_static_library("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000255 sources = [
256 "codecs/ilbc/abs_quant.c",
257 "codecs/ilbc/abs_quant.h",
258 "codecs/ilbc/abs_quant_loop.c",
259 "codecs/ilbc/abs_quant_loop.h",
kwibergfff9f172015-09-16 21:26:32 -0700260 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100261 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200262 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100263 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000264 "codecs/ilbc/augmented_cb_corr.c",
265 "codecs/ilbc/augmented_cb_corr.h",
266 "codecs/ilbc/bw_expand.c",
267 "codecs/ilbc/bw_expand.h",
268 "codecs/ilbc/cb_construct.c",
269 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200270 "codecs/ilbc/cb_mem_energy.c",
271 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000272 "codecs/ilbc/cb_mem_energy_augmentation.c",
273 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000274 "codecs/ilbc/cb_mem_energy_calc.c",
275 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000276 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200277 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000278 "codecs/ilbc/cb_search_core.c",
279 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000280 "codecs/ilbc/cb_update_best_index.c",
281 "codecs/ilbc/cb_update_best_index.h",
282 "codecs/ilbc/chebyshev.c",
283 "codecs/ilbc/chebyshev.h",
284 "codecs/ilbc/comp_corr.c",
285 "codecs/ilbc/comp_corr.h",
286 "codecs/ilbc/constants.c",
287 "codecs/ilbc/constants.h",
288 "codecs/ilbc/create_augmented_vec.c",
289 "codecs/ilbc/create_augmented_vec.h",
290 "codecs/ilbc/decode.c",
291 "codecs/ilbc/decode.h",
292 "codecs/ilbc/decode_residual.c",
293 "codecs/ilbc/decode_residual.h",
294 "codecs/ilbc/decoder_interpolate_lsf.c",
295 "codecs/ilbc/decoder_interpolate_lsf.h",
296 "codecs/ilbc/defines.h",
297 "codecs/ilbc/do_plc.c",
298 "codecs/ilbc/do_plc.h",
299 "codecs/ilbc/encode.c",
300 "codecs/ilbc/encode.h",
301 "codecs/ilbc/energy_inverse.c",
302 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200303 "codecs/ilbc/enh_upsample.c",
304 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000305 "codecs/ilbc/enhancer.c",
306 "codecs/ilbc/enhancer.h",
307 "codecs/ilbc/enhancer_interface.c",
308 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000309 "codecs/ilbc/filtered_cb_vecs.c",
310 "codecs/ilbc/filtered_cb_vecs.h",
311 "codecs/ilbc/frame_classify.c",
312 "codecs/ilbc/frame_classify.h",
313 "codecs/ilbc/gain_dequant.c",
314 "codecs/ilbc/gain_dequant.h",
315 "codecs/ilbc/gain_quant.c",
316 "codecs/ilbc/gain_quant.h",
317 "codecs/ilbc/get_cd_vec.c",
318 "codecs/ilbc/get_cd_vec.h",
319 "codecs/ilbc/get_lsp_poly.c",
320 "codecs/ilbc/get_lsp_poly.h",
321 "codecs/ilbc/get_sync_seq.c",
322 "codecs/ilbc/get_sync_seq.h",
323 "codecs/ilbc/hp_input.c",
324 "codecs/ilbc/hp_input.h",
325 "codecs/ilbc/hp_output.c",
326 "codecs/ilbc/hp_output.h",
327 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100328 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000329 "codecs/ilbc/index_conv_dec.c",
330 "codecs/ilbc/index_conv_dec.h",
331 "codecs/ilbc/index_conv_enc.c",
332 "codecs/ilbc/index_conv_enc.h",
333 "codecs/ilbc/init_decode.c",
334 "codecs/ilbc/init_decode.h",
335 "codecs/ilbc/init_encode.c",
336 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000337 "codecs/ilbc/interpolate.c",
338 "codecs/ilbc/interpolate.h",
339 "codecs/ilbc/interpolate_samples.c",
340 "codecs/ilbc/interpolate_samples.h",
341 "codecs/ilbc/lpc_encode.c",
342 "codecs/ilbc/lpc_encode.h",
343 "codecs/ilbc/lsf_check.c",
344 "codecs/ilbc/lsf_check.h",
345 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
346 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
347 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
348 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
349 "codecs/ilbc/lsf_to_lsp.c",
350 "codecs/ilbc/lsf_to_lsp.h",
351 "codecs/ilbc/lsf_to_poly.c",
352 "codecs/ilbc/lsf_to_poly.h",
353 "codecs/ilbc/lsp_to_lsf.c",
354 "codecs/ilbc/lsp_to_lsf.h",
355 "codecs/ilbc/my_corr.c",
356 "codecs/ilbc/my_corr.h",
357 "codecs/ilbc/nearest_neighbor.c",
358 "codecs/ilbc/nearest_neighbor.h",
359 "codecs/ilbc/pack_bits.c",
360 "codecs/ilbc/pack_bits.h",
361 "codecs/ilbc/poly_to_lsf.c",
362 "codecs/ilbc/poly_to_lsf.h",
363 "codecs/ilbc/poly_to_lsp.c",
364 "codecs/ilbc/poly_to_lsp.h",
365 "codecs/ilbc/refiner.c",
366 "codecs/ilbc/refiner.h",
367 "codecs/ilbc/simple_interpolate_lsf.c",
368 "codecs/ilbc/simple_interpolate_lsf.h",
369 "codecs/ilbc/simple_lpc_analysis.c",
370 "codecs/ilbc/simple_lpc_analysis.h",
371 "codecs/ilbc/simple_lsf_dequant.c",
372 "codecs/ilbc/simple_lsf_dequant.h",
373 "codecs/ilbc/simple_lsf_quant.c",
374 "codecs/ilbc/simple_lsf_quant.h",
375 "codecs/ilbc/smooth.c",
376 "codecs/ilbc/smooth.h",
377 "codecs/ilbc/smooth_out_data.c",
378 "codecs/ilbc/smooth_out_data.h",
379 "codecs/ilbc/sort_sq.c",
380 "codecs/ilbc/sort_sq.h",
381 "codecs/ilbc/split_vq.c",
382 "codecs/ilbc/split_vq.h",
383 "codecs/ilbc/state_construct.c",
384 "codecs/ilbc/state_construct.h",
385 "codecs/ilbc/state_search.c",
386 "codecs/ilbc/state_search.h",
387 "codecs/ilbc/swap_bytes.c",
388 "codecs/ilbc/swap_bytes.h",
389 "codecs/ilbc/unpack_bits.c",
390 "codecs/ilbc/unpack_bits.h",
391 "codecs/ilbc/vq3.c",
392 "codecs/ilbc/vq3.h",
393 "codecs/ilbc/vq4.c",
394 "codecs/ilbc/vq4.h",
395 "codecs/ilbc/window32_w32.c",
396 "codecs/ilbc/window32_w32.h",
397 "codecs/ilbc/xcorr_coef.c",
398 "codecs/ilbc/xcorr_coef.h",
399 ]
400
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700401 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000402
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000403 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100404 ":audio_decoder_interface",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000405 ":audio_encoder_interface",
kwiberg619a2112016-08-24 02:46:44 -0700406 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100407 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000408 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000409}
410
kjellanderb62dbbe2016-09-23 00:38:52 -0700411rtc_static_library("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700412 sources = [
413 "codecs/isac/audio_encoder_isac_t.h",
414 "codecs/isac/audio_encoder_isac_t_impl.h",
415 "codecs/isac/locked_bandwidth_info.cc",
416 "codecs/isac/locked_bandwidth_info.h",
417 ]
418}
419
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000420config("isac_config") {
421 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000422 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100423 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000424 ]
425}
426
kjellanderb62dbbe2016-09-23 00:38:52 -0700427rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000428 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100429 "codecs/isac/main/include/audio_decoder_isac.h",
430 "codecs/isac/main/include/audio_encoder_isac.h",
431 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000432 "codecs/isac/main/source/arith_routines.c",
433 "codecs/isac/main/source/arith_routines.h",
434 "codecs/isac/main/source/arith_routines_hist.c",
435 "codecs/isac/main/source/arith_routines_logist.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200436 "codecs/isac/main/source/audio_decoder_isac.cc",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000437 "codecs/isac/main/source/audio_encoder_isac.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000438 "codecs/isac/main/source/bandwidth_estimator.c",
439 "codecs/isac/main/source/bandwidth_estimator.h",
440 "codecs/isac/main/source/codec.h",
441 "codecs/isac/main/source/crc.c",
442 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000443 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200444 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000445 "codecs/isac/main/source/encode.c",
446 "codecs/isac/main/source/encode_lpc_swb.c",
447 "codecs/isac/main/source/encode_lpc_swb.h",
448 "codecs/isac/main/source/entropy_coding.c",
449 "codecs/isac/main/source/entropy_coding.h",
450 "codecs/isac/main/source/fft.c",
451 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200452 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000453 "codecs/isac/main/source/filterbank_tables.c",
454 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200455 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000456 "codecs/isac/main/source/intialize.c",
457 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200458 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000459 "codecs/isac/main/source/lattice.c",
460 "codecs/isac/main/source/lpc_analysis.c",
461 "codecs/isac/main/source/lpc_analysis.h",
462 "codecs/isac/main/source/lpc_gain_swb_tables.c",
463 "codecs/isac/main/source/lpc_gain_swb_tables.h",
464 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
465 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
466 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
467 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
468 "codecs/isac/main/source/lpc_tables.c",
469 "codecs/isac/main/source/lpc_tables.h",
470 "codecs/isac/main/source/os_specific_inline.h",
471 "codecs/isac/main/source/pitch_estimator.c",
472 "codecs/isac/main/source/pitch_estimator.h",
473 "codecs/isac/main/source/pitch_filter.c",
474 "codecs/isac/main/source/pitch_gain_tables.c",
475 "codecs/isac/main/source/pitch_gain_tables.h",
476 "codecs/isac/main/source/pitch_lag_tables.c",
477 "codecs/isac/main/source/pitch_lag_tables.h",
478 "codecs/isac/main/source/settings.h",
479 "codecs/isac/main/source/spectrum_ar_model_tables.c",
480 "codecs/isac/main/source/spectrum_ar_model_tables.h",
481 "codecs/isac/main/source/structs.h",
482 "codecs/isac/main/source/transform.c",
483 ]
484
485 if (is_linux) {
486 libs = [ "m" ]
487 }
488
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700489 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000490
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000491 deps = [
492 ":audio_decoder_interface",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000493 ":audio_encoder_interface",
kwiberg608c3cf2015-08-24 02:03:23 -0700494 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700495 "../..:webrtc_common",
496 "../../base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000497 "../../common_audio",
498 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000499}
500
501config("isac_fix_config") {
502 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000503 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100504 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000505 ]
506}
507
kjellanderb62dbbe2016-09-23 00:38:52 -0700508rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000509 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100510 "codecs/isac/fix/include/audio_decoder_isacfix.h",
511 "codecs/isac/fix/include/audio_encoder_isacfix.h",
512 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000513 "codecs/isac/fix/source/arith_routines.c",
514 "codecs/isac/fix/source/arith_routines_hist.c",
515 "codecs/isac/fix/source/arith_routines_logist.c",
516 "codecs/isac/fix/source/arith_routins.h",
Karl Wiberg74043682015-09-22 19:31:40 +0200517 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
kwiberg@webrtc.org88bdec82014-12-16 12:49:37 +0000518 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000519 "codecs/isac/fix/source/bandwidth_estimator.c",
520 "codecs/isac/fix/source/bandwidth_estimator.h",
521 "codecs/isac/fix/source/codec.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000522 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200523 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000524 "codecs/isac/fix/source/decode_plc.c",
525 "codecs/isac/fix/source/encode.c",
526 "codecs/isac/fix/source/entropy_coding.c",
527 "codecs/isac/fix/source/entropy_coding.h",
528 "codecs/isac/fix/source/fft.c",
529 "codecs/isac/fix/source/fft.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000530 "codecs/isac/fix/source/filterbank_tables.c",
531 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200532 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000533 "codecs/isac/fix/source/filters.c",
534 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200535 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000536 "codecs/isac/fix/source/isacfix.c",
537 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700538 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000539 "codecs/isac/fix/source/lpc_masking_model.c",
540 "codecs/isac/fix/source/lpc_masking_model.h",
541 "codecs/isac/fix/source/lpc_tables.c",
542 "codecs/isac/fix/source/lpc_tables.h",
543 "codecs/isac/fix/source/pitch_estimator.c",
544 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700545 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000546 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700547 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000548 "codecs/isac/fix/source/pitch_gain_tables.c",
549 "codecs/isac/fix/source/pitch_gain_tables.h",
550 "codecs/isac/fix/source/pitch_lag_tables.c",
551 "codecs/isac/fix/source/pitch_lag_tables.h",
552 "codecs/isac/fix/source/settings.h",
553 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
554 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
555 "codecs/isac/fix/source/structs.h",
556 "codecs/isac/fix/source/transform.c",
557 "codecs/isac/fix/source/transform_tables.c",
558 ]
559
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700560 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000561
562 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100563 ":audio_decoder_interface",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000564 ":audio_encoder_interface",
kwiberg608c3cf2015-08-24 02:03:23 -0700565 ":isac_common",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000566 "../../common_audio",
567 "../../system_wrappers",
568 ]
569
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700570 if (rtc_build_with_neon) {
Zhongwei Yaoe8a197b2015-04-28 14:42:11 +0800571 deps += [ ":isac_neon" ]
572 }
573
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700574 if (current_cpu == "arm" && arm_version >= 7) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000575 sources += [
576 "codecs/isac/fix/source/lattice_armv7.S",
577 "codecs/isac/fix/source/pitch_filter_armv6.S",
578 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700579 sources -= [
580 "codecs/isac/fix/source/lattice_c.c",
581 "codecs/isac/fix/source/pitch_filter_c.c",
582 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000583 }
584
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000585 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000586 sources += [
587 "codecs/isac/fix/source/entropy_coding_mips.c",
588 "codecs/isac/fix/source/filters_mips.c",
589 "codecs/isac/fix/source/lattice_mips.c",
590 "codecs/isac/fix/source/pitch_estimator_mips.c",
591 "codecs/isac/fix/source/transform_mips.c",
592 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700593 sources -= [
594 "codecs/isac/fix/source/lattice_c.c",
595 "codecs/isac/fix/source/pitch_estimator_c.c",
596 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000597 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200598 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000599 }
600 if (mips_dsp_rev > 1) {
601 sources += [
602 "codecs/isac/fix/source/lpc_masking_model_mips.c",
603 "codecs/isac/fix/source/pitch_filter_mips.c",
604 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200605 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000606 }
607 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000608}
609
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700610if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700611 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800612 sources = [
613 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800614 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800615 "codecs/isac/fix/source/filters_neon.c",
616 "codecs/isac/fix/source/lattice_neon.c",
617 "codecs/isac/fix/source/transform_neon.c",
618 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000619
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700620 if (current_cpu != "arm64") {
621 # Enable compilation for the NEON instruction set. This is needed
622 # since //build/config/arm.gni only enables NEON for iOS, not Android.
623 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700624 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700625 cflags = [ "-mfpu=neon" ]
626 }
627
628 # Disable LTO on NEON targets due to compiler bug.
629 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000630 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000631 cflags -= [
632 "-flto",
633 "-ffat-lto-objects",
634 ]
635 }
636
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200637 deps = [
638 "../../common_audio",
639 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000640 }
641}
642
643config("pcm16b_config") {
644 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000645 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000646 "codecs/pcm16b/include",
647 ]
648}
649
kjellanderb62dbbe2016-09-23 00:38:52 -0700650rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000651 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200652 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100653 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200654 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100655 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000656 "codecs/pcm16b/pcm16b.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100657 "codecs/pcm16b/pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000658 ]
659
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000660 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100661 ":audio_decoder_interface",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000662 ":audio_encoder_interface",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000663 ":g711",
664 ]
665
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700666 public_configs = [ ":pcm16b_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000667}
668
669config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000670 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000671}
672
kjellanderb62dbbe2016-09-23 00:38:52 -0700673rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000674 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200675 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100676 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000677 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100678 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000679 "codecs/opus/opus_inst.h",
680 "codecs/opus/opus_interface.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100681 "codecs/opus/opus_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000682 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000683
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200684 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100685 ":audio_decoder_interface",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200686 ":audio_encoder_interface",
Henrik Lundind048aa02015-12-03 17:47:21 +0100687 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200688 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000689
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000690 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700691 public_deps = [
692 rtc_opus_dir,
693 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000694 } else if (build_with_mozilla) {
695 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000696 }
697}
698
minyue25f6a392016-09-22 22:23:20 -0700699if (rtc_enable_protobuf) {
700 proto_library("ana_debug_dump_proto") {
701 sources = [
702 "audio_network_adaptor/debug_dump.proto",
703 ]
704 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
705 }
706}
707
minyue7610f852016-09-07 13:51:51 -0700708source_set("audio_network_adaptor") {
709 sources = [
710 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700711 "audio_network_adaptor/audio_network_adaptor_impl.cc",
712 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700713 "audio_network_adaptor/bitrate_controller.cc",
714 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700715 "audio_network_adaptor/channel_controller.cc",
716 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700717 "audio_network_adaptor/controller.cc",
718 "audio_network_adaptor/controller.h",
719 "audio_network_adaptor/controller_manager.cc",
720 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700721 "audio_network_adaptor/debug_dump_writer.cc",
722 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700723 "audio_network_adaptor/dtx_controller.cc",
724 "audio_network_adaptor/dtx_controller.h",
minyued0ede442016-09-22 06:20:50 -0700725 "audio_network_adaptor/fec_controller.cc",
726 "audio_network_adaptor/fec_controller.h",
minyuee35d3292016-09-21 16:00:31 -0700727 "audio_network_adaptor/frame_length_controller.cc",
728 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700729 "audio_network_adaptor/include/audio_network_adaptor.h",
minyue35483572016-09-20 23:13:08 -0700730 "audio_network_adaptor/smoothing_filter.cc",
731 "audio_network_adaptor/smoothing_filter.h",
minyue7610f852016-09-07 13:51:51 -0700732 ]
733 configs += [ "../..:common_config" ]
734 public_configs = [ "../..:common_inherited_config" ]
minyue25f6a392016-09-22 22:23:20 -0700735
736 if (rtc_enable_protobuf) {
737 deps = [
738 ":ana_debug_dump_proto",
739 ]
740 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ]
741 }
minyue7610f852016-09-07 13:51:51 -0700742}
743
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000744config("neteq_config") {
745 include_dirs = [
746 # Need Opus header files for the audio classifier.
747 "//third_party/opus/src/celt",
748 "//third_party/opus/src/src",
749 ]
750}
751
kjellanderb62dbbe2016-09-23 00:38:52 -0700752rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000753 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000754 "neteq/accelerate.cc",
755 "neteq/accelerate.h",
756 "neteq/audio_classifier.cc",
757 "neteq/audio_classifier.h",
758 "neteq/audio_decoder_impl.cc",
759 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000760 "neteq/audio_multi_vector.cc",
761 "neteq/audio_multi_vector.h",
762 "neteq/audio_vector.cc",
763 "neteq/audio_vector.h",
764 "neteq/background_noise.cc",
765 "neteq/background_noise.h",
766 "neteq/buffer_level_filter.cc",
767 "neteq/buffer_level_filter.h",
768 "neteq/comfort_noise.cc",
769 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700770 "neteq/cross_correlation.cc",
771 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000772 "neteq/decision_logic.cc",
773 "neteq/decision_logic.h",
774 "neteq/decision_logic_fax.cc",
775 "neteq/decision_logic_fax.h",
776 "neteq/decision_logic_normal.cc",
777 "neteq/decision_logic_normal.h",
778 "neteq/decoder_database.cc",
779 "neteq/decoder_database.h",
780 "neteq/defines.h",
781 "neteq/delay_manager.cc",
782 "neteq/delay_manager.h",
783 "neteq/delay_peak_detector.cc",
784 "neteq/delay_peak_detector.h",
785 "neteq/dsp_helper.cc",
786 "neteq/dsp_helper.h",
787 "neteq/dtmf_buffer.cc",
788 "neteq/dtmf_buffer.h",
789 "neteq/dtmf_tone_generator.cc",
790 "neteq/dtmf_tone_generator.h",
791 "neteq/expand.cc",
792 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100793 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000794 "neteq/merge.cc",
795 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700796 "neteq/nack_tracker.cc",
797 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200798 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000799 "neteq/neteq_impl.cc",
800 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000801 "neteq/normal.cc",
802 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -0700803 "neteq/packet.cc",
804 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000805 "neteq/packet_buffer.cc",
806 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000807 "neteq/post_decode_vad.cc",
808 "neteq/post_decode_vad.h",
809 "neteq/preemptive_expand.cc",
810 "neteq/preemptive_expand.h",
811 "neteq/random_vector.cc",
812 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -0700813 "neteq/red_payload_splitter.cc",
814 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000815 "neteq/rtcp.cc",
816 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200817 "neteq/statistics_calculator.cc",
818 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000819 "neteq/sync_buffer.cc",
820 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -0700821 "neteq/tick_timer.cc",
822 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000823 "neteq/time_stretch.cc",
824 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200825 "neteq/timestamp_scaler.cc",
826 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000827 ]
828
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700829 public_configs = [ ":neteq_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000830
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000831 deps = [
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000832 ":audio_decoder_interface",
kwiberg5178ee82016-05-03 01:39:01 -0700833 ":builtin_audio_decoder_factory",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000834 ":cng",
835 ":g711",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000836 ":pcm16b",
kwiberg5178ee82016-05-03 01:39:01 -0700837 ":rent_a_codec",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000838 "../..:webrtc_common",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000839 "../../common_audio",
840 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000841 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +0000842
843 defines = []
844
kwibergf8c2bac2016-01-18 06:38:32 -0800845 if (rtc_include_ilbc) {
846 defines += [ "WEBRTC_CODEC_ILBC" ]
847 deps += [ ":ilbc" ]
848 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +0000849 if (rtc_include_opus) {
850 defines += [ "WEBRTC_CODEC_OPUS" ]
851 deps += [ ":webrtc_opus" ]
852 }
kwiberg98ab3a42015-09-30 21:54:21 -0700853 if (!build_with_mozilla) {
854 if (current_cpu == "arm") {
855 defines += [ "WEBRTC_CODEC_ISACFX" ]
856 deps += [ ":isac_fix" ]
857 } else {
858 defines += [ "WEBRTC_CODEC_ISAC" ]
859 deps += [ ":isac" ]
860 }
861 defines += [ "WEBRTC_CODEC_G722" ]
862 deps += [ ":g722" ]
863 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000864}
kjellanderfb114242016-06-13 00:19:48 -0700865
866if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -0700867 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -0700868 testonly = true
869 sources = [
870 "acm2/acm_receive_test_oldapi.cc",
871 "acm2/acm_receive_test_oldapi.h",
872 ]
873
kjellanderfb114242016-06-13 00:19:48 -0700874 defines = audio_coding_defines
875
876 deps = audio_coding_deps + [
877 ":audio_coding",
878 ":neteq_unittest_tools",
879 "//testing/gtest",
880 ]
881 }
882
ehmaldonado38a21322016-09-02 04:10:34 -0700883 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -0700884 testonly = true
885 sources = [
886 "acm2/acm_send_test_oldapi.cc",
887 "acm2/acm_send_test_oldapi.h",
888 ]
889
kjellanderfb114242016-06-13 00:19:48 -0700890 defines = audio_coding_defines
891
892 deps = audio_coding_deps + [
893 ":audio_coding",
894 ":neteq_unittest_tools",
895 "//testing/gtest",
896 ]
897 }
898
ehmaldonado38a21322016-09-02 04:10:34 -0700899 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -0700900 testonly = true
901 sources = [
902 "test/Channel.cc",
903 "test/PCMFile.cc",
904 "test/delay_test.cc",
905 "test/utility.cc",
906 ]
907
aleloi333f2062016-07-28 01:21:29 -0700908 deps = [
909 ":audio_coding",
910 "../../:webrtc_common",
911 "../../system_wrappers",
912 "../../system_wrappers:system_wrappers_default",
913 "../../test:test_support",
914 "../rtp_rtcp",
915 "//testing/gtest",
916 "//third_party/gflags:gflags",
917 ]
918 } # delay_test
919
ehmaldonado38a21322016-09-02 04:10:34 -0700920 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -0700921 testonly = true
922 sources = [
923 "test/Channel.cc",
924 "test/PCMFile.cc",
925 "test/insert_packet_with_timing.cc",
926 ]
927
aleloi00730c72016-07-28 01:27:10 -0700928 if (is_clang) {
929 # Suppress warnings from Chrome's Clang plugins.
930 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -0700931 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -0700932 }
933
934 deps = [
935 ":audio_coding",
936 "../../:webrtc_common",
937 "../../system_wrappers",
938 "../../system_wrappers:system_wrappers_default",
939 "../../test:test_support",
940 "../rtp_rtcp",
941 "//testing/gtest",
942 "//third_party/gflags:gflags",
943 ]
944 } # insert_packet_with_timing
945
ehmaldonado3a7f35b2016-09-14 05:10:01 -0700946 audio_decoder_unittests_resources =
947 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -0700948
949 if (is_ios) {
950 bundle_data("audio_decoder_unittests_bundle_data") {
951 testonly = true
952 sources = audio_decoder_unittests_resources
953 outputs = [
954 "{{bundle_resources_dir}}/{{source_file_part}}",
955 ]
956 }
957 }
958
ehmaldonado38a21322016-09-02 04:10:34 -0700959 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -0700960 testonly = true
961 sources = [
962 "neteq/audio_decoder_unittest.cc",
963 ]
964
charujainddf3e4a2016-08-01 07:49:42 -0700965 if (is_clang) {
966 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -0700967 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -0700968 }
969
970 deps = []
971
972 defines = neteq_defines
973
974 deps += audio_coding_deps
975 deps += [
976 ":audio_decoder_interface",
977 ":isac",
978 ":isac_fix",
979 ":neteq",
980 ":neteq_unittest_tools",
981 "../../common_audio/",
982 "../../test:test_support_main",
983 "//testing/gtest",
984 ]
985
ehmaldonado3a7f35b2016-09-14 05:10:01 -0700986 data = audio_decoder_unittests_resources
987
charujainddf3e4a2016-08-01 07:49:42 -0700988 if (is_android) {
989 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -0700990 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -0700991 }
kjellander32c4a202016-08-30 02:53:49 -0700992 if (is_ios) {
993 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -0700994 }
995 } # audio_decoder_unittests
996
kjellanderfb114242016-06-13 00:19:48 -0700997 if (rtc_enable_protobuf) {
998 proto_library("neteq_unittest_proto") {
999 sources = [
1000 "neteq/neteq_unittest.proto",
1001 ]
1002 proto_out_dir = "webrtc/audio_coding/neteq"
1003 }
henrik.lundin03153f12016-06-21 05:38:42 -07001004
kjellanderb62dbbe2016-09-23 00:38:52 -07001005 rtc_static_library("rtc_event_log_source") {
henrik.lundin03153f12016-06-21 05:38:42 -07001006 testonly = true
1007 sources = [
1008 "neteq/tools/rtc_event_log_source.cc",
1009 "neteq/tools/rtc_event_log_source.h",
1010 ]
1011
1012 if (is_clang) {
1013 # Suppress warnings from the Chromium Clang plugins
1014 # (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001015 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001016 }
1017
1018 deps = [
1019 "../../:rtc_event_log_parser",
1020 ]
1021 public_deps = [
1022 "../../:rtc_event_log_proto",
1023 ]
1024 }
1025
ehmaldonado38a21322016-09-02 04:10:34 -07001026 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001027 testonly = true
1028 defines = []
1029 deps = []
1030 sources = [
1031 "neteq/tools/neteq_rtpplay.cc",
1032 ]
1033
1034 if (is_clang) {
1035 # Suppress warnings from the Chromium Clang plugins
1036 # (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001037 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001038 }
1039
1040 if (is_win) {
1041 cflags = [
1042 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1043 "/wd4373", # virtual function override.
1044 ]
1045 }
1046
1047 deps += [
1048 ":neteq",
1049 ":neteq_unittest_tools",
henrik.lundin03153f12016-06-21 05:38:42 -07001050 "../../system_wrappers:system_wrappers_default",
1051 "../../test:test_support",
1052 "//third_party/gflags",
1053 ]
1054 }
kjellanderfb114242016-06-13 00:19:48 -07001055 }
1056
ehmaldonado38a21322016-09-02 04:10:34 -07001057 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001058 testonly = true
1059 defines = []
1060 deps = []
1061 sources = [
1062 "codecs/isac/fix/test/isac_speed_test.cc",
1063 "codecs/opus/opus_speed_test.cc",
1064 "codecs/tools/audio_codec_speed_test.cc",
1065 "codecs/tools/audio_codec_speed_test.h",
1066 ]
1067
1068 if (is_clang) {
1069 # Suppress warnings from the Chromium Clang plugins
1070 # (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001071 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001072 }
1073
1074 if (is_android) {
1075 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001076 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001077 }
1078
1079 deps += [
1080 ":isac_fix",
1081 ":webrtc_opus",
1082 "../../system_wrappers:system_wrappers_default",
1083 "../../test:test_support_main",
1084 "../audio_processing/",
1085 "//testing/gtest",
1086 ]
1087 }
1088
ehmaldonado38a21322016-09-02 04:10:34 -07001089 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001090 testonly = true
1091 sources = [
1092 "neteq/tools/neteq_external_decoder_test.cc",
1093 "neteq/tools/neteq_external_decoder_test.h",
1094 "neteq/tools/neteq_performance_test.cc",
1095 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001096 ]
1097
kjellanderfb114242016-06-13 00:19:48 -07001098 if (is_clang) {
1099 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001100 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001101 }
1102
1103 deps = [
1104 ":neteq",
1105 ":neteq_unittest_tools",
1106 ":pcm16b",
1107 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001108 ]
1109 }
1110
ehmaldonado38a21322016-09-02 04:10:34 -07001111 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001112 testonly = true
1113 sources = [
1114 "neteq/tools/neteq_quality_test.cc",
1115 "neteq/tools/neteq_quality_test.h",
1116 ]
1117
ehmaldonado861da3c2016-08-19 07:02:24 -07001118 if (is_clang) {
1119 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001120 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001121 }
1122
1123 deps = [
1124 ":neteq",
1125 ":neteq_unittest_tools",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001126 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001127 "//third_party/gflags",
1128 ]
1129 }
1130
kjellanderfb114242016-06-13 00:19:48 -07001131 config("neteq_unittest_tools_config") {
1132 include_dirs = [ "tools" ]
1133 }
1134
ehmaldonado38a21322016-09-02 04:10:34 -07001135 rtc_source_set("neteq_unittest_tools") {
kjellanderfb114242016-06-13 00:19:48 -07001136 testonly = true
1137 sources = [
1138 "neteq/tools/audio_checksum.h",
1139 "neteq/tools/audio_loop.cc",
1140 "neteq/tools/audio_loop.h",
aleloi0e0be0a2016-08-10 04:55:20 -07001141 "neteq/tools/audio_sink.cc",
kjellanderfb114242016-06-13 00:19:48 -07001142 "neteq/tools/audio_sink.h",
1143 "neteq/tools/constant_pcm_packet_source.cc",
1144 "neteq/tools/constant_pcm_packet_source.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001145 "neteq/tools/fake_decode_from_file.cc",
1146 "neteq/tools/fake_decode_from_file.h",
kjellanderfb114242016-06-13 00:19:48 -07001147 "neteq/tools/input_audio_file.cc",
1148 "neteq/tools/input_audio_file.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001149 "neteq/tools/neteq_input.h",
1150 "neteq/tools/neteq_packet_source_input.cc",
1151 "neteq/tools/neteq_packet_source_input.h",
1152 "neteq/tools/neteq_replacement_input.cc",
1153 "neteq/tools/neteq_replacement_input.h",
1154 "neteq/tools/neteq_test.cc",
1155 "neteq/tools/neteq_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001156 "neteq/tools/output_audio_file.h",
1157 "neteq/tools/output_wav_file.h",
1158 "neteq/tools/packet.cc",
1159 "neteq/tools/packet.h",
kwibergb8e56ee2016-08-29 06:37:33 -07001160 "neteq/tools/packet_source.cc",
kjellanderfb114242016-06-13 00:19:48 -07001161 "neteq/tools/packet_source.h",
1162 "neteq/tools/resample_input_audio_file.cc",
1163 "neteq/tools/resample_input_audio_file.h",
1164 "neteq/tools/rtp_file_source.cc",
1165 "neteq/tools/rtp_file_source.h",
1166 "neteq/tools/rtp_generator.cc",
1167 "neteq/tools/rtp_generator.h",
1168 ]
1169
ehmaldonadoe9cc6862016-09-05 06:10:18 -07001170 public_configs = [ ":neteq_unittest_tools_config" ]
kjellanderfb114242016-06-13 00:19:48 -07001171
1172 if (is_clang) {
1173 # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001174 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001175 }
1176
1177 deps = [
1178 "../../common_audio",
1179 "../../test:rtp_test_utils",
1180 "../rtp_rtcp",
1181 ]
henrik.lundine8a77e32016-06-22 06:34:03 -07001182
1183 if (rtc_enable_protobuf) {
1184 deps += [ ":rtc_event_log_source" ]
1185 }
kjellanderfb114242016-06-13 00:19:48 -07001186 }
aleloi3022a342016-07-26 06:36:03 -07001187
ehmaldonado38a21322016-09-02 04:10:34 -07001188 rtc_source_set("neteq_test_tools") {
aleloi3022a342016-07-26 06:36:03 -07001189 testonly = true
1190 sources = [
1191 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1192 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1193 "neteq/test/NETEQTEST_RTPpacket.cc",
1194 "neteq/test/NETEQTEST_RTPpacket.h",
1195 ]
1196
1197 deps = [
1198 ":cng",
1199 ":g711",
1200 ":g722",
1201 ":ilbc",
1202 ":isac",
1203 ":pcm16b",
1204 "../..:webrtc_common",
1205 "//testing/gtest",
1206 ]
1207
1208 include_dirs = [
1209 "neteq/include",
1210 "neteq/test",
1211 "../../",
1212 ]
1213
1214 if (is_win) {
1215 cflags = [
1216 # Disable warnings to enable Win64 build, issue 1323.
1217 "/wd4267", # size_t to int truncation
1218 ]
1219 }
1220 }
aleloi47bded42016-07-26 06:46:19 -07001221
aleloi82667732016-08-02 01:45:50 -07001222 config("RTPencode_config") {
1223 defines = [
1224 "CODEC_ILBC",
1225 "CODEC_PCM16B",
1226 "CODEC_G711",
1227 "CODEC_G722",
1228 "CODEC_ISAC",
1229 "CODEC_PCM16B_WB",
1230 "CODEC_ISAC_SWB",
1231 "CODEC_PCM16B_32KHZ",
1232 "CODEC_PCM16B_48KHZ",
1233 "CODEC_CNGCODEC8",
1234 "CODEC_CNGCODEC16",
1235 "CODEC_CNGCODEC32",
1236 "CODEC_ATEVENT_DECODE",
1237 "CODEC_RED",
1238 "CODEC_OPUS",
1239 ]
1240 }
1241
ehmaldonado38a21322016-09-02 04:10:34 -07001242 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001243 testonly = true
1244
1245 deps = [
1246 # TODO(hlundin): Make RTPencode use ACM to encode files.
1247 ":cng",
1248 ":g711",
1249 ":g722",
1250 ":ilbc",
1251 ":isac",
1252 ":neteq_test_tools",
1253 ":pcm16b",
1254 ":webrtc_opus",
1255 "../../common_audio",
1256 ]
1257
1258 configs += [ ":RTPencode_config" ]
1259
1260 sources = [
1261 "neteq/test/RTPencode.cc",
1262 ]
1263
1264 include_dirs = [
1265 "neteq/include",
1266 "neteq/test",
1267 ]
1268
1269 if (is_win) {
1270 cflags = [
1271 # Disable warnings to enable Win64 build, issue 1323.
1272 "/wd4267", # size_t to int truncation
1273 ]
1274 }
1275 }
1276
ehmaldonado38a21322016-09-02 04:10:34 -07001277 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001278 testonly = true
1279
1280 sources = [
1281 "neteq/test/RTPchange.cc",
1282 ]
1283
1284 deps = [
1285 ":neteq_test_tools",
1286 ]
1287 }
1288
ehmaldonado38a21322016-09-02 04:10:34 -07001289 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001290 testonly = true
1291
1292 sources = [
1293 "neteq/tools/rtpcat.cc",
1294 ]
1295
1296 deps = [
1297 "../../system_wrappers:system_wrappers_default",
1298 "../../test:rtp_test_utils",
1299 "//testing/gtest",
1300 ]
1301 }
1302
ehmaldonado38a21322016-09-02 04:10:34 -07001303 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001304 testonly = true
1305
1306 sources = [
1307 "neteq/test/RTPtimeshift.cc",
1308 ]
1309
1310 deps = [
1311 ":neteq_test_tools",
1312 "//testing/gtest",
1313 ]
1314 }
1315
ehmaldonado38a21322016-09-02 04:10:34 -07001316 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001317 testonly = true
1318 deps = [
1319 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001320 "../../base:rtc_base_approved",
aleloi17dfa742016-08-03 01:17:25 -07001321 "//testing/gtest",
1322 ]
1323 sources = [
1324 "neteq/test/RTPjitter.cc",
1325 ]
1326 }
1327
ehmaldonado38a21322016-09-02 04:10:34 -07001328 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001329 testonly = true
1330
1331 sources = [
1332 "neteq/tools/rtp_analyze.cc",
1333 ]
1334
1335 deps = [
1336 ":neteq",
1337 ":neteq_unittest_tools",
1338 ":pcm16b",
1339 "../../system_wrappers:system_wrappers_default",
1340 "//testing/gtest",
1341 "//third_party/gflags:gflags",
1342 ]
1343
1344 if (is_clang) {
1345 # Suppress warnings from Chrome's Clang plugins.
1346 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -07001347 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001348 }
1349 }
aleloi630c6d52016-08-10 02:11:30 -07001350
ehmaldonado38a21322016-09-02 04:10:34 -07001351 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001352 testonly = true
1353
1354 sources = [
1355 "neteq/test/neteq_opus_quality_test.cc",
1356 ]
1357
1358 deps = [
1359 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001360 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001361 ":neteq_unittest_tools",
aleloi630c6d52016-08-10 02:11:30 -07001362 ":webrtc_opus",
1363 "../../test:test_support_main",
1364 "//testing/gtest",
1365 "//third_party/gflags",
1366 ]
aleloi630c6d52016-08-10 02:11:30 -07001367 }
aleloi116fd612016-08-10 04:16:36 -07001368
ehmaldonado38a21322016-09-02 04:10:34 -07001369 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001370 testonly = true
1371
1372 sources = [
1373 "neteq/test/neteq_speed_test.cc",
1374 ]
1375
1376 deps = [
1377 ":neteq",
1378 ":neteq_test_support",
1379 "../../system_wrappers:system_wrappers_default",
1380 "../../test:test_support",
1381 "//third_party/gflags",
1382 ]
1383 }
aleloi63910122016-08-10 04:41:14 -07001384
ehmaldonado38a21322016-09-02 04:10:34 -07001385 rtc_executable("audio_classifier_test") {
aleloi63910122016-08-10 04:41:14 -07001386 testonly = true
1387 sources = [
1388 "neteq/test/audio_classifier_test.cc",
1389 ]
1390 deps = [
1391 ":neteq",
1392 ":webrtc_opus",
1393 "../../system_wrappers:system_wrappers_default",
1394 ]
1395 }
aleloi0e0be0a2016-08-10 04:55:20 -07001396
ehmaldonado38a21322016-09-02 04:10:34 -07001397 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001398 testonly = true
1399
1400 sources = [
1401 "neteq/test/neteq_ilbc_quality_test.cc",
1402 ]
1403
1404 deps = [
1405 ":ilbc",
1406 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001407 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001408 ":neteq_unittest_tools",
1409 "../../system_wrappers:system_wrappers_default",
1410 "../../test:test_support_main",
1411 "//testing/gtest",
1412 "//third_party/gflags",
1413 ]
1414 }
aleloi6df36dc2016-08-10 05:04:47 -07001415
ehmaldonado38a21322016-09-02 04:10:34 -07001416 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001417 testonly = true
1418
1419 sources = [
1420 "neteq/test/neteq_isac_quality_test.cc",
1421 ]
1422
1423 deps = [
1424 ":isac_fix",
1425 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001426 ":neteq_quality_test_support",
aleloi6df36dc2016-08-10 05:04:47 -07001427 "../../test:test_support_main",
1428 "//testing/gtest",
1429 "//third_party/gflags",
1430 ]
1431 }
aleloic4ac7002016-08-10 05:06:27 -07001432
ehmaldonado38a21322016-09-02 04:10:34 -07001433 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001434 testonly = true
1435
1436 sources = [
1437 "neteq/test/neteq_pcmu_quality_test.cc",
1438 ]
1439
1440 deps = [
1441 ":g711",
1442 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001443 ":neteq_quality_test_support",
aleloic4ac7002016-08-10 05:06:27 -07001444 "../../test:test_support_main",
1445 "//testing/gtest",
1446 "//third_party/gflags",
1447 ]
1448 }
aleloib7186d02016-08-16 01:47:16 -07001449
ehmaldonado38a21322016-09-02 04:10:34 -07001450 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001451 testonly = true
1452
1453 sources = [
1454 "codecs/isac/fix/test/kenny.cc",
1455 ]
1456
1457 deps = [
1458 ":isac_fix",
1459 "../../test:test_support",
1460 ]
1461
1462 if (is_win) {
1463 cflags = [
1464 # Disable warnings to enable Win64 build, issue 1323.
1465 "/wd4267", # size_t to int truncation
1466 ]
1467 }
1468 }
aleloi16f55a12016-08-23 08:08:23 -07001469
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001470 config("isac_test_warnings_config") {
1471 if (is_win && is_clang) {
1472 cflags = [
1473 # Disable warnings failing when compiling with Clang on Windows.
1474 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1475 "-Wno-format",
1476 ]
1477 }
1478 }
1479
ehmaldonado38a21322016-09-02 04:10:34 -07001480 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001481 testonly = true
1482
1483 sources = [
1484 "codecs/isac/main/test/simpleKenny.c",
1485 "codecs/isac/main/util/utility.c",
1486 ]
1487
1488 include_dirs = [
1489 "codecs/isac/main/include",
1490 "codecs/isac/main/test",
1491 "codecs/isac/main/util",
1492 ]
1493
1494 deps = [
1495 ":isac",
ivoc48052312016-08-25 04:43:45 -07001496 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001497 ]
1498
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001499 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001500 }
1501
ehmaldonado38a21322016-09-02 04:10:34 -07001502 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001503 testonly = true
1504
1505 sources = [
1506 "codecs/g711/test/testG711.cc",
1507 ]
1508
aleloi16f55a12016-08-23 08:08:23 -07001509 deps = [
1510 ":g711",
1511 ]
1512 }
aleloi9a117842016-08-23 08:36:10 -07001513
ehmaldonado38a21322016-09-02 04:10:34 -07001514 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001515 testonly = true
1516
1517 sources = [
1518 "codecs/g722/test/testG722.cc",
1519 ]
1520
aleloi9a117842016-08-23 08:36:10 -07001521 deps = [
1522 ":g722",
1523 "../..:webrtc_common",
1524 ]
1525 }
ivoc2c670db2016-08-24 06:11:18 -07001526
ehmaldonado38a21322016-09-02 04:10:34 -07001527 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001528 testonly = true
1529
1530 sources = [
1531 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
1532 "codecs/isac/main/util/utility.c",
1533 ]
1534
aleloicfee2152016-08-29 04:09:19 -07001535 deps = [
1536 ":isac",
1537 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001538 ]
1539
1540 include_dirs = [
1541 "codecs/isac/main/include",
1542 "codecs/isac/main/test",
1543 "codecs/isac/main/util",
1544 ]
1545 }
1546
ehmaldonado38a21322016-09-02 04:10:34 -07001547 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001548 testonly = true
1549
1550 sources = [
1551 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
1552 "codecs/isac/main/util/utility.c",
1553 ]
1554
aleloicfee2152016-08-29 04:09:19 -07001555 deps = [
1556 ":isac",
aleloicfee2152016-08-29 04:09:19 -07001557 ]
1558
1559 include_dirs = [
1560 "codecs/isac/main/include",
1561 "codecs/isac/main/test",
1562 "codecs/isac/main/util",
1563 "../../common_audio/signal_processing/include",
1564 ]
1565 }
1566
ehmaldonado38a21322016-09-02 04:10:34 -07001567 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07001568 testonly = true
1569
1570 sources = [
1571 "codecs/ilbc/test/iLBC_test.c",
1572 ]
1573
aleloicfee2152016-08-29 04:09:19 -07001574 deps = [
1575 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07001576 ]
1577 }
1578
ehmaldonado38a21322016-09-02 04:10:34 -07001579 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07001580 testonly = true
1581
1582 sources = [
1583 "codecs/opus/opus_fec_test.cc",
1584 ]
1585
1586 deps = [
1587 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07001588 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07001589 "../../common_audio",
1590 "../../test:test_support",
1591 "../../test:test_support_main",
ivoc2c670db2016-08-24 06:11:18 -07001592 "//testing/gtest",
1593 ]
1594
1595 if (is_clang) {
1596 # Suppress warnings from Chrome's Clang plugins.
1597 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -07001598 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07001599 }
1600 }
kjellanderfb114242016-06-13 00:19:48 -07001601}