blob: 70ecc55dc2aa86d3f2739bdd6d91567fe112be17 [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
kwibergda2bf4e2016-10-24 13:47:09 -070042rtc_static_library("audio_format") {
kwibergc01c6a42016-04-28 14:23:32 -070043 sources = [
kwibergc01c6a42016-04-28 14:23:32 -070044 "codecs/audio_format.cc",
45 "codecs/audio_format.h",
46 ]
kwibergc01c6a42016-04-28 14:23:32 -070047 deps = [
kwiberga6b82982016-10-24 16:31:17 -070048 "../..:webrtc_common",
kwibergda2bf4e2016-10-24 13:47:09 -070049 ]
50}
51
52rtc_static_library("audio_format_conversion") {
53 sources = [
54 "codecs/audio_format_conversion.cc",
55 "codecs/audio_format_conversion.h",
56 ]
57 deps = [
58 ":audio_format",
kwiberga6b82982016-10-24 16:31:17 -070059 "../..:webrtc_common",
60 "../../base:rtc_base_approved",
kwibergda2bf4e2016-10-24 13:47:09 -070061 ]
62}
63
64rtc_source_set("audio_decoder_factory_interface") {
65 sources = [
66 "codecs/audio_decoder_factory.h",
67 ]
68 deps = [
69 ":audio_decoder_interface",
70 ":audio_format",
charujain1515e952016-11-02 08:43:34 -070071
72 # TODO(charujain): Clean this dependency when downstream projects are
73 # updated to properly depend on audio_format_conversion target.
74 ":audio_format_conversion",
kwiberga6b82982016-10-24 16:31:17 -070075 "../../base:rtc_base_approved",
kwibergc01c6a42016-04-28 14:23:32 -070076 ]
77}
78
kjellanderb62dbbe2016-09-23 00:38:52 -070079rtc_static_library("builtin_audio_decoder_factory") {
kjellander676e08f2016-12-07 08:23:27 -080080 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
81 # Errors on cyclic dependency with :isac_fix if enabled.
82 check_includes = false
83
kwibergc01c6a42016-04-28 14:23:32 -070084 sources = [
85 "codecs/builtin_audio_decoder_factory.cc",
86 "codecs/builtin_audio_decoder_factory.h",
87 ]
kwibergc01c6a42016-04-28 14:23:32 -070088 deps = [
89 "../..:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -080090 "../../base:rtc_base_approved",
kwibergc01c6a42016-04-28 14:23:32 -070091 ":audio_decoder_factory_interface",
92 ] + audio_codec_deps
93 defines = audio_codec_defines
94}
95
kjellanderb62dbbe2016-09-23 00:38:52 -070096rtc_static_library("rent_a_codec") {
kjellander676e08f2016-12-07 08:23:27 -080097 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
98 # Gives cyclic dependency with :neteq and :audio_coding if enabled.
99 check_includes = false
100
kwibergfce4a942015-10-27 11:40:24 -0700101 sources = [
kjellander3e6db232015-11-26 04:44:54 -0800102 "acm2/acm_codec_database.cc",
103 "acm2/acm_codec_database.h",
104 "acm2/rent_a_codec.cc",
105 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -0700106 ]
kjellander676e08f2016-12-07 08:23:27 -0800107 deps = [
108 ":audio_decoder_interface",
109 "../..:webrtc_common",
110 "../../base:rtc_base_approved",
111 ] + audio_codec_deps
kwiberg0edb05b2016-01-19 05:54:28 -0800112 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -0700113}
114
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000115config("audio_coding_config") {
116 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -0800117 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +0100118 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000119 ]
120}
121
kjellanderb62dbbe2016-09-23 00:38:52 -0700122rtc_static_library("audio_coding") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000123 sources = [
kjellander3e6db232015-11-26 04:44:54 -0800124 "acm2/acm_common_defs.h",
125 "acm2/acm_receiver.cc",
126 "acm2/acm_receiver.h",
127 "acm2/acm_resampler.cc",
128 "acm2/acm_resampler.h",
129 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800130 "acm2/call_statistics.cc",
131 "acm2/call_statistics.h",
132 "acm2/codec_manager.cc",
133 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800134 "include/audio_coding_module.h",
135 "include/audio_coding_module_typedefs.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000136 ]
137
138 defines = []
139
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700140 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000141
kjellanderfb114242016-06-13 00:19:48 -0700142 if (rtc_include_opus) {
143 public_deps = [
144 ":webrtc_opus",
145 ]
146 }
147
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000148 if (is_win) {
149 cflags = [
150 # TODO(kjellander): Bug 261: fix this warning.
151 "/wd4373", # virtual function override.
152 ]
153 }
154
kjellanderfb114242016-06-13 00:19:48 -0700155 deps = audio_coding_deps + [
kjellander676e08f2016-12-07 08:23:27 -0800156 ":audio_decoder_interface",
157 ":audio_decoder_factory_interface",
158 ":builtin_audio_decoder_factory",
kwiberg0edb05b2016-01-19 05:54:28 -0800159 ":neteq",
160 ":rent_a_codec",
kjellander676e08f2016-12-07 08:23:27 -0800161 "../../base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -0700162 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800163 ]
kjellanderfb114242016-06-13 00:19:48 -0700164 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000165}
166
kjellanderb62dbbe2016-09-23 00:38:52 -0700167rtc_static_library("audio_decoder_interface") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000168 sources = [
169 "codecs/audio_decoder.cc",
170 "codecs/audio_decoder.h",
ossu7f40ba42016-09-21 05:50:37 -0700171 "codecs/legacy_encoded_audio_frame.cc",
172 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000173 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200174 deps = [
175 "../..:webrtc_common",
kjellander4e7f6c12016-04-25 21:59:50 -0700176 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200177 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000178}
179
kjellanderb62dbbe2016-09-23 00:38:52 -0700180rtc_static_library("audio_encoder_interface") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000181 sources = [
182 "codecs/audio_encoder.cc",
183 "codecs/audio_encoder.h",
184 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200185 deps = [
186 "../..:webrtc_common",
kjellander4e7f6c12016-04-25 21:59:50 -0700187 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200188 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000189}
190
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000191config("cng_config") {
192 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000193 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000194 "codecs/cng/include",
195 ]
196}
197
kjellanderb62dbbe2016-09-23 00:38:52 -0700198rtc_static_library("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000199 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000200 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100201 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700202 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100203 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000204 ]
205
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700206 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000207
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000208 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000209 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800210 "../..:webrtc_common",
211 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100212 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000213 ]
214}
215
216config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200217 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000218}
219
kjellanderb62dbbe2016-09-23 00:38:52 -0700220rtc_static_library("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000221 sources = [
222 "codecs/red/audio_encoder_copy_red.cc",
223 "codecs/red/audio_encoder_copy_red.h",
224 ]
225
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700226 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000227
228 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000229 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800230 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100231 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000232 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000233}
234
235config("g711_config") {
236 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000237 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000238 "codecs/g711/include",
239 ]
240}
241
kjellanderb62dbbe2016-09-23 00:38:52 -0700242rtc_static_library("g711") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000243 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700244 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100245 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000246 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100247 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000248 ]
249
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700250 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000251
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200252 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100253 ":audio_decoder_interface",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200254 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800255 "../..:webrtc_common",
256 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200257 ]
kjellander7439f972016-12-05 22:47:46 -0800258 public_deps = [
259 ":g711_c",
260 ]
261}
262
263rtc_source_set("g711_c") {
264 visibility = [ ":*" ] # Only targets in this file can depend on this.
265 sources = [
266 "codecs/g711/g711.c",
267 "codecs/g711/g711.h",
268 "codecs/g711/g711_interface.c",
269 "codecs/g711/g711_interface.h",
270 ]
kjellander676e08f2016-12-07 08:23:27 -0800271 deps = [
272 "../..:webrtc_common",
273 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000274}
275
276config("g722_config") {
277 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000278 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000279 "codecs/g722/include",
280 ]
281}
282
kjellanderb62dbbe2016-09-23 00:38:52 -0700283rtc_static_library("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000284 sources = [
kwibergada4c132015-09-17 03:12:35 -0700285 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100286 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000287 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100288 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000289 ]
290
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700291 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000292
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200293 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100294 ":audio_decoder_interface",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200295 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800296 "../..:webrtc_common",
297 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200298 ]
kjellander7439f972016-12-05 22:47:46 -0800299 public_deps = [
300 ":g722_c",
301 ]
302}
303
304rtc_source_set("g722_c") {
305 visibility = [ ":*" ] # Only targets in this file can depend on this.
306 sources = [
307 "codecs/g722/g722_decode.c",
308 "codecs/g722/g722_enc_dec.h",
309 "codecs/g722/g722_encode.c",
310 "codecs/g722/g722_interface.c",
311 "codecs/g722/g722_interface.h",
312 ]
kjellander676e08f2016-12-07 08:23:27 -0800313 deps = [
314 "../..:webrtc_common",
315 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000316}
317
318config("ilbc_config") {
319 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000320 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100321 "codecs/ilbc/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000322 ]
323}
324
kjellanderb62dbbe2016-09-23 00:38:52 -0700325rtc_static_library("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000326 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700327 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100328 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200329 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100330 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800331 ]
332
333 public_configs = [ ":ilbc_config" ]
334
335 deps = [
336 ":audio_decoder_interface",
337 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800338 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800339 "../../base:rtc_base_approved",
340 "../../common_audio",
341 ]
342 public_deps = [
343 ":ilbc_c",
344 ]
345}
346
347rtc_source_set("ilbc_c") {
348 visibility = [ ":*" ] # Only targets in this file can depend on this.
349 sources = [
350 "codecs/ilbc/abs_quant.c",
351 "codecs/ilbc/abs_quant.h",
352 "codecs/ilbc/abs_quant_loop.c",
353 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000354 "codecs/ilbc/augmented_cb_corr.c",
355 "codecs/ilbc/augmented_cb_corr.h",
356 "codecs/ilbc/bw_expand.c",
357 "codecs/ilbc/bw_expand.h",
358 "codecs/ilbc/cb_construct.c",
359 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200360 "codecs/ilbc/cb_mem_energy.c",
361 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000362 "codecs/ilbc/cb_mem_energy_augmentation.c",
363 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000364 "codecs/ilbc/cb_mem_energy_calc.c",
365 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000366 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200367 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000368 "codecs/ilbc/cb_search_core.c",
369 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000370 "codecs/ilbc/cb_update_best_index.c",
371 "codecs/ilbc/cb_update_best_index.h",
372 "codecs/ilbc/chebyshev.c",
373 "codecs/ilbc/chebyshev.h",
374 "codecs/ilbc/comp_corr.c",
375 "codecs/ilbc/comp_corr.h",
376 "codecs/ilbc/constants.c",
377 "codecs/ilbc/constants.h",
378 "codecs/ilbc/create_augmented_vec.c",
379 "codecs/ilbc/create_augmented_vec.h",
380 "codecs/ilbc/decode.c",
381 "codecs/ilbc/decode.h",
382 "codecs/ilbc/decode_residual.c",
383 "codecs/ilbc/decode_residual.h",
384 "codecs/ilbc/decoder_interpolate_lsf.c",
385 "codecs/ilbc/decoder_interpolate_lsf.h",
386 "codecs/ilbc/defines.h",
387 "codecs/ilbc/do_plc.c",
388 "codecs/ilbc/do_plc.h",
389 "codecs/ilbc/encode.c",
390 "codecs/ilbc/encode.h",
391 "codecs/ilbc/energy_inverse.c",
392 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200393 "codecs/ilbc/enh_upsample.c",
394 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000395 "codecs/ilbc/enhancer.c",
396 "codecs/ilbc/enhancer.h",
397 "codecs/ilbc/enhancer_interface.c",
398 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000399 "codecs/ilbc/filtered_cb_vecs.c",
400 "codecs/ilbc/filtered_cb_vecs.h",
401 "codecs/ilbc/frame_classify.c",
402 "codecs/ilbc/frame_classify.h",
403 "codecs/ilbc/gain_dequant.c",
404 "codecs/ilbc/gain_dequant.h",
405 "codecs/ilbc/gain_quant.c",
406 "codecs/ilbc/gain_quant.h",
407 "codecs/ilbc/get_cd_vec.c",
408 "codecs/ilbc/get_cd_vec.h",
409 "codecs/ilbc/get_lsp_poly.c",
410 "codecs/ilbc/get_lsp_poly.h",
411 "codecs/ilbc/get_sync_seq.c",
412 "codecs/ilbc/get_sync_seq.h",
413 "codecs/ilbc/hp_input.c",
414 "codecs/ilbc/hp_input.h",
415 "codecs/ilbc/hp_output.c",
416 "codecs/ilbc/hp_output.h",
417 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100418 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000419 "codecs/ilbc/index_conv_dec.c",
420 "codecs/ilbc/index_conv_dec.h",
421 "codecs/ilbc/index_conv_enc.c",
422 "codecs/ilbc/index_conv_enc.h",
423 "codecs/ilbc/init_decode.c",
424 "codecs/ilbc/init_decode.h",
425 "codecs/ilbc/init_encode.c",
426 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000427 "codecs/ilbc/interpolate.c",
428 "codecs/ilbc/interpolate.h",
429 "codecs/ilbc/interpolate_samples.c",
430 "codecs/ilbc/interpolate_samples.h",
431 "codecs/ilbc/lpc_encode.c",
432 "codecs/ilbc/lpc_encode.h",
433 "codecs/ilbc/lsf_check.c",
434 "codecs/ilbc/lsf_check.h",
435 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
436 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
437 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
438 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
439 "codecs/ilbc/lsf_to_lsp.c",
440 "codecs/ilbc/lsf_to_lsp.h",
441 "codecs/ilbc/lsf_to_poly.c",
442 "codecs/ilbc/lsf_to_poly.h",
443 "codecs/ilbc/lsp_to_lsf.c",
444 "codecs/ilbc/lsp_to_lsf.h",
445 "codecs/ilbc/my_corr.c",
446 "codecs/ilbc/my_corr.h",
447 "codecs/ilbc/nearest_neighbor.c",
448 "codecs/ilbc/nearest_neighbor.h",
449 "codecs/ilbc/pack_bits.c",
450 "codecs/ilbc/pack_bits.h",
451 "codecs/ilbc/poly_to_lsf.c",
452 "codecs/ilbc/poly_to_lsf.h",
453 "codecs/ilbc/poly_to_lsp.c",
454 "codecs/ilbc/poly_to_lsp.h",
455 "codecs/ilbc/refiner.c",
456 "codecs/ilbc/refiner.h",
457 "codecs/ilbc/simple_interpolate_lsf.c",
458 "codecs/ilbc/simple_interpolate_lsf.h",
459 "codecs/ilbc/simple_lpc_analysis.c",
460 "codecs/ilbc/simple_lpc_analysis.h",
461 "codecs/ilbc/simple_lsf_dequant.c",
462 "codecs/ilbc/simple_lsf_dequant.h",
463 "codecs/ilbc/simple_lsf_quant.c",
464 "codecs/ilbc/simple_lsf_quant.h",
465 "codecs/ilbc/smooth.c",
466 "codecs/ilbc/smooth.h",
467 "codecs/ilbc/smooth_out_data.c",
468 "codecs/ilbc/smooth_out_data.h",
469 "codecs/ilbc/sort_sq.c",
470 "codecs/ilbc/sort_sq.h",
471 "codecs/ilbc/split_vq.c",
472 "codecs/ilbc/split_vq.h",
473 "codecs/ilbc/state_construct.c",
474 "codecs/ilbc/state_construct.h",
475 "codecs/ilbc/state_search.c",
476 "codecs/ilbc/state_search.h",
477 "codecs/ilbc/swap_bytes.c",
478 "codecs/ilbc/swap_bytes.h",
479 "codecs/ilbc/unpack_bits.c",
480 "codecs/ilbc/unpack_bits.h",
481 "codecs/ilbc/vq3.c",
482 "codecs/ilbc/vq3.h",
483 "codecs/ilbc/vq4.c",
484 "codecs/ilbc/vq4.h",
485 "codecs/ilbc/window32_w32.c",
486 "codecs/ilbc/window32_w32.h",
487 "codecs/ilbc/xcorr_coef.c",
488 "codecs/ilbc/xcorr_coef.h",
489 ]
490
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700491 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000492
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000493 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800494 ":audio_decoder_interface",
495 ":audio_encoder_interface",
496 "../..:webrtc_common",
497 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100498 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000499 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000500}
501
kjellanderb62dbbe2016-09-23 00:38:52 -0700502rtc_static_library("isac_common") {
kjellander676e08f2016-12-07 08:23:27 -0800503 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
504 # Has a cyclic dependency with :isac if checks are enabled.
505 check_includes = false
506
kwiberg608c3cf2015-08-24 02:03:23 -0700507 sources = [
508 "codecs/isac/audio_encoder_isac_t.h",
509 "codecs/isac/audio_encoder_isac_t_impl.h",
510 "codecs/isac/locked_bandwidth_info.cc",
511 "codecs/isac/locked_bandwidth_info.h",
512 ]
kjellander676e08f2016-12-07 08:23:27 -0800513 deps = [
514 ":audio_encoder_interface",
515 "../../base:rtc_base_approved",
516 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700517}
518
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000519config("isac_config") {
520 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000521 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100522 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000523 ]
524}
525
kjellanderb62dbbe2016-09-23 00:38:52 -0700526rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000527 sources = [
kjellander7439f972016-12-05 22:47:46 -0800528 "codecs/isac/main/source/audio_decoder_isac.cc",
529 "codecs/isac/main/source/audio_encoder_isac.cc",
530 ]
531
532 deps = [
533 ":audio_decoder_interface",
534 ":audio_encoder_interface",
535 ":isac_common",
536 ]
537 public_deps = [
538 ":isac_c",
539 ]
540}
541
542rtc_static_library("isac_c") {
543 visibility = [ ":*" ] # Only targets in this file can depend on this.
544 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100545 "codecs/isac/main/include/audio_decoder_isac.h",
546 "codecs/isac/main/include/audio_encoder_isac.h",
547 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000548 "codecs/isac/main/source/arith_routines.c",
549 "codecs/isac/main/source/arith_routines.h",
550 "codecs/isac/main/source/arith_routines_hist.c",
551 "codecs/isac/main/source/arith_routines_logist.c",
552 "codecs/isac/main/source/bandwidth_estimator.c",
553 "codecs/isac/main/source/bandwidth_estimator.h",
554 "codecs/isac/main/source/codec.h",
555 "codecs/isac/main/source/crc.c",
556 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000557 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200558 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000559 "codecs/isac/main/source/encode.c",
560 "codecs/isac/main/source/encode_lpc_swb.c",
561 "codecs/isac/main/source/encode_lpc_swb.h",
562 "codecs/isac/main/source/entropy_coding.c",
563 "codecs/isac/main/source/entropy_coding.h",
564 "codecs/isac/main/source/fft.c",
565 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200566 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000567 "codecs/isac/main/source/filterbank_tables.c",
568 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200569 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000570 "codecs/isac/main/source/intialize.c",
571 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200572 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000573 "codecs/isac/main/source/lattice.c",
574 "codecs/isac/main/source/lpc_analysis.c",
575 "codecs/isac/main/source/lpc_analysis.h",
576 "codecs/isac/main/source/lpc_gain_swb_tables.c",
577 "codecs/isac/main/source/lpc_gain_swb_tables.h",
578 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
579 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
580 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
581 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
582 "codecs/isac/main/source/lpc_tables.c",
583 "codecs/isac/main/source/lpc_tables.h",
584 "codecs/isac/main/source/os_specific_inline.h",
585 "codecs/isac/main/source/pitch_estimator.c",
586 "codecs/isac/main/source/pitch_estimator.h",
587 "codecs/isac/main/source/pitch_filter.c",
588 "codecs/isac/main/source/pitch_gain_tables.c",
589 "codecs/isac/main/source/pitch_gain_tables.h",
590 "codecs/isac/main/source/pitch_lag_tables.c",
591 "codecs/isac/main/source/pitch_lag_tables.h",
592 "codecs/isac/main/source/settings.h",
593 "codecs/isac/main/source/spectrum_ar_model_tables.c",
594 "codecs/isac/main/source/spectrum_ar_model_tables.h",
595 "codecs/isac/main/source/structs.h",
596 "codecs/isac/main/source/transform.c",
597 ]
598
599 if (is_linux) {
600 libs = [ "m" ]
601 }
602
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700603 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000604
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000605 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800606 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700607 "../..:webrtc_common",
608 "../../base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000609 "../../common_audio",
610 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000611}
612
613config("isac_fix_config") {
614 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000615 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100616 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000617 ]
618}
619
kjellanderb62dbbe2016-09-23 00:38:52 -0700620rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000621 sources = [
kjellander7439f972016-12-05 22:47:46 -0800622 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
623 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
624 ]
625
626 public_configs = [ ":isac_fix_config" ]
627
628 deps = [
629 ":audio_decoder_interface",
630 ":audio_encoder_interface",
631 ":isac_common",
632 "../../common_audio",
633 "../../system_wrappers",
634 ]
635 public_deps = [
636 ":isac_fix_c",
637 ]
638
639 if (rtc_build_with_neon) {
640 deps += [ ":isac_neon" ]
641 }
642}
643
644rtc_source_set("isac_fix_c") {
kjellander676e08f2016-12-07 08:23:27 -0800645 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
646 # Errors on cyclic dependency with :builtin_audio_decoder_factory if enabled.
647 check_includes = false
648
kjellander7439f972016-12-05 22:47:46 -0800649 visibility = [ ":*" ] # Only targets in this file can depend on this.
650 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100651 "codecs/isac/fix/include/audio_decoder_isacfix.h",
652 "codecs/isac/fix/include/audio_encoder_isacfix.h",
653 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000654 "codecs/isac/fix/source/arith_routines.c",
655 "codecs/isac/fix/source/arith_routines_hist.c",
656 "codecs/isac/fix/source/arith_routines_logist.c",
657 "codecs/isac/fix/source/arith_routins.h",
658 "codecs/isac/fix/source/bandwidth_estimator.c",
659 "codecs/isac/fix/source/bandwidth_estimator.h",
660 "codecs/isac/fix/source/codec.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000661 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200662 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000663 "codecs/isac/fix/source/decode_plc.c",
664 "codecs/isac/fix/source/encode.c",
665 "codecs/isac/fix/source/entropy_coding.c",
666 "codecs/isac/fix/source/entropy_coding.h",
667 "codecs/isac/fix/source/fft.c",
668 "codecs/isac/fix/source/fft.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000669 "codecs/isac/fix/source/filterbank_tables.c",
670 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200671 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000672 "codecs/isac/fix/source/filters.c",
673 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200674 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000675 "codecs/isac/fix/source/isacfix.c",
676 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700677 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000678 "codecs/isac/fix/source/lpc_masking_model.c",
679 "codecs/isac/fix/source/lpc_masking_model.h",
680 "codecs/isac/fix/source/lpc_tables.c",
681 "codecs/isac/fix/source/lpc_tables.h",
682 "codecs/isac/fix/source/pitch_estimator.c",
683 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700684 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000685 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700686 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000687 "codecs/isac/fix/source/pitch_gain_tables.c",
688 "codecs/isac/fix/source/pitch_gain_tables.h",
689 "codecs/isac/fix/source/pitch_lag_tables.c",
690 "codecs/isac/fix/source/pitch_lag_tables.h",
691 "codecs/isac/fix/source/settings.h",
692 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
693 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
694 "codecs/isac/fix/source/structs.h",
695 "codecs/isac/fix/source/transform.c",
696 "codecs/isac/fix/source/transform_tables.c",
697 ]
698
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700699 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000700
kjellander676e08f2016-12-07 08:23:27 -0800701 deps = [
702 ":audio_decoder_interface",
703 ":audio_encoder_interface",
704 ":isac_common",
705 "../..:webrtc_common",
706 "../../base:rtc_base_approved",
707 "../../common_audio",
708 "../../system_wrappers",
709 ]
710
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700711 if (current_cpu == "arm" && arm_version >= 7) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000712 sources += [
713 "codecs/isac/fix/source/lattice_armv7.S",
714 "codecs/isac/fix/source/pitch_filter_armv6.S",
715 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700716 sources -= [
717 "codecs/isac/fix/source/lattice_c.c",
718 "codecs/isac/fix/source/pitch_filter_c.c",
719 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000720 }
721
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000722 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000723 sources += [
724 "codecs/isac/fix/source/entropy_coding_mips.c",
725 "codecs/isac/fix/source/filters_mips.c",
726 "codecs/isac/fix/source/lattice_mips.c",
727 "codecs/isac/fix/source/pitch_estimator_mips.c",
728 "codecs/isac/fix/source/transform_mips.c",
729 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700730 sources -= [
731 "codecs/isac/fix/source/lattice_c.c",
732 "codecs/isac/fix/source/pitch_estimator_c.c",
733 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000734 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200735 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000736 }
737 if (mips_dsp_rev > 1) {
738 sources += [
739 "codecs/isac/fix/source/lpc_masking_model_mips.c",
740 "codecs/isac/fix/source/pitch_filter_mips.c",
741 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200742 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000743 }
744 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000745}
746
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700747if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700748 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800749 sources = [
750 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800751 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800752 "codecs/isac/fix/source/filters_neon.c",
753 "codecs/isac/fix/source/lattice_neon.c",
754 "codecs/isac/fix/source/transform_neon.c",
755 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000756
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700757 if (current_cpu != "arm64") {
758 # Enable compilation for the NEON instruction set. This is needed
759 # since //build/config/arm.gni only enables NEON for iOS, not Android.
760 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700761 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700762 cflags = [ "-mfpu=neon" ]
763 }
764
765 # Disable LTO on NEON targets due to compiler bug.
766 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000767 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000768 cflags -= [
769 "-flto",
770 "-ffat-lto-objects",
771 ]
772 }
773
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200774 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800775 ":isac_fix_c",
776 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200777 "../../common_audio",
778 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000779 }
780}
781
782config("pcm16b_config") {
783 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000784 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000785 "codecs/pcm16b/include",
786 ]
787}
788
kjellanderb62dbbe2016-09-23 00:38:52 -0700789rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000790 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200791 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100792 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200793 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100794 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000795 ]
796
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000797 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100798 ":audio_decoder_interface",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000799 ":audio_encoder_interface",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000800 ":g711",
kjellander676e08f2016-12-07 08:23:27 -0800801 "../..:webrtc_common",
802 "../../base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000803 ]
kjellander7439f972016-12-05 22:47:46 -0800804 public_deps = [
805 ":pcm16b_c",
806 ]
807 public_configs = [ ":pcm16b_config" ]
808}
809
810rtc_source_set("pcm16b_c") {
811 visibility = [ ":*" ] # Only targets in this file can depend on this.
812 sources = [
813 "codecs/pcm16b/pcm16b.c",
814 "codecs/pcm16b/pcm16b.h",
815 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000816
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700817 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800818 deps = [
819 "../..:webrtc_common",
820 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000821}
822
823config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000824 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000825}
826
kjellanderb62dbbe2016-09-23 00:38:52 -0700827rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000828 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200829 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100830 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000831 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100832 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000833 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000834
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200835 deps = [
Henrik Lundind048aa02015-12-03 17:47:21 +0100836 ":audio_decoder_interface",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200837 ":audio_encoder_interface",
minyue41b9c802016-10-06 07:13:54 -0700838 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800839 "../..:webrtc_common",
minyue69b627d2016-11-24 11:01:09 -0800840 "../../base:rtc_analytics",
Henrik Lundind048aa02015-12-03 17:47:21 +0100841 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -0800842 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200843 ]
kjellander7439f972016-12-05 22:47:46 -0800844 public_deps = [
845 ":webrtc_opus_c",
846 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000847
henrik.lundin875862c2016-11-22 02:07:54 -0800848 defines = []
henrik.lundinfd87f4a2016-11-28 11:15:54 -0800849 if (rtc_opus_variable_complexity) {
850 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
851 } else {
852 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
853 }
henrik.lundin875862c2016-11-22 02:07:54 -0800854
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000855 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800856 public_deps += [ rtc_opus_dir ]
857 } else if (build_with_mozilla) {
858 include_dirs = [ getenv("DIST") + "/include/opus" ]
859 }
860}
861
862rtc_source_set("webrtc_opus_c") {
863 visibility = [ ":*" ] # Only targets in this file can depend on this.
864 sources = [
865 "codecs/opus/opus_inst.h",
866 "codecs/opus/opus_interface.c",
867 "codecs/opus/opus_interface.h",
868 ]
869
870 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700871 public_deps = [
872 rtc_opus_dir,
873 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000874 } else if (build_with_mozilla) {
875 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000876 }
kjellander7439f972016-12-05 22:47:46 -0800877
878 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800879 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800880 "../../base:rtc_base_approved",
881 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000882}
883
minyue25f6a392016-09-22 22:23:20 -0700884if (rtc_enable_protobuf) {
885 proto_library("ana_debug_dump_proto") {
886 sources = [
887 "audio_network_adaptor/debug_dump.proto",
888 ]
889 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
890 }
minyuea1d9ad02016-10-02 14:53:37 -0700891 proto_library("ana_config_proto") {
892 sources = [
893 "audio_network_adaptor/config.proto",
894 ]
895 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
896 }
minyue25f6a392016-09-22 22:23:20 -0700897}
898
minyue0d382ef2016-10-07 07:59:28 -0700899rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700900 sources = [
901 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700902 "audio_network_adaptor/audio_network_adaptor_impl.cc",
903 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700904 "audio_network_adaptor/bitrate_controller.cc",
905 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700906 "audio_network_adaptor/channel_controller.cc",
907 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700908 "audio_network_adaptor/controller.cc",
909 "audio_network_adaptor/controller.h",
910 "audio_network_adaptor/controller_manager.cc",
911 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700912 "audio_network_adaptor/debug_dump_writer.cc",
913 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700914 "audio_network_adaptor/dtx_controller.cc",
915 "audio_network_adaptor/dtx_controller.h",
minyued0ede442016-09-22 06:20:50 -0700916 "audio_network_adaptor/fec_controller.cc",
917 "audio_network_adaptor/fec_controller.h",
minyuee35d3292016-09-21 16:00:31 -0700918 "audio_network_adaptor/frame_length_controller.cc",
919 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700920 "audio_network_adaptor/include/audio_network_adaptor.h",
921 ]
minyue25f6a392016-09-22 22:23:20 -0700922
minyue41b9c802016-10-06 07:13:54 -0700923 deps = [
924 "../..:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -0800925 "../../base:rtc_base_approved",
926 "../../common_audio",
minyue41b9c802016-10-06 07:13:54 -0700927 "../../system_wrappers",
928 ]
929
minyue25f6a392016-09-22 22:23:20 -0700930 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700931 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700932 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700933 ":ana_debug_dump_proto",
934 ]
935 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ]
936 }
minyue7610f852016-09-07 13:51:51 -0700937}
938
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000939config("neteq_config") {
940 include_dirs = [
941 # Need Opus header files for the audio classifier.
942 "//third_party/opus/src/celt",
943 "//third_party/opus/src/src",
944 ]
945}
946
kjellanderb62dbbe2016-09-23 00:38:52 -0700947rtc_static_library("neteq") {
kjellander676e08f2016-12-07 08:23:27 -0800948 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
949 # Cyclic dependency with :audio_coding if enabled.
950 check_includes = false
951
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000952 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000953 "neteq/accelerate.cc",
954 "neteq/accelerate.h",
955 "neteq/audio_classifier.cc",
956 "neteq/audio_classifier.h",
957 "neteq/audio_decoder_impl.cc",
958 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000959 "neteq/audio_multi_vector.cc",
960 "neteq/audio_multi_vector.h",
961 "neteq/audio_vector.cc",
962 "neteq/audio_vector.h",
963 "neteq/background_noise.cc",
964 "neteq/background_noise.h",
965 "neteq/buffer_level_filter.cc",
966 "neteq/buffer_level_filter.h",
967 "neteq/comfort_noise.cc",
968 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700969 "neteq/cross_correlation.cc",
970 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000971 "neteq/decision_logic.cc",
972 "neteq/decision_logic.h",
973 "neteq/decision_logic_fax.cc",
974 "neteq/decision_logic_fax.h",
975 "neteq/decision_logic_normal.cc",
976 "neteq/decision_logic_normal.h",
977 "neteq/decoder_database.cc",
978 "neteq/decoder_database.h",
979 "neteq/defines.h",
980 "neteq/delay_manager.cc",
981 "neteq/delay_manager.h",
982 "neteq/delay_peak_detector.cc",
983 "neteq/delay_peak_detector.h",
984 "neteq/dsp_helper.cc",
985 "neteq/dsp_helper.h",
986 "neteq/dtmf_buffer.cc",
987 "neteq/dtmf_buffer.h",
988 "neteq/dtmf_tone_generator.cc",
989 "neteq/dtmf_tone_generator.h",
990 "neteq/expand.cc",
991 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100992 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000993 "neteq/merge.cc",
994 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700995 "neteq/nack_tracker.cc",
996 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200997 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000998 "neteq/neteq_impl.cc",
999 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001000 "neteq/normal.cc",
1001 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001002 "neteq/packet.cc",
1003 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001004 "neteq/packet_buffer.cc",
1005 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001006 "neteq/post_decode_vad.cc",
1007 "neteq/post_decode_vad.h",
1008 "neteq/preemptive_expand.cc",
1009 "neteq/preemptive_expand.h",
1010 "neteq/random_vector.cc",
1011 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001012 "neteq/red_payload_splitter.cc",
1013 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001014 "neteq/rtcp.cc",
1015 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001016 "neteq/statistics_calculator.cc",
1017 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001018 "neteq/sync_buffer.cc",
1019 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001020 "neteq/tick_timer.cc",
1021 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001022 "neteq/time_stretch.cc",
1023 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001024 "neteq/timestamp_scaler.cc",
1025 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001026 ]
1027
ehmaldonadoe9cc6862016-09-05 06:10:18 -07001028 public_configs = [ ":neteq_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001029
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001030 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001031 ":audio_decoder_factory_interface",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +00001032 ":audio_decoder_interface",
kjellander676e08f2016-12-07 08:23:27 -08001033 ":audio_format",
kwiberg5178ee82016-05-03 01:39:01 -07001034 ":builtin_audio_decoder_factory",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001035 ":cng",
1036 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001037 ":isac_fix",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001038 ":pcm16b",
kwiberg5178ee82016-05-03 01:39:01 -07001039 ":rent_a_codec",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001040 "../..:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001041 "../../base:gtest_prod",
1042 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001043 "../../common_audio",
1044 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001045 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001046
1047 defines = []
1048
kwibergf8c2bac2016-01-18 06:38:32 -08001049 if (rtc_include_ilbc) {
1050 defines += [ "WEBRTC_CODEC_ILBC" ]
1051 deps += [ ":ilbc" ]
1052 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001053 if (rtc_include_opus) {
1054 defines += [ "WEBRTC_CODEC_OPUS" ]
1055 deps += [ ":webrtc_opus" ]
1056 }
kwiberg98ab3a42015-09-30 21:54:21 -07001057 if (!build_with_mozilla) {
1058 if (current_cpu == "arm") {
1059 defines += [ "WEBRTC_CODEC_ISACFX" ]
1060 deps += [ ":isac_fix" ]
1061 } else {
1062 defines += [ "WEBRTC_CODEC_ISAC" ]
1063 deps += [ ":isac" ]
1064 }
1065 defines += [ "WEBRTC_CODEC_G722" ]
1066 deps += [ ":g722" ]
1067 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001068}
kjellanderfb114242016-06-13 00:19:48 -07001069
henrik.lundin58466f62016-10-05 02:27:42 -07001070# Although providing only test support, this target must be outside of the
1071# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1072# that ultimately are built and run as a part of the Chromium ecosystem, which
1073# does not set the rtc_include_tests flag.
1074rtc_source_set("neteq_test_minimal") {
1075 testonly = true
kjellander676e08f2016-12-07 08:23:27 -08001076
1077 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1078 # Has cyclic dependency with :neteq_unittest_tools
1079 check_includes = false
1080
henrik.lundin58466f62016-10-05 02:27:42 -07001081 sources = [
1082 "neteq/tools/encode_neteq_input.cc",
1083 "neteq/tools/encode_neteq_input.h",
1084 "neteq/tools/neteq_test.cc",
1085 "neteq/tools/neteq_test.h",
1086 ]
1087
kjellandere40a7ee2016-10-16 23:56:12 -07001088 if (!build_with_chromium && is_clang) {
1089 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001090 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1091 }
kjellander676e08f2016-12-07 08:23:27 -08001092
1093 deps = [
1094 ":audio_encoder_interface",
1095 ":builtin_audio_decoder_factory",
1096 ":neteq",
1097 "../..:webrtc_common",
1098 "../../base:rtc_base_approved",
1099 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001100}
1101
kjellanderfb114242016-06-13 00:19:48 -07001102if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001103 group("audio_coding_tests") {
1104 testonly = true
1105 public_deps = [
1106 ":RTPchange",
1107 ":RTPencode",
1108 ":RTPjitter",
1109 ":RTPtimeshift",
1110 ":acm_receive_test",
1111 ":acm_send_test",
1112 ":audio_classifier_test",
1113 ":audio_codec_speed_tests",
1114 ":audio_decoder_unittests",
1115 ":audio_decoder_unittests",
1116 ":delay_test",
1117 ":g711_test",
1118 ":g722_test",
1119 ":ilbc_test",
1120 ":insert_packet_with_timing",
1121 ":isac_api_test",
1122 ":isac_fix_test",
1123 ":isac_switch_samprate_test",
1124 ":isac_test",
1125 ":neteq_ilbc_quality_test",
1126 ":neteq_isac_quality_test",
1127 ":neteq_opus_quality_test",
1128 ":neteq_pcmu_quality_test",
1129 ":neteq_speed_test",
1130 ":rtp_analyze",
1131 ":rtpcat",
1132 ":webrtc_opus_fec_test",
1133 ]
1134 if (rtc_enable_protobuf) {
1135 public_deps += [ ":neteq_rtpplay" ]
1136 }
1137 }
1138
ehmaldonado38a21322016-09-02 04:10:34 -07001139 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001140 testonly = true
1141 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001142 "acm2/acm_receive_test.cc",
1143 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001144 ]
1145
kjellanderfb114242016-06-13 00:19:48 -07001146 defines = audio_coding_defines
1147
1148 deps = audio_coding_deps + [
1149 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001150 ":audio_format_conversion",
1151 ":audio_decoder_factory_interface",
1152 ":builtin_audio_decoder_factory",
kjellanderfb114242016-06-13 00:19:48 -07001153 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001154 "../../base:rtc_base_approved",
1155 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001156 "//testing/gtest",
1157 ]
1158 }
1159
ehmaldonado38a21322016-09-02 04:10:34 -07001160 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001161 testonly = true
1162 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001163 "acm2/acm_send_test.cc",
1164 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001165 ]
1166
kjellanderfb114242016-06-13 00:19:48 -07001167 defines = audio_coding_defines
1168
1169 deps = audio_coding_deps + [
1170 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001171 ":audio_decoder_interface",
1172 ":audio_encoder_interface",
kjellanderfb114242016-06-13 00:19:48 -07001173 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001174 "../../base:rtc_base_approved",
1175 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001176 "//testing/gtest",
1177 ]
1178 }
1179
ehmaldonado38a21322016-09-02 04:10:34 -07001180 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001181 testonly = true
1182 sources = [
1183 "test/Channel.cc",
1184 "test/PCMFile.cc",
1185 "test/delay_test.cc",
1186 "test/utility.cc",
1187 ]
1188
aleloi333f2062016-07-28 01:21:29 -07001189 deps = [
1190 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001191 ":audio_format_conversion",
aleloi333f2062016-07-28 01:21:29 -07001192 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001193 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001194 "../../system_wrappers",
1195 "../../system_wrappers:system_wrappers_default",
1196 "../../test:test_support",
1197 "../rtp_rtcp",
1198 "//testing/gtest",
1199 "//third_party/gflags:gflags",
1200 ]
1201 } # delay_test
1202
ehmaldonado38a21322016-09-02 04:10:34 -07001203 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001204 testonly = true
1205 sources = [
1206 "test/Channel.cc",
1207 "test/PCMFile.cc",
1208 "test/insert_packet_with_timing.cc",
1209 ]
1210
kjellandere40a7ee2016-10-16 23:56:12 -07001211 if (!build_with_chromium && is_clang) {
1212 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001213 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001214 }
1215
1216 deps = [
1217 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001218 ":audio_format_conversion",
aleloi00730c72016-07-28 01:27:10 -07001219 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001220 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001221 "../../system_wrappers",
1222 "../../system_wrappers:system_wrappers_default",
1223 "../../test:test_support",
1224 "../rtp_rtcp",
1225 "//testing/gtest",
1226 "//third_party/gflags:gflags",
1227 ]
1228 } # insert_packet_with_timing
1229
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001230 audio_decoder_unittests_resources =
1231 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001232
1233 if (is_ios) {
1234 bundle_data("audio_decoder_unittests_bundle_data") {
1235 testonly = true
1236 sources = audio_decoder_unittests_resources
1237 outputs = [
1238 "{{bundle_resources_dir}}/{{source_file_part}}",
1239 ]
1240 }
1241 }
1242
ehmaldonado38a21322016-09-02 04:10:34 -07001243 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001244 testonly = true
1245 sources = [
1246 "neteq/audio_decoder_unittest.cc",
1247 ]
1248
kjellandere40a7ee2016-10-16 23:56:12 -07001249 if (!build_with_chromium && is_clang) {
1250 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001251 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001252 }
1253
1254 deps = []
1255
1256 defines = neteq_defines
1257
1258 deps += audio_coding_deps
1259 deps += [
1260 ":audio_decoder_interface",
1261 ":isac",
1262 ":isac_fix",
1263 ":neteq",
1264 ":neteq_unittest_tools",
kjellander6ceab082016-10-28 05:44:03 -07001265 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001266 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001267 "//testing/gtest",
1268 ]
1269
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001270 data = audio_decoder_unittests_resources
1271
charujainddf3e4a2016-08-01 07:49:42 -07001272 if (is_android) {
1273 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001274 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001275 }
kjellander32c4a202016-08-30 02:53:49 -07001276 if (is_ios) {
1277 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001278 }
1279 } # audio_decoder_unittests
1280
kjellanderfb114242016-06-13 00:19:48 -07001281 if (rtc_enable_protobuf) {
1282 proto_library("neteq_unittest_proto") {
1283 sources = [
1284 "neteq/neteq_unittest.proto",
1285 ]
1286 proto_out_dir = "webrtc/audio_coding/neteq"
1287 }
henrik.lundin03153f12016-06-21 05:38:42 -07001288
kjellanderb62dbbe2016-09-23 00:38:52 -07001289 rtc_static_library("rtc_event_log_source") {
henrik.lundin03153f12016-06-21 05:38:42 -07001290 testonly = true
kjellander676e08f2016-12-07 08:23:27 -08001291
1292 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1293 # Needs call.h to be moved to webrtc/api first.
1294 check_includes = false
1295
henrik.lundin03153f12016-06-21 05:38:42 -07001296 sources = [
1297 "neteq/tools/rtc_event_log_source.cc",
1298 "neteq/tools/rtc_event_log_source.h",
1299 ]
1300
kjellandere40a7ee2016-10-16 23:56:12 -07001301 if (!build_with_chromium && is_clang) {
1302 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001303 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001304 }
1305
1306 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001307 "../../base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -07001308 "../../logging:rtc_event_log_parser",
henrik.lundin03153f12016-06-21 05:38:42 -07001309 ]
1310 public_deps = [
skvladcc91d282016-10-03 18:31:22 -07001311 "../../logging:rtc_event_log_proto",
henrik.lundin03153f12016-06-21 05:38:42 -07001312 ]
1313 }
1314
ehmaldonado38a21322016-09-02 04:10:34 -07001315 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001316 testonly = true
1317 defines = []
1318 deps = []
1319 sources = [
1320 "neteq/tools/neteq_rtpplay.cc",
1321 ]
1322
kjellandere40a7ee2016-10-16 23:56:12 -07001323 if (!build_with_chromium && is_clang) {
1324 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001325 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001326 }
1327
1328 if (is_win) {
1329 cflags = [
1330 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1331 "/wd4373", # virtual function override.
1332 ]
1333 }
1334
1335 deps += [
1336 ":neteq",
1337 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001338 "../..:webrtc_common",
1339 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001340 "../../system_wrappers:system_wrappers_default",
1341 "../../test:test_support",
1342 "//third_party/gflags",
1343 ]
1344 }
kjellanderfb114242016-06-13 00:19:48 -07001345 }
1346
ehmaldonado38a21322016-09-02 04:10:34 -07001347 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001348 testonly = true
1349 defines = []
1350 deps = []
1351 sources = [
1352 "codecs/isac/fix/test/isac_speed_test.cc",
1353 "codecs/opus/opus_speed_test.cc",
1354 "codecs/tools/audio_codec_speed_test.cc",
1355 "codecs/tools/audio_codec_speed_test.h",
1356 ]
1357
kjellandere40a7ee2016-10-16 23:56:12 -07001358 if (!build_with_chromium && is_clang) {
1359 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001360 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001361 }
1362
1363 if (is_android) {
1364 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001365 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001366 }
1367
1368 deps += [
1369 ":isac_fix",
1370 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001371 "../..:webrtc_common",
1372 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001373 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001374 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001375 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001376 "//testing/gtest",
1377 ]
1378 }
1379
ehmaldonado38a21322016-09-02 04:10:34 -07001380 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001381 testonly = true
1382 sources = [
1383 "neteq/tools/neteq_external_decoder_test.cc",
1384 "neteq/tools/neteq_external_decoder_test.h",
1385 "neteq/tools/neteq_performance_test.cc",
1386 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001387 ]
1388
kjellandere40a7ee2016-10-16 23:56:12 -07001389 if (!build_with_chromium && is_clang) {
1390 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001391 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001392 }
1393
1394 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001395 ":audio_decoder_interface",
1396 ":builtin_audio_decoder_factory",
kjellanderfb114242016-06-13 00:19:48 -07001397 ":neteq",
1398 ":neteq_unittest_tools",
1399 ":pcm16b",
kjellander676e08f2016-12-07 08:23:27 -08001400 "../..:webrtc_common",
1401 "../../base:rtc_base_approved",
1402 "../../system_wrappers",
1403 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001404 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001405 ]
1406 }
1407
ehmaldonado38a21322016-09-02 04:10:34 -07001408 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001409 testonly = true
1410 sources = [
1411 "neteq/tools/neteq_quality_test.cc",
1412 "neteq/tools/neteq_quality_test.h",
1413 ]
1414
kjellandere40a7ee2016-10-16 23:56:12 -07001415 if (!build_with_chromium && is_clang) {
1416 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001417 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001418 }
1419
1420 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001421 ":builtin_audio_decoder_factory",
ehmaldonado861da3c2016-08-19 07:02:24 -07001422 ":neteq",
1423 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001424 "../..:webrtc_common",
1425 "../../base:rtc_base_approved",
1426 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001427 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001428 "//third_party/gflags",
1429 ]
1430 }
1431
kjellanderfb114242016-06-13 00:19:48 -07001432 config("neteq_unittest_tools_config") {
1433 include_dirs = [ "tools" ]
1434 }
1435
ehmaldonado38a21322016-09-02 04:10:34 -07001436 rtc_source_set("neteq_unittest_tools") {
kjellanderfb114242016-06-13 00:19:48 -07001437 testonly = true
1438 sources = [
1439 "neteq/tools/audio_checksum.h",
1440 "neteq/tools/audio_loop.cc",
1441 "neteq/tools/audio_loop.h",
aleloi0e0be0a2016-08-10 04:55:20 -07001442 "neteq/tools/audio_sink.cc",
kjellanderfb114242016-06-13 00:19:48 -07001443 "neteq/tools/audio_sink.h",
1444 "neteq/tools/constant_pcm_packet_source.cc",
1445 "neteq/tools/constant_pcm_packet_source.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001446 "neteq/tools/fake_decode_from_file.cc",
1447 "neteq/tools/fake_decode_from_file.h",
kjellanderfb114242016-06-13 00:19:48 -07001448 "neteq/tools/input_audio_file.cc",
1449 "neteq/tools/input_audio_file.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001450 "neteq/tools/neteq_input.h",
1451 "neteq/tools/neteq_packet_source_input.cc",
1452 "neteq/tools/neteq_packet_source_input.h",
1453 "neteq/tools/neteq_replacement_input.cc",
1454 "neteq/tools/neteq_replacement_input.h",
kjellanderfb114242016-06-13 00:19:48 -07001455 "neteq/tools/output_audio_file.h",
1456 "neteq/tools/output_wav_file.h",
1457 "neteq/tools/packet.cc",
1458 "neteq/tools/packet.h",
kwibergb8e56ee2016-08-29 06:37:33 -07001459 "neteq/tools/packet_source.cc",
kjellanderfb114242016-06-13 00:19:48 -07001460 "neteq/tools/packet_source.h",
1461 "neteq/tools/resample_input_audio_file.cc",
1462 "neteq/tools/resample_input_audio_file.h",
1463 "neteq/tools/rtp_file_source.cc",
1464 "neteq/tools/rtp_file_source.h",
1465 "neteq/tools/rtp_generator.cc",
1466 "neteq/tools/rtp_generator.h",
1467 ]
1468
ehmaldonadoe9cc6862016-09-05 06:10:18 -07001469 public_configs = [ ":neteq_unittest_tools_config" ]
kjellanderfb114242016-06-13 00:19:48 -07001470
kjellandere40a7ee2016-10-16 23:56:12 -07001471 if (!build_with_chromium && is_clang) {
1472 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001473 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001474 }
1475
1476 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001477 ":audio_decoder_interface",
1478 ":audio_encoder_interface",
1479 ":pcm16b",
1480 "../..:webrtc_common",
1481 "../../base:rtc_base_approved",
kjellanderfb114242016-06-13 00:19:48 -07001482 "../../common_audio",
1483 "../../test:rtp_test_utils",
1484 "../rtp_rtcp",
1485 ]
henrik.lundine8a77e32016-06-22 06:34:03 -07001486
kjellander676e08f2016-12-07 08:23:27 -08001487 public_deps = [
1488 ":neteq_test_minimal",
1489 ]
1490
henrik.lundine8a77e32016-06-22 06:34:03 -07001491 if (rtc_enable_protobuf) {
1492 deps += [ ":rtc_event_log_source" ]
1493 }
kjellanderfb114242016-06-13 00:19:48 -07001494 }
aleloi3022a342016-07-26 06:36:03 -07001495
ehmaldonado38a21322016-09-02 04:10:34 -07001496 rtc_source_set("neteq_test_tools") {
aleloi3022a342016-07-26 06:36:03 -07001497 testonly = true
1498 sources = [
1499 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1500 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1501 "neteq/test/NETEQTEST_RTPpacket.cc",
1502 "neteq/test/NETEQTEST_RTPpacket.h",
1503 ]
1504
1505 deps = [
1506 ":cng",
1507 ":g711",
1508 ":g722",
1509 ":ilbc",
1510 ":isac",
1511 ":pcm16b",
1512 "../..:webrtc_common",
1513 "//testing/gtest",
1514 ]
1515
1516 include_dirs = [
1517 "neteq/include",
1518 "neteq/test",
1519 "../../",
1520 ]
1521
1522 if (is_win) {
1523 cflags = [
1524 # Disable warnings to enable Win64 build, issue 1323.
1525 "/wd4267", # size_t to int truncation
1526 ]
1527 }
1528 }
aleloi47bded42016-07-26 06:46:19 -07001529
aleloi82667732016-08-02 01:45:50 -07001530 config("RTPencode_config") {
1531 defines = [
1532 "CODEC_ILBC",
1533 "CODEC_PCM16B",
1534 "CODEC_G711",
1535 "CODEC_G722",
1536 "CODEC_ISAC",
1537 "CODEC_PCM16B_WB",
1538 "CODEC_ISAC_SWB",
1539 "CODEC_PCM16B_32KHZ",
1540 "CODEC_PCM16B_48KHZ",
1541 "CODEC_CNGCODEC8",
1542 "CODEC_CNGCODEC16",
1543 "CODEC_CNGCODEC32",
1544 "CODEC_ATEVENT_DECODE",
1545 "CODEC_RED",
1546 "CODEC_OPUS",
1547 ]
1548 }
1549
ehmaldonado38a21322016-09-02 04:10:34 -07001550 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001551 testonly = true
1552
1553 deps = [
1554 # TODO(hlundin): Make RTPencode use ACM to encode files.
1555 ":cng",
1556 ":g711",
1557 ":g722",
1558 ":ilbc",
1559 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001560 ":neteq",
aleloi82667732016-08-02 01:45:50 -07001561 ":neteq_test_tools",
1562 ":pcm16b",
1563 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001564 "../..:webrtc_common",
1565 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001566 "../../common_audio",
1567 ]
1568
1569 configs += [ ":RTPencode_config" ]
1570
1571 sources = [
1572 "neteq/test/RTPencode.cc",
1573 ]
1574
1575 include_dirs = [
1576 "neteq/include",
1577 "neteq/test",
1578 ]
1579
1580 if (is_win) {
1581 cflags = [
1582 # Disable warnings to enable Win64 build, issue 1323.
1583 "/wd4267", # size_t to int truncation
1584 ]
1585 }
1586 }
1587
ehmaldonado38a21322016-09-02 04:10:34 -07001588 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001589 testonly = true
1590
1591 sources = [
1592 "neteq/test/RTPchange.cc",
1593 ]
1594
1595 deps = [
1596 ":neteq_test_tools",
1597 ]
1598 }
1599
ehmaldonado38a21322016-09-02 04:10:34 -07001600 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001601 testonly = true
1602
1603 sources = [
1604 "neteq/tools/rtpcat.cc",
1605 ]
1606
1607 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001608 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001609 "../../system_wrappers:system_wrappers_default",
1610 "../../test:rtp_test_utils",
1611 "//testing/gtest",
1612 ]
1613 }
1614
ehmaldonado38a21322016-09-02 04:10:34 -07001615 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001616 testonly = true
1617
1618 sources = [
1619 "neteq/test/RTPtimeshift.cc",
1620 ]
1621
1622 deps = [
1623 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001624 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001625 "//testing/gtest",
1626 ]
1627 }
1628
ehmaldonado38a21322016-09-02 04:10:34 -07001629 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001630 testonly = true
1631 deps = [
1632 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001633 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001634 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001635 "//testing/gtest",
1636 ]
1637 sources = [
1638 "neteq/test/RTPjitter.cc",
1639 ]
1640 }
1641
ehmaldonado38a21322016-09-02 04:10:34 -07001642 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001643 testonly = true
1644
1645 sources = [
1646 "neteq/tools/rtp_analyze.cc",
1647 ]
1648
1649 deps = [
1650 ":neteq",
1651 ":neteq_unittest_tools",
1652 ":pcm16b",
1653 "../../system_wrappers:system_wrappers_default",
1654 "//testing/gtest",
1655 "//third_party/gflags:gflags",
1656 ]
1657
kjellandere40a7ee2016-10-16 23:56:12 -07001658 if (!build_with_chromium && is_clang) {
1659 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001660 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001661 }
1662 }
aleloi630c6d52016-08-10 02:11:30 -07001663
ehmaldonado38a21322016-09-02 04:10:34 -07001664 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001665 testonly = true
1666
1667 sources = [
1668 "neteq/test/neteq_opus_quality_test.cc",
1669 ]
1670
1671 deps = [
1672 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001673 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001674 ":neteq_unittest_tools",
aleloi630c6d52016-08-10 02:11:30 -07001675 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001676 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001677 "//testing/gtest",
1678 "//third_party/gflags",
1679 ]
aleloi630c6d52016-08-10 02:11:30 -07001680 }
aleloi116fd612016-08-10 04:16:36 -07001681
ehmaldonado38a21322016-09-02 04:10:34 -07001682 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001683 testonly = true
1684
1685 sources = [
1686 "neteq/test/neteq_speed_test.cc",
1687 ]
1688
1689 deps = [
1690 ":neteq",
1691 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001692 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001693 "../../system_wrappers:system_wrappers_default",
1694 "../../test:test_support",
1695 "//third_party/gflags",
1696 ]
1697 }
aleloi63910122016-08-10 04:41:14 -07001698
ehmaldonado38a21322016-09-02 04:10:34 -07001699 rtc_executable("audio_classifier_test") {
aleloi63910122016-08-10 04:41:14 -07001700 testonly = true
1701 sources = [
1702 "neteq/test/audio_classifier_test.cc",
1703 ]
1704 deps = [
1705 ":neteq",
1706 ":webrtc_opus",
1707 "../../system_wrappers:system_wrappers_default",
1708 ]
1709 }
aleloi0e0be0a2016-08-10 04:55:20 -07001710
ehmaldonado38a21322016-09-02 04:10:34 -07001711 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001712 testonly = true
1713
1714 sources = [
1715 "neteq/test/neteq_ilbc_quality_test.cc",
1716 ]
1717
1718 deps = [
1719 ":ilbc",
1720 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001721 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001722 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001723 "../..:webrtc_common",
1724 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001725 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001726 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001727 "//testing/gtest",
1728 "//third_party/gflags",
1729 ]
1730 }
aleloi6df36dc2016-08-10 05:04:47 -07001731
ehmaldonado38a21322016-09-02 04:10:34 -07001732 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001733 testonly = true
1734
1735 sources = [
1736 "neteq/test/neteq_isac_quality_test.cc",
1737 ]
1738
1739 deps = [
1740 ":isac_fix",
1741 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001742 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001743 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001744 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001745 "//testing/gtest",
1746 "//third_party/gflags",
1747 ]
1748 }
aleloic4ac7002016-08-10 05:06:27 -07001749
ehmaldonado38a21322016-09-02 04:10:34 -07001750 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001751 testonly = true
1752
1753 sources = [
1754 "neteq/test/neteq_pcmu_quality_test.cc",
1755 ]
1756
1757 deps = [
1758 ":g711",
1759 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001760 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001761 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001762 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001763 "//testing/gtest",
1764 "//third_party/gflags",
1765 ]
1766 }
aleloib7186d02016-08-16 01:47:16 -07001767
ehmaldonado38a21322016-09-02 04:10:34 -07001768 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001769 testonly = true
1770
1771 sources = [
1772 "codecs/isac/fix/test/kenny.cc",
1773 ]
1774
1775 deps = [
1776 ":isac_fix",
1777 "../../test:test_support",
1778 ]
1779
1780 if (is_win) {
1781 cflags = [
1782 # Disable warnings to enable Win64 build, issue 1323.
1783 "/wd4267", # size_t to int truncation
1784 ]
1785 }
1786 }
aleloi16f55a12016-08-23 08:08:23 -07001787
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001788 config("isac_test_warnings_config") {
1789 if (is_win && is_clang) {
1790 cflags = [
1791 # Disable warnings failing when compiling with Clang on Windows.
1792 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1793 "-Wno-format",
1794 ]
1795 }
1796 }
1797
kjellander7439f972016-12-05 22:47:46 -08001798 rtc_source_set("isac_test_util") {
1799 testonly = true
1800 sources = [
1801 "codecs/isac/main/util/utility.c",
1802 ]
1803 }
1804
ehmaldonado38a21322016-09-02 04:10:34 -07001805 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001806 testonly = true
1807
1808 sources = [
1809 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001810 ]
1811
1812 include_dirs = [
1813 "codecs/isac/main/include",
1814 "codecs/isac/main/test",
1815 "codecs/isac/main/util",
1816 ]
1817
1818 deps = [
1819 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001820 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001821 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001822 ]
1823
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001824 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001825 }
1826
ehmaldonado38a21322016-09-02 04:10:34 -07001827 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001828 testonly = true
1829
1830 sources = [
1831 "codecs/g711/test/testG711.cc",
1832 ]
1833
aleloi16f55a12016-08-23 08:08:23 -07001834 deps = [
1835 ":g711",
1836 ]
1837 }
aleloi9a117842016-08-23 08:36:10 -07001838
ehmaldonado38a21322016-09-02 04:10:34 -07001839 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001840 testonly = true
1841
1842 sources = [
1843 "codecs/g722/test/testG722.cc",
1844 ]
1845
aleloi9a117842016-08-23 08:36:10 -07001846 deps = [
1847 ":g722",
1848 "../..:webrtc_common",
1849 ]
1850 }
ivoc2c670db2016-08-24 06:11:18 -07001851
ehmaldonado38a21322016-09-02 04:10:34 -07001852 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001853 testonly = true
1854
1855 sources = [
1856 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001857 ]
1858
aleloicfee2152016-08-29 04:09:19 -07001859 deps = [
1860 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001861 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001862 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001863 ]
1864
1865 include_dirs = [
1866 "codecs/isac/main/include",
1867 "codecs/isac/main/test",
1868 "codecs/isac/main/util",
1869 ]
1870 }
1871
ehmaldonado38a21322016-09-02 04:10:34 -07001872 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001873 testonly = true
1874
1875 sources = [
1876 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07001877 ]
1878
aleloicfee2152016-08-29 04:09:19 -07001879 deps = [
1880 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001881 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001882 ]
1883
1884 include_dirs = [
1885 "codecs/isac/main/include",
1886 "codecs/isac/main/test",
1887 "codecs/isac/main/util",
1888 "../../common_audio/signal_processing/include",
1889 ]
1890 }
1891
ehmaldonado38a21322016-09-02 04:10:34 -07001892 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07001893 testonly = true
1894
1895 sources = [
1896 "codecs/ilbc/test/iLBC_test.c",
1897 ]
1898
aleloicfee2152016-08-29 04:09:19 -07001899 deps = [
1900 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07001901 ]
1902 }
1903
ehmaldonado38a21322016-09-02 04:10:34 -07001904 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07001905 testonly = true
1906
1907 sources = [
1908 "codecs/opus/opus_fec_test.cc",
1909 ]
1910
1911 deps = [
1912 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07001913 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07001914 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001915 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07001916 "//testing/gtest",
1917 ]
1918
kjellandere40a7ee2016-10-16 23:56:12 -07001919 if (!build_with_chromium && is_clang) {
1920 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001921 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07001922 }
1923 }
kjellanderfb114242016-06-13 00:19:48 -07001924}