blob: 4a2fdcaf87ef162c899b6cb382ef01cc3e52b415 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellanderfb114242016-06-13 00:19:48 -070010import("audio_coding.gni")
11import("//build/config/arm.gni")
kjellanderfb114242016-06-13 00:19:48 -070012import("//third_party/protobuf/proto_library.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013
kwiberg0edb05b2016-01-19 05:54:28 -080014audio_codec_deps = [
15 ":cng",
16 ":g711",
17 ":pcm16b",
18]
kwiberg0edb05b2016-01-19 05:54:28 -080019if (rtc_include_ilbc) {
kwiberg0edb05b2016-01-19 05:54:28 -080020 audio_codec_deps += [ ":ilbc" ]
21}
22if (rtc_include_opus) {
kwiberg0edb05b2016-01-19 05:54:28 -080023 audio_codec_deps += [ ":webrtc_opus" ]
24}
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_conversion") {
43 sources = [
44 "codecs/audio_format_conversion.cc",
45 "codecs/audio_format_conversion.h",
46 ]
47 deps = [
kwiberga6b82982016-10-24 16:31:17 -070048 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -080049 "../../api/audio_codecs:audio_codecs_api",
kwiberga6b82982016-10-24 16:31:17 -070050 "../../base:rtc_base_approved",
kwibergda2bf4e2016-10-24 13:47:09 -070051 ]
52}
53
ossua1a040a2017-04-06 10:03:21 -070054rtc_source_set("audio_encoder_factory_interface") {
55 sources = [
56 "codecs/audio_encoder_factory.h",
57 ]
58 deps = [
59 ":audio_encoder_interface",
60 "../../api/audio_codecs:audio_codecs_api",
61 "../../base:rtc_base_approved",
62 ]
63}
64
65rtc_static_library("builtin_audio_encoder_factory") {
66 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
67 # Errors on cyclic dependency with :isac_fix if enabled.
68 check_includes = false
69 sources = [
70 "codecs/builtin_audio_encoder_factory.cc",
71 "codecs/builtin_audio_encoder_factory.h",
72 ]
73 deps = [
74 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -070075 "../../base:protobuf_utils",
ossua1a040a2017-04-06 10:03:21 -070076 "../../base:rtc_base_approved",
77 ":audio_encoder_factory_interface",
78 ] + audio_codec_deps
79 defines = audio_codec_defines
80}
81
kwiberg087bd342017-02-10 08:15:44 -080082rtc_static_library("builtin_audio_decoder_factory_internal") {
kwibergda2bf4e2016-10-24 13:47:09 -070083 sources = [
kwiberg087bd342017-02-10 08:15:44 -080084 "codecs/builtin_audio_decoder_factory_internal.cc",
85 "codecs/builtin_audio_decoder_factory_internal.h",
kwibergc01c6a42016-04-28 14:23:32 -070086 ]
kwibergc01c6a42016-04-28 14:23:32 -070087 deps = [
88 "../..:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -080089 "../../base:rtc_base_approved",
kwiberg087bd342017-02-10 08:15:44 -080090 "../../api/audio_codecs:audio_codecs_api",
kwibergc01c6a42016-04-28 14:23:32 -070091 ] + audio_codec_deps
92 defines = audio_codec_defines
93}
94
kjellanderb62dbbe2016-09-23 00:38:52 -070095rtc_static_library("rent_a_codec") {
kwibergfce4a942015-10-27 11:40:24 -070096 sources = [
kjellander3e6db232015-11-26 04:44:54 -080097 "acm2/acm_codec_database.cc",
98 "acm2/acm_codec_database.h",
99 "acm2/rent_a_codec.cc",
100 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -0700101 ]
kjellander676e08f2016-12-07 08:23:27 -0800102 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800103 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800104 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -0700105 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -0800106 "../../base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -0800107 "../../system_wrappers",
108 ":audio_coding_module_typedefs",
109 ":audio_encoder_interface",
110 ":isac_common",
111 ":isac_fix_c",
112 ":neteq_decoder_enum",
kjellander676e08f2016-12-07 08:23:27 -0800113 ] + audio_codec_deps
mbonadei7c2c8432017-04-07 00:59:12 -0700114
kwiberg0edb05b2016-01-19 05:54:28 -0800115 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -0700116}
117
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000118config("audio_coding_config") {
119 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -0800120 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +0100121 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000122 ]
123}
124
kwiberg65cb70d2017-03-03 06:16:28 -0800125rtc_source_set("audio_coding_module_typedefs") {
126 sources = [
127 "include/audio_coding_module_typedefs.h",
128 ]
129 deps = [
130 "../..:webrtc_common",
131 ]
132}
133
kjellanderb62dbbe2016-09-23 00:38:52 -0700134rtc_static_library("audio_coding") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000135 sources = [
kjellander3e6db232015-11-26 04:44:54 -0800136 "acm2/acm_receiver.cc",
137 "acm2/acm_receiver.h",
138 "acm2/acm_resampler.cc",
139 "acm2/acm_resampler.h",
140 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800141 "acm2/call_statistics.cc",
142 "acm2/call_statistics.h",
143 "acm2/codec_manager.cc",
144 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800145 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000146 ]
147
148 defines = []
149
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700150 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000151
kjellanderfb114242016-06-13 00:19:48 -0700152 if (rtc_include_opus) {
153 public_deps = [
154 ":webrtc_opus",
155 ]
156 }
157
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000158 if (is_win) {
159 cflags = [
160 # TODO(kjellander): Bug 261: fix this warning.
161 "/wd4373", # virtual function override.
162 ]
163 }
164
kjellanderfb114242016-06-13 00:19:48 -0700165 deps = audio_coding_deps + [
kwiberg087bd342017-02-10 08:15:44 -0800166 "../../api/audio_codecs:audio_codecs_api",
167 "../../api/audio_codecs:builtin_audio_decoder_factory",
kwiberg65cb70d2017-03-03 06:16:28 -0800168 ":audio_coding_module_typedefs",
169 ":audio_encoder_interface",
kwiberg0edb05b2016-01-19 05:54:28 -0800170 ":neteq",
171 ":rent_a_codec",
kjellander676e08f2016-12-07 08:23:27 -0800172 "../../base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -0700173 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800174 ]
kjellanderfb114242016-06-13 00:19:48 -0700175 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000176}
177
kwiberg087bd342017-02-10 08:15:44 -0800178rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000179 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700180 "codecs/legacy_encoded_audio_frame.cc",
181 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000182 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200183 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800184 "../../api/audio_codecs:audio_codecs_api",
kjellander4e7f6c12016-04-25 21:59:50 -0700185 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200186 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000187}
188
kjellanderb62dbbe2016-09-23 00:38:52 -0700189rtc_static_library("audio_encoder_interface") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000190 sources = [
191 "codecs/audio_encoder.cc",
192 "codecs/audio_encoder.h",
193 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200194 deps = [
195 "../..:webrtc_common",
kjellander4e7f6c12016-04-25 21:59:50 -0700196 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200197 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000198}
199
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000200config("cng_config") {
201 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000202 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000203 "codecs/cng/include",
204 ]
205}
206
kjellanderb62dbbe2016-09-23 00:38:52 -0700207rtc_static_library("cng") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000208 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000209 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100210 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700211 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100212 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000213 ]
214
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700215 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000216
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000217 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000218 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800219 "../..:webrtc_common",
220 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100221 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000222 ]
223}
224
225config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200226 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000227}
228
kjellanderb62dbbe2016-09-23 00:38:52 -0700229rtc_static_library("red") {
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000230 sources = [
231 "codecs/red/audio_encoder_copy_red.cc",
232 "codecs/red/audio_encoder_copy_red.h",
233 ]
234
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700235 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000236
237 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000238 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -0800239 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100240 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000241 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000242}
243
244config("g711_config") {
245 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000246 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000247 "codecs/g711/include",
248 ]
249}
250
kjellanderb62dbbe2016-09-23 00:38:52 -0700251rtc_static_library("g711") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000252 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700253 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100254 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000255 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100256 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000257 ]
258
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700259 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000260
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200261 deps = [
262 ":audio_encoder_interface",
kwiberg087bd342017-02-10 08:15:44 -0800263 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800264 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800265 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800266 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200267 ]
kjellander7439f972016-12-05 22:47:46 -0800268 public_deps = [
269 ":g711_c",
270 ]
271}
272
273rtc_source_set("g711_c") {
274 visibility = [ ":*" ] # Only targets in this file can depend on this.
275 sources = [
276 "codecs/g711/g711.c",
277 "codecs/g711/g711.h",
278 "codecs/g711/g711_interface.c",
279 "codecs/g711/g711_interface.h",
280 ]
kjellander676e08f2016-12-07 08:23:27 -0800281 deps = [
282 "../..:webrtc_common",
283 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000284}
285
286config("g722_config") {
287 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000288 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000289 "codecs/g722/include",
290 ]
291}
292
kjellanderb62dbbe2016-09-23 00:38:52 -0700293rtc_static_library("g722") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000294 sources = [
kwibergada4c132015-09-17 03:12:35 -0700295 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100296 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000297 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100298 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000299 ]
300
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700301 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000302
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200303 deps = [
304 ":audio_encoder_interface",
kwiberg087bd342017-02-10 08:15:44 -0800305 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800306 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800307 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800308 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200309 ]
kjellander7439f972016-12-05 22:47:46 -0800310 public_deps = [
311 ":g722_c",
312 ]
313}
314
315rtc_source_set("g722_c") {
316 visibility = [ ":*" ] # Only targets in this file can depend on this.
317 sources = [
318 "codecs/g722/g722_decode.c",
319 "codecs/g722/g722_enc_dec.h",
320 "codecs/g722/g722_encode.c",
321 "codecs/g722/g722_interface.c",
322 "codecs/g722/g722_interface.h",
323 ]
kjellander676e08f2016-12-07 08:23:27 -0800324 deps = [
325 "../..:webrtc_common",
326 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000327}
328
329config("ilbc_config") {
330 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000331 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100332 "codecs/ilbc/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000333 ]
334}
335
kjellanderb62dbbe2016-09-23 00:38:52 -0700336rtc_static_library("ilbc") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000337 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700338 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100339 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200340 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100341 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800342 ]
343
344 public_configs = [ ":ilbc_config" ]
345
346 deps = [
kjellander7439f972016-12-05 22:47:46 -0800347 ":audio_encoder_interface",
kwiberg087bd342017-02-10 08:15:44 -0800348 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800349 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800350 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800351 "../../base:rtc_base_approved",
352 "../../common_audio",
353 ]
354 public_deps = [
355 ":ilbc_c",
356 ]
357}
358
359rtc_source_set("ilbc_c") {
360 visibility = [ ":*" ] # Only targets in this file can depend on this.
361 sources = [
362 "codecs/ilbc/abs_quant.c",
363 "codecs/ilbc/abs_quant.h",
364 "codecs/ilbc/abs_quant_loop.c",
365 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000366 "codecs/ilbc/augmented_cb_corr.c",
367 "codecs/ilbc/augmented_cb_corr.h",
368 "codecs/ilbc/bw_expand.c",
369 "codecs/ilbc/bw_expand.h",
370 "codecs/ilbc/cb_construct.c",
371 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200372 "codecs/ilbc/cb_mem_energy.c",
373 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000374 "codecs/ilbc/cb_mem_energy_augmentation.c",
375 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000376 "codecs/ilbc/cb_mem_energy_calc.c",
377 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000378 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200379 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000380 "codecs/ilbc/cb_search_core.c",
381 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000382 "codecs/ilbc/cb_update_best_index.c",
383 "codecs/ilbc/cb_update_best_index.h",
384 "codecs/ilbc/chebyshev.c",
385 "codecs/ilbc/chebyshev.h",
386 "codecs/ilbc/comp_corr.c",
387 "codecs/ilbc/comp_corr.h",
388 "codecs/ilbc/constants.c",
389 "codecs/ilbc/constants.h",
390 "codecs/ilbc/create_augmented_vec.c",
391 "codecs/ilbc/create_augmented_vec.h",
392 "codecs/ilbc/decode.c",
393 "codecs/ilbc/decode.h",
394 "codecs/ilbc/decode_residual.c",
395 "codecs/ilbc/decode_residual.h",
396 "codecs/ilbc/decoder_interpolate_lsf.c",
397 "codecs/ilbc/decoder_interpolate_lsf.h",
398 "codecs/ilbc/defines.h",
399 "codecs/ilbc/do_plc.c",
400 "codecs/ilbc/do_plc.h",
401 "codecs/ilbc/encode.c",
402 "codecs/ilbc/encode.h",
403 "codecs/ilbc/energy_inverse.c",
404 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200405 "codecs/ilbc/enh_upsample.c",
406 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000407 "codecs/ilbc/enhancer.c",
408 "codecs/ilbc/enhancer.h",
409 "codecs/ilbc/enhancer_interface.c",
410 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000411 "codecs/ilbc/filtered_cb_vecs.c",
412 "codecs/ilbc/filtered_cb_vecs.h",
413 "codecs/ilbc/frame_classify.c",
414 "codecs/ilbc/frame_classify.h",
415 "codecs/ilbc/gain_dequant.c",
416 "codecs/ilbc/gain_dequant.h",
417 "codecs/ilbc/gain_quant.c",
418 "codecs/ilbc/gain_quant.h",
419 "codecs/ilbc/get_cd_vec.c",
420 "codecs/ilbc/get_cd_vec.h",
421 "codecs/ilbc/get_lsp_poly.c",
422 "codecs/ilbc/get_lsp_poly.h",
423 "codecs/ilbc/get_sync_seq.c",
424 "codecs/ilbc/get_sync_seq.h",
425 "codecs/ilbc/hp_input.c",
426 "codecs/ilbc/hp_input.h",
427 "codecs/ilbc/hp_output.c",
428 "codecs/ilbc/hp_output.h",
429 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100430 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000431 "codecs/ilbc/index_conv_dec.c",
432 "codecs/ilbc/index_conv_dec.h",
433 "codecs/ilbc/index_conv_enc.c",
434 "codecs/ilbc/index_conv_enc.h",
435 "codecs/ilbc/init_decode.c",
436 "codecs/ilbc/init_decode.h",
437 "codecs/ilbc/init_encode.c",
438 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000439 "codecs/ilbc/interpolate.c",
440 "codecs/ilbc/interpolate.h",
441 "codecs/ilbc/interpolate_samples.c",
442 "codecs/ilbc/interpolate_samples.h",
443 "codecs/ilbc/lpc_encode.c",
444 "codecs/ilbc/lpc_encode.h",
445 "codecs/ilbc/lsf_check.c",
446 "codecs/ilbc/lsf_check.h",
447 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
448 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
449 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
450 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
451 "codecs/ilbc/lsf_to_lsp.c",
452 "codecs/ilbc/lsf_to_lsp.h",
453 "codecs/ilbc/lsf_to_poly.c",
454 "codecs/ilbc/lsf_to_poly.h",
455 "codecs/ilbc/lsp_to_lsf.c",
456 "codecs/ilbc/lsp_to_lsf.h",
457 "codecs/ilbc/my_corr.c",
458 "codecs/ilbc/my_corr.h",
459 "codecs/ilbc/nearest_neighbor.c",
460 "codecs/ilbc/nearest_neighbor.h",
461 "codecs/ilbc/pack_bits.c",
462 "codecs/ilbc/pack_bits.h",
463 "codecs/ilbc/poly_to_lsf.c",
464 "codecs/ilbc/poly_to_lsf.h",
465 "codecs/ilbc/poly_to_lsp.c",
466 "codecs/ilbc/poly_to_lsp.h",
467 "codecs/ilbc/refiner.c",
468 "codecs/ilbc/refiner.h",
469 "codecs/ilbc/simple_interpolate_lsf.c",
470 "codecs/ilbc/simple_interpolate_lsf.h",
471 "codecs/ilbc/simple_lpc_analysis.c",
472 "codecs/ilbc/simple_lpc_analysis.h",
473 "codecs/ilbc/simple_lsf_dequant.c",
474 "codecs/ilbc/simple_lsf_dequant.h",
475 "codecs/ilbc/simple_lsf_quant.c",
476 "codecs/ilbc/simple_lsf_quant.h",
477 "codecs/ilbc/smooth.c",
478 "codecs/ilbc/smooth.h",
479 "codecs/ilbc/smooth_out_data.c",
480 "codecs/ilbc/smooth_out_data.h",
481 "codecs/ilbc/sort_sq.c",
482 "codecs/ilbc/sort_sq.h",
483 "codecs/ilbc/split_vq.c",
484 "codecs/ilbc/split_vq.h",
485 "codecs/ilbc/state_construct.c",
486 "codecs/ilbc/state_construct.h",
487 "codecs/ilbc/state_search.c",
488 "codecs/ilbc/state_search.h",
489 "codecs/ilbc/swap_bytes.c",
490 "codecs/ilbc/swap_bytes.h",
491 "codecs/ilbc/unpack_bits.c",
492 "codecs/ilbc/unpack_bits.h",
493 "codecs/ilbc/vq3.c",
494 "codecs/ilbc/vq3.h",
495 "codecs/ilbc/vq4.c",
496 "codecs/ilbc/vq4.h",
497 "codecs/ilbc/window32_w32.c",
498 "codecs/ilbc/window32_w32.h",
499 "codecs/ilbc/xcorr_coef.c",
500 "codecs/ilbc/xcorr_coef.h",
501 ]
502
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700503 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000504
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000505 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800506 ":audio_encoder_interface",
507 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800508 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800509 "../../base:rtc_base_approved",
Henrik Lundind048aa02015-12-03 17:47:21 +0100510 "../../common_audio",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000511 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000512}
513
kjellanderb62dbbe2016-09-23 00:38:52 -0700514rtc_static_library("isac_common") {
kwiberg608c3cf2015-08-24 02:03:23 -0700515 sources = [
516 "codecs/isac/audio_encoder_isac_t.h",
517 "codecs/isac/audio_encoder_isac_t_impl.h",
518 "codecs/isac/locked_bandwidth_info.cc",
519 "codecs/isac/locked_bandwidth_info.h",
520 ]
kjellander676e08f2016-12-07 08:23:27 -0800521 deps = [
522 ":audio_encoder_interface",
kwiberga6ca5182017-01-30 05:28:54 -0800523 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700524 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800525 "../../base:rtc_base_approved",
526 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700527}
528
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000529config("isac_config") {
530 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000531 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100532 "codecs/isac/main/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000533 ]
534}
535
kjellanderb62dbbe2016-09-23 00:38:52 -0700536rtc_static_library("isac") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000537 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800538 "codecs/isac/main/include/audio_decoder_isac.h",
539 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800540 "codecs/isac/main/source/audio_decoder_isac.cc",
541 "codecs/isac/main/source/audio_encoder_isac.cc",
542 ]
543
544 deps = [
kjellander7439f972016-12-05 22:47:46 -0800545 ":audio_encoder_interface",
546 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800547 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800548 ]
549 public_deps = [
550 ":isac_c",
551 ]
552}
553
554rtc_static_library("isac_c") {
555 visibility = [ ":*" ] # Only targets in this file can depend on this.
556 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100557 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000558 "codecs/isac/main/source/arith_routines.c",
559 "codecs/isac/main/source/arith_routines.h",
560 "codecs/isac/main/source/arith_routines_hist.c",
561 "codecs/isac/main/source/arith_routines_logist.c",
562 "codecs/isac/main/source/bandwidth_estimator.c",
563 "codecs/isac/main/source/bandwidth_estimator.h",
564 "codecs/isac/main/source/codec.h",
565 "codecs/isac/main/source/crc.c",
566 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000567 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200568 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000569 "codecs/isac/main/source/encode.c",
570 "codecs/isac/main/source/encode_lpc_swb.c",
571 "codecs/isac/main/source/encode_lpc_swb.h",
572 "codecs/isac/main/source/entropy_coding.c",
573 "codecs/isac/main/source/entropy_coding.h",
574 "codecs/isac/main/source/fft.c",
575 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200576 "codecs/isac/main/source/filter_functions.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000577 "codecs/isac/main/source/filterbank_tables.c",
578 "codecs/isac/main/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200579 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000580 "codecs/isac/main/source/intialize.c",
581 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200582 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000583 "codecs/isac/main/source/lattice.c",
584 "codecs/isac/main/source/lpc_analysis.c",
585 "codecs/isac/main/source/lpc_analysis.h",
586 "codecs/isac/main/source/lpc_gain_swb_tables.c",
587 "codecs/isac/main/source/lpc_gain_swb_tables.h",
588 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
589 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
590 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
591 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
592 "codecs/isac/main/source/lpc_tables.c",
593 "codecs/isac/main/source/lpc_tables.h",
594 "codecs/isac/main/source/os_specific_inline.h",
595 "codecs/isac/main/source/pitch_estimator.c",
596 "codecs/isac/main/source/pitch_estimator.h",
597 "codecs/isac/main/source/pitch_filter.c",
598 "codecs/isac/main/source/pitch_gain_tables.c",
599 "codecs/isac/main/source/pitch_gain_tables.h",
600 "codecs/isac/main/source/pitch_lag_tables.c",
601 "codecs/isac/main/source/pitch_lag_tables.h",
602 "codecs/isac/main/source/settings.h",
603 "codecs/isac/main/source/spectrum_ar_model_tables.c",
604 "codecs/isac/main/source/spectrum_ar_model_tables.h",
605 "codecs/isac/main/source/structs.h",
606 "codecs/isac/main/source/transform.c",
607 ]
608
609 if (is_linux) {
610 libs = [ "m" ]
611 }
612
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700613 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000614
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000615 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800616 ":isac_common",
aleloicfee2152016-08-29 04:09:19 -0700617 "../..:webrtc_common",
618 "../../base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000619 "../../common_audio",
620 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000621}
622
623config("isac_fix_config") {
624 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000625 "../../..",
Henrik Kjellander74640892015-10-29 11:31:02 +0100626 "codecs/isac/fix/include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000627 ]
628}
629
kjellanderb62dbbe2016-09-23 00:38:52 -0700630rtc_static_library("isac_fix") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000631 sources = [
kjellander7439f972016-12-05 22:47:46 -0800632 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
633 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
634 ]
635
636 public_configs = [ ":isac_fix_config" ]
637
638 deps = [
kjellander7439f972016-12-05 22:47:46 -0800639 ":audio_encoder_interface",
640 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800641 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800642 "../../common_audio",
643 "../../system_wrappers",
644 ]
645 public_deps = [
646 ":isac_fix_c",
647 ]
648
649 if (rtc_build_with_neon) {
650 deps += [ ":isac_neon" ]
651 }
652}
653
kwiberga6ca5182017-01-30 05:28:54 -0800654rtc_source_set("isac_fix_common") {
655 visibility = [ ":*" ] # Only targets in this file can depend on this.
656 sources = [
657 "codecs/isac/fix/source/codec.h",
658 "codecs/isac/fix/source/fft.c",
659 "codecs/isac/fix/source/fft.h",
660 "codecs/isac/fix/source/settings.h",
661 ]
662 public_configs = [ ":isac_fix_config" ]
663}
kjellander676e08f2016-12-07 08:23:27 -0800664
kwiberga6ca5182017-01-30 05:28:54 -0800665rtc_source_set("isac_fix_c") {
kjellander7439f972016-12-05 22:47:46 -0800666 visibility = [ ":*" ] # Only targets in this file can depend on this.
667 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100668 "codecs/isac/fix/include/audio_decoder_isacfix.h",
669 "codecs/isac/fix/include/audio_encoder_isacfix.h",
670 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000671 "codecs/isac/fix/source/arith_routines.c",
672 "codecs/isac/fix/source/arith_routines_hist.c",
673 "codecs/isac/fix/source/arith_routines_logist.c",
674 "codecs/isac/fix/source/arith_routins.h",
675 "codecs/isac/fix/source/bandwidth_estimator.c",
676 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000677 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200678 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000679 "codecs/isac/fix/source/decode_plc.c",
680 "codecs/isac/fix/source/encode.c",
681 "codecs/isac/fix/source/entropy_coding.c",
682 "codecs/isac/fix/source/entropy_coding.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000683 "codecs/isac/fix/source/filterbank_tables.c",
684 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200685 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000686 "codecs/isac/fix/source/filters.c",
687 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200688 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000689 "codecs/isac/fix/source/isacfix.c",
690 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700691 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000692 "codecs/isac/fix/source/lpc_masking_model.c",
693 "codecs/isac/fix/source/lpc_masking_model.h",
694 "codecs/isac/fix/source/lpc_tables.c",
695 "codecs/isac/fix/source/lpc_tables.h",
696 "codecs/isac/fix/source/pitch_estimator.c",
697 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700698 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000699 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700700 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000701 "codecs/isac/fix/source/pitch_gain_tables.c",
702 "codecs/isac/fix/source/pitch_gain_tables.h",
703 "codecs/isac/fix/source/pitch_lag_tables.c",
704 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000705 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
706 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
707 "codecs/isac/fix/source/structs.h",
708 "codecs/isac/fix/source/transform.c",
709 "codecs/isac/fix/source/transform_tables.c",
710 ]
711
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700712 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000713
kjellander676e08f2016-12-07 08:23:27 -0800714 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800715 ":audio_encoder_interface",
716 ":isac_common",
717 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800718 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800719 "../../base:rtc_base_approved",
720 "../../common_audio",
721 "../../system_wrappers",
722 ]
723
kwiberga6ca5182017-01-30 05:28:54 -0800724 public_deps = [
725 ":isac_fix_common",
726 ]
727
mbonadeie5dc3ce2017-01-25 05:34:46 -0800728 if (rtc_build_with_neon) {
729 deps += [ ":isac_neon" ]
730 }
731
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700732 if (current_cpu == "arm" && arm_version >= 7) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000733 sources += [
734 "codecs/isac/fix/source/lattice_armv7.S",
735 "codecs/isac/fix/source/pitch_filter_armv6.S",
736 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700737 sources -= [
738 "codecs/isac/fix/source/lattice_c.c",
739 "codecs/isac/fix/source/pitch_filter_c.c",
740 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000741 }
742
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000743 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000744 sources += [
745 "codecs/isac/fix/source/entropy_coding_mips.c",
746 "codecs/isac/fix/source/filters_mips.c",
747 "codecs/isac/fix/source/lattice_mips.c",
748 "codecs/isac/fix/source/pitch_estimator_mips.c",
749 "codecs/isac/fix/source/transform_mips.c",
750 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700751 sources -= [
752 "codecs/isac/fix/source/lattice_c.c",
753 "codecs/isac/fix/source/pitch_estimator_c.c",
754 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000755 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200756 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000757 }
758 if (mips_dsp_rev > 1) {
759 sources += [
760 "codecs/isac/fix/source/lpc_masking_model_mips.c",
761 "codecs/isac/fix/source/pitch_filter_mips.c",
762 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200763 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000764 }
765 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000766}
767
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700768if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700769 rtc_static_library("isac_neon") {
Zhongwei Yaof242e662015-05-06 16:39:17 +0800770 sources = [
771 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800772 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800773 "codecs/isac/fix/source/filters_neon.c",
774 "codecs/isac/fix/source/lattice_neon.c",
775 "codecs/isac/fix/source/transform_neon.c",
776 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000777
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700778 if (current_cpu != "arm64") {
779 # Enable compilation for the NEON instruction set. This is needed
780 # since //build/config/arm.gni only enables NEON for iOS, not Android.
781 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700782 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700783 cflags = [ "-mfpu=neon" ]
784 }
785
786 # Disable LTO on NEON targets due to compiler bug.
787 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000788 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000789 cflags -= [
790 "-flto",
791 "-ffat-lto-objects",
792 ]
793 }
794
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200795 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800796 ":isac_fix_common",
kjellander676e08f2016-12-07 08:23:27 -0800797 "../../base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200798 "../../common_audio",
799 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000800 }
801}
802
803config("pcm16b_config") {
804 include_dirs = [
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000805 "../../..",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000806 "codecs/pcm16b/include",
807 ]
808}
809
kjellanderb62dbbe2016-09-23 00:38:52 -0700810rtc_static_library("pcm16b") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000811 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200812 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100813 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200814 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100815 "codecs/pcm16b/audio_encoder_pcm16b.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000816 ]
817
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000818 deps = [
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000819 ":audio_encoder_interface",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000820 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800821 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800822 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800823 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800824 "../../base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000825 ]
kjellander7439f972016-12-05 22:47:46 -0800826 public_deps = [
827 ":pcm16b_c",
828 ]
829 public_configs = [ ":pcm16b_config" ]
830}
831
832rtc_source_set("pcm16b_c") {
833 visibility = [ ":*" ] # Only targets in this file can depend on this.
834 sources = [
835 "codecs/pcm16b/pcm16b.c",
836 "codecs/pcm16b/pcm16b.h",
837 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000838
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700839 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800840 deps = [
841 "../..:webrtc_common",
842 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000843}
844
845config("opus_config") {
andresp@webrtc.org262e6762014-09-04 13:28:48 +0000846 include_dirs = [ "../../.." ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000847}
848
kjellanderb62dbbe2016-09-23 00:38:52 -0700849rtc_static_library("webrtc_opus") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000850 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200851 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100852 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000853 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100854 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000855 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000856
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200857 deps = [
858 ":audio_encoder_interface",
minyue41b9c802016-10-06 07:13:54 -0700859 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800860 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800861 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -0700862 "../../base:protobuf_utils",
Henrik Lundind048aa02015-12-03 17:47:21 +0100863 "../../base:rtc_base_approved",
tereliusbc5d9212017-01-13 09:14:33 -0800864 "../../base:rtc_numerics",
michaelt566d8202017-01-12 10:17:38 -0800865 "../../common_audio",
kjellander676e08f2016-12-07 08:23:27 -0800866 "../../system_wrappers",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200867 ]
kjellander7439f972016-12-05 22:47:46 -0800868 public_deps = [
869 ":webrtc_opus_c",
870 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000871
michaelta55f0212017-02-02 07:47:19 -0800872 defines = audio_codec_defines
henrik.lundinfd87f4a2016-11-28 11:15:54 -0800873 if (rtc_opus_variable_complexity) {
874 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
875 } else {
876 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
877 }
henrik.lundin875862c2016-11-22 02:07:54 -0800878
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000879 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800880 public_deps += [ rtc_opus_dir ]
881 } else if (build_with_mozilla) {
882 include_dirs = [ getenv("DIST") + "/include/opus" ]
883 }
884}
885
886rtc_source_set("webrtc_opus_c") {
887 visibility = [ ":*" ] # Only targets in this file can depend on this.
888 sources = [
889 "codecs/opus/opus_inst.h",
890 "codecs/opus/opus_interface.c",
891 "codecs/opus/opus_interface.h",
892 ]
893
minyue2e03c662017-02-01 17:31:11 -0800894 defines = audio_coding_defines
895
kjellander7439f972016-12-05 22:47:46 -0800896 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700897 public_deps = [
898 rtc_opus_dir,
899 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000900 } else if (build_with_mozilla) {
901 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000902 }
kjellander7439f972016-12-05 22:47:46 -0800903
904 deps = [
kjellander676e08f2016-12-07 08:23:27 -0800905 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800906 "../../base:rtc_base_approved",
907 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000908}
909
minyue25f6a392016-09-22 22:23:20 -0700910if (rtc_enable_protobuf) {
911 proto_library("ana_debug_dump_proto") {
912 sources = [
913 "audio_network_adaptor/debug_dump.proto",
914 ]
sakal363a2912017-01-13 06:52:12 -0800915 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700916 }
minyuea1d9ad02016-10-02 14:53:37 -0700917 proto_library("ana_config_proto") {
918 sources = [
919 "audio_network_adaptor/config.proto",
920 ]
921 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
922 }
minyue25f6a392016-09-22 22:23:20 -0700923}
924
minyue0d382ef2016-10-07 07:59:28 -0700925rtc_static_library("audio_network_adaptor") {
minyue7610f852016-09-07 13:51:51 -0700926 sources = [
927 "audio_network_adaptor/audio_network_adaptor.cc",
minyuecaa9cb22016-09-13 13:34:15 -0700928 "audio_network_adaptor/audio_network_adaptor_impl.cc",
929 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700930 "audio_network_adaptor/bitrate_controller.cc",
931 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700932 "audio_network_adaptor/channel_controller.cc",
933 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700934 "audio_network_adaptor/controller.cc",
935 "audio_network_adaptor/controller.h",
936 "audio_network_adaptor/controller_manager.cc",
937 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700938 "audio_network_adaptor/debug_dump_writer.cc",
939 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700940 "audio_network_adaptor/dtx_controller.cc",
941 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800942 "audio_network_adaptor/event_log_writer.cc",
943 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700944 "audio_network_adaptor/fec_controller_plr_based.cc",
945 "audio_network_adaptor/fec_controller_plr_based.h",
946 "audio_network_adaptor/fec_controller_rplr_based.cc",
947 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700948 "audio_network_adaptor/frame_length_controller.cc",
949 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700950 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700951 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700952 ]
minyue25f6a392016-09-22 22:23:20 -0700953
minyue41b9c802016-10-06 07:13:54 -0700954 deps = [
955 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -0700956 "../../base:protobuf_utils",
kjellander676e08f2016-12-07 08:23:27 -0800957 "../../base:rtc_base_approved",
958 "../../common_audio",
minyue4b7c9522017-01-24 04:54:59 -0800959 "../../logging:rtc_event_log_api",
minyue41b9c802016-10-06 07:13:54 -0700960 "../../system_wrappers",
961 ]
962
minyue25f6a392016-09-22 22:23:20 -0700963 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -0700964 deps += [
minyuea1d9ad02016-10-02 14:53:37 -0700965 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -0700966 ":ana_debug_dump_proto",
967 ]
968 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ]
969 }
minyue4b7c9522017-01-24 04:54:59 -0800970
971 if (!build_with_chromium && is_clang) {
972 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
973 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
974 }
minyue7610f852016-09-07 13:51:51 -0700975}
976
kwiberg65cb70d2017-03-03 06:16:28 -0800977rtc_source_set("neteq_decoder_enum") {
978 sources = [
979 "neteq/neteq_decoder_enum.cc",
980 "neteq/neteq_decoder_enum.h",
981 ]
982 deps = [
983 "../../api/audio_codecs:audio_codecs_api",
984 "../../base:rtc_base_approved",
985 ]
986}
kjellander676e08f2016-12-07 08:23:27 -0800987
kwiberg65cb70d2017-03-03 06:16:28 -0800988rtc_static_library("neteq") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000989 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000990 "neteq/accelerate.cc",
991 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000992 "neteq/audio_decoder_impl.cc",
993 "neteq/audio_decoder_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000994 "neteq/audio_multi_vector.cc",
995 "neteq/audio_multi_vector.h",
996 "neteq/audio_vector.cc",
997 "neteq/audio_vector.h",
998 "neteq/background_noise.cc",
999 "neteq/background_noise.h",
1000 "neteq/buffer_level_filter.cc",
1001 "neteq/buffer_level_filter.h",
1002 "neteq/comfort_noise.cc",
1003 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -07001004 "neteq/cross_correlation.cc",
1005 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001006 "neteq/decision_logic.cc",
1007 "neteq/decision_logic.h",
1008 "neteq/decision_logic_fax.cc",
1009 "neteq/decision_logic_fax.h",
1010 "neteq/decision_logic_normal.cc",
1011 "neteq/decision_logic_normal.h",
1012 "neteq/decoder_database.cc",
1013 "neteq/decoder_database.h",
1014 "neteq/defines.h",
1015 "neteq/delay_manager.cc",
1016 "neteq/delay_manager.h",
1017 "neteq/delay_peak_detector.cc",
1018 "neteq/delay_peak_detector.h",
1019 "neteq/dsp_helper.cc",
1020 "neteq/dsp_helper.h",
1021 "neteq/dtmf_buffer.cc",
1022 "neteq/dtmf_buffer.h",
1023 "neteq/dtmf_tone_generator.cc",
1024 "neteq/dtmf_tone_generator.h",
1025 "neteq/expand.cc",
1026 "neteq/expand.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001027 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001028 "neteq/merge.cc",
1029 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001030 "neteq/nack_tracker.cc",
1031 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001032 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001033 "neteq/neteq_impl.cc",
1034 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001035 "neteq/normal.cc",
1036 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001037 "neteq/packet.cc",
1038 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001039 "neteq/packet_buffer.cc",
1040 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001041 "neteq/post_decode_vad.cc",
1042 "neteq/post_decode_vad.h",
1043 "neteq/preemptive_expand.cc",
1044 "neteq/preemptive_expand.h",
1045 "neteq/random_vector.cc",
1046 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001047 "neteq/red_payload_splitter.cc",
1048 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001049 "neteq/rtcp.cc",
1050 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001051 "neteq/statistics_calculator.cc",
1052 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001053 "neteq/sync_buffer.cc",
1054 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001055 "neteq/tick_timer.cc",
1056 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001057 "neteq/time_stretch.cc",
1058 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001059 "neteq/timestamp_scaler.cc",
1060 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001061 ]
1062
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001063 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001064 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001065 ":cng",
1066 ":g711",
kjellander676e08f2016-12-07 08:23:27 -08001067 ":isac_fix",
kwiberg65cb70d2017-03-03 06:16:28 -08001068 ":neteq_decoder_enum",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001069 ":pcm16b",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001070 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001071 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001072 "../../base:gtest_prod",
1073 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001074 "../../common_audio",
1075 "../../system_wrappers",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001076 ]
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001077
1078 defines = []
1079
kwibergf8c2bac2016-01-18 06:38:32 -08001080 if (rtc_include_ilbc) {
1081 defines += [ "WEBRTC_CODEC_ILBC" ]
1082 deps += [ ":ilbc" ]
1083 }
phoglund@webrtc.org49d0d342015-03-10 16:23:24 +00001084 if (rtc_include_opus) {
1085 defines += [ "WEBRTC_CODEC_OPUS" ]
1086 deps += [ ":webrtc_opus" ]
1087 }
kwiberg98ab3a42015-09-30 21:54:21 -07001088 if (!build_with_mozilla) {
1089 if (current_cpu == "arm") {
1090 defines += [ "WEBRTC_CODEC_ISACFX" ]
1091 deps += [ ":isac_fix" ]
1092 } else {
1093 defines += [ "WEBRTC_CODEC_ISAC" ]
1094 deps += [ ":isac" ]
1095 }
1096 defines += [ "WEBRTC_CODEC_G722" ]
1097 deps += [ ":g722" ]
1098 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001099}
kjellanderfb114242016-06-13 00:19:48 -07001100
henrik.lundin58466f62016-10-05 02:27:42 -07001101# Although providing only test support, this target must be outside of the
1102# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1103# that ultimately are built and run as a part of the Chromium ecosystem, which
1104# does not set the rtc_include_tests flag.
1105rtc_source_set("neteq_test_minimal") {
1106 testonly = true
kjellander676e08f2016-12-07 08:23:27 -08001107
1108 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1109 # Has cyclic dependency with :neteq_unittest_tools
1110 check_includes = false
1111
henrik.lundin58466f62016-10-05 02:27:42 -07001112 sources = [
1113 "neteq/tools/encode_neteq_input.cc",
1114 "neteq/tools/encode_neteq_input.h",
1115 "neteq/tools/neteq_test.cc",
1116 "neteq/tools/neteq_test.h",
1117 ]
1118
kjellandere40a7ee2016-10-16 23:56:12 -07001119 if (!build_with_chromium && is_clang) {
1120 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001121 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1122 }
kjellander676e08f2016-12-07 08:23:27 -08001123
1124 deps = [
1125 ":audio_encoder_interface",
kjellander676e08f2016-12-07 08:23:27 -08001126 ":neteq",
1127 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001128 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001129 "../../base:rtc_base_approved",
1130 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001131}
1132
kjellanderfb114242016-06-13 00:19:48 -07001133if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -07001134 group("audio_coding_tests") {
1135 testonly = true
1136 public_deps = [
1137 ":RTPchange",
1138 ":RTPencode",
1139 ":RTPjitter",
1140 ":RTPtimeshift",
1141 ":acm_receive_test",
1142 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001143 ":audio_codec_speed_tests",
1144 ":audio_decoder_unittests",
1145 ":audio_decoder_unittests",
1146 ":delay_test",
1147 ":g711_test",
1148 ":g722_test",
1149 ":ilbc_test",
1150 ":insert_packet_with_timing",
1151 ":isac_api_test",
1152 ":isac_fix_test",
1153 ":isac_switch_samprate_test",
1154 ":isac_test",
1155 ":neteq_ilbc_quality_test",
1156 ":neteq_isac_quality_test",
1157 ":neteq_opus_quality_test",
1158 ":neteq_pcmu_quality_test",
1159 ":neteq_speed_test",
1160 ":rtp_analyze",
1161 ":rtpcat",
1162 ":webrtc_opus_fec_test",
1163 ]
1164 if (rtc_enable_protobuf) {
1165 public_deps += [ ":neteq_rtpplay" ]
1166 }
1167 }
1168
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001169 rtc_source_set("audio_coding_modules_tests") {
1170 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001171
1172 # Skip restricting visibility on mobile platforms since the tests on those
1173 # gets additional generated targets which would require many lines here to
1174 # cover (which would be confusing to read and hard to maintain).
1175 if (!is_android && !is_ios) {
1176 visibility = [ "//webrtc/modules:modules_tests" ]
1177 }
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001178 sources = [
1179 "test/APITest.cc",
1180 "test/Channel.cc",
1181 "test/EncodeDecodeTest.cc",
1182 "test/PCMFile.cc",
1183 "test/PacketLossTest.cc",
1184 "test/RTPFile.cc",
1185 "test/TestAllCodecs.cc",
1186 "test/TestRedFec.cc",
1187 "test/TestStereo.cc",
1188 "test/TestVADDTX.cc",
1189 "test/Tester.cc",
1190 "test/TwoWayCommunication.cc",
1191 "test/iSACTest.cc",
1192 "test/opus_test.cc",
1193 "test/target_delay_unittest.cc",
1194 "test/utility.cc",
1195 ]
1196 deps = [
1197 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001198 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001199 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001200 ":pcm16b_c",
1201 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001202 "../../api/audio_codecs:builtin_audio_decoder_factory",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001203 "../../base:rtc_base_approved",
1204 "../../system_wrappers:system_wrappers",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001205 "../../test:test_support",
1206 ]
1207 defines = audio_coding_defines
1208 if (is_win) {
1209 cflags = [
1210 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1211 "/wd4373", # virtual function override.
1212 ]
1213 }
1214 if (!build_with_chromium && is_clang) {
1215 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1216 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1217 }
1218 }
1219
ehmaldonado021eef32017-01-05 07:09:50 -08001220 rtc_source_set("audio_coding_perf_tests") {
1221 testonly = true
kjellandere0629c02017-04-25 04:04:50 -07001222
1223 # Skip restricting visibility on mobile platforms since the tests on those
1224 # gets additional generated targets which would require many lines here to
1225 # cover (which would be confusing to read and hard to maintain).
1226 if (!is_android && !is_ios) {
1227 visibility = [ "//webrtc:webrtc_perf_tests" ]
1228 }
ehmaldonado021eef32017-01-05 07:09:50 -08001229 sources = [
1230 "codecs/opus/opus_complexity_unittest.cc",
1231 "neteq/test/neteq_performance_unittest.cc",
1232 ]
1233 deps = [
1234 ":neteq_test_support",
1235 ":neteq_unittest_tools",
1236 ":webrtc_opus",
1237 "../..:webrtc_common",
mbonadei7c2c8432017-04-07 00:59:12 -07001238 "../../base:protobuf_utils",
ehmaldonado021eef32017-01-05 07:09:50 -08001239 "../../base:rtc_base_approved",
1240 "../../system_wrappers:system_wrappers",
1241 "../../test:test_support",
1242 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001243
ehmaldonado021eef32017-01-05 07:09:50 -08001244 if (!build_with_chromium && is_clang) {
1245 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1246 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1247 }
1248 }
1249
ehmaldonado38a21322016-09-02 04:10:34 -07001250 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001251 testonly = true
1252 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001253 "acm2/acm_receive_test.cc",
1254 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001255 ]
1256
kjellanderfb114242016-06-13 00:19:48 -07001257 defines = audio_coding_defines
1258
1259 deps = audio_coding_deps + [
1260 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001261 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001262 "../../api/audio_codecs:audio_codecs_api",
1263 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellanderfb114242016-06-13 00:19:48 -07001264 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001265 "../../base:rtc_base_approved",
1266 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001267 "//testing/gtest",
1268 ]
1269 }
1270
ehmaldonado38a21322016-09-02 04:10:34 -07001271 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001272 testonly = true
1273 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001274 "acm2/acm_send_test.cc",
1275 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001276 ]
1277
kjellanderfb114242016-06-13 00:19:48 -07001278 defines = audio_coding_defines
1279
1280 deps = audio_coding_deps + [
1281 ":audio_coding",
kwiberg087bd342017-02-10 08:15:44 -08001282 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001283 ":audio_encoder_interface",
kjellanderfb114242016-06-13 00:19:48 -07001284 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001285 "../../base:rtc_base_approved",
1286 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001287 "//testing/gtest",
1288 ]
1289 }
1290
ehmaldonado38a21322016-09-02 04:10:34 -07001291 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001292 testonly = true
1293 sources = [
1294 "test/Channel.cc",
1295 "test/PCMFile.cc",
1296 "test/delay_test.cc",
1297 "test/utility.cc",
1298 ]
1299
aleloi333f2062016-07-28 01:21:29 -07001300 deps = [
1301 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001302 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001303 ":audio_format_conversion",
aleloi333f2062016-07-28 01:21:29 -07001304 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001305 "../../base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001306 "../../system_wrappers",
1307 "../../system_wrappers:system_wrappers_default",
1308 "../../test:test_support",
1309 "../rtp_rtcp",
1310 "//testing/gtest",
1311 "//third_party/gflags:gflags",
1312 ]
1313 } # delay_test
1314
ehmaldonado38a21322016-09-02 04:10:34 -07001315 rtc_executable("insert_packet_with_timing") {
aleloi00730c72016-07-28 01:27:10 -07001316 testonly = true
1317 sources = [
1318 "test/Channel.cc",
1319 "test/PCMFile.cc",
1320 "test/insert_packet_with_timing.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" ]
aleloi00730c72016-07-28 01:27:10 -07001326 }
1327
1328 deps = [
1329 ":audio_coding",
kwibergda2bf4e2016-10-24 13:47:09 -07001330 ":audio_format_conversion",
aleloi00730c72016-07-28 01:27:10 -07001331 "../../:webrtc_common",
kjellander676e08f2016-12-07 08:23:27 -08001332 "../../base:rtc_base_approved",
aleloi00730c72016-07-28 01:27:10 -07001333 "../../system_wrappers",
1334 "../../system_wrappers:system_wrappers_default",
1335 "../../test:test_support",
1336 "../rtp_rtcp",
1337 "//testing/gtest",
1338 "//third_party/gflags:gflags",
1339 ]
1340 } # insert_packet_with_timing
1341
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001342 audio_decoder_unittests_resources =
1343 [ "//resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001344
1345 if (is_ios) {
1346 bundle_data("audio_decoder_unittests_bundle_data") {
1347 testonly = true
1348 sources = audio_decoder_unittests_resources
1349 outputs = [
1350 "{{bundle_resources_dir}}/{{source_file_part}}",
1351 ]
1352 }
1353 }
1354
ehmaldonado38a21322016-09-02 04:10:34 -07001355 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001356 testonly = true
1357 sources = [
1358 "neteq/audio_decoder_unittest.cc",
1359 ]
1360
kjellandere40a7ee2016-10-16 23:56:12 -07001361 if (!build_with_chromium && is_clang) {
1362 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001363 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001364 }
1365
1366 deps = []
1367
1368 defines = neteq_defines
1369
1370 deps += audio_coding_deps
1371 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001372 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001373 ":isac",
1374 ":isac_fix",
1375 ":neteq",
1376 ":neteq_unittest_tools",
kwiberg087bd342017-02-10 08:15:44 -08001377 "../../api/audio_codecs:audio_codecs_api",
mbonadei7c2c8432017-04-07 00:59:12 -07001378 "../../base:protobuf_utils",
kjellander6ceab082016-10-28 05:44:03 -07001379 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08001380 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001381 "//testing/gtest",
1382 ]
1383
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001384 data = audio_decoder_unittests_resources
1385
charujainddf3e4a2016-08-01 07:49:42 -07001386 if (is_android) {
1387 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001388 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001389 }
kjellander32c4a202016-08-30 02:53:49 -07001390 if (is_ios) {
1391 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001392 }
1393 } # audio_decoder_unittests
1394
kjellanderfb114242016-06-13 00:19:48 -07001395 if (rtc_enable_protobuf) {
1396 proto_library("neteq_unittest_proto") {
1397 sources = [
1398 "neteq/neteq_unittest.proto",
1399 ]
kjellandere3e902e2017-02-28 08:01:46 -08001400 proto_out_dir = "webrtc/modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001401 }
henrik.lundin03153f12016-06-21 05:38:42 -07001402
kjellanderb62dbbe2016-09-23 00:38:52 -07001403 rtc_static_library("rtc_event_log_source") {
henrik.lundin03153f12016-06-21 05:38:42 -07001404 testonly = true
kjellander676e08f2016-12-07 08:23:27 -08001405
1406 # TODO(kjellander): Remove (bugs.webrtc.org/6828)
1407 # Needs call.h to be moved to webrtc/api first.
1408 check_includes = false
1409
henrik.lundin03153f12016-06-21 05:38:42 -07001410 sources = [
1411 "neteq/tools/rtc_event_log_source.cc",
1412 "neteq/tools/rtc_event_log_source.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" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001418 }
1419
1420 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001421 "../../base:rtc_base_approved",
skvladcc91d282016-10-03 18:31:22 -07001422 "../../logging:rtc_event_log_parser",
henrik.lundin03153f12016-06-21 05:38:42 -07001423 ]
1424 public_deps = [
skvladcc91d282016-10-03 18:31:22 -07001425 "../../logging:rtc_event_log_proto",
henrik.lundin03153f12016-06-21 05:38:42 -07001426 ]
1427 }
1428
ehmaldonado38a21322016-09-02 04:10:34 -07001429 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001430 testonly = true
1431 defines = []
1432 deps = []
1433 sources = [
1434 "neteq/tools/neteq_rtpplay.cc",
1435 ]
1436
kjellandere40a7ee2016-10-16 23:56:12 -07001437 if (!build_with_chromium && is_clang) {
1438 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001439 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001440 }
1441
1442 if (is_win) {
1443 cflags = [
1444 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1445 "/wd4373", # virtual function override.
1446 ]
1447 }
1448
1449 deps += [
1450 ":neteq",
1451 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001452 "../..:webrtc_common",
1453 "../../base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001454 "../../system_wrappers:system_wrappers_default",
1455 "../../test:test_support",
1456 "//third_party/gflags",
1457 ]
1458 }
kjellanderfb114242016-06-13 00:19:48 -07001459 }
1460
ehmaldonado38a21322016-09-02 04:10:34 -07001461 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001462 testonly = true
1463 defines = []
1464 deps = []
1465 sources = [
1466 "codecs/isac/fix/test/isac_speed_test.cc",
1467 "codecs/opus/opus_speed_test.cc",
1468 "codecs/tools/audio_codec_speed_test.cc",
1469 "codecs/tools/audio_codec_speed_test.h",
1470 ]
1471
kjellandere40a7ee2016-10-16 23:56:12 -07001472 if (!build_with_chromium && is_clang) {
1473 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001474 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001475 }
1476
1477 if (is_android) {
1478 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001479 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001480 }
1481
1482 deps += [
1483 ":isac_fix",
1484 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001485 "../..:webrtc_common",
1486 "../../base:rtc_base_approved",
aleloie6b60a42016-07-28 02:34:30 -07001487 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001488 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001489 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001490 "//testing/gtest",
1491 ]
1492 }
1493
ehmaldonado38a21322016-09-02 04:10:34 -07001494 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001495 testonly = true
1496 sources = [
1497 "neteq/tools/neteq_external_decoder_test.cc",
1498 "neteq/tools/neteq_external_decoder_test.h",
1499 "neteq/tools/neteq_performance_test.cc",
1500 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001501 ]
1502
kjellandere40a7ee2016-10-16 23:56:12 -07001503 if (!build_with_chromium && is_clang) {
1504 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001505 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001506 }
1507
1508 deps = [
1509 ":neteq",
1510 ":neteq_unittest_tools",
1511 ":pcm16b",
kjellander676e08f2016-12-07 08:23:27 -08001512 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001513 "../../api/audio_codecs:audio_codecs_api",
1514 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001515 "../../base:rtc_base_approved",
1516 "../../system_wrappers",
1517 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001518 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001519 ]
1520 }
1521
ehmaldonado38a21322016-09-02 04:10:34 -07001522 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001523 testonly = true
1524 sources = [
1525 "neteq/tools/neteq_quality_test.cc",
1526 "neteq/tools/neteq_quality_test.h",
1527 ]
1528
kjellandere40a7ee2016-10-16 23:56:12 -07001529 if (!build_with_chromium && is_clang) {
1530 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001531 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001532 }
1533
1534 deps = [
1535 ":neteq",
1536 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001537 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001538 "../../api/audio_codecs:builtin_audio_decoder_factory",
kjellander676e08f2016-12-07 08:23:27 -08001539 "../../base:rtc_base_approved",
1540 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001541 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001542 "//third_party/gflags",
1543 ]
1544 }
1545
kjellanderfb114242016-06-13 00:19:48 -07001546 config("neteq_unittest_tools_config") {
1547 include_dirs = [ "tools" ]
1548 }
1549
ehmaldonado38a21322016-09-02 04:10:34 -07001550 rtc_source_set("neteq_unittest_tools") {
kjellanderfb114242016-06-13 00:19:48 -07001551 testonly = true
1552 sources = [
1553 "neteq/tools/audio_checksum.h",
1554 "neteq/tools/audio_loop.cc",
1555 "neteq/tools/audio_loop.h",
aleloi0e0be0a2016-08-10 04:55:20 -07001556 "neteq/tools/audio_sink.cc",
kjellanderfb114242016-06-13 00:19:48 -07001557 "neteq/tools/audio_sink.h",
1558 "neteq/tools/constant_pcm_packet_source.cc",
1559 "neteq/tools/constant_pcm_packet_source.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001560 "neteq/tools/fake_decode_from_file.cc",
1561 "neteq/tools/fake_decode_from_file.h",
kjellanderfb114242016-06-13 00:19:48 -07001562 "neteq/tools/input_audio_file.cc",
1563 "neteq/tools/input_audio_file.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001564 "neteq/tools/neteq_input.h",
henrik.lundine8a77e32016-06-22 06:34:03 -07001565 "neteq/tools/neteq_replacement_input.cc",
1566 "neteq/tools/neteq_replacement_input.h",
kjellanderfb114242016-06-13 00:19:48 -07001567 "neteq/tools/output_audio_file.h",
1568 "neteq/tools/output_wav_file.h",
1569 "neteq/tools/packet.cc",
1570 "neteq/tools/packet.h",
kwibergb8e56ee2016-08-29 06:37:33 -07001571 "neteq/tools/packet_source.cc",
kjellanderfb114242016-06-13 00:19:48 -07001572 "neteq/tools/packet_source.h",
1573 "neteq/tools/resample_input_audio_file.cc",
1574 "neteq/tools/resample_input_audio_file.h",
1575 "neteq/tools/rtp_file_source.cc",
1576 "neteq/tools/rtp_file_source.h",
1577 "neteq/tools/rtp_generator.cc",
1578 "neteq/tools/rtp_generator.h",
1579 ]
1580
ehmaldonadoe9cc6862016-09-05 06:10:18 -07001581 public_configs = [ ":neteq_unittest_tools_config" ]
kjellanderfb114242016-06-13 00:19:48 -07001582
kjellandere40a7ee2016-10-16 23:56:12 -07001583 if (!build_with_chromium && is_clang) {
1584 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001585 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001586 }
1587
1588 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001589 ":audio_encoder_interface",
1590 ":pcm16b",
1591 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001592 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001593 "../../base:rtc_base_approved",
kjellanderfb114242016-06-13 00:19:48 -07001594 "../../common_audio",
1595 "../../test:rtp_test_utils",
1596 "../rtp_rtcp",
1597 ]
henrik.lundine8a77e32016-06-22 06:34:03 -07001598
kjellander676e08f2016-12-07 08:23:27 -08001599 public_deps = [
1600 ":neteq_test_minimal",
1601 ]
1602
henrik.lundine8a77e32016-06-22 06:34:03 -07001603 if (rtc_enable_protobuf) {
ehmaldonado36268652017-01-19 08:27:11 -08001604 sources += [
1605 "neteq/tools/neteq_packet_source_input.cc",
1606 "neteq/tools/neteq_packet_source_input.h",
1607 ]
henrik.lundine8a77e32016-06-22 06:34:03 -07001608 deps += [ ":rtc_event_log_source" ]
1609 }
kjellanderfb114242016-06-13 00:19:48 -07001610 }
aleloi3022a342016-07-26 06:36:03 -07001611
ehmaldonado38a21322016-09-02 04:10:34 -07001612 rtc_source_set("neteq_test_tools") {
aleloi3022a342016-07-26 06:36:03 -07001613 testonly = true
1614 sources = [
1615 "neteq/test/NETEQTEST_DummyRTPpacket.cc",
1616 "neteq/test/NETEQTEST_DummyRTPpacket.h",
1617 "neteq/test/NETEQTEST_RTPpacket.cc",
1618 "neteq/test/NETEQTEST_RTPpacket.h",
1619 ]
1620
1621 deps = [
1622 ":cng",
1623 ":g711",
1624 ":g722",
1625 ":ilbc",
1626 ":isac",
1627 ":pcm16b",
1628 "../..:webrtc_common",
1629 "//testing/gtest",
1630 ]
1631
1632 include_dirs = [
1633 "neteq/include",
1634 "neteq/test",
1635 "../../",
1636 ]
1637
1638 if (is_win) {
1639 cflags = [
1640 # Disable warnings to enable Win64 build, issue 1323.
1641 "/wd4267", # size_t to int truncation
1642 ]
1643 }
1644 }
aleloi47bded42016-07-26 06:46:19 -07001645
aleloi82667732016-08-02 01:45:50 -07001646 config("RTPencode_config") {
1647 defines = [
1648 "CODEC_ILBC",
1649 "CODEC_PCM16B",
1650 "CODEC_G711",
1651 "CODEC_G722",
1652 "CODEC_ISAC",
1653 "CODEC_PCM16B_WB",
1654 "CODEC_ISAC_SWB",
1655 "CODEC_PCM16B_32KHZ",
1656 "CODEC_PCM16B_48KHZ",
1657 "CODEC_CNGCODEC8",
1658 "CODEC_CNGCODEC16",
1659 "CODEC_CNGCODEC32",
1660 "CODEC_ATEVENT_DECODE",
1661 "CODEC_RED",
1662 "CODEC_OPUS",
1663 ]
1664 }
1665
ehmaldonado38a21322016-09-02 04:10:34 -07001666 rtc_executable("RTPencode") {
aleloi82667732016-08-02 01:45:50 -07001667 testonly = true
1668
1669 deps = [
1670 # TODO(hlundin): Make RTPencode use ACM to encode files.
1671 ":cng",
1672 ":g711",
1673 ":g722",
1674 ":ilbc",
1675 ":isac",
kjellander676e08f2016-12-07 08:23:27 -08001676 ":neteq",
aleloi82667732016-08-02 01:45:50 -07001677 ":neteq_test_tools",
1678 ":pcm16b",
1679 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001680 "../..:webrtc_common",
1681 "../../base:rtc_base_approved",
aleloi82667732016-08-02 01:45:50 -07001682 "../../common_audio",
1683 ]
1684
1685 configs += [ ":RTPencode_config" ]
1686
1687 sources = [
1688 "neteq/test/RTPencode.cc",
1689 ]
1690
1691 include_dirs = [
1692 "neteq/include",
1693 "neteq/test",
1694 ]
1695
1696 if (is_win) {
1697 cflags = [
1698 # Disable warnings to enable Win64 build, issue 1323.
1699 "/wd4267", # size_t to int truncation
1700 ]
1701 }
1702 }
1703
ehmaldonado38a21322016-09-02 04:10:34 -07001704 rtc_executable("RTPchange") {
aleloi76cbe192016-08-02 02:05:03 -07001705 testonly = true
1706
1707 sources = [
1708 "neteq/test/RTPchange.cc",
1709 ]
1710
1711 deps = [
1712 ":neteq_test_tools",
1713 ]
1714 }
1715
ehmaldonado38a21322016-09-02 04:10:34 -07001716 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001717 testonly = true
1718
1719 sources = [
1720 "neteq/tools/rtpcat.cc",
1721 ]
1722
1723 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001724 "../../base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001725 "../../system_wrappers:system_wrappers_default",
1726 "../../test:rtp_test_utils",
1727 "//testing/gtest",
1728 ]
1729 }
1730
ehmaldonado38a21322016-09-02 04:10:34 -07001731 rtc_executable("RTPtimeshift") {
aleloi5a746502016-08-02 06:06:33 -07001732 testonly = true
1733
1734 sources = [
1735 "neteq/test/RTPtimeshift.cc",
1736 ]
1737
1738 deps = [
1739 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001740 "../../test:test_support",
aleloi5a746502016-08-02 06:06:33 -07001741 "//testing/gtest",
1742 ]
1743 }
1744
ehmaldonado38a21322016-09-02 04:10:34 -07001745 rtc_executable("RTPjitter") {
aleloi17dfa742016-08-03 01:17:25 -07001746 testonly = true
1747 deps = [
1748 "../..:webrtc_common",
kthelgason29a44e32016-09-27 03:52:02 -07001749 "../../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001750 "../../test:test_support",
aleloi17dfa742016-08-03 01:17:25 -07001751 "//testing/gtest",
1752 ]
1753 sources = [
1754 "neteq/test/RTPjitter.cc",
1755 ]
1756 }
1757
ehmaldonado38a21322016-09-02 04:10:34 -07001758 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001759 testonly = true
1760
1761 sources = [
1762 "neteq/tools/rtp_analyze.cc",
1763 ]
1764
1765 deps = [
1766 ":neteq",
1767 ":neteq_unittest_tools",
1768 ":pcm16b",
1769 "../../system_wrappers:system_wrappers_default",
1770 "//testing/gtest",
1771 "//third_party/gflags:gflags",
1772 ]
1773
kjellandere40a7ee2016-10-16 23:56:12 -07001774 if (!build_with_chromium && is_clang) {
1775 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001776 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001777 }
1778 }
aleloi630c6d52016-08-10 02:11:30 -07001779
ehmaldonado38a21322016-09-02 04:10:34 -07001780 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001781 testonly = true
1782
1783 sources = [
1784 "neteq/test/neteq_opus_quality_test.cc",
1785 ]
1786
1787 deps = [
1788 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001789 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001790 ":neteq_unittest_tools",
aleloi630c6d52016-08-10 02:11:30 -07001791 ":webrtc_opus",
ehmaldonado26bddb92016-11-30 06:12:01 -08001792 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001793 "//testing/gtest",
1794 "//third_party/gflags",
1795 ]
aleloi630c6d52016-08-10 02:11:30 -07001796 }
aleloi116fd612016-08-10 04:16:36 -07001797
ehmaldonado38a21322016-09-02 04:10:34 -07001798 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001799 testonly = true
1800
1801 sources = [
1802 "neteq/test/neteq_speed_test.cc",
1803 ]
1804
1805 deps = [
1806 ":neteq",
1807 ":neteq_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001808 "../..:webrtc_common",
aleloi116fd612016-08-10 04:16:36 -07001809 "../../system_wrappers:system_wrappers_default",
1810 "../../test:test_support",
1811 "//third_party/gflags",
1812 ]
1813 }
aleloi63910122016-08-10 04:41:14 -07001814
ehmaldonado38a21322016-09-02 04:10:34 -07001815 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001816 testonly = true
1817
1818 sources = [
1819 "neteq/test/neteq_ilbc_quality_test.cc",
1820 ]
1821
1822 deps = [
1823 ":ilbc",
1824 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001825 ":neteq_quality_test_support",
aleloi0e0be0a2016-08-10 04:55:20 -07001826 ":neteq_unittest_tools",
kjellander676e08f2016-12-07 08:23:27 -08001827 "../..:webrtc_common",
1828 "../../base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001829 "../../system_wrappers:system_wrappers_default",
ehmaldonado26bddb92016-11-30 06:12:01 -08001830 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001831 "//testing/gtest",
1832 "//third_party/gflags",
1833 ]
1834 }
aleloi6df36dc2016-08-10 05:04:47 -07001835
ehmaldonado38a21322016-09-02 04:10:34 -07001836 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001837 testonly = true
1838
1839 sources = [
1840 "neteq/test/neteq_isac_quality_test.cc",
1841 ]
1842
1843 deps = [
1844 ":isac_fix",
1845 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001846 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001847 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001848 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001849 "//testing/gtest",
1850 "//third_party/gflags",
1851 ]
1852 }
aleloic4ac7002016-08-10 05:06:27 -07001853
ehmaldonado38a21322016-09-02 04:10:34 -07001854 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001855 testonly = true
1856
1857 sources = [
1858 "neteq/test/neteq_pcmu_quality_test.cc",
1859 ]
1860
1861 deps = [
1862 ":g711",
1863 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001864 ":neteq_quality_test_support",
kjellander676e08f2016-12-07 08:23:27 -08001865 "../../base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001866 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001867 "//testing/gtest",
1868 "//third_party/gflags",
1869 ]
1870 }
aleloib7186d02016-08-16 01:47:16 -07001871
ehmaldonado38a21322016-09-02 04:10:34 -07001872 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001873 testonly = true
1874
1875 sources = [
1876 "codecs/isac/fix/test/kenny.cc",
1877 ]
1878
1879 deps = [
1880 ":isac_fix",
1881 "../../test:test_support",
1882 ]
1883
1884 if (is_win) {
1885 cflags = [
1886 # Disable warnings to enable Win64 build, issue 1323.
1887 "/wd4267", # size_t to int truncation
1888 ]
1889 }
1890 }
aleloi16f55a12016-08-23 08:08:23 -07001891
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001892 config("isac_test_warnings_config") {
1893 if (is_win && is_clang) {
1894 cflags = [
1895 # Disable warnings failing when compiling with Clang on Windows.
1896 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1897 "-Wno-format",
1898 ]
1899 }
1900 }
1901
kjellander7439f972016-12-05 22:47:46 -08001902 rtc_source_set("isac_test_util") {
1903 testonly = true
1904 sources = [
1905 "codecs/isac/main/util/utility.c",
1906 ]
1907 }
1908
ehmaldonado38a21322016-09-02 04:10:34 -07001909 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001910 testonly = true
1911
1912 sources = [
1913 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001914 ]
1915
1916 include_dirs = [
1917 "codecs/isac/main/include",
1918 "codecs/isac/main/test",
1919 "codecs/isac/main/util",
1920 ]
1921
1922 deps = [
1923 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001924 ":isac_test_util",
ivoc48052312016-08-25 04:43:45 -07001925 "../../base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001926 ]
1927
ehmaldonadod02fe4b2016-08-26 13:31:24 -07001928 configs += [ ":isac_test_warnings_config" ]
ivoce51b41a2016-08-24 02:25:57 -07001929 }
1930
ehmaldonado38a21322016-09-02 04:10:34 -07001931 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001932 testonly = true
1933
1934 sources = [
1935 "codecs/g711/test/testG711.cc",
1936 ]
1937
aleloi16f55a12016-08-23 08:08:23 -07001938 deps = [
1939 ":g711",
1940 ]
1941 }
aleloi9a117842016-08-23 08:36:10 -07001942
ehmaldonado38a21322016-09-02 04:10:34 -07001943 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07001944 testonly = true
1945
1946 sources = [
1947 "codecs/g722/test/testG722.cc",
1948 ]
1949
aleloi9a117842016-08-23 08:36:10 -07001950 deps = [
1951 ":g722",
1952 "../..:webrtc_common",
1953 ]
1954 }
ivoc2c670db2016-08-24 06:11:18 -07001955
ehmaldonado38a21322016-09-02 04:10:34 -07001956 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07001957 testonly = true
1958
1959 sources = [
1960 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07001961 ]
1962
aleloicfee2152016-08-29 04:09:19 -07001963 deps = [
1964 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001965 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001966 "../../base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07001967 ]
1968
1969 include_dirs = [
1970 "codecs/isac/main/include",
1971 "codecs/isac/main/test",
1972 "codecs/isac/main/util",
1973 ]
1974 }
1975
ehmaldonado38a21322016-09-02 04:10:34 -07001976 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07001977 testonly = true
1978
1979 sources = [
1980 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07001981 ]
1982
aleloicfee2152016-08-29 04:09:19 -07001983 deps = [
1984 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001985 ":isac_test_util",
aleloicfee2152016-08-29 04:09:19 -07001986 ]
1987
1988 include_dirs = [
1989 "codecs/isac/main/include",
1990 "codecs/isac/main/test",
1991 "codecs/isac/main/util",
1992 "../../common_audio/signal_processing/include",
1993 ]
1994 }
1995
ehmaldonado38a21322016-09-02 04:10:34 -07001996 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07001997 testonly = true
1998
1999 sources = [
2000 "codecs/ilbc/test/iLBC_test.c",
2001 ]
2002
aleloicfee2152016-08-29 04:09:19 -07002003 deps = [
2004 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002005 ]
2006 }
2007
ehmaldonado38a21322016-09-02 04:10:34 -07002008 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002009 testonly = true
2010
2011 sources = [
2012 "codecs/opus/opus_fec_test.cc",
2013 ]
2014
2015 deps = [
2016 ":webrtc_opus",
ivoc48052312016-08-25 04:43:45 -07002017 "../../base:rtc_base_approved",
ivoc2c670db2016-08-24 06:11:18 -07002018 "../../common_audio",
ehmaldonado26bddb92016-11-30 06:12:01 -08002019 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002020 "//testing/gtest",
2021 ]
2022
kjellandere40a7ee2016-10-16 23:56:12 -07002023 if (!build_with_chromium && is_clang) {
2024 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002025 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002026 }
2027 }
ehmaldonado36268652017-01-19 08:27:11 -08002028
2029 rtc_source_set("audio_coding_unittests") {
2030 testonly = true
2031
kjellandere0629c02017-04-25 04:04:50 -07002032 # Skip restricting visibility on mobile platforms since the tests on those
2033 # gets additional generated targets which would require many lines here to
2034 # cover (which would be confusing to read and hard to maintain).
2035 if (!is_android && !is_ios) {
2036 visibility = [ "//webrtc/modules:modules_unittests" ]
2037 }
ehmaldonado36268652017-01-19 08:27:11 -08002038 sources = [
2039 "acm2/acm_receiver_unittest.cc",
2040 "acm2/audio_coding_module_unittest.cc",
2041 "acm2/call_statistics_unittest.cc",
2042 "acm2/codec_manager_unittest.cc",
2043 "acm2/rent_a_codec_unittest.cc",
2044 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2045 "audio_network_adaptor/bitrate_controller_unittest.cc",
2046 "audio_network_adaptor/channel_controller_unittest.cc",
2047 "audio_network_adaptor/controller_manager_unittest.cc",
2048 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002049 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002050 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2051 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002052 "audio_network_adaptor/frame_length_controller_unittest.cc",
2053 "audio_network_adaptor/mock/mock_controller.h",
2054 "audio_network_adaptor/mock/mock_controller_manager.h",
elad.alon326263a2017-03-29 03:16:58 -07002055 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002056 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002057 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002058 "codecs/cng/audio_encoder_cng_unittest.cc",
2059 "codecs/cng/cng_unittest.cc",
2060 "codecs/ilbc/ilbc_unittest.cc",
2061 "codecs/isac/fix/source/filterbanks_unittest.cc",
2062 "codecs/isac/fix/source/filters_unittest.cc",
2063 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2064 "codecs/isac/fix/source/transform_unittest.cc",
2065 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2066 "codecs/isac/main/source/isac_unittest.cc",
2067 "codecs/isac/unittest.cc",
2068 "codecs/legacy_encoded_audio_frame_unittest.cc",
2069 "codecs/mock/mock_audio_encoder.cc",
2070 "codecs/opus/audio_encoder_opus_unittest.cc",
2071 "codecs/opus/opus_unittest.cc",
2072 "codecs/red/audio_encoder_copy_red_unittest.cc",
2073 "neteq/audio_multi_vector_unittest.cc",
2074 "neteq/audio_vector_unittest.cc",
2075 "neteq/background_noise_unittest.cc",
2076 "neteq/buffer_level_filter_unittest.cc",
2077 "neteq/comfort_noise_unittest.cc",
2078 "neteq/decision_logic_unittest.cc",
2079 "neteq/decoder_database_unittest.cc",
2080 "neteq/delay_manager_unittest.cc",
2081 "neteq/delay_peak_detector_unittest.cc",
2082 "neteq/dsp_helper_unittest.cc",
2083 "neteq/dtmf_buffer_unittest.cc",
2084 "neteq/dtmf_tone_generator_unittest.cc",
2085 "neteq/expand_unittest.cc",
2086 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002087 "neteq/mock/mock_buffer_level_filter.h",
2088 "neteq/mock/mock_decoder_database.h",
2089 "neteq/mock/mock_delay_manager.h",
2090 "neteq/mock/mock_delay_peak_detector.h",
2091 "neteq/mock/mock_dtmf_buffer.h",
2092 "neteq/mock/mock_dtmf_tone_generator.h",
2093 "neteq/mock/mock_expand.h",
2094 "neteq/mock/mock_external_decoder_pcm16b.h",
2095 "neteq/mock/mock_packet_buffer.h",
2096 "neteq/mock/mock_red_payload_splitter.h",
2097 "neteq/nack_tracker_unittest.cc",
2098 "neteq/neteq_external_decoder_unittest.cc",
2099 "neteq/neteq_impl_unittest.cc",
2100 "neteq/neteq_network_stats_unittest.cc",
2101 "neteq/neteq_stereo_unittest.cc",
2102 "neteq/neteq_unittest.cc",
2103 "neteq/normal_unittest.cc",
2104 "neteq/packet_buffer_unittest.cc",
2105 "neteq/post_decode_vad_unittest.cc",
2106 "neteq/random_vector_unittest.cc",
2107 "neteq/red_payload_splitter_unittest.cc",
2108 "neteq/sync_buffer_unittest.cc",
2109 "neteq/tick_timer_unittest.cc",
2110 "neteq/time_stretch_unittest.cc",
2111 "neteq/timestamp_scaler_unittest.cc",
2112 "neteq/tools/input_audio_file_unittest.cc",
2113 "neteq/tools/packet_unittest.cc",
2114 ]
2115
2116 deps = [
2117 ":acm_receive_test",
2118 ":acm_send_test",
2119 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002120 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002121 ":audio_encoder_interface",
2122 ":audio_format_conversion",
2123 ":audio_network_adaptor",
ossua1a040a2017-04-06 10:03:21 -07002124 ":builtin_audio_encoder_factory",
ehmaldonado36268652017-01-19 08:27:11 -08002125 ":cng",
2126 ":g711",
2127 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002128 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002129 ":isac_c",
2130 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002131 ":legacy_encoded_audio_frame",
ehmaldonado36268652017-01-19 08:27:11 -08002132 ":neteq",
2133 ":neteq_test_support",
2134 ":neteq_unittest_tools",
2135 ":pcm16b",
2136 ":red",
2137 ":rent_a_codec",
2138 ":webrtc_opus",
2139 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08002140 "../../api/audio_codecs:audio_codecs_api",
2141 "../../api/audio_codecs:builtin_audio_decoder_factory",
mbonadei7c2c8432017-04-07 00:59:12 -07002142 "../../base:protobuf_utils",
ehmaldonado36268652017-01-19 08:27:11 -08002143 "../../base:rtc_base",
2144 "../../base:rtc_base_approved",
2145 "../../base:rtc_base_tests_utils",
2146 "../../common_audio",
2147 "../../system_wrappers:system_wrappers",
kwiberg37e99fd2017-04-10 05:15:48 -07002148 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002149 "../../test:field_trial",
2150 "../../test:rtp_test_utils",
2151 "../../test:test_common",
2152 "../../test:test_support",
2153 "//testing/gmock",
2154 "//testing/gtest",
2155 "//third_party/gflags",
2156 ]
2157
2158 defines = audio_coding_defines
2159
2160 if (rtc_enable_protobuf) {
2161 defines += [
2162 "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP",
2163 "WEBRTC_NETEQ_UNITTEST_BITEXACT",
2164 ]
2165 deps += [
2166 ":ana_config_proto",
2167 ":neteq_unittest_proto",
2168 ]
2169 }
2170
2171 if (!build_with_chromium && is_clang) {
2172 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2173 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2174 }
2175 }
kjellanderfb114242016-06-13 00:19:48 -07002176}
kwiberg087bd342017-02-10 08:15:44 -08002177
2178# For backwards compatibility only! Use
2179# webrtc/api/audio_codecs:audio_codecs_api instead.
2180# TODO(kwiberg): Remove this.
2181rtc_source_set("audio_decoder_interface") {
2182 sources = [
2183 "codecs/audio_decoder.h",
2184 ]
2185 deps = [
2186 "../../api/audio_codecs:audio_codecs_api",
2187 ]
2188}
2189
2190# For backwards compatibility only! Use
2191# webrtc/api/audio_codecs:builtin_audio_decoder_factory instead.
2192# TODO(kwiberg): Remove this.
2193rtc_source_set("builtin_audio_decoder_factory") {
2194 sources = [
2195 "codecs/builtin_audio_decoder_factory.h",
2196 ]
2197 deps = [
2198 "../../api/audio_codecs:builtin_audio_decoder_factory",
2199 ]
2200}