blob: b78ba7936ac17265025eb38a2891b52d80cb9034 [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
kjellanderb62dbbe2016-09-23 00:38:52 -0700939rtc_static_library("neteq") {
kjellander676e08f2016-12-07 08:23:27 -0800940 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
941 # Cyclic dependency with :audio_coding if enabled.
942 check_includes = false
943
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000944 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000945 "neteq/accelerate.cc",
946 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000947 "neteq/audio_decoder_impl.cc",
948 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000949 "neteq/audio_multi_vector.cc",
950 "neteq/audio_multi_vector.h",
951 "neteq/audio_vector.cc",
952 "neteq/audio_vector.h",
953 "neteq/background_noise.cc",
954 "neteq/background_noise.h",
955 "neteq/buffer_level_filter.cc",
956 "neteq/buffer_level_filter.h",
957 "neteq/comfort_noise.cc",
958 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -0700959 "neteq/cross_correlation.cc",
960 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000961 "neteq/decision_logic.cc",
962 "neteq/decision_logic.h",
963 "neteq/decision_logic_fax.cc",
964 "neteq/decision_logic_fax.h",
965 "neteq/decision_logic_normal.cc",
966 "neteq/decision_logic_normal.h",
967 "neteq/decoder_database.cc",
968 "neteq/decoder_database.h",
969 "neteq/defines.h",
970 "neteq/delay_manager.cc",
971 "neteq/delay_manager.h",
972 "neteq/delay_peak_detector.cc",
973 "neteq/delay_peak_detector.h",
974 "neteq/dsp_helper.cc",
975 "neteq/dsp_helper.h",
976 "neteq/dtmf_buffer.cc",
977 "neteq/dtmf_buffer.h",
978 "neteq/dtmf_tone_generator.cc",
979 "neteq/dtmf_tone_generator.h",
980 "neteq/expand.cc",
981 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +0100982 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000983 "neteq/merge.cc",
984 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -0700985 "neteq/nack_tracker.cc",
986 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200987 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000988 "neteq/neteq_impl.cc",
989 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000990 "neteq/normal.cc",
991 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -0700992 "neteq/packet.cc",
993 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000994 "neteq/packet_buffer.cc",
995 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000996 "neteq/post_decode_vad.cc",
997 "neteq/post_decode_vad.h",
998 "neteq/preemptive_expand.cc",
999 "neteq/preemptive_expand.h",
1000 "neteq/random_vector.cc",
1001 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001002 "neteq/red_payload_splitter.cc",
1003 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001004 "neteq/rtcp.cc",
1005 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001006 "neteq/statistics_calculator.cc",
1007 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001008 "neteq/sync_buffer.cc",
1009 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001010 "neteq/tick_timer.cc",
1011 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001012 "neteq/time_stretch.cc",
1013 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001014 "neteq/timestamp_scaler.cc",
1015 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001016 ]
1017
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001018 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001019 ":audio_decoder_factory_interface",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +00001020 ":audio_decoder_interface",
kjellander676e08f2016-12-07 08:23:27 -08001021 ":audio_format",
kwiberg5178ee82016-05-03 01:39:01 -07001022 ":builtin_audio_decoder_factory",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001023 ":cng",
1024 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001025 ":isac_fix",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001026 ":pcm16b",
kwiberg5178ee82016-05-03 01:39:01 -07001027 ":rent_a_codec",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001028 "../..:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001029 "../../base:gtest_prod",
1030 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001031 "../../common_audio",
1032 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001033 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001034
1035 defines = []
1036
kwibergf8c2bac2016-01-18 06:38:32 -08001037 if (rtc_include_ilbc) {
1038 defines += [ "WEBRTC_CODEC_ILBC" ]
1039 deps += [ ":ilbc" ]
1040 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001041 if (rtc_include_opus) {
1042 defines += [ "WEBRTC_CODEC_OPUS" ]
1043 deps += [ ":webrtc_opus" ]
1044 }
kwiberg98ab3a42015-09-30 21:54:21 -07001045 if (!build_with_mozilla) {
1046 if (current_cpu == "arm") {
1047 defines += [ "WEBRTC_CODEC_ISACFX" ]
1048 deps += [ ":isac_fix" ]
1049 } else {
1050 defines += [ "WEBRTC_CODEC_ISAC" ]
1051 deps += [ ":isac" ]
1052 }
1053 defines += [ "WEBRTC_CODEC_G722" ]
1054 deps += [ ":g722" ]
1055 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001056}
kjellanderfb114242016-06-13 00:19:48 -07001057
henrik.lundin58466f62016-10-05 02:27:42 -07001058# Although providing only test support, this target must be outside of the
1059# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1060# that ultimately are built and run as a part of the Chromium ecosystem, which
1061# does not set the rtc_include_tests flag.
1062rtc_source_set("neteq_test_minimal") {
1063 testonly = true
kjellander676e08f2016-12-07 08:23:27 -08001064
1065 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1066 # Has cyclic dependency with :neteq_unittest_tools
1067 check_includes = false
1068
henrik.lundin58466f62016-10-05 02:27:42 -07001069 sources = [
1070 "neteq/tools/encode_neteq_input.cc",
1071 "neteq/tools/encode_neteq_input.h",
1072 "neteq/tools/neteq_test.cc",
1073 "neteq/tools/neteq_test.h",
1074 ]
1075
kjellandere40a7ee2016-10-16 23:56:12 -07001076 if (!build_with_chromium && is_clang) {
1077 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001078 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1079 }
kjellander676e08f2016-12-07 08:23:27 -08001080
1081 deps = [
1082 ":audio_encoder_interface",
1083 ":builtin_audio_decoder_factory",
1084 ":neteq",
1085 "../..:webrtc_common",
1086 "../../base:rtc_base_approved",
1087 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001088}
1089
kjellanderfb114242016-06-13 00:19:48 -07001090if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001091 group("audio_coding_tests") {
1092 testonly = true
1093 public_deps = [
1094 ":RTPchange",
1095 ":RTPencode",
1096 ":RTPjitter",
1097 ":RTPtimeshift",
1098 ":acm_receive_test",
1099 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001100 ":audio_codec_speed_tests",
1101 ":audio_decoder_unittests",
1102 ":audio_decoder_unittests",
1103 ":delay_test",
1104 ":g711_test",
1105 ":g722_test",
1106 ":ilbc_test",
1107 ":insert_packet_with_timing",
1108 ":isac_api_test",
1109 ":isac_fix_test",
1110 ":isac_switch_samprate_test",
1111 ":isac_test",
1112 ":neteq_ilbc_quality_test",
1113 ":neteq_isac_quality_test",
1114 ":neteq_opus_quality_test",
1115 ":neteq_pcmu_quality_test",
1116 ":neteq_speed_test",
1117 ":rtp_analyze",
1118 ":rtpcat",
1119 ":webrtc_opus_fec_test",
1120 ]
1121 if (rtc_enable_protobuf) {
1122 public_deps += [ ":neteq_rtpplay" ]
1123 }
1124 }
1125
ehmaldonado021eef32017-01-05 07:09:50 -08001126 rtc_source_set("audio_coding_perf_tests") {
1127 testonly = true
1128 sources = [
1129 "codecs/opus/opus_complexity_unittest.cc",
1130 "neteq/test/neteq_performance_unittest.cc",
1131 ]
1132 deps = [
1133 ":neteq_test_support",
1134 ":neteq_unittest_tools",
1135 ":webrtc_opus",
1136 "../..:webrtc_common",
1137 "../../base:rtc_base_approved",
1138 "../../system_wrappers:system_wrappers",
1139 "../../test:test_support",
1140 ]
1141 if (!build_with_chromium && is_clang) {
1142 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1143 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1144 }
1145 }
1146
ehmaldonado38a21322016-09-02 04:10:34 -07001147 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001148 testonly = true
1149 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001150 "acm2/acm_receive_test.cc",
1151 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001152 ]
1153
kjellanderfb114242016-06-13 00:19:48 -07001154 defines = audio_coding_defines
1155
1156 deps = audio_coding_deps + [
1157 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001158 ":audio_format_conversion",
1159 ":audio_decoder_factory_interface",
1160 ":builtin_audio_decoder_factory",
kjellanderfb114242016-06-13 00:19:48 -07001161 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001162 "../../base:rtc_base_approved",
1163 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001164 "//testing/gtest",
1165 ]
1166 }
1167
ehmaldonado38a21322016-09-02 04:10:34 -07001168 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001169 testonly = true
1170 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001171 "acm2/acm_send_test.cc",
1172 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001173 ]
1174
kjellanderfb114242016-06-13 00:19:48 -07001175 defines = audio_coding_defines
1176
1177 deps = audio_coding_deps + [
1178 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001179 ":audio_decoder_interface",
1180 ":audio_encoder_interface",
kjellanderfb114242016-06-13 00:19:48 -07001181 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001182 "../../base:rtc_base_approved",
1183 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001184 "//testing/gtest",
1185 ]
1186 }
1187
ehmaldonado38a21322016-09-02 04:10:34 -07001188 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001189 testonly = true
1190 sources = [
1191 "test/Channel.cc",
1192 "test/PCMFile.cc",
1193 "test/delay_test.cc",
1194 "test/utility.cc",
1195 ]
1196
aleloi333f2062016-07-28 01:21:29 -07001197 deps = [
1198 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001199 ":audio_format_conversion",
aleloi333f2062016-07-28 01:21:29 -07001200 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001201 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001202 "../../system_wrappers",
1203 "../../system_wrappers:system_wrappers_default",
1204 "../../test:test_support",
1205 "../rtp_rtcp",
1206 "//testing/gtest",
1207 "//third_party/gflags:gflags",
1208 ]
1209 } # delay_test
1210
ehmaldonado38a21322016-09-02 04:10:34 -07001211 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001212 testonly = true
1213 sources = [
1214 "test/Channel.cc",
1215 "test/PCMFile.cc",
1216 "test/insert_packet_with_timing.cc",
1217 ]
1218
kjellandere40a7ee2016-10-16 23:56:12 -07001219 if (!build_with_chromium && is_clang) {
1220 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001221 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi00730c72016-07-28 01:27:10 -07001222 }
1223
1224 deps = [
1225 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001226 ":audio_format_conversion",
aleloi00730c72016-07-28 01:27:10 -07001227 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001228 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001229 "../../system_wrappers",
1230 "../../system_wrappers:system_wrappers_default",
1231 "../../test:test_support",
1232 "../rtp_rtcp",
1233 "//testing/gtest",
1234 "//third_party/gflags:gflags",
1235 ]
1236 } # insert_packet_with_timing
1237
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001238 audio_decoder_unittests_resources =
1239 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001240
1241 if (is_ios) {
1242 bundle_data("audio_decoder_unittests_bundle_data") {
1243 testonly = true
1244 sources = audio_decoder_unittests_resources
1245 outputs = [
1246 "{{bundle_resources_dir}}/{{source_file_part}}",
1247 ]
1248 }
1249 }
1250
ehmaldonado38a21322016-09-02 04:10:34 -07001251 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001252 testonly = true
1253 sources = [
1254 "neteq/audio_decoder_unittest.cc",
1255 ]
1256
kjellandere40a7ee2016-10-16 23:56:12 -07001257 if (!build_with_chromium && is_clang) {
1258 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001259 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001260 }
1261
1262 deps = []
1263
1264 defines = neteq_defines
1265
1266 deps += audio_coding_deps
1267 deps += [
1268 ":audio_decoder_interface",
1269 ":isac",
1270 ":isac_fix",
1271 ":neteq",
1272 ":neteq_unittest_tools",
kjellander6ceab082016-10-28 05:44:03 -07001273 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001274 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001275 "//testing/gtest",
1276 ]
1277
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001278 data = audio_decoder_unittests_resources
1279
charujainddf3e4a2016-08-01 07:49:42 -07001280 if (is_android) {
1281 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001282 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001283 }
kjellander32c4a202016-08-30 02:53:49 -07001284 if (is_ios) {
1285 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001286 }
1287 } # audio_decoder_unittests
1288
kjellanderfb114242016-06-13 00:19:48 -07001289 if (rtc_enable_protobuf) {
1290 proto_library("neteq_unittest_proto") {
1291 sources = [
1292 "neteq/neteq_unittest.proto",
1293 ]
1294 proto_out_dir = "webrtc/audio_coding/neteq"
1295 }
henrik.lundin03153f12016-06-21 05:38:42 -07001296
kjellanderb62dbbe2016-09-23 00:38:52 -07001297 rtc_static_library("rtc_event_log_source") {
henrik.lundin03153f12016-06-21 05:38:42 -07001298 testonly = true
kjellander676e08f2016-12-07 08:23:27 -08001299
1300 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1301 # Needs call.h to be moved to webrtc/api first.
1302 check_includes = false
1303
henrik.lundin03153f12016-06-21 05:38:42 -07001304 sources = [
1305 "neteq/tools/rtc_event_log_source.cc",
1306 "neteq/tools/rtc_event_log_source.h",
1307 ]
1308
kjellandere40a7ee2016-10-16 23:56:12 -07001309 if (!build_with_chromium && is_clang) {
1310 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001311 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001312 }
1313
1314 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001315 "../../base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -07001316 "../../logging:rtc_event_log_parser",
henrik.lundin03153f12016-06-21 05:38:42 -07001317 ]
1318 public_deps = [
skvladcc91d282016-10-03 18:31:22 -07001319 "../../logging:rtc_event_log_proto",
henrik.lundin03153f12016-06-21 05:38:42 -07001320 ]
1321 }
1322
ehmaldonado38a21322016-09-02 04:10:34 -07001323 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001324 testonly = true
1325 defines = []
1326 deps = []
1327 sources = [
1328 "neteq/tools/neteq_rtpplay.cc",
1329 ]
1330
kjellandere40a7ee2016-10-16 23:56:12 -07001331 if (!build_with_chromium && is_clang) {
1332 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001333 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001334 }
1335
1336 if (is_win) {
1337 cflags = [
1338 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1339 "/wd4373", # virtual function override.
1340 ]
1341 }
1342
1343 deps += [
1344 ":neteq",
1345 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001346 "../..:webrtc_common",
1347 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001348 "../../system_wrappers:system_wrappers_default",
1349 "../../test:test_support",
1350 "//third_party/gflags",
1351 ]
1352 }
kjellanderfb114242016-06-13 00:19:48 -07001353 }
1354
ehmaldonado38a21322016-09-02 04:10:34 -07001355 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001356 testonly = true
1357 defines = []
1358 deps = []
1359 sources = [
1360 "codecs/isac/fix/test/isac_speed_test.cc",
1361 "codecs/opus/opus_speed_test.cc",
1362 "codecs/tools/audio_codec_speed_test.cc",
1363 "codecs/tools/audio_codec_speed_test.h",
1364 ]
1365
kjellandere40a7ee2016-10-16 23:56:12 -07001366 if (!build_with_chromium && is_clang) {
1367 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001368 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001369 }
1370
1371 if (is_android) {
1372 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001373 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001374 }
1375
1376 deps += [
1377 ":isac_fix",
1378 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001379 "../..:webrtc_common",
1380 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001381 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001382 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001383 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001384 "//testing/gtest",
1385 ]
1386 }
1387
ehmaldonado38a21322016-09-02 04:10:34 -07001388 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001389 testonly = true
1390 sources = [
1391 "neteq/tools/neteq_external_decoder_test.cc",
1392 "neteq/tools/neteq_external_decoder_test.h",
1393 "neteq/tools/neteq_performance_test.cc",
1394 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001395 ]
1396
kjellandere40a7ee2016-10-16 23:56:12 -07001397 if (!build_with_chromium && is_clang) {
1398 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001399 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001400 }
1401
1402 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001403 ":audio_decoder_interface",
1404 ":builtin_audio_decoder_factory",
kjellanderfb114242016-06-13 00:19:48 -07001405 ":neteq",
1406 ":neteq_unittest_tools",
1407 ":pcm16b",
kjellander676e08f2016-12-07 08:23:27 -08001408 "../..:webrtc_common",
1409 "../../base:rtc_base_approved",
1410 "../../system_wrappers",
1411 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001412 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001413 ]
1414 }
1415
ehmaldonado38a21322016-09-02 04:10:34 -07001416 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001417 testonly = true
1418 sources = [
1419 "neteq/tools/neteq_quality_test.cc",
1420 "neteq/tools/neteq_quality_test.h",
1421 ]
1422
kjellandere40a7ee2016-10-16 23:56:12 -07001423 if (!build_with_chromium && is_clang) {
1424 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001425 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001426 }
1427
1428 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001429 ":builtin_audio_decoder_factory",
ehmaldonado861da3c2016-08-19 07:02:24 -07001430 ":neteq",
1431 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001432 "../..:webrtc_common",
1433 "../../base:rtc_base_approved",
1434 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001435 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001436 "//third_party/gflags",
1437 ]
1438 }
1439
kjellanderfb114242016-06-13 00:19:48 -07001440 config("neteq_unittest_tools_config") {
1441 include_dirs = [ "tools" ]
1442 }
1443
ehmaldonado38a21322016-09-02 04:10:34 -07001444 rtc_source_set("neteq_unittest_tools") {
kjellanderfb114242016-06-13 00:19:48 -07001445 testonly = true
1446 sources = [
1447 "neteq/tools/audio_checksum.h",
1448 "neteq/tools/audio_loop.cc",
1449 "neteq/tools/audio_loop.h",
aleloi0e0be0a2016-08-10 04:55:20 -07001450 "neteq/tools/audio_sink.cc",
kjellanderfb114242016-06-13 00:19:48 -07001451 "neteq/tools/audio_sink.h",
1452 "neteq/tools/constant_pcm_packet_source.cc",
1453 "neteq/tools/constant_pcm_packet_source.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001454 "neteq/tools/fake_decode_from_file.cc",
1455 "neteq/tools/fake_decode_from_file.h",
kjellanderfb114242016-06-13 00:19:48 -07001456 "neteq/tools/input_audio_file.cc",
1457 "neteq/tools/input_audio_file.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001458 "neteq/tools/neteq_input.h",
1459 "neteq/tools/neteq_packet_source_input.cc",
1460 "neteq/tools/neteq_packet_source_input.h",
1461 "neteq/tools/neteq_replacement_input.cc",
1462 "neteq/tools/neteq_replacement_input.h",
kjellanderfb114242016-06-13 00:19:48 -07001463 "neteq/tools/output_audio_file.h",
1464 "neteq/tools/output_wav_file.h",
1465 "neteq/tools/packet.cc",
1466 "neteq/tools/packet.h",
kwibergb8e56ee2016-08-29 06:37:33 -07001467 "neteq/tools/packet_source.cc",
kjellanderfb114242016-06-13 00:19:48 -07001468 "neteq/tools/packet_source.h",
1469 "neteq/tools/resample_input_audio_file.cc",
1470 "neteq/tools/resample_input_audio_file.h",
1471 "neteq/tools/rtp_file_source.cc",
1472 "neteq/tools/rtp_file_source.h",
1473 "neteq/tools/rtp_generator.cc",
1474 "neteq/tools/rtp_generator.h",
1475 ]
1476
ehmaldonadoe9cc6862016-09-05 06:10:18 -07001477 public_configs = [ ":neteq_unittest_tools_config" ]
kjellanderfb114242016-06-13 00:19:48 -07001478
kjellandere40a7ee2016-10-16 23:56:12 -07001479 if (!build_with_chromium && is_clang) {
1480 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001481 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001482 }
1483
1484 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001485 ":audio_decoder_interface",
1486 ":audio_encoder_interface",
1487 ":pcm16b",
1488 "../..:webrtc_common",
1489 "../../base:rtc_base_approved",
kjellanderfb114242016-06-13 00:19:48 -07001490 "../../common_audio",
1491 "../../test:rtp_test_utils",
1492 "../rtp_rtcp",
1493 ]
henrik.lundine8a77e32016-06-22 06:34:03 -07001494
kjellander676e08f2016-12-07 08:23:27 -08001495 public_deps = [
1496 ":neteq_test_minimal",
1497 ]
1498
henrik.lundine8a77e32016-06-22 06:34:03 -07001499 if (rtc_enable_protobuf) {
1500 deps += [ ":rtc_event_log_source" ]
1501 }
kjellanderfb114242016-06-13 00:19:48 -07001502 }
aleloi3022a342016-07-26 06:36:03 -07001503
ehmaldonado38a21322016-09-02 04:10:34 -07001504 rtc_source_set("neteq_test_tools") {
aleloi3022a342016-07-26 06:36:03 -07001505 testonly = true
1506 sources = [
1507 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1508 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1509 "neteq/test/NETEQTEST_RTPpacket.cc",
1510 "neteq/test/NETEQTEST_RTPpacket.h",
1511 ]
1512
1513 deps = [
1514 ":cng",
1515 ":g711",
1516 ":g722",
1517 ":ilbc",
1518 ":isac",
1519 ":pcm16b",
1520 "../..:webrtc_common",
1521 "//testing/gtest",
1522 ]
1523
1524 include_dirs = [
1525 "neteq/include",
1526 "neteq/test",
1527 "../../",
1528 ]
1529
1530 if (is_win) {
1531 cflags = [
1532 # Disable warnings to enable Win64 build, issue 1323.
1533 "/wd4267", # size_t to int truncation
1534 ]
1535 }
1536 }
aleloi47bded42016-07-26 06:46:19 -07001537
aleloi82667732016-08-02 01:45:50 -07001538 config("RTPencode_config") {
1539 defines = [
1540 "CODEC_ILBC",
1541 "CODEC_PCM16B",
1542 "CODEC_G711",
1543 "CODEC_G722",
1544 "CODEC_ISAC",
1545 "CODEC_PCM16B_WB",
1546 "CODEC_ISAC_SWB",
1547 "CODEC_PCM16B_32KHZ",
1548 "CODEC_PCM16B_48KHZ",
1549 "CODEC_CNGCODEC8",
1550 "CODEC_CNGCODEC16",
1551 "CODEC_CNGCODEC32",
1552 "CODEC_ATEVENT_DECODE",
1553 "CODEC_RED",
1554 "CODEC_OPUS",
1555 ]
1556 }
1557
ehmaldonado38a21322016-09-02 04:10:34 -07001558 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001559 testonly = true
1560
1561 deps = [
1562 # TODO(hlundin): Make RTPencode use ACM to encode files.
1563 ":cng",
1564 ":g711",
1565 ":g722",
1566 ":ilbc",
1567 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001568 ":neteq",
aleloi82667732016-08-02 01:45:50 -07001569 ":neteq_test_tools",
1570 ":pcm16b",
1571 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001572 "../..:webrtc_common",
1573 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001574 "../../common_audio",
1575 ]
1576
1577 configs += [ ":RTPencode_config" ]
1578
1579 sources = [
1580 "neteq/test/RTPencode.cc",
1581 ]
1582
1583 include_dirs = [
1584 "neteq/include",
1585 "neteq/test",
1586 ]
1587
1588 if (is_win) {
1589 cflags = [
1590 # Disable warnings to enable Win64 build, issue 1323.
1591 "/wd4267", # size_t to int truncation
1592 ]
1593 }
1594 }
1595
ehmaldonado38a21322016-09-02 04:10:34 -07001596 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001597 testonly = true
1598
1599 sources = [
1600 "neteq/test/RTPchange.cc",
1601 ]
1602
1603 deps = [
1604 ":neteq_test_tools",
1605 ]
1606 }
1607
ehmaldonado38a21322016-09-02 04:10:34 -07001608 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001609 testonly = true
1610
1611 sources = [
1612 "neteq/tools/rtpcat.cc",
1613 ]
1614
1615 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001616 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001617 "../../system_wrappers:system_wrappers_default",
1618 "../../test:rtp_test_utils",
1619 "//testing/gtest",
1620 ]
1621 }
1622
ehmaldonado38a21322016-09-02 04:10:34 -07001623 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001624 testonly = true
1625
1626 sources = [
1627 "neteq/test/RTPtimeshift.cc",
1628 ]
1629
1630 deps = [
1631 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001632 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001633 "//testing/gtest",
1634 ]
1635 }
1636
ehmaldonado38a21322016-09-02 04:10:34 -07001637 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001638 testonly = true
1639 deps = [
1640 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001641 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001642 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001643 "//testing/gtest",
1644 ]
1645 sources = [
1646 "neteq/test/RTPjitter.cc",
1647 ]
1648 }
1649
ehmaldonado38a21322016-09-02 04:10:34 -07001650 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001651 testonly = true
1652
1653 sources = [
1654 "neteq/tools/rtp_analyze.cc",
1655 ]
1656
1657 deps = [
1658 ":neteq",
1659 ":neteq_unittest_tools",
1660 ":pcm16b",
1661 "../../system_wrappers:system_wrappers_default",
1662 "//testing/gtest",
1663 "//third_party/gflags:gflags",
1664 ]
1665
kjellandere40a7ee2016-10-16 23:56:12 -07001666 if (!build_with_chromium && is_clang) {
1667 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001668 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001669 }
1670 }
aleloi630c6d52016-08-10 02:11:30 -07001671
ehmaldonado38a21322016-09-02 04:10:34 -07001672 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001673 testonly = true
1674
1675 sources = [
1676 "neteq/test/neteq_opus_quality_test.cc",
1677 ]
1678
1679 deps = [
1680 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001681 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001682 ":neteq_unittest_tools",
aleloi630c6d52016-08-10 02:11:30 -07001683 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001684 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001685 "//testing/gtest",
1686 "//third_party/gflags",
1687 ]
aleloi630c6d52016-08-10 02:11:30 -07001688 }
aleloi116fd612016-08-10 04:16:36 -07001689
ehmaldonado38a21322016-09-02 04:10:34 -07001690 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001691 testonly = true
1692
1693 sources = [
1694 "neteq/test/neteq_speed_test.cc",
1695 ]
1696
1697 deps = [
1698 ":neteq",
1699 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001700 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001701 "../../system_wrappers:system_wrappers_default",
1702 "../../test:test_support",
1703 "//third_party/gflags",
1704 ]
1705 }
aleloi63910122016-08-10 04:41:14 -07001706
ehmaldonado38a21322016-09-02 04:10:34 -07001707 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001708 testonly = true
1709
1710 sources = [
1711 "neteq/test/neteq_ilbc_quality_test.cc",
1712 ]
1713
1714 deps = [
1715 ":ilbc",
1716 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001717 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001718 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001719 "../..:webrtc_common",
1720 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001721 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001722 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001723 "//testing/gtest",
1724 "//third_party/gflags",
1725 ]
1726 }
aleloi6df36dc2016-08-10 05:04:47 -07001727
ehmaldonado38a21322016-09-02 04:10:34 -07001728 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001729 testonly = true
1730
1731 sources = [
1732 "neteq/test/neteq_isac_quality_test.cc",
1733 ]
1734
1735 deps = [
1736 ":isac_fix",
1737 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001738 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001739 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001740 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001741 "//testing/gtest",
1742 "//third_party/gflags",
1743 ]
1744 }
aleloic4ac7002016-08-10 05:06:27 -07001745
ehmaldonado38a21322016-09-02 04:10:34 -07001746 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001747 testonly = true
1748
1749 sources = [
1750 "neteq/test/neteq_pcmu_quality_test.cc",
1751 ]
1752
1753 deps = [
1754 ":g711",
1755 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001756 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001757 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001758 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001759 "//testing/gtest",
1760 "//third_party/gflags",
1761 ]
1762 }
aleloib7186d02016-08-16 01:47:16 -07001763
ehmaldonado38a21322016-09-02 04:10:34 -07001764 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001765 testonly = true
1766
1767 sources = [
1768 "codecs/isac/fix/test/kenny.cc",
1769 ]
1770
1771 deps = [
1772 ":isac_fix",
1773 "../../test:test_support",
1774 ]
1775
1776 if (is_win) {
1777 cflags = [
1778 # Disable warnings to enable Win64 build, issue 1323.
1779 "/wd4267", # size_t to int truncation
1780 ]
1781 }
1782 }
aleloi16f55a12016-08-23 08:08:23 -07001783
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001784 config("isac_test_warnings_config") {
1785 if (is_win && is_clang) {
1786 cflags = [
1787 # Disable warnings failing when compiling with Clang on Windows.
1788 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1789 "-Wno-format",
1790 ]
1791 }
1792 }
1793
kjellander7439f972016-12-05 22:47:46 -08001794 rtc_source_set("isac_test_util") {
1795 testonly = true
1796 sources = [
1797 "codecs/isac/main/util/utility.c",
1798 ]
1799 }
1800
ehmaldonado38a21322016-09-02 04:10:34 -07001801 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001802 testonly = true
1803
1804 sources = [
1805 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001806 ]
1807
1808 include_dirs = [
1809 "codecs/isac/main/include",
1810 "codecs/isac/main/test",
1811 "codecs/isac/main/util",
1812 ]
1813
1814 deps = [
1815 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001816 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001817 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001818 ]
1819
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001820 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001821 }
1822
ehmaldonado38a21322016-09-02 04:10:34 -07001823 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001824 testonly = true
1825
1826 sources = [
1827 "codecs/g711/test/testG711.cc",
1828 ]
1829
aleloi16f55a12016-08-23 08:08:23 -07001830 deps = [
1831 ":g711",
1832 ]
1833 }
aleloi9a117842016-08-23 08:36:10 -07001834
ehmaldonado38a21322016-09-02 04:10:34 -07001835 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001836 testonly = true
1837
1838 sources = [
1839 "codecs/g722/test/testG722.cc",
1840 ]
1841
aleloi9a117842016-08-23 08:36:10 -07001842 deps = [
1843 ":g722",
1844 "../..:webrtc_common",
1845 ]
1846 }
ivoc2c670db2016-08-24 06:11:18 -07001847
ehmaldonado38a21322016-09-02 04:10:34 -07001848 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001849 testonly = true
1850
1851 sources = [
1852 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001853 ]
1854
aleloicfee2152016-08-29 04:09:19 -07001855 deps = [
1856 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001857 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001858 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001859 ]
1860
1861 include_dirs = [
1862 "codecs/isac/main/include",
1863 "codecs/isac/main/test",
1864 "codecs/isac/main/util",
1865 ]
1866 }
1867
ehmaldonado38a21322016-09-02 04:10:34 -07001868 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001869 testonly = true
1870
1871 sources = [
1872 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07001873 ]
1874
aleloicfee2152016-08-29 04:09:19 -07001875 deps = [
1876 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001877 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001878 ]
1879
1880 include_dirs = [
1881 "codecs/isac/main/include",
1882 "codecs/isac/main/test",
1883 "codecs/isac/main/util",
1884 "../../common_audio/signal_processing/include",
1885 ]
1886 }
1887
ehmaldonado38a21322016-09-02 04:10:34 -07001888 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07001889 testonly = true
1890
1891 sources = [
1892 "codecs/ilbc/test/iLBC_test.c",
1893 ]
1894
aleloicfee2152016-08-29 04:09:19 -07001895 deps = [
1896 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07001897 ]
1898 }
1899
ehmaldonado38a21322016-09-02 04:10:34 -07001900 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07001901 testonly = true
1902
1903 sources = [
1904 "codecs/opus/opus_fec_test.cc",
1905 ]
1906
1907 deps = [
1908 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07001909 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07001910 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001911 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07001912 "//testing/gtest",
1913 ]
1914
kjellandere40a7ee2016-10-16 23:56:12 -07001915 if (!build_with_chromium && is_clang) {
1916 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001917 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07001918 }
1919 }
kjellanderfb114242016-06-13 00:19:48 -07001920}