blob: fa4954980fb292683c23f90e21fa7eb79243edf0 [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")
Dan Minor9c686132018-01-15 10:20:00 -050012if (!build_with_mozilla) {
13 import("//third_party/protobuf/proto_library.gni")
14}
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000015
Karl Wiberg1a8fffb2017-12-12 10:41:29 +010016visibility = [ ":*" ]
17
kwiberg0edb05b2016-01-19 05:54:28 -080018audio_codec_deps = [
19 ":cng",
20 ":g711",
21 ":pcm16b",
22]
kwiberg0edb05b2016-01-19 05:54:28 -080023if (rtc_include_ilbc) {
kwiberg0edb05b2016-01-19 05:54:28 -080024 audio_codec_deps += [ ":ilbc" ]
25}
26if (rtc_include_opus) {
kwiberg0edb05b2016-01-19 05:54:28 -080027 audio_codec_deps += [ ":webrtc_opus" ]
28}
Karl Wibergeb254b42017-11-01 15:08:12 +010029if (current_cpu == "arm") {
30 audio_codec_deps += [ ":isac_fix" ]
31} else {
32 audio_codec_deps += [ ":isac" ]
kwiberg0edb05b2016-01-19 05:54:28 -080033}
Karl Wibergeb254b42017-11-01 15:08:12 +010034audio_codec_deps += [ ":g722" ]
kwiberg0edb05b2016-01-19 05:54:28 -080035if (!build_with_mozilla && !build_with_chromium) {
kwiberg0edb05b2016-01-19 05:54:28 -080036 audio_codec_deps += [ ":red" ]
37}
kjellanderfb114242016-06-13 00:19:48 -070038audio_coding_deps = audio_codec_deps + [
39 "../..:webrtc_common",
40 "../../common_audio",
41 "../../system_wrappers",
42 ]
kwiberg0edb05b2016-01-19 05:54:28 -080043
kwibergda2bf4e2016-10-24 13:47:09 -070044rtc_static_library("audio_format_conversion") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000045 visibility += webrtc_default_visibility
kwibergda2bf4e2016-10-24 13:47:09 -070046 sources = [
47 "codecs/audio_format_conversion.cc",
48 "codecs/audio_format_conversion.h",
49 ]
50 deps = [
kwiberga6b82982016-10-24 16:31:17 -070051 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -070052 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -080053 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010054 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070055 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010056 "../../rtc_base:sanitizer",
Danil Chapovalovb6021232018-06-19 13:26:36 +020057 "//third_party/abseil-cpp/absl/types:optional",
kwibergda2bf4e2016-10-24 13:47:09 -070058 ]
59}
60
kjellanderb62dbbe2016-09-23 00:38:52 -070061rtc_static_library("rent_a_codec") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000062 visibility += webrtc_default_visibility
kwibergfce4a942015-10-27 11:40:24 -070063 sources = [
kjellander3e6db232015-11-26 04:44:54 -080064 "acm2/acm_codec_database.cc",
65 "acm2/acm_codec_database.h",
66 "acm2/rent_a_codec.cc",
67 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -070068 ]
kjellander676e08f2016-12-07 08:23:27 -080069 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +010070 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010071 "../../rtc_base:checks",
kwiberg529662a2017-09-04 05:43:17 -070072 "../../api:array_view",
Danil Chapovalovb6021232018-06-19 13:26:36 +020073 "//third_party/abseil-cpp/absl/types:optional",
kwiberg087bd342017-02-10 08:15:44 -080074 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -080075 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -070076 "../../rtc_base:protobuf_utils",
77 "../../rtc_base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -080078 "../../system_wrappers",
79 ":audio_coding_module_typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -080080 ":isac_common",
81 ":isac_fix_c",
82 ":neteq_decoder_enum",
kjellander676e08f2016-12-07 08:23:27 -080083 ] + audio_codec_deps
mbonadei7c2c8432017-04-07 00:59:12 -070084
kwiberg0edb05b2016-01-19 05:54:28 -080085 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -070086}
87
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000088config("audio_coding_config") {
89 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -080090 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010091 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000092 ]
93}
94
kwiberg65cb70d2017-03-03 06:16:28 -080095rtc_source_set("audio_coding_module_typedefs") {
96 sources = [
97 "include/audio_coding_module_typedefs.h",
98 ]
99 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100100 "../..:typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -0800101 "../..:webrtc_common",
102 ]
103}
104
kjellanderb62dbbe2016-09-23 00:38:52 -0700105rtc_static_library("audio_coding") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100106 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200107 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000108 sources = [
kjellander3e6db232015-11-26 04:44:54 -0800109 "acm2/acm_receiver.cc",
110 "acm2/acm_receiver.h",
111 "acm2/acm_resampler.cc",
112 "acm2/acm_resampler.h",
113 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800114 "acm2/call_statistics.cc",
115 "acm2/call_statistics.h",
116 "acm2/codec_manager.cc",
117 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800118 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000119 ]
120
121 defines = []
122
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700123 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000124
kjellanderfb114242016-06-13 00:19:48 -0700125 if (rtc_include_opus) {
126 public_deps = [
127 ":webrtc_opus",
128 ]
129 }
130
kjellanderfb114242016-06-13 00:19:48 -0700131 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +0200132 "../../api/audio:audio_frame_api",
133 "..:module_api",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100134 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100135 "../..:typedefs",
Patrik Höglund3e113432017-12-15 14:40:10 +0100136 "../../rtc_base:deprecation",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100137 "../../rtc_base:checks",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100138 "../../system_wrappers:metrics_api",
kwiberg529662a2017-09-04 05:43:17 -0700139 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800140 "../../api/audio_codecs:audio_codecs_api",
kwiberg65cb70d2017-03-03 06:16:28 -0800141 ":audio_coding_module_typedefs",
kwiberg0edb05b2016-01-19 05:54:28 -0800142 ":neteq",
143 ":rent_a_codec",
Jonas Olssonabbe8412018-04-03 13:40:05 +0200144 "../../rtc_base:audio_format_to_string",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700145 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200146 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700147 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800148 ]
kjellanderfb114242016-06-13 00:19:48 -0700149 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000150}
151
kwiberg087bd342017-02-10 08:15:44 -0800152rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000153 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700154 "codecs/legacy_encoded_audio_frame.cc",
155 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000156 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200157 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700158 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800159 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700160 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200161 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000162}
163
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000164config("cng_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200165 include_dirs = [ "codecs/cng/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000166}
167
kjellanderb62dbbe2016-09-23 00:38:52 -0700168rtc_static_library("cng") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100169 visibility += [ "*" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000170 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000171 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100172 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700173 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100174 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000175 ]
176
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700177 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000178
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000179 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100180 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800181 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700182 "../../api:array_view",
ossueb1fde42017-05-02 06:46:30 -0700183 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100184 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100185 "../../common_audio:common_audio_c",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700186 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000187 ]
188}
189
190config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200191 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000192}
193
kjellanderb62dbbe2016-09-23 00:38:52 -0700194rtc_static_library("red") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100195 visibility += [ "*" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000196 sources = [
197 "codecs/red/audio_encoder_copy_red.cc",
198 "codecs/red/audio_encoder_copy_red.h",
199 ]
200
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700201 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000202
203 deps = [
ossueb1fde42017-05-02 06:46:30 -0700204 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100205 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100206 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700207 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000208 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000209}
210
211config("g711_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200212 include_dirs = [ "codecs/g711/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000213}
214
kjellanderb62dbbe2016-09-23 00:38:52 -0700215rtc_static_library("g711") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100216 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200217 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000218 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700219 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100220 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000221 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100222 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000223 ]
224
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700225 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000226
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200227 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800228 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800229 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800230 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100231 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700232 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200233 ]
kjellander7439f972016-12-05 22:47:46 -0800234 public_deps = [
235 ":g711_c",
236 ]
237}
238
239rtc_source_set("g711_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200240 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800241 sources = [
kjellander7439f972016-12-05 22:47:46 -0800242 "codecs/g711/g711_interface.c",
243 "codecs/g711/g711_interface.h",
244 ]
kjellander676e08f2016-12-07 08:23:27 -0800245 deps = [
Artem Titov3ecec172018-06-21 16:34:10 +0200246 ":g711_3p",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100247 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800248 "../..:webrtc_common",
249 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000250}
251
Artem Titov3ecec172018-06-21 16:34:10 +0200252rtc_source_set("g711_3p") {
253 poisonous = [ "audio_codecs" ]
254 sources = [
255 "codecs/g711/g711.c",
256 "codecs/g711/g711.h",
257 ]
258}
259
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000260config("g722_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200261 include_dirs = [ "codecs/g722/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000262}
263
kjellanderb62dbbe2016-09-23 00:38:52 -0700264rtc_static_library("g722") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100265 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200266 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000267 sources = [
kwibergada4c132015-09-17 03:12:35 -0700268 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100269 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000270 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100271 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000272 ]
273
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700274 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000275
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200276 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800277 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800278 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800279 "../../api/audio_codecs:audio_codecs_api",
kwibergb8727ae2017-06-17 17:41:59 -0700280 "../../api/audio_codecs/g722:audio_encoder_g722_config",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100281 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700282 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200283 ]
kjellander7439f972016-12-05 22:47:46 -0800284 public_deps = [
285 ":g722_c",
286 ]
287}
288
289rtc_source_set("g722_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200290 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800291 sources = [
kjellander7439f972016-12-05 22:47:46 -0800292 "codecs/g722/g722_interface.c",
293 "codecs/g722/g722_interface.h",
294 ]
kjellander676e08f2016-12-07 08:23:27 -0800295 deps = [
Artem Titov91280e42018-06-21 16:39:37 +0200296 ":g722_3p",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100297 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800298 "../..:webrtc_common",
299 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000300}
301
Artem Titov91280e42018-06-21 16:39:37 +0200302rtc_source_set("g722_3p") {
303 poisonous = [ "audio_codecs" ]
304 sources = [
305 "codecs/g722/g722_decode.c",
306 "codecs/g722/g722_enc_dec.h",
307 "codecs/g722/g722_encode.c",
308 ]
309}
310
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000311config("ilbc_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200312 include_dirs = [ "codecs/ilbc/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000313}
314
kjellanderb62dbbe2016-09-23 00:38:52 -0700315rtc_static_library("ilbc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000316 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200317 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000318 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700319 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100320 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200321 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100322 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800323 ]
324
325 public_configs = [ ":ilbc_config" ]
326
327 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800328 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800329 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800330 "../../api/audio_codecs:audio_codecs_api",
solenbergdb3c9b02017-06-28 02:05:04 -0700331 "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
kjellander7439f972016-12-05 22:47:46 -0800332 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100333 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700334 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800335 ]
336 public_deps = [
337 ":ilbc_c",
338 ]
339}
340
341rtc_source_set("ilbc_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200342 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800343 sources = [
344 "codecs/ilbc/abs_quant.c",
345 "codecs/ilbc/abs_quant.h",
346 "codecs/ilbc/abs_quant_loop.c",
347 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000348 "codecs/ilbc/augmented_cb_corr.c",
349 "codecs/ilbc/augmented_cb_corr.h",
350 "codecs/ilbc/bw_expand.c",
351 "codecs/ilbc/bw_expand.h",
352 "codecs/ilbc/cb_construct.c",
353 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200354 "codecs/ilbc/cb_mem_energy.c",
355 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000356 "codecs/ilbc/cb_mem_energy_augmentation.c",
357 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000358 "codecs/ilbc/cb_mem_energy_calc.c",
359 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000360 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200361 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000362 "codecs/ilbc/cb_search_core.c",
363 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000364 "codecs/ilbc/cb_update_best_index.c",
365 "codecs/ilbc/cb_update_best_index.h",
366 "codecs/ilbc/chebyshev.c",
367 "codecs/ilbc/chebyshev.h",
368 "codecs/ilbc/comp_corr.c",
369 "codecs/ilbc/comp_corr.h",
370 "codecs/ilbc/constants.c",
371 "codecs/ilbc/constants.h",
372 "codecs/ilbc/create_augmented_vec.c",
373 "codecs/ilbc/create_augmented_vec.h",
374 "codecs/ilbc/decode.c",
375 "codecs/ilbc/decode.h",
376 "codecs/ilbc/decode_residual.c",
377 "codecs/ilbc/decode_residual.h",
378 "codecs/ilbc/decoder_interpolate_lsf.c",
379 "codecs/ilbc/decoder_interpolate_lsf.h",
380 "codecs/ilbc/defines.h",
381 "codecs/ilbc/do_plc.c",
382 "codecs/ilbc/do_plc.h",
383 "codecs/ilbc/encode.c",
384 "codecs/ilbc/encode.h",
385 "codecs/ilbc/energy_inverse.c",
386 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200387 "codecs/ilbc/enh_upsample.c",
388 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000389 "codecs/ilbc/enhancer.c",
390 "codecs/ilbc/enhancer.h",
391 "codecs/ilbc/enhancer_interface.c",
392 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000393 "codecs/ilbc/filtered_cb_vecs.c",
394 "codecs/ilbc/filtered_cb_vecs.h",
395 "codecs/ilbc/frame_classify.c",
396 "codecs/ilbc/frame_classify.h",
397 "codecs/ilbc/gain_dequant.c",
398 "codecs/ilbc/gain_dequant.h",
399 "codecs/ilbc/gain_quant.c",
400 "codecs/ilbc/gain_quant.h",
401 "codecs/ilbc/get_cd_vec.c",
402 "codecs/ilbc/get_cd_vec.h",
403 "codecs/ilbc/get_lsp_poly.c",
404 "codecs/ilbc/get_lsp_poly.h",
405 "codecs/ilbc/get_sync_seq.c",
406 "codecs/ilbc/get_sync_seq.h",
407 "codecs/ilbc/hp_input.c",
408 "codecs/ilbc/hp_input.h",
409 "codecs/ilbc/hp_output.c",
410 "codecs/ilbc/hp_output.h",
411 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100412 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000413 "codecs/ilbc/index_conv_dec.c",
414 "codecs/ilbc/index_conv_dec.h",
415 "codecs/ilbc/index_conv_enc.c",
416 "codecs/ilbc/index_conv_enc.h",
417 "codecs/ilbc/init_decode.c",
418 "codecs/ilbc/init_decode.h",
419 "codecs/ilbc/init_encode.c",
420 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000421 "codecs/ilbc/interpolate.c",
422 "codecs/ilbc/interpolate.h",
423 "codecs/ilbc/interpolate_samples.c",
424 "codecs/ilbc/interpolate_samples.h",
425 "codecs/ilbc/lpc_encode.c",
426 "codecs/ilbc/lpc_encode.h",
427 "codecs/ilbc/lsf_check.c",
428 "codecs/ilbc/lsf_check.h",
429 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
430 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
431 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
432 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
433 "codecs/ilbc/lsf_to_lsp.c",
434 "codecs/ilbc/lsf_to_lsp.h",
435 "codecs/ilbc/lsf_to_poly.c",
436 "codecs/ilbc/lsf_to_poly.h",
437 "codecs/ilbc/lsp_to_lsf.c",
438 "codecs/ilbc/lsp_to_lsf.h",
439 "codecs/ilbc/my_corr.c",
440 "codecs/ilbc/my_corr.h",
441 "codecs/ilbc/nearest_neighbor.c",
442 "codecs/ilbc/nearest_neighbor.h",
443 "codecs/ilbc/pack_bits.c",
444 "codecs/ilbc/pack_bits.h",
445 "codecs/ilbc/poly_to_lsf.c",
446 "codecs/ilbc/poly_to_lsf.h",
447 "codecs/ilbc/poly_to_lsp.c",
448 "codecs/ilbc/poly_to_lsp.h",
449 "codecs/ilbc/refiner.c",
450 "codecs/ilbc/refiner.h",
451 "codecs/ilbc/simple_interpolate_lsf.c",
452 "codecs/ilbc/simple_interpolate_lsf.h",
453 "codecs/ilbc/simple_lpc_analysis.c",
454 "codecs/ilbc/simple_lpc_analysis.h",
455 "codecs/ilbc/simple_lsf_dequant.c",
456 "codecs/ilbc/simple_lsf_dequant.h",
457 "codecs/ilbc/simple_lsf_quant.c",
458 "codecs/ilbc/simple_lsf_quant.h",
459 "codecs/ilbc/smooth.c",
460 "codecs/ilbc/smooth.h",
461 "codecs/ilbc/smooth_out_data.c",
462 "codecs/ilbc/smooth_out_data.h",
463 "codecs/ilbc/sort_sq.c",
464 "codecs/ilbc/sort_sq.h",
465 "codecs/ilbc/split_vq.c",
466 "codecs/ilbc/split_vq.h",
467 "codecs/ilbc/state_construct.c",
468 "codecs/ilbc/state_construct.h",
469 "codecs/ilbc/state_search.c",
470 "codecs/ilbc/state_search.h",
471 "codecs/ilbc/swap_bytes.c",
472 "codecs/ilbc/swap_bytes.h",
473 "codecs/ilbc/unpack_bits.c",
474 "codecs/ilbc/unpack_bits.h",
475 "codecs/ilbc/vq3.c",
476 "codecs/ilbc/vq3.h",
477 "codecs/ilbc/vq4.c",
478 "codecs/ilbc/vq4.h",
479 "codecs/ilbc/window32_w32.c",
480 "codecs/ilbc/window32_w32.h",
481 "codecs/ilbc/xcorr_coef.c",
482 "codecs/ilbc/xcorr_coef.h",
483 ]
484
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700485 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000486
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000487 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100488 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800489 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800490 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100491 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100492 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100493 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700494 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100495 "../../rtc_base:sanitizer",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000496 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000497}
498
kjellanderb62dbbe2016-09-23 00:38:52 -0700499rtc_static_library("isac_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200500 poisonous = [ "audio_codecs" ]
kwiberg608c3cf2015-08-24 02:03:23 -0700501 sources = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100502 "codecs/isac/audio_decoder_isac_t.h",
503 "codecs/isac/audio_decoder_isac_t_impl.h",
kwiberg608c3cf2015-08-24 02:03:23 -0700504 "codecs/isac/audio_encoder_isac_t.h",
505 "codecs/isac/audio_encoder_isac_t_impl.h",
506 "codecs/isac/locked_bandwidth_info.cc",
507 "codecs/isac/locked_bandwidth_info.h",
508 ]
kjellander676e08f2016-12-07 08:23:27 -0800509 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200510 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100511 "../..:typedefs",
kwiberga6ca5182017-01-30 05:28:54 -0800512 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700513 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100514 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700515 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200516 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -0800517 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700518}
519
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000520config("isac_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200521 include_dirs = [ "codecs/isac/main/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000522}
523
kjellanderb62dbbe2016-09-23 00:38:52 -0700524rtc_static_library("isac") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100525 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200526 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000527 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800528 "codecs/isac/main/include/audio_decoder_isac.h",
529 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800530 "codecs/isac/main/source/audio_decoder_isac.cc",
531 "codecs/isac/main/source/audio_encoder_isac.cc",
532 ]
533
534 deps = [
kjellander7439f972016-12-05 22:47:46 -0800535 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800536 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800537 ]
538 public_deps = [
539 ":isac_c",
540 ]
541}
542
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200543rtc_source_set("isac_bwinfo") {
544 sources = [
545 "codecs/isac/bandwidth_info.h",
546 ]
547 deps = [
548 "../..:typedefs",
549 ]
550}
551
552rtc_source_set("isac_vad") {
553 visibility += webrtc_default_visibility
554 sources = [
555 "codecs/isac/main/source/filter_functions.c",
556 "codecs/isac/main/source/filter_functions.h",
557 "codecs/isac/main/source/isac_vad.c",
558 "codecs/isac/main/source/isac_vad.h",
559 "codecs/isac/main/source/os_specific_inline.h",
560 "codecs/isac/main/source/pitch_estimator.c",
561 "codecs/isac/main/source/pitch_estimator.h",
562 "codecs/isac/main/source/pitch_filter.c",
563 "codecs/isac/main/source/pitch_filter.h",
564 "codecs/isac/main/source/settings.h",
565 "codecs/isac/main/source/structs.h",
566 ]
567 deps = [
568 ":isac_bwinfo",
569 "../..:typedefs",
570 "../../rtc_base:compile_assert_c",
571 "../../rtc_base/system:ignore_warnings",
572 ]
573}
574
kjellander7439f972016-12-05 22:47:46 -0800575rtc_static_library("isac_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200576 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800577 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100578 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000579 "codecs/isac/main/source/arith_routines.c",
580 "codecs/isac/main/source/arith_routines.h",
581 "codecs/isac/main/source/arith_routines_hist.c",
582 "codecs/isac/main/source/arith_routines_logist.c",
583 "codecs/isac/main/source/bandwidth_estimator.c",
584 "codecs/isac/main/source/bandwidth_estimator.h",
585 "codecs/isac/main/source/codec.h",
586 "codecs/isac/main/source/crc.c",
587 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000588 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200589 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000590 "codecs/isac/main/source/encode.c",
591 "codecs/isac/main/source/encode_lpc_swb.c",
592 "codecs/isac/main/source/encode_lpc_swb.h",
593 "codecs/isac/main/source/entropy_coding.c",
594 "codecs/isac/main/source/entropy_coding.h",
595 "codecs/isac/main/source/fft.c",
596 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200597 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000598 "codecs/isac/main/source/intialize.c",
599 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200600 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000601 "codecs/isac/main/source/lattice.c",
602 "codecs/isac/main/source/lpc_analysis.c",
603 "codecs/isac/main/source/lpc_analysis.h",
604 "codecs/isac/main/source/lpc_gain_swb_tables.c",
605 "codecs/isac/main/source/lpc_gain_swb_tables.h",
606 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
607 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
608 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
609 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
610 "codecs/isac/main/source/lpc_tables.c",
611 "codecs/isac/main/source/lpc_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000612 "codecs/isac/main/source/pitch_gain_tables.c",
613 "codecs/isac/main/source/pitch_gain_tables.h",
614 "codecs/isac/main/source/pitch_lag_tables.c",
615 "codecs/isac/main/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000616 "codecs/isac/main/source/spectrum_ar_model_tables.c",
617 "codecs/isac/main/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000618 "codecs/isac/main/source/transform.c",
619 ]
620
621 if (is_linux) {
622 libs = [ "m" ]
623 }
624
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700625 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000626
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000627 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200628 ":isac_bwinfo",
629 ":isac_vad",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100630 "../..:typedefs",
aleloicfee2152016-08-29 04:09:19 -0700631 "../..:webrtc_common",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000632 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100633 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100634 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700635 "../../rtc_base:compile_assert_c",
636 "../../rtc_base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000637 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000638}
639
640config("isac_fix_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200641 include_dirs = [ "codecs/isac/fix/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000642}
643
kjellanderb62dbbe2016-09-23 00:38:52 -0700644rtc_static_library("isac_fix") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100645 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200646 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000647 sources = [
kjellander7439f972016-12-05 22:47:46 -0800648 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
649 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
650 ]
651
652 public_configs = [ ":isac_fix_config" ]
653
654 deps = [
kjellander7439f972016-12-05 22:47:46 -0800655 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800656 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800657 "../../common_audio",
658 "../../system_wrappers",
659 ]
660 public_deps = [
661 ":isac_fix_c",
662 ]
663
664 if (rtc_build_with_neon) {
665 deps += [ ":isac_neon" ]
666 }
667}
668
kwiberga6ca5182017-01-30 05:28:54 -0800669rtc_source_set("isac_fix_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200670 poisonous = [ "audio_codecs" ]
kwiberga6ca5182017-01-30 05:28:54 -0800671 sources = [
672 "codecs/isac/fix/source/codec.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100673 "codecs/isac/fix/source/entropy_coding.h",
kwiberga6ca5182017-01-30 05:28:54 -0800674 "codecs/isac/fix/source/fft.c",
675 "codecs/isac/fix/source/fft.h",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100676 "codecs/isac/fix/source/filterbank_internal.h",
kwiberga6ca5182017-01-30 05:28:54 -0800677 "codecs/isac/fix/source/settings.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100678 "codecs/isac/fix/source/structs.h",
Mirko Bonadei6e396b02018-04-20 13:54:53 -0700679 "codecs/isac/fix/source/transform_tables.c",
kwiberga6ca5182017-01-30 05:28:54 -0800680 ]
681 public_configs = [ ":isac_fix_config" ]
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100682 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200683 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100684 "../..:typedefs",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100685 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100686 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100687 ]
kwiberga6ca5182017-01-30 05:28:54 -0800688}
kjellander676e08f2016-12-07 08:23:27 -0800689
mbonadei5c0d7032017-07-06 03:48:55 -0700690rtc_source_set("isac_fix_c_arm_asm") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200691 poisonous = [ "audio_codecs" ]
mbonadei5c0d7032017-07-06 03:48:55 -0700692 sources = []
693 if (current_cpu == "arm" && arm_version >= 7) {
694 sources += [
695 "codecs/isac/fix/source/lattice_armv7.S",
696 "codecs/isac/fix/source/pitch_filter_armv6.S",
697 ]
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100698 deps = [
Mirko Bonadei6ce03592018-02-22 15:10:27 +0100699 ":isac_fix_common",
Karl Wiberg7aabd392018-03-22 02:59:49 +0100700 "../../rtc_base/system:asm_defines",
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100701 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700702 }
703}
704
kwiberga6ca5182017-01-30 05:28:54 -0800705rtc_source_set("isac_fix_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200706 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800707 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100708 "codecs/isac/fix/include/audio_decoder_isacfix.h",
709 "codecs/isac/fix/include/audio_encoder_isacfix.h",
710 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000711 "codecs/isac/fix/source/arith_routines.c",
712 "codecs/isac/fix/source/arith_routines_hist.c",
713 "codecs/isac/fix/source/arith_routines_logist.c",
714 "codecs/isac/fix/source/arith_routins.h",
715 "codecs/isac/fix/source/bandwidth_estimator.c",
716 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000717 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200718 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000719 "codecs/isac/fix/source/decode_plc.c",
720 "codecs/isac/fix/source/encode.c",
721 "codecs/isac/fix/source/entropy_coding.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000722 "codecs/isac/fix/source/filterbank_tables.c",
723 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200724 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000725 "codecs/isac/fix/source/filters.c",
726 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200727 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000728 "codecs/isac/fix/source/isacfix.c",
729 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700730 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000731 "codecs/isac/fix/source/lpc_masking_model.c",
732 "codecs/isac/fix/source/lpc_masking_model.h",
733 "codecs/isac/fix/source/lpc_tables.c",
734 "codecs/isac/fix/source/lpc_tables.h",
735 "codecs/isac/fix/source/pitch_estimator.c",
736 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700737 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000738 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700739 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000740 "codecs/isac/fix/source/pitch_gain_tables.c",
741 "codecs/isac/fix/source/pitch_gain_tables.h",
742 "codecs/isac/fix/source/pitch_lag_tables.c",
743 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000744 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
745 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000746 "codecs/isac/fix/source/transform.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000747 ]
748
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700749 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000750
kjellander676e08f2016-12-07 08:23:27 -0800751 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200752 ":isac_bwinfo",
kjellander676e08f2016-12-07 08:23:27 -0800753 ":isac_common",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100754 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800755 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800756 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800757 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100758 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100759 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700760 "../../rtc_base:compile_assert_c",
761 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100762 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100763 "../../system_wrappers:cpu_features_api",
kjellander676e08f2016-12-07 08:23:27 -0800764 ]
765
kwiberga6ca5182017-01-30 05:28:54 -0800766 public_deps = [
767 ":isac_fix_common",
768 ]
769
mbonadeie5dc3ce2017-01-25 05:34:46 -0800770 if (rtc_build_with_neon) {
771 deps += [ ":isac_neon" ]
772 }
773
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700774 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700775 sources -= [
776 "codecs/isac/fix/source/lattice_c.c",
777 "codecs/isac/fix/source/pitch_filter_c.c",
778 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700779 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000780 }
781
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000782 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000783 sources += [
784 "codecs/isac/fix/source/entropy_coding_mips.c",
785 "codecs/isac/fix/source/filters_mips.c",
786 "codecs/isac/fix/source/lattice_mips.c",
787 "codecs/isac/fix/source/pitch_estimator_mips.c",
788 "codecs/isac/fix/source/transform_mips.c",
789 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700790 sources -= [
791 "codecs/isac/fix/source/lattice_c.c",
792 "codecs/isac/fix/source/pitch_estimator_c.c",
793 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000794 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200795 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000796 }
797 if (mips_dsp_rev > 1) {
798 sources += [
799 "codecs/isac/fix/source/lpc_masking_model_mips.c",
800 "codecs/isac/fix/source/pitch_filter_mips.c",
801 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200802 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000803 }
804 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000805}
806
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700807if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700808 rtc_static_library("isac_neon") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200809 poisonous = [ "audio_codecs" ]
Zhongwei Yaof242e662015-05-06 16:39:17 +0800810 sources = [
811 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800812 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800813 "codecs/isac/fix/source/filters_neon.c",
814 "codecs/isac/fix/source/lattice_neon.c",
815 "codecs/isac/fix/source/transform_neon.c",
816 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000817
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700818 if (current_cpu != "arm64") {
819 # Enable compilation for the NEON instruction set. This is needed
820 # since //build/config/arm.gni only enables NEON for iOS, not Android.
821 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700822 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700823 cflags = [ "-mfpu=neon" ]
824 }
825
826 # Disable LTO on NEON targets due to compiler bug.
827 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000828 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000829 cflags -= [
830 "-flto",
831 "-ffat-lto-objects",
832 ]
833 }
834
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200835 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800836 ":isac_fix_common",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200837 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100838 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100839 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700840 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200841 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000842 }
843}
844
845config("pcm16b_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200846 include_dirs = [ "codecs/pcm16b/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000847}
848
kjellanderb62dbbe2016-09-23 00:38:52 -0700849rtc_static_library("pcm16b") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100850 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200851 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000852 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200853 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100854 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200855 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100856 "codecs/pcm16b/audio_encoder_pcm16b.h",
kwiberg7ea6e592017-08-16 06:12:57 -0700857 "codecs/pcm16b/pcm16b_common.cc",
858 "codecs/pcm16b/pcm16b_common.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000859 ]
860
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000861 deps = [
862 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800863 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800864 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800865 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100866 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700867 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000868 ]
kjellander7439f972016-12-05 22:47:46 -0800869 public_deps = [
870 ":pcm16b_c",
871 ]
872 public_configs = [ ":pcm16b_config" ]
873}
874
875rtc_source_set("pcm16b_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200876 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800877 sources = [
878 "codecs/pcm16b/pcm16b.c",
879 "codecs/pcm16b/pcm16b.h",
880 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000881
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700882 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800883 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100884 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800885 "../..:webrtc_common",
886 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000887}
888
kjellanderb62dbbe2016-09-23 00:38:52 -0700889rtc_static_library("webrtc_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000890 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200891 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000892 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200893 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100894 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000895 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100896 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000897 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000898
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200899 deps = [
minyue41b9c802016-10-06 07:13:54 -0700900 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800901 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800902 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700903 "../../api/audio_codecs/opus:audio_encoder_opus_config",
michaelt566d8202017-01-12 10:17:38 -0800904 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100905 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700906 "../../rtc_base:rtc_base_approved",
907 "../../rtc_base:rtc_numerics",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100908 "../../rtc_base:safe_minmax",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100909 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200910 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200911 ]
kjellander7439f972016-12-05 22:47:46 -0800912 public_deps = [
913 ":webrtc_opus_c",
kwiberge5eb7242017-08-25 03:10:50 -0700914 "../../rtc_base:protobuf_utils",
kjellander7439f972016-12-05 22:47:46 -0800915 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000916
michaelta55f0212017-02-02 07:47:19 -0800917 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800918
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000919 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800920 public_deps += [ rtc_opus_dir ]
921 } else if (build_with_mozilla) {
Dan Minor9c686132018-01-15 10:20:00 -0500922 include_dirs = [ "/media/libopus/include" ]
kjellander7439f972016-12-05 22:47:46 -0800923 }
924}
925
926rtc_source_set("webrtc_opus_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200927 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800928 sources = [
929 "codecs/opus/opus_inst.h",
930 "codecs/opus/opus_interface.c",
931 "codecs/opus/opus_interface.h",
932 ]
933
minyue2e03c662017-02-01 17:31:11 -0800934 defines = audio_coding_defines
935
kjellander7439f972016-12-05 22:47:46 -0800936 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700937 public_deps = [
938 rtc_opus_dir,
939 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000940 } else if (build_with_mozilla) {
941 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000942 }
kjellander7439f972016-12-05 22:47:46 -0800943
944 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100945 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800946 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100947 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700948 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800949 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000950}
951
minyue25f6a392016-09-22 22:23:20 -0700952if (rtc_enable_protobuf) {
953 proto_library("ana_debug_dump_proto") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000954 visibility += webrtc_default_visibility
minyue25f6a392016-09-22 22:23:20 -0700955 sources = [
956 "audio_network_adaptor/debug_dump.proto",
957 ]
jbudorick58f17252017-07-26 14:49:20 -0700958 deps = [
959 ":ana_config_proto",
960 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200961 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700962 }
minyuea1d9ad02016-10-02 14:53:37 -0700963 proto_library("ana_config_proto") {
964 sources = [
965 "audio_network_adaptor/config.proto",
966 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200967 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyuea1d9ad02016-10-02 14:53:37 -0700968 }
minyue25f6a392016-09-22 22:23:20 -0700969}
970
eladalon1e7dd312017-09-12 04:38:25 -0700971rtc_static_library("audio_network_adaptor_config") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000972 visibility += webrtc_default_visibility
eladalon1e7dd312017-09-12 04:38:25 -0700973 sources = [
974 "audio_network_adaptor/audio_network_adaptor_config.cc",
975 "audio_network_adaptor/include/audio_network_adaptor_config.h",
976 ]
977 deps = [
Danil Chapovalovb6021232018-06-19 13:26:36 +0200978 "//third_party/abseil-cpp/absl/types:optional",
eladalon1e7dd312017-09-12 04:38:25 -0700979 ]
980}
981
minyue0d382ef2016-10-07 07:59:28 -0700982rtc_static_library("audio_network_adaptor") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000983 visibility += webrtc_default_visibility
minyue7610f852016-09-07 13:51:51 -0700984 sources = [
minyuecaa9cb22016-09-13 13:34:15 -0700985 "audio_network_adaptor/audio_network_adaptor_impl.cc",
986 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700987 "audio_network_adaptor/bitrate_controller.cc",
988 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700989 "audio_network_adaptor/channel_controller.cc",
990 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700991 "audio_network_adaptor/controller.cc",
992 "audio_network_adaptor/controller.h",
993 "audio_network_adaptor/controller_manager.cc",
994 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700995 "audio_network_adaptor/debug_dump_writer.cc",
996 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700997 "audio_network_adaptor/dtx_controller.cc",
998 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800999 "audio_network_adaptor/event_log_writer.cc",
1000 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -07001001 "audio_network_adaptor/fec_controller_plr_based.cc",
1002 "audio_network_adaptor/fec_controller_plr_based.h",
1003 "audio_network_adaptor/fec_controller_rplr_based.cc",
1004 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -07001005 "audio_network_adaptor/frame_length_controller.cc",
1006 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -07001007 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -07001008 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -07001009 ]
minyue25f6a392016-09-22 22:23:20 -07001010
eladalon1e7dd312017-09-12 04:38:25 -07001011 public_deps = [
1012 ":audio_network_adaptor_config",
1013 ]
1014
minyue41b9c802016-10-06 07:13:54 -07001015 deps = [
1016 "../..:webrtc_common",
ivoce1198e02017-09-08 08:13:19 -07001017 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001018 "../../common_audio",
Qingsi Wang970b0882018-02-01 11:04:46 -08001019 "../../logging:rtc_event_audio",
minyue4b7c9522017-01-24 04:54:59 -08001020 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001021 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001022 "../../rtc_base:protobuf_utils",
1023 "../../rtc_base:rtc_base_approved",
Karl Wiberg6a4d4112018-03-23 10:39:34 +01001024 "../../rtc_base/system:file_wrapper",
minyue41b9c802016-10-06 07:13:54 -07001025 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001026 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001027 "//third_party/abseil-cpp/absl/types:optional",
minyue41b9c802016-10-06 07:13:54 -07001028 ]
1029
minyue25f6a392016-09-22 22:23:20 -07001030 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -07001031 deps += [
minyuea1d9ad02016-10-02 14:53:37 -07001032 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -07001033 ":ana_debug_dump_proto",
1034 ]
minyue25f6a392016-09-22 22:23:20 -07001035 }
minyue4b7c9522017-01-24 04:54:59 -08001036
1037 if (!build_with_chromium && is_clang) {
1038 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1039 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1040 }
minyue7610f852016-09-07 13:51:51 -07001041}
1042
kwiberg65cb70d2017-03-03 06:16:28 -08001043rtc_source_set("neteq_decoder_enum") {
1044 sources = [
1045 "neteq/neteq_decoder_enum.cc",
1046 "neteq/neteq_decoder_enum.h",
1047 ]
1048 deps = [
1049 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001050 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001051 "//third_party/abseil-cpp/absl/types:optional",
kwiberg65cb70d2017-03-03 06:16:28 -08001052 ]
1053}
kjellander676e08f2016-12-07 08:23:27 -08001054
kwiberg65cb70d2017-03-03 06:16:28 -08001055rtc_static_library("neteq") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001056 visibility += webrtc_default_visibility
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001057 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001058 "neteq/accelerate.cc",
1059 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001060 "neteq/audio_multi_vector.cc",
1061 "neteq/audio_multi_vector.h",
1062 "neteq/audio_vector.cc",
1063 "neteq/audio_vector.h",
1064 "neteq/background_noise.cc",
1065 "neteq/background_noise.h",
1066 "neteq/buffer_level_filter.cc",
1067 "neteq/buffer_level_filter.h",
1068 "neteq/comfort_noise.cc",
1069 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -07001070 "neteq/cross_correlation.cc",
1071 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001072 "neteq/decision_logic.cc",
1073 "neteq/decision_logic.h",
Henrik Lundin1ff41eb2018-06-21 12:36:28 +00001074 "neteq/decision_logic_fax.cc",
1075 "neteq/decision_logic_fax.h",
1076 "neteq/decision_logic_normal.cc",
1077 "neteq/decision_logic_normal.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001078 "neteq/decoder_database.cc",
1079 "neteq/decoder_database.h",
1080 "neteq/defines.h",
1081 "neteq/delay_manager.cc",
1082 "neteq/delay_manager.h",
1083 "neteq/delay_peak_detector.cc",
1084 "neteq/delay_peak_detector.h",
1085 "neteq/dsp_helper.cc",
1086 "neteq/dsp_helper.h",
1087 "neteq/dtmf_buffer.cc",
1088 "neteq/dtmf_buffer.h",
1089 "neteq/dtmf_tone_generator.cc",
1090 "neteq/dtmf_tone_generator.h",
1091 "neteq/expand.cc",
1092 "neteq/expand.h",
Henrik Lundin3ef3bfc2018-04-10 15:10:26 +02001093 "neteq/expand_uma_logger.cc",
1094 "neteq/expand_uma_logger.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001095 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001096 "neteq/merge.cc",
1097 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001098 "neteq/nack_tracker.cc",
1099 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001100 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001101 "neteq/neteq_impl.cc",
1102 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001103 "neteq/normal.cc",
1104 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001105 "neteq/packet.cc",
1106 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001107 "neteq/packet_buffer.cc",
1108 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001109 "neteq/post_decode_vad.cc",
1110 "neteq/post_decode_vad.h",
1111 "neteq/preemptive_expand.cc",
1112 "neteq/preemptive_expand.h",
1113 "neteq/random_vector.cc",
1114 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001115 "neteq/red_payload_splitter.cc",
1116 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001117 "neteq/rtcp.cc",
1118 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001119 "neteq/statistics_calculator.cc",
1120 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001121 "neteq/sync_buffer.cc",
1122 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001123 "neteq/tick_timer.cc",
1124 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001125 "neteq/time_stretch.cc",
1126 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001127 "neteq/timestamp_scaler.cc",
1128 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001129 ]
1130
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001131 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001132 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001133 ":cng",
kwiberg65cb70d2017-03-03 06:16:28 -08001134 ":neteq_decoder_enum",
mbonadei1140f972017-04-26 03:38:35 -07001135 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001136 "../..:typedefs",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001137 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001138 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001139 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001140 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001141 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01001142 "../../common_audio:common_audio_c",
Jonas Olssonabbe8412018-04-03 13:40:05 +02001143 "../../rtc_base:audio_format_to_string",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001144 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001145 "../../rtc_base:gtest_prod",
1146 "../../rtc_base:rtc_base_approved",
Karl Wiberg12edf4c2018-03-07 14:18:56 +01001147 "../../rtc_base:safe_minmax",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001148 "../../rtc_base:sanitizer",
Karl Wiberg80ba3332018-02-05 10:33:35 +01001149 "../../rtc_base/system:fallthrough",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001150 "../../system_wrappers:field_trial_api",
1151 "../../system_wrappers:metrics_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001152 "//third_party/abseil-cpp/absl/types:optional",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001153 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001154}
kjellanderfb114242016-06-13 00:19:48 -07001155
henrik.lundin58466f62016-10-05 02:27:42 -07001156# Although providing only test support, this target must be outside of the
1157# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1158# that ultimately are built and run as a part of the Chromium ecosystem, which
1159# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001160rtc_source_set("neteq_tools_minimal") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001161 visibility += webrtc_default_visibility
henrik.lundin58466f62016-10-05 02:27:42 -07001162 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001163 "neteq/tools/audio_sink.cc",
1164 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001165 "neteq/tools/encode_neteq_input.cc",
1166 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001167 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001168 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001169 "neteq/tools/neteq_test.cc",
1170 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001171 "neteq/tools/packet.cc",
1172 "neteq/tools/packet.h",
1173 "neteq/tools/packet_source.cc",
1174 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001175 ]
1176
kjellandere40a7ee2016-10-16 23:56:12 -07001177 if (!build_with_chromium && is_clang) {
1178 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001179 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1180 }
kjellander676e08f2016-12-07 08:23:27 -08001181
1182 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001183 ":neteq",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001184 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001185 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001186 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001187 "../../api/audio:audio_frame_api",
ossueb1fde42017-05-02 06:46:30 -07001188 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001189 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001190 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001191 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001192 "../rtp_rtcp",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001193 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -08001194 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001195}
1196
mbonadei3edccb92017-06-01 04:47:20 -07001197rtc_source_set("neteq_test_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001198 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001199 testonly = true
1200 sources = [
1201 "neteq/tools/audio_checksum.h",
1202 "neteq/tools/audio_loop.cc",
1203 "neteq/tools/audio_loop.h",
1204 "neteq/tools/constant_pcm_packet_source.cc",
1205 "neteq/tools/constant_pcm_packet_source.h",
1206 "neteq/tools/output_audio_file.h",
1207 "neteq/tools/output_wav_file.h",
1208 "neteq/tools/rtp_file_source.cc",
1209 "neteq/tools/rtp_file_source.h",
1210 "neteq/tools/rtp_generator.cc",
1211 "neteq/tools/rtp_generator.h",
1212 ]
1213
1214 public_configs = [ ":neteq_tools_config" ]
1215
1216 if (!build_with_chromium && is_clang) {
1217 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1218 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1219 }
1220
1221 deps = [
1222 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001223 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001224 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001225 "../../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +01001226 "../../api:libjingle_peerconnection_api",
mbonadei3edccb92017-06-01 04:47:20 -07001227 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001228 "../../rtc_base:checks",
Joachim Bauch4e909192017-12-19 22:27:51 +01001229 "../../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001230 "../../rtc_base:rtc_base_approved",
1231 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001232 "../../test:rtp_test_utils",
1233 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001234 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001235 ]
1236
1237 public_deps = [
1238 ":neteq_tools",
1239 ":neteq_tools_minimal",
1240 ]
1241
1242 if (rtc_enable_protobuf) {
1243 sources += [
1244 "neteq/tools/neteq_packet_source_input.cc",
1245 "neteq/tools/neteq_packet_source_input.h",
1246 ]
1247 deps += [ ":rtc_event_log_source" ]
1248 }
1249}
1250
1251config("neteq_tools_config") {
1252 include_dirs = [ "tools" ]
1253}
1254
1255rtc_source_set("neteq_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001256 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001257 sources = [
1258 "neteq/tools/fake_decode_from_file.cc",
1259 "neteq/tools/fake_decode_from_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001260 "neteq/tools/neteq_delay_analyzer.cc",
1261 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001262 "neteq/tools/neteq_replacement_input.cc",
1263 "neteq/tools/neteq_replacement_input.h",
Minyue Li2b415da2018-04-16 14:33:53 +02001264 "neteq/tools/neteq_stats_getter.cc",
1265 "neteq/tools/neteq_stats_getter.h",
mbonadei3edccb92017-06-01 04:47:20 -07001266 ]
1267
1268 public_configs = [ ":neteq_tools_config" ]
1269
1270 if (!build_with_chromium && is_clang) {
1271 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1272 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1273 }
1274
1275 deps = [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001276 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001277 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001278 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001279 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001280 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001281 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001282 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001283 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001284 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001285 "//third_party/abseil-cpp/absl/types:optional",
mbonadei3edccb92017-06-01 04:47:20 -07001286 ]
1287
1288 public_deps = [
Ivo Creusen385b10b2017-10-13 12:37:27 +02001289 ":neteq_input_audio_tools",
mbonadei3edccb92017-06-01 04:47:20 -07001290 ":neteq_tools_minimal",
1291 ]
1292}
1293
Ivo Creusen385b10b2017-10-13 12:37:27 +02001294rtc_source_set("neteq_input_audio_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001295 visibility += webrtc_default_visibility
Ivo Creusen385b10b2017-10-13 12:37:27 +02001296 sources = [
1297 "neteq/tools/input_audio_file.cc",
1298 "neteq/tools/input_audio_file.h",
1299 "neteq/tools/resample_input_audio_file.cc",
1300 "neteq/tools/resample_input_audio_file.h",
1301 ]
1302
1303 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001304 "../..:typedefs",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001305 "../..:webrtc_common",
1306 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001307 "../../rtc_base:checks",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001308 "../../rtc_base:rtc_base_approved",
1309 ]
1310}
1311
mbonadei3edccb92017-06-01 04:47:20 -07001312if (rtc_enable_protobuf) {
1313 rtc_static_library("rtc_event_log_source") {
1314 testonly = true
1315
mbonadei3edccb92017-06-01 04:47:20 -07001316 sources = [
1317 "neteq/tools/rtc_event_log_source.cc",
1318 "neteq/tools/rtc_event_log_source.h",
1319 ]
1320
1321 if (!build_with_chromium && is_clang) {
1322 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1323 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1324 }
1325
1326 deps = [
Patrik Höglundebe62402017-11-24 13:51:52 +01001327 ":neteq_tools_minimal",
mbonadei3edccb92017-06-01 04:47:20 -07001328 "../../logging:rtc_event_log_parser",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001329 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001330 "../../rtc_base:rtc_base_approved",
Mirko Bonadei818d9102017-12-12 12:46:13 +01001331 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001332 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001333 ]
1334 public_deps = [
1335 "../../logging:rtc_event_log_proto",
1336 ]
1337 }
1338}
1339
kjellanderfb114242016-06-13 00:19:48 -07001340if (rtc_include_tests) {
Patrik Höglundb960e412018-01-05 11:46:26 +01001341 rtc_source_set("mocks") {
1342 testonly = true
1343 sources = [
1344 "audio_network_adaptor/mock/mock_audio_network_adaptor.h",
1345 "audio_network_adaptor/mock/mock_controller.h",
1346 "audio_network_adaptor/mock/mock_controller_manager.h",
1347 "audio_network_adaptor/mock/mock_debug_dump_writer.h",
1348 ]
1349 deps = [
1350 ":audio_network_adaptor",
1351 "../../test:test_support",
1352 ]
1353 }
1354
kjellander6ceab082016-10-28 05:44:03 -07001355 group("audio_coding_tests") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001356 visibility += webrtc_default_visibility
kjellander6ceab082016-10-28 05:44:03 -07001357 testonly = true
1358 public_deps = [
kjellander6ceab082016-10-28 05:44:03 -07001359 ":acm_receive_test",
1360 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001361 ":audio_codec_speed_tests",
1362 ":audio_decoder_unittests",
1363 ":audio_decoder_unittests",
1364 ":delay_test",
1365 ":g711_test",
1366 ":g722_test",
1367 ":ilbc_test",
kjellander6ceab082016-10-28 05:44:03 -07001368 ":isac_api_test",
1369 ":isac_fix_test",
1370 ":isac_switch_samprate_test",
1371 ":isac_test",
1372 ":neteq_ilbc_quality_test",
1373 ":neteq_isac_quality_test",
1374 ":neteq_opus_quality_test",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001375 ":neteq_pcm16b_quality_test",
kjellander6ceab082016-10-28 05:44:03 -07001376 ":neteq_pcmu_quality_test",
1377 ":neteq_speed_test",
1378 ":rtp_analyze",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001379 ":rtp_encode",
Henrik Lundin81af4142017-11-24 13:39:39 +01001380 ":rtp_jitter",
kjellander6ceab082016-10-28 05:44:03 -07001381 ":rtpcat",
1382 ":webrtc_opus_fec_test",
1383 ]
1384 if (rtc_enable_protobuf) {
1385 public_deps += [ ":neteq_rtpplay" ]
1386 }
1387 }
1388
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001389 rtc_source_set("audio_coding_modules_tests") {
1390 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001391 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001392
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001393 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001394 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001395 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001396 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001397 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001398 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001399 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001400 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001401 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001402 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001403 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001404 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001405 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001406 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001407 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001408 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001409 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001410 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001411 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001412 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001413 "test/Tester.cc",
1414 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001415 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001416 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001417 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001418 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001419 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001420 "test/target_delay_unittest.cc",
1421 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001422 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001423 ]
1424 deps = [
1425 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001426 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001427 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001428 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001429 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001430 "../..:typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001431 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001432 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001433 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001434 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001435 "../../rtc_base:rtc_base_approved",
Karl Wiberg2b857922018-03-23 14:53:54 +01001436 "../../rtc_base/synchronization:rw_lock_wrapper",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001437 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001438 "../../test:fileutils",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001439 "../../test:test_support",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001440 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001441 ]
1442 defines = audio_coding_defines
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001443 if (!build_with_chromium && is_clang) {
1444 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1445 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1446 }
1447 }
1448
ehmaldonado021eef32017-01-05 07:09:50 -08001449 rtc_source_set("audio_coding_perf_tests") {
1450 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001451 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001452
ehmaldonado021eef32017-01-05 07:09:50 -08001453 sources = [
1454 "codecs/opus/opus_complexity_unittest.cc",
1455 "neteq/test/neteq_performance_unittest.cc",
1456 ]
1457 deps = [
1458 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001459 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001460 "../..:typedefs",
ehmaldonado021eef32017-01-05 07:09:50 -08001461 "../..:webrtc_common",
Karl Wiberg7275e182017-10-25 09:57:40 +02001462 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001463 "../../rtc_base:protobuf_utils",
1464 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001465 "../../system_wrappers",
1466 "../../system_wrappers:field_trial_api",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001467 "../../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +01001468 "../../test:perf_test",
ehmaldonado021eef32017-01-05 07:09:50 -08001469 "../../test:test_support",
1470 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001471
ehmaldonado021eef32017-01-05 07:09:50 -08001472 if (!build_with_chromium && is_clang) {
1473 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1474 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1475 }
1476 }
1477
ehmaldonado38a21322016-09-02 04:10:34 -07001478 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001479 testonly = true
1480 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001481 "acm2/acm_receive_test.cc",
1482 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001483 ]
1484
kjellanderfb114242016-06-13 00:19:48 -07001485 defines = audio_coding_defines
1486
1487 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001488 "..:module_api",
kjellanderfb114242016-06-13 00:19:48 -07001489 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001490 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001491 "../../api/audio_codecs:audio_codecs_api",
1492 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001493 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001494 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001495 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001496 "//testing/gtest",
1497 ]
1498 }
1499
ehmaldonado38a21322016-09-02 04:10:34 -07001500 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001501 testonly = true
1502 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001503 "acm2/acm_send_test.cc",
1504 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001505 ]
1506
kjellanderfb114242016-06-13 00:19:48 -07001507 defines = audio_coding_defines
1508
1509 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001510 "../../api/audio:audio_frame_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001511 "../../rtc_base:checks",
kjellanderfb114242016-06-13 00:19:48 -07001512 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001513 ":neteq_tools",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001514 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07001515 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001516 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001517 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001518 "//testing/gtest",
1519 ]
1520 }
1521
ehmaldonado38a21322016-09-02 04:10:34 -07001522 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001523 testonly = true
1524 sources = [
1525 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001526 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001527 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001528 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001529 "test/delay_test.cc",
1530 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001531 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001532 ]
1533
aleloi333f2062016-07-28 01:21:29 -07001534 deps = [
1535 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001536 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001537 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001538 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001539 "../..:typedefs",
aleloi333f2062016-07-28 01:21:29 -07001540 "../../:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001541 "../../api/audio:audio_frame_api",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001542 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001543 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001544 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001545 "../../system_wrappers",
1546 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001547 "../../test:fileutils",
aleloi333f2062016-07-28 01:21:29 -07001548 "../../test:test_support",
1549 "../rtp_rtcp",
1550 "//testing/gtest",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001551 "//third_party/abseil-cpp/absl/types:optional",
aleloi333f2062016-07-28 01:21:29 -07001552 ]
1553 } # delay_test
1554
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001555 audio_decoder_unittests_resources =
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001556 [ "../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001557
1558 if (is_ios) {
1559 bundle_data("audio_decoder_unittests_bundle_data") {
1560 testonly = true
1561 sources = audio_decoder_unittests_resources
1562 outputs = [
1563 "{{bundle_resources_dir}}/{{source_file_part}}",
1564 ]
1565 }
1566 }
1567
ehmaldonado38a21322016-09-02 04:10:34 -07001568 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001569 testonly = true
1570 sources = [
1571 "neteq/audio_decoder_unittest.cc",
1572 ]
1573
kjellandere40a7ee2016-10-16 23:56:12 -07001574 if (!build_with_chromium && is_clang) {
1575 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001576 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001577 }
1578
Patrik Höglund7696bef2018-03-15 15:05:39 +01001579 deps = [
1580 "../../test:fileutils",
1581 ]
charujainddf3e4a2016-08-01 07:49:42 -07001582
1583 defines = neteq_defines
1584
1585 deps += audio_coding_deps
1586 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001587 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001588 ":isac",
1589 ":isac_fix",
1590 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001591 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001592 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001593 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001594 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001595 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001596 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001597 "//testing/gtest",
1598 ]
1599
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001600 data = audio_decoder_unittests_resources
1601
charujainddf3e4a2016-08-01 07:49:42 -07001602 if (is_android) {
1603 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001604 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001605 }
kjellander32c4a202016-08-30 02:53:49 -07001606 if (is_ios) {
1607 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001608 }
1609 } # audio_decoder_unittests
1610
kjellanderfb114242016-06-13 00:19:48 -07001611 if (rtc_enable_protobuf) {
1612 proto_library("neteq_unittest_proto") {
1613 sources = [
1614 "neteq/neteq_unittest.proto",
1615 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001616 proto_out_dir = "modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001617 }
henrik.lundin03153f12016-06-21 05:38:42 -07001618
ehmaldonado38a21322016-09-02 04:10:34 -07001619 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001620 testonly = true
1621 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001622 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001623 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001624 "../../rtc_base:checks",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001625 "../../test:fileutils",
mbonadei1140f972017-04-26 03:38:35 -07001626 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001627 sources = [
1628 "neteq/tools/neteq_rtpplay.cc",
1629 ]
1630
kjellandere40a7ee2016-10-16 23:56:12 -07001631 if (!build_with_chromium && is_clang) {
1632 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001633 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001634 }
1635
henrik.lundin03153f12016-06-21 05:38:42 -07001636 deps += [
1637 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001638 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001639 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001640 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001641 "../../system_wrappers:system_wrappers_default",
1642 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001643 ]
1644 }
kjellanderfb114242016-06-13 00:19:48 -07001645 }
1646
minyue81f1da32017-07-27 05:49:57 -07001647 audio_codec_speed_tests_resources = [
1648 "//resources/audio_coding/music_stereo_48kHz.pcm",
1649 "//resources/audio_coding/speech_mono_16kHz.pcm",
1650 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1651 ]
1652
1653 if (is_ios) {
1654 bundle_data("audio_codec_speed_tests_data") {
1655 testonly = true
1656 sources = audio_codec_speed_tests_resources
1657 outputs = [
1658 "{{bundle_resources_dir}}/{{source_file_part}}",
1659 ]
1660 }
1661 }
1662
ehmaldonado38a21322016-09-02 04:10:34 -07001663 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001664 testonly = true
1665 defines = []
Patrik Höglund3e113432017-12-15 14:40:10 +01001666 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001667 "../..:typedefs",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001668 "../../test:fileutils",
Patrik Höglund3e113432017-12-15 14:40:10 +01001669 ]
aleloie6b60a42016-07-28 02:34:30 -07001670 sources = [
1671 "codecs/isac/fix/test/isac_speed_test.cc",
1672 "codecs/opus/opus_speed_test.cc",
1673 "codecs/tools/audio_codec_speed_test.cc",
1674 "codecs/tools/audio_codec_speed_test.h",
1675 ]
1676
kjellandere40a7ee2016-10-16 23:56:12 -07001677 if (!build_with_chromium && is_clang) {
1678 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001679 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001680 }
1681
minyue81f1da32017-07-27 05:49:57 -07001682 data = audio_codec_speed_tests_resources
1683
aleloie6b60a42016-07-28 02:34:30 -07001684 if (is_android) {
1685 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001686 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001687 }
1688
minyue81f1da32017-07-27 05:49:57 -07001689 if (is_ios) {
1690 deps += [ ":audio_codec_speed_tests_data" ]
1691 }
1692
aleloie6b60a42016-07-28 02:34:30 -07001693 deps += [
1694 ":isac_fix",
1695 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001696 "../..:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001697 "../../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001698 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001699 "../../system_wrappers:metrics_default",
aleloie6b60a42016-07-28 02:34:30 -07001700 "../../system_wrappers:system_wrappers_default",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001701 "../../test:field_trial",
ehmaldonado26bddb92016-11-30 06:12:01 -08001702 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001703 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001704 "//testing/gtest",
1705 ]
1706 }
1707
ehmaldonado38a21322016-09-02 04:10:34 -07001708 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001709 testonly = true
1710 sources = [
1711 "neteq/tools/neteq_external_decoder_test.cc",
1712 "neteq/tools/neteq_external_decoder_test.h",
1713 "neteq/tools/neteq_performance_test.cc",
1714 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001715 ]
1716
kjellandere40a7ee2016-10-16 23:56:12 -07001717 if (!build_with_chromium && is_clang) {
1718 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001719 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001720 }
1721
1722 deps = [
1723 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001724 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001725 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001726 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001727 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001728 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001729 "../../api/audio_codecs:audio_codecs_api",
1730 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001731 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001732 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001733 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001734 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001735 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001736 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001737 ]
1738 }
1739
ehmaldonado38a21322016-09-02 04:10:34 -07001740 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001741 testonly = true
1742 sources = [
1743 "neteq/tools/neteq_quality_test.cc",
1744 "neteq/tools/neteq_quality_test.h",
1745 ]
1746
kjellandere40a7ee2016-10-16 23:56:12 -07001747 if (!build_with_chromium && is_clang) {
1748 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001749 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001750 }
1751
1752 deps = [
1753 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001754 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001755 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001756 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001757 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001758 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001759 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001760 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001761 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001762 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001763 ]
1764 }
1765
Henrik Lundin1391bd42017-11-24 09:28:57 +01001766 rtc_executable("rtp_encode") {
aleloi82667732016-08-02 01:45:50 -07001767 testonly = true
1768
Henrik Lundin1391bd42017-11-24 09:28:57 +01001769 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001770 "../..:typedefs",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001771 ":audio_coding",
1772 ":neteq_input_audio_tools",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001773 "../../api/audio:audio_frame_api",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001774 "../../api/audio_codecs/g711:audio_encoder_g711",
1775 "../../api/audio_codecs/L16:audio_encoder_L16",
1776 "../../api/audio_codecs/g722:audio_encoder_g722",
1777 "../../api/audio_codecs/ilbc:audio_encoder_ilbc",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001778 "../../system_wrappers:system_wrappers_default",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001779 "../../api/audio_codecs/isac:audio_encoder_isac",
1780 "../../api/audio_codecs/opus:audio_encoder_opus",
1781 "../../rtc_base:rtc_base_approved",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001782 ]
aleloi82667732016-08-02 01:45:50 -07001783
1784 sources = [
Henrik Lundin1391bd42017-11-24 09:28:57 +01001785 "neteq/tools/rtp_encode.cc",
aleloi82667732016-08-02 01:45:50 -07001786 ]
1787
Henrik Lundin1391bd42017-11-24 09:28:57 +01001788 defines = audio_coding_defines
aleloi82667732016-08-02 01:45:50 -07001789 }
1790
Henrik Lundin81af4142017-11-24 13:39:39 +01001791 rtc_executable("rtp_jitter") {
aleloi76cbe192016-08-02 02:05:03 -07001792 testonly = true
1793
Henrik Lundin81af4142017-11-24 13:39:39 +01001794 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001795 "../..:typedefs",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001796 "../../system_wrappers:system_wrappers_default",
Henrik Lundin81af4142017-11-24 13:39:39 +01001797 "../rtp_rtcp:rtp_rtcp_format",
1798 "../../api:array_view",
1799 "../../rtc_base:rtc_base_approved",
Henrik Lundin81af4142017-11-24 13:39:39 +01001800 ]
1801
aleloi76cbe192016-08-02 02:05:03 -07001802 sources = [
Henrik Lundin81af4142017-11-24 13:39:39 +01001803 "neteq/tools/rtp_jitter.cc",
aleloi76cbe192016-08-02 02:05:03 -07001804 ]
1805
Henrik Lundin81af4142017-11-24 13:39:39 +01001806 defines = audio_coding_defines
aleloi76cbe192016-08-02 02:05:03 -07001807 }
1808
ehmaldonado38a21322016-09-02 04:10:34 -07001809 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001810 testonly = true
1811
1812 sources = [
1813 "neteq/tools/rtpcat.cc",
1814 ]
1815
1816 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001817 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001818 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001819 "../../system_wrappers:system_wrappers_default",
1820 "../../test:rtp_test_utils",
1821 "//testing/gtest",
1822 ]
1823 }
1824
ehmaldonado38a21322016-09-02 04:10:34 -07001825 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001826 testonly = true
1827
1828 sources = [
1829 "neteq/tools/rtp_analyze.cc",
1830 ]
1831
1832 deps = [
1833 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001834 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001835 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001836 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001837 "../../system_wrappers:system_wrappers_default",
1838 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001839 ]
1840
kjellandere40a7ee2016-10-16 23:56:12 -07001841 if (!build_with_chromium && is_clang) {
1842 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001843 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001844 }
1845 }
aleloi630c6d52016-08-10 02:11:30 -07001846
ehmaldonado38a21322016-09-02 04:10:34 -07001847 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001848 testonly = true
1849
1850 sources = [
1851 "neteq/test/neteq_opus_quality_test.cc",
1852 ]
1853
1854 deps = [
1855 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001856 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001857 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001858 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001859 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001860 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001861 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001862 ]
aleloi630c6d52016-08-10 02:11:30 -07001863 }
aleloi116fd612016-08-10 04:16:36 -07001864
ehmaldonado38a21322016-09-02 04:10:34 -07001865 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001866 testonly = true
1867
1868 sources = [
1869 "neteq/test/neteq_speed_test.cc",
1870 ]
1871
1872 deps = [
1873 ":neteq",
1874 ":neteq_test_support",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001875 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001876 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001877 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001878 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001879 "../../test:fileutils",
aleloi116fd612016-08-10 04:16:36 -07001880 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001881 ]
1882 }
aleloi63910122016-08-10 04:41:14 -07001883
ehmaldonado38a21322016-09-02 04:10:34 -07001884 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001885 testonly = true
1886
1887 sources = [
1888 "neteq/test/neteq_ilbc_quality_test.cc",
1889 ]
1890
1891 deps = [
1892 ":ilbc",
1893 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001894 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001895 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001896 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001897 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001898 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001899 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001900 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001901 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001902 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001903 ]
1904 }
aleloi6df36dc2016-08-10 05:04:47 -07001905
ehmaldonado38a21322016-09-02 04:10:34 -07001906 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001907 testonly = true
1908
1909 sources = [
1910 "neteq/test/neteq_isac_quality_test.cc",
1911 ]
1912
1913 deps = [
1914 ":isac_fix",
1915 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001916 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001917 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001918 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001919 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001920 ]
1921 }
aleloic4ac7002016-08-10 05:06:27 -07001922
ehmaldonado38a21322016-09-02 04:10:34 -07001923 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001924 testonly = true
1925
1926 sources = [
1927 "neteq/test/neteq_pcmu_quality_test.cc",
1928 ]
1929
1930 deps = [
1931 ":g711",
1932 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001933 ":neteq_quality_test_support",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001934 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001935 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001936 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001937 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001938 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001939 ]
1940 }
aleloib7186d02016-08-16 01:47:16 -07001941
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001942 rtc_executable("neteq_pcm16b_quality_test") {
1943 testonly = true
1944
1945 sources = [
1946 "neteq/test/neteq_pcm16b_quality_test.cc",
1947 ]
1948
1949 deps = [
1950 ":neteq",
1951 ":neteq_quality_test_support",
1952 ":pcm16b",
1953 "../../rtc_base:checks",
1954 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001955 "../../test:fileutils",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001956 "../../test:test_main",
1957 "//testing/gtest",
1958 ]
1959 }
1960
ehmaldonado38a21322016-09-02 04:10:34 -07001961 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001962 testonly = true
1963
1964 sources = [
1965 "codecs/isac/fix/test/kenny.cc",
1966 ]
1967
1968 deps = [
1969 ":isac_fix",
Edward Lemure66572b2018-01-05 15:34:09 +01001970 "../../test:perf_test",
aleloib7186d02016-08-16 01:47:16 -07001971 "../../test:test_support",
1972 ]
1973
ehmaldonado25586ce2017-09-07 23:18:35 -07001974 data = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001975 "../../resources/speech_and_misc_wb.pcm",
ehmaldonado25586ce2017-09-07 23:18:35 -07001976 ]
aleloib7186d02016-08-16 01:47:16 -07001977 }
aleloi16f55a12016-08-23 08:08:23 -07001978
kjellander7439f972016-12-05 22:47:46 -08001979 rtc_source_set("isac_test_util") {
1980 testonly = true
1981 sources = [
1982 "codecs/isac/main/util/utility.c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001983 "codecs/isac/main/util/utility.h",
kjellander7439f972016-12-05 22:47:46 -08001984 ]
1985 }
1986
ehmaldonado38a21322016-09-02 04:10:34 -07001987 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001988 testonly = true
1989
1990 sources = [
1991 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001992 ]
1993
1994 include_dirs = [
1995 "codecs/isac/main/include",
1996 "codecs/isac/main/test",
1997 "codecs/isac/main/util",
1998 ]
1999
2000 deps = [
2001 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002002 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002003 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07002004 ]
ivoce51b41a2016-08-24 02:25:57 -07002005 }
2006
ehmaldonado38a21322016-09-02 04:10:34 -07002007 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07002008 testonly = true
2009
2010 sources = [
2011 "codecs/g711/test/testG711.cc",
2012 ]
2013
aleloi16f55a12016-08-23 08:08:23 -07002014 deps = [
2015 ":g711",
2016 ]
2017 }
aleloi9a117842016-08-23 08:36:10 -07002018
ehmaldonado38a21322016-09-02 04:10:34 -07002019 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07002020 testonly = true
2021
2022 sources = [
2023 "codecs/g722/test/testG722.cc",
2024 ]
2025
aleloi9a117842016-08-23 08:36:10 -07002026 deps = [
2027 ":g722",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002028 "../..:typedefs",
aleloi9a117842016-08-23 08:36:10 -07002029 "../..:webrtc_common",
2030 ]
2031 }
ivoc2c670db2016-08-24 06:11:18 -07002032
ehmaldonado38a21322016-09-02 04:10:34 -07002033 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07002034 testonly = true
2035
2036 sources = [
2037 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07002038 ]
2039
aleloicfee2152016-08-29 04:09:19 -07002040 deps = [
2041 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002042 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002043 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07002044 ]
2045
2046 include_dirs = [
2047 "codecs/isac/main/include",
2048 "codecs/isac/main/test",
2049 "codecs/isac/main/util",
2050 ]
2051 }
2052
ehmaldonado38a21322016-09-02 04:10:34 -07002053 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002054 testonly = true
2055
2056 sources = [
2057 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002058 ]
2059
aleloicfee2152016-08-29 04:09:19 -07002060 deps = [
2061 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002062 ":isac_test_util",
Mirko Bonadei08973ee2018-02-01 14:12:55 +01002063 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002064 "../../common_audio:common_audio_c",
aleloicfee2152016-08-29 04:09:19 -07002065 ]
2066
2067 include_dirs = [
2068 "codecs/isac/main/include",
2069 "codecs/isac/main/test",
2070 "codecs/isac/main/util",
2071 "../../common_audio/signal_processing/include",
2072 ]
2073 }
2074
ehmaldonado38a21322016-09-02 04:10:34 -07002075 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002076 testonly = true
2077
2078 sources = [
2079 "codecs/ilbc/test/iLBC_test.c",
2080 ]
2081
aleloicfee2152016-08-29 04:09:19 -07002082 deps = [
2083 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002084 ]
2085 }
2086
ehmaldonado38a21322016-09-02 04:10:34 -07002087 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002088 testonly = true
2089
2090 sources = [
2091 "codecs/opus/opus_fec_test.cc",
2092 ]
2093
2094 deps = [
2095 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002096 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002097 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002098 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08002099 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002100 "//testing/gtest",
2101 ]
2102
kjellandere40a7ee2016-10-16 23:56:12 -07002103 if (!build_with_chromium && is_clang) {
2104 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002105 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002106 }
2107 }
ehmaldonado36268652017-01-19 08:27:11 -08002108
2109 rtc_source_set("audio_coding_unittests") {
2110 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00002111 visibility += webrtc_default_visibility
ehmaldonado36268652017-01-19 08:27:11 -08002112
2113 sources = [
2114 "acm2/acm_receiver_unittest.cc",
2115 "acm2/audio_coding_module_unittest.cc",
2116 "acm2/call_statistics_unittest.cc",
2117 "acm2/codec_manager_unittest.cc",
2118 "acm2/rent_a_codec_unittest.cc",
2119 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2120 "audio_network_adaptor/bitrate_controller_unittest.cc",
2121 "audio_network_adaptor/channel_controller_unittest.cc",
2122 "audio_network_adaptor/controller_manager_unittest.cc",
2123 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002124 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002125 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2126 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002127 "audio_network_adaptor/frame_length_controller_unittest.cc",
elad.alon326263a2017-03-29 03:16:58 -07002128 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002129 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002130 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002131 "codecs/cng/audio_encoder_cng_unittest.cc",
2132 "codecs/cng/cng_unittest.cc",
2133 "codecs/ilbc/ilbc_unittest.cc",
2134 "codecs/isac/fix/source/filterbanks_unittest.cc",
2135 "codecs/isac/fix/source/filters_unittest.cc",
2136 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2137 "codecs/isac/fix/source/transform_unittest.cc",
2138 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2139 "codecs/isac/main/source/isac_unittest.cc",
2140 "codecs/isac/unittest.cc",
2141 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002142 "codecs/opus/audio_encoder_opus_unittest.cc",
Alex Luebseeb27652017-11-20 11:13:56 -08002143 "codecs/opus/opus_bandwidth_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002144 "codecs/opus/opus_unittest.cc",
2145 "codecs/red/audio_encoder_copy_red_unittest.cc",
2146 "neteq/audio_multi_vector_unittest.cc",
2147 "neteq/audio_vector_unittest.cc",
2148 "neteq/background_noise_unittest.cc",
2149 "neteq/buffer_level_filter_unittest.cc",
2150 "neteq/comfort_noise_unittest.cc",
2151 "neteq/decision_logic_unittest.cc",
2152 "neteq/decoder_database_unittest.cc",
2153 "neteq/delay_manager_unittest.cc",
2154 "neteq/delay_peak_detector_unittest.cc",
2155 "neteq/dsp_helper_unittest.cc",
2156 "neteq/dtmf_buffer_unittest.cc",
2157 "neteq/dtmf_tone_generator_unittest.cc",
2158 "neteq/expand_unittest.cc",
2159 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002160 "neteq/mock/mock_buffer_level_filter.h",
2161 "neteq/mock/mock_decoder_database.h",
2162 "neteq/mock/mock_delay_manager.h",
2163 "neteq/mock/mock_delay_peak_detector.h",
2164 "neteq/mock/mock_dtmf_buffer.h",
2165 "neteq/mock/mock_dtmf_tone_generator.h",
2166 "neteq/mock/mock_expand.h",
2167 "neteq/mock/mock_external_decoder_pcm16b.h",
2168 "neteq/mock/mock_packet_buffer.h",
2169 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002170 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002171 "neteq/nack_tracker_unittest.cc",
2172 "neteq/neteq_external_decoder_unittest.cc",
2173 "neteq/neteq_impl_unittest.cc",
2174 "neteq/neteq_network_stats_unittest.cc",
2175 "neteq/neteq_stereo_unittest.cc",
2176 "neteq/neteq_unittest.cc",
2177 "neteq/normal_unittest.cc",
2178 "neteq/packet_buffer_unittest.cc",
2179 "neteq/post_decode_vad_unittest.cc",
2180 "neteq/random_vector_unittest.cc",
2181 "neteq/red_payload_splitter_unittest.cc",
Henrik Lundinac0a5032017-09-25 12:22:46 +02002182 "neteq/statistics_calculator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002183 "neteq/sync_buffer_unittest.cc",
2184 "neteq/tick_timer_unittest.cc",
2185 "neteq/time_stretch_unittest.cc",
2186 "neteq/timestamp_scaler_unittest.cc",
2187 "neteq/tools/input_audio_file_unittest.cc",
2188 "neteq/tools/packet_unittest.cc",
2189 ]
2190
2191 deps = [
2192 ":acm_receive_test",
2193 ":acm_send_test",
2194 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002195 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002196 ":audio_format_conversion",
2197 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002198 ":cng",
2199 ":g711",
2200 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002201 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002202 ":isac_c",
2203 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002204 ":legacy_encoded_audio_frame",
Patrik Höglundb960e412018-01-05 11:46:26 +01002205 ":mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002206 ":neteq",
2207 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002208 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002209 ":pcm16b",
2210 ":red",
2211 ":rent_a_codec",
2212 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002213 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002214 "../..:typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002215 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02002216 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08002217 "../../api/audio_codecs:audio_codecs_api",
2218 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002219 "../../api/audio_codecs:builtin_audio_encoder_factory",
Alex Luebseeb27652017-11-20 11:13:56 -08002220 "../../api/audio_codecs/opus:audio_decoder_opus",
Karl Wiberg7275e182017-10-25 09:57:40 +02002221 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonado36268652017-01-19 08:27:11 -08002222 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002223 "../../common_audio:common_audio_c",
charujain9a451162017-09-15 03:51:34 -07002224 "../../common_audio:mock_common_audio",
Patrik Höglund731082c2018-01-03 09:08:20 +01002225 "../../logging:mocks",
Qingsi Wang970b0882018-02-01 11:04:46 -08002226 "../../logging:rtc_event_audio",
Elad Alon4a87e1c2017-10-03 16:11:34 +02002227 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002228 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002229 "../../rtc_base:protobuf_utils",
2230 "../../rtc_base:rtc_base",
2231 "../../rtc_base:rtc_base_approved",
2232 "../../rtc_base:rtc_base_tests_utils",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002233 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01002234 "../../system_wrappers",
2235 "../../system_wrappers:cpu_features_api",
kwiberg37e99fd2017-04-10 05:15:48 -07002236 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002237 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002238 "../../test:fileutils",
ehmaldonado36268652017-01-19 08:27:11 -08002239 "../../test:rtp_test_utils",
2240 "../../test:test_common",
2241 "../../test:test_support",
ehmaldonado36268652017-01-19 08:27:11 -08002242 "//testing/gtest",
ehmaldonado36268652017-01-19 08:27:11 -08002243 ]
2244
2245 defines = audio_coding_defines
2246
2247 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002248 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002249 deps += [
2250 ":ana_config_proto",
2251 ":neteq_unittest_proto",
2252 ]
2253 }
2254
2255 if (!build_with_chromium && is_clang) {
2256 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2257 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2258 }
2259 }
kjellanderfb114242016-06-13 00:19:48 -07002260}
kwiberg087bd342017-02-10 08:15:44 -08002261
2262# For backwards compatibility only! Use
2263# webrtc/api/audio_codecs:audio_codecs_api instead.
2264# TODO(kwiberg): Remove this.
2265rtc_source_set("audio_decoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002266 visibility += [ "*" ]
kwiberg087bd342017-02-10 08:15:44 -08002267 sources = [
2268 "codecs/audio_decoder.h",
2269 ]
2270 deps = [
2271 "../../api/audio_codecs:audio_codecs_api",
2272 ]
2273}
2274
2275# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002276# webrtc/api/audio_codecs:audio_codecs_api instead.
2277# TODO(ossu): Remove this.
2278rtc_source_set("audio_encoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002279 visibility += [ "*" ]
ossueb1fde42017-05-02 06:46:30 -07002280 sources = [
2281 "codecs/audio_encoder.h",
2282 ]
2283 deps = [
2284 "../../api/audio_codecs:audio_codecs_api",
2285 ]
2286}