blob: 8d326c6e6fe7916b079d842164b5a341d31b2345 [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",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200595 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000596 "codecs/isac/main/source/intialize.c",
597 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200598 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000599 "codecs/isac/main/source/lattice.c",
600 "codecs/isac/main/source/lpc_analysis.c",
601 "codecs/isac/main/source/lpc_analysis.h",
602 "codecs/isac/main/source/lpc_gain_swb_tables.c",
603 "codecs/isac/main/source/lpc_gain_swb_tables.h",
604 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
605 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
606 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
607 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
608 "codecs/isac/main/source/lpc_tables.c",
609 "codecs/isac/main/source/lpc_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000610 "codecs/isac/main/source/pitch_gain_tables.c",
611 "codecs/isac/main/source/pitch_gain_tables.h",
612 "codecs/isac/main/source/pitch_lag_tables.c",
613 "codecs/isac/main/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000614 "codecs/isac/main/source/spectrum_ar_model_tables.c",
615 "codecs/isac/main/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000616 "codecs/isac/main/source/transform.c",
617 ]
618
619 if (is_linux) {
620 libs = [ "m" ]
621 }
622
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700623 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000624
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000625 deps = [
Artem Titovd9711092018-06-26 14:50:13 +0200626 ":fft",
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200627 ":isac_bwinfo",
628 ":isac_vad",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100629 "../..:typedefs",
aleloicfee2152016-08-29 04:09:19 -0700630 "../..:webrtc_common",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000631 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100632 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100633 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700634 "../../rtc_base:compile_assert_c",
635 "../../rtc_base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000636 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000637}
638
Artem Titovd9711092018-06-26 14:50:13 +0200639rtc_source_set("fft") {
640 poisonous = [ "audio_codecs" ]
641 sources = [
642 "codecs/isac/main/source/fft.c",
643 "codecs/isac/main/source/fft.h",
644 ]
645 deps = [
646 ":isac_vad",
647 ]
648}
649
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000650config("isac_fix_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200651 include_dirs = [ "codecs/isac/fix/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000652}
653
kjellanderb62dbbe2016-09-23 00:38:52 -0700654rtc_static_library("isac_fix") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100655 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200656 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000657 sources = [
kjellander7439f972016-12-05 22:47:46 -0800658 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
659 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
660 ]
661
662 public_configs = [ ":isac_fix_config" ]
663
664 deps = [
kjellander7439f972016-12-05 22:47:46 -0800665 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800666 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800667 "../../common_audio",
668 "../../system_wrappers",
669 ]
670 public_deps = [
671 ":isac_fix_c",
672 ]
673
674 if (rtc_build_with_neon) {
675 deps += [ ":isac_neon" ]
676 }
677}
678
kwiberga6ca5182017-01-30 05:28:54 -0800679rtc_source_set("isac_fix_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200680 poisonous = [ "audio_codecs" ]
kwiberga6ca5182017-01-30 05:28:54 -0800681 sources = [
682 "codecs/isac/fix/source/codec.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100683 "codecs/isac/fix/source/entropy_coding.h",
kwiberga6ca5182017-01-30 05:28:54 -0800684 "codecs/isac/fix/source/fft.c",
685 "codecs/isac/fix/source/fft.h",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100686 "codecs/isac/fix/source/filterbank_internal.h",
kwiberga6ca5182017-01-30 05:28:54 -0800687 "codecs/isac/fix/source/settings.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100688 "codecs/isac/fix/source/structs.h",
Mirko Bonadei6e396b02018-04-20 13:54:53 -0700689 "codecs/isac/fix/source/transform_tables.c",
kwiberga6ca5182017-01-30 05:28:54 -0800690 ]
691 public_configs = [ ":isac_fix_config" ]
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100692 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200693 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100694 "../..:typedefs",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100695 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100696 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100697 ]
kwiberga6ca5182017-01-30 05:28:54 -0800698}
kjellander676e08f2016-12-07 08:23:27 -0800699
mbonadei5c0d7032017-07-06 03:48:55 -0700700rtc_source_set("isac_fix_c_arm_asm") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200701 poisonous = [ "audio_codecs" ]
mbonadei5c0d7032017-07-06 03:48:55 -0700702 sources = []
703 if (current_cpu == "arm" && arm_version >= 7) {
704 sources += [
705 "codecs/isac/fix/source/lattice_armv7.S",
706 "codecs/isac/fix/source/pitch_filter_armv6.S",
707 ]
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100708 deps = [
Mirko Bonadei6ce03592018-02-22 15:10:27 +0100709 ":isac_fix_common",
Karl Wiberg7aabd392018-03-22 02:59:49 +0100710 "../../rtc_base/system:asm_defines",
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100711 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700712 }
713}
714
kwiberga6ca5182017-01-30 05:28:54 -0800715rtc_source_set("isac_fix_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200716 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800717 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100718 "codecs/isac/fix/include/audio_decoder_isacfix.h",
719 "codecs/isac/fix/include/audio_encoder_isacfix.h",
720 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000721 "codecs/isac/fix/source/arith_routines.c",
722 "codecs/isac/fix/source/arith_routines_hist.c",
723 "codecs/isac/fix/source/arith_routines_logist.c",
724 "codecs/isac/fix/source/arith_routins.h",
725 "codecs/isac/fix/source/bandwidth_estimator.c",
726 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000727 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200728 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000729 "codecs/isac/fix/source/decode_plc.c",
730 "codecs/isac/fix/source/encode.c",
731 "codecs/isac/fix/source/entropy_coding.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000732 "codecs/isac/fix/source/filterbank_tables.c",
733 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200734 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000735 "codecs/isac/fix/source/filters.c",
736 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200737 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000738 "codecs/isac/fix/source/isacfix.c",
739 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700740 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000741 "codecs/isac/fix/source/lpc_masking_model.c",
742 "codecs/isac/fix/source/lpc_masking_model.h",
743 "codecs/isac/fix/source/lpc_tables.c",
744 "codecs/isac/fix/source/lpc_tables.h",
745 "codecs/isac/fix/source/pitch_estimator.c",
746 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700747 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000748 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700749 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000750 "codecs/isac/fix/source/pitch_gain_tables.c",
751 "codecs/isac/fix/source/pitch_gain_tables.h",
752 "codecs/isac/fix/source/pitch_lag_tables.c",
753 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000754 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
755 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000756 "codecs/isac/fix/source/transform.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000757 ]
758
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700759 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000760
kjellander676e08f2016-12-07 08:23:27 -0800761 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200762 ":isac_bwinfo",
kjellander676e08f2016-12-07 08:23:27 -0800763 ":isac_common",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100764 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800765 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800766 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800767 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100768 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100769 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700770 "../../rtc_base:compile_assert_c",
771 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100772 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100773 "../../system_wrappers:cpu_features_api",
kjellander676e08f2016-12-07 08:23:27 -0800774 ]
775
kwiberga6ca5182017-01-30 05:28:54 -0800776 public_deps = [
777 ":isac_fix_common",
778 ]
779
mbonadeie5dc3ce2017-01-25 05:34:46 -0800780 if (rtc_build_with_neon) {
781 deps += [ ":isac_neon" ]
782 }
783
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700784 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700785 sources -= [
786 "codecs/isac/fix/source/lattice_c.c",
787 "codecs/isac/fix/source/pitch_filter_c.c",
788 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700789 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000790 }
791
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000792 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000793 sources += [
794 "codecs/isac/fix/source/entropy_coding_mips.c",
795 "codecs/isac/fix/source/filters_mips.c",
796 "codecs/isac/fix/source/lattice_mips.c",
797 "codecs/isac/fix/source/pitch_estimator_mips.c",
798 "codecs/isac/fix/source/transform_mips.c",
799 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700800 sources -= [
801 "codecs/isac/fix/source/lattice_c.c",
802 "codecs/isac/fix/source/pitch_estimator_c.c",
803 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000804 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200805 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000806 }
807 if (mips_dsp_rev > 1) {
808 sources += [
809 "codecs/isac/fix/source/lpc_masking_model_mips.c",
810 "codecs/isac/fix/source/pitch_filter_mips.c",
811 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200812 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000813 }
814 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000815}
816
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700817if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700818 rtc_static_library("isac_neon") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200819 poisonous = [ "audio_codecs" ]
Zhongwei Yaof242e662015-05-06 16:39:17 +0800820 sources = [
821 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800822 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800823 "codecs/isac/fix/source/filters_neon.c",
824 "codecs/isac/fix/source/lattice_neon.c",
825 "codecs/isac/fix/source/transform_neon.c",
826 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000827
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700828 if (current_cpu != "arm64") {
829 # Enable compilation for the NEON instruction set. This is needed
830 # since //build/config/arm.gni only enables NEON for iOS, not Android.
831 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700832 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700833 cflags = [ "-mfpu=neon" ]
834 }
835
836 # Disable LTO on NEON targets due to compiler bug.
837 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000838 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000839 cflags -= [
840 "-flto",
841 "-ffat-lto-objects",
842 ]
843 }
844
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200845 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800846 ":isac_fix_common",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200847 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100848 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100849 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700850 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200851 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000852 }
853}
854
855config("pcm16b_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200856 include_dirs = [ "codecs/pcm16b/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000857}
858
kjellanderb62dbbe2016-09-23 00:38:52 -0700859rtc_static_library("pcm16b") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100860 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200861 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000862 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200863 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100864 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200865 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100866 "codecs/pcm16b/audio_encoder_pcm16b.h",
kwiberg7ea6e592017-08-16 06:12:57 -0700867 "codecs/pcm16b/pcm16b_common.cc",
868 "codecs/pcm16b/pcm16b_common.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000869 ]
870
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000871 deps = [
872 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800873 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800874 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800875 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100876 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700877 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000878 ]
kjellander7439f972016-12-05 22:47:46 -0800879 public_deps = [
880 ":pcm16b_c",
881 ]
882 public_configs = [ ":pcm16b_config" ]
883}
884
885rtc_source_set("pcm16b_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200886 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800887 sources = [
888 "codecs/pcm16b/pcm16b.c",
889 "codecs/pcm16b/pcm16b.h",
890 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000891
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700892 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800893 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100894 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800895 "../..:webrtc_common",
896 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000897}
898
kjellanderb62dbbe2016-09-23 00:38:52 -0700899rtc_static_library("webrtc_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000900 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200901 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000902 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200903 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100904 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000905 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100906 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000907 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000908
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200909 deps = [
minyue41b9c802016-10-06 07:13:54 -0700910 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800911 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800912 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700913 "../../api/audio_codecs/opus:audio_encoder_opus_config",
michaelt566d8202017-01-12 10:17:38 -0800914 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100915 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700916 "../../rtc_base:rtc_base_approved",
917 "../../rtc_base:rtc_numerics",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100918 "../../rtc_base:safe_minmax",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100919 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200920 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200921 ]
kjellander7439f972016-12-05 22:47:46 -0800922 public_deps = [
923 ":webrtc_opus_c",
kwiberge5eb7242017-08-25 03:10:50 -0700924 "../../rtc_base:protobuf_utils",
kjellander7439f972016-12-05 22:47:46 -0800925 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000926
michaelta55f0212017-02-02 07:47:19 -0800927 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800928
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000929 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800930 public_deps += [ rtc_opus_dir ]
931 } else if (build_with_mozilla) {
Dan Minor9c686132018-01-15 10:20:00 -0500932 include_dirs = [ "/media/libopus/include" ]
kjellander7439f972016-12-05 22:47:46 -0800933 }
934}
935
936rtc_source_set("webrtc_opus_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200937 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800938 sources = [
939 "codecs/opus/opus_inst.h",
940 "codecs/opus/opus_interface.c",
941 "codecs/opus/opus_interface.h",
942 ]
943
minyue2e03c662017-02-01 17:31:11 -0800944 defines = audio_coding_defines
945
kjellander7439f972016-12-05 22:47:46 -0800946 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700947 public_deps = [
948 rtc_opus_dir,
949 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000950 } else if (build_with_mozilla) {
951 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000952 }
kjellander7439f972016-12-05 22:47:46 -0800953
954 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100955 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800956 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100957 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700958 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800959 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000960}
961
minyue25f6a392016-09-22 22:23:20 -0700962if (rtc_enable_protobuf) {
963 proto_library("ana_debug_dump_proto") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000964 visibility += webrtc_default_visibility
minyue25f6a392016-09-22 22:23:20 -0700965 sources = [
966 "audio_network_adaptor/debug_dump.proto",
967 ]
jbudorick58f17252017-07-26 14:49:20 -0700968 deps = [
969 ":ana_config_proto",
970 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200971 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700972 }
minyuea1d9ad02016-10-02 14:53:37 -0700973 proto_library("ana_config_proto") {
974 sources = [
975 "audio_network_adaptor/config.proto",
976 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200977 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyuea1d9ad02016-10-02 14:53:37 -0700978 }
minyue25f6a392016-09-22 22:23:20 -0700979}
980
eladalon1e7dd312017-09-12 04:38:25 -0700981rtc_static_library("audio_network_adaptor_config") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000982 visibility += webrtc_default_visibility
eladalon1e7dd312017-09-12 04:38:25 -0700983 sources = [
984 "audio_network_adaptor/audio_network_adaptor_config.cc",
985 "audio_network_adaptor/include/audio_network_adaptor_config.h",
986 ]
987 deps = [
Danil Chapovalovb6021232018-06-19 13:26:36 +0200988 "//third_party/abseil-cpp/absl/types:optional",
eladalon1e7dd312017-09-12 04:38:25 -0700989 ]
990}
991
minyue0d382ef2016-10-07 07:59:28 -0700992rtc_static_library("audio_network_adaptor") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000993 visibility += webrtc_default_visibility
minyue7610f852016-09-07 13:51:51 -0700994 sources = [
minyuecaa9cb22016-09-13 13:34:15 -0700995 "audio_network_adaptor/audio_network_adaptor_impl.cc",
996 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700997 "audio_network_adaptor/bitrate_controller.cc",
998 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700999 "audio_network_adaptor/channel_controller.cc",
1000 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -07001001 "audio_network_adaptor/controller.cc",
1002 "audio_network_adaptor/controller.h",
1003 "audio_network_adaptor/controller_manager.cc",
1004 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -07001005 "audio_network_adaptor/debug_dump_writer.cc",
1006 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -07001007 "audio_network_adaptor/dtx_controller.cc",
1008 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -08001009 "audio_network_adaptor/event_log_writer.cc",
1010 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -07001011 "audio_network_adaptor/fec_controller_plr_based.cc",
1012 "audio_network_adaptor/fec_controller_plr_based.h",
1013 "audio_network_adaptor/fec_controller_rplr_based.cc",
1014 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -07001015 "audio_network_adaptor/frame_length_controller.cc",
1016 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -07001017 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -07001018 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -07001019 ]
minyue25f6a392016-09-22 22:23:20 -07001020
eladalon1e7dd312017-09-12 04:38:25 -07001021 public_deps = [
1022 ":audio_network_adaptor_config",
1023 ]
1024
minyue41b9c802016-10-06 07:13:54 -07001025 deps = [
1026 "../..:webrtc_common",
ivoce1198e02017-09-08 08:13:19 -07001027 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001028 "../../common_audio",
Qingsi Wang970b0882018-02-01 11:04:46 -08001029 "../../logging:rtc_event_audio",
minyue4b7c9522017-01-24 04:54:59 -08001030 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001031 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001032 "../../rtc_base:protobuf_utils",
1033 "../../rtc_base:rtc_base_approved",
Karl Wiberg6a4d4112018-03-23 10:39:34 +01001034 "../../rtc_base/system:file_wrapper",
minyue41b9c802016-10-06 07:13:54 -07001035 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001036 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001037 "//third_party/abseil-cpp/absl/types:optional",
minyue41b9c802016-10-06 07:13:54 -07001038 ]
1039
minyue25f6a392016-09-22 22:23:20 -07001040 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -07001041 deps += [
minyuea1d9ad02016-10-02 14:53:37 -07001042 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -07001043 ":ana_debug_dump_proto",
1044 ]
minyue25f6a392016-09-22 22:23:20 -07001045 }
minyue4b7c9522017-01-24 04:54:59 -08001046
1047 if (!build_with_chromium && is_clang) {
1048 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1049 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1050 }
minyue7610f852016-09-07 13:51:51 -07001051}
1052
kwiberg65cb70d2017-03-03 06:16:28 -08001053rtc_source_set("neteq_decoder_enum") {
1054 sources = [
1055 "neteq/neteq_decoder_enum.cc",
1056 "neteq/neteq_decoder_enum.h",
1057 ]
1058 deps = [
1059 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001060 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001061 "//third_party/abseil-cpp/absl/types:optional",
kwiberg65cb70d2017-03-03 06:16:28 -08001062 ]
1063}
kjellander676e08f2016-12-07 08:23:27 -08001064
kwiberg65cb70d2017-03-03 06:16:28 -08001065rtc_static_library("neteq") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001066 visibility += webrtc_default_visibility
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001067 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001068 "neteq/accelerate.cc",
1069 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001070 "neteq/audio_multi_vector.cc",
1071 "neteq/audio_multi_vector.h",
1072 "neteq/audio_vector.cc",
1073 "neteq/audio_vector.h",
1074 "neteq/background_noise.cc",
1075 "neteq/background_noise.h",
1076 "neteq/buffer_level_filter.cc",
1077 "neteq/buffer_level_filter.h",
1078 "neteq/comfort_noise.cc",
1079 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -07001080 "neteq/cross_correlation.cc",
1081 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001082 "neteq/decision_logic.cc",
1083 "neteq/decision_logic.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001084 "neteq/decoder_database.cc",
1085 "neteq/decoder_database.h",
1086 "neteq/defines.h",
1087 "neteq/delay_manager.cc",
1088 "neteq/delay_manager.h",
1089 "neteq/delay_peak_detector.cc",
1090 "neteq/delay_peak_detector.h",
1091 "neteq/dsp_helper.cc",
1092 "neteq/dsp_helper.h",
1093 "neteq/dtmf_buffer.cc",
1094 "neteq/dtmf_buffer.h",
1095 "neteq/dtmf_tone_generator.cc",
1096 "neteq/dtmf_tone_generator.h",
1097 "neteq/expand.cc",
1098 "neteq/expand.h",
Henrik Lundin3ef3bfc2018-04-10 15:10:26 +02001099 "neteq/expand_uma_logger.cc",
1100 "neteq/expand_uma_logger.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001101 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001102 "neteq/merge.cc",
1103 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001104 "neteq/nack_tracker.cc",
1105 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001106 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001107 "neteq/neteq_impl.cc",
1108 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001109 "neteq/normal.cc",
1110 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001111 "neteq/packet.cc",
1112 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001113 "neteq/packet_buffer.cc",
1114 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001115 "neteq/post_decode_vad.cc",
1116 "neteq/post_decode_vad.h",
1117 "neteq/preemptive_expand.cc",
1118 "neteq/preemptive_expand.h",
1119 "neteq/random_vector.cc",
1120 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001121 "neteq/red_payload_splitter.cc",
1122 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001123 "neteq/rtcp.cc",
1124 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001125 "neteq/statistics_calculator.cc",
1126 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001127 "neteq/sync_buffer.cc",
1128 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001129 "neteq/tick_timer.cc",
1130 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001131 "neteq/time_stretch.cc",
1132 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001133 "neteq/timestamp_scaler.cc",
1134 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001135 ]
1136
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001137 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001138 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001139 ":cng",
kwiberg65cb70d2017-03-03 06:16:28 -08001140 ":neteq_decoder_enum",
mbonadei1140f972017-04-26 03:38:35 -07001141 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001142 "../..:typedefs",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001143 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001144 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001145 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001146 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001147 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01001148 "../../common_audio:common_audio_c",
Jonas Olssonabbe8412018-04-03 13:40:05 +02001149 "../../rtc_base:audio_format_to_string",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001150 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001151 "../../rtc_base:gtest_prod",
1152 "../../rtc_base:rtc_base_approved",
Karl Wiberg12edf4c2018-03-07 14:18:56 +01001153 "../../rtc_base:safe_minmax",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001154 "../../rtc_base:sanitizer",
Karl Wiberg80ba3332018-02-05 10:33:35 +01001155 "../../rtc_base/system:fallthrough",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001156 "../../system_wrappers:field_trial_api",
1157 "../../system_wrappers:metrics_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001158 "//third_party/abseil-cpp/absl/types:optional",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001159 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001160}
kjellanderfb114242016-06-13 00:19:48 -07001161
henrik.lundin58466f62016-10-05 02:27:42 -07001162# Although providing only test support, this target must be outside of the
1163# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1164# that ultimately are built and run as a part of the Chromium ecosystem, which
1165# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001166rtc_source_set("neteq_tools_minimal") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001167 visibility += webrtc_default_visibility
henrik.lundin58466f62016-10-05 02:27:42 -07001168 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001169 "neteq/tools/audio_sink.cc",
1170 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001171 "neteq/tools/encode_neteq_input.cc",
1172 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001173 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001174 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001175 "neteq/tools/neteq_test.cc",
1176 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001177 "neteq/tools/packet.cc",
1178 "neteq/tools/packet.h",
1179 "neteq/tools/packet_source.cc",
1180 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001181 ]
1182
kjellandere40a7ee2016-10-16 23:56:12 -07001183 if (!build_with_chromium && is_clang) {
1184 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001185 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1186 }
kjellander676e08f2016-12-07 08:23:27 -08001187
1188 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001189 ":neteq",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001190 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001191 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001192 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001193 "../../api/audio:audio_frame_api",
ossueb1fde42017-05-02 06:46:30 -07001194 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001195 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001196 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001197 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001198 "../rtp_rtcp",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001199 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -08001200 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001201}
1202
mbonadei3edccb92017-06-01 04:47:20 -07001203rtc_source_set("neteq_test_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001204 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001205 testonly = true
1206 sources = [
1207 "neteq/tools/audio_checksum.h",
1208 "neteq/tools/audio_loop.cc",
1209 "neteq/tools/audio_loop.h",
1210 "neteq/tools/constant_pcm_packet_source.cc",
1211 "neteq/tools/constant_pcm_packet_source.h",
1212 "neteq/tools/output_audio_file.h",
1213 "neteq/tools/output_wav_file.h",
1214 "neteq/tools/rtp_file_source.cc",
1215 "neteq/tools/rtp_file_source.h",
1216 "neteq/tools/rtp_generator.cc",
1217 "neteq/tools/rtp_generator.h",
1218 ]
1219
1220 public_configs = [ ":neteq_tools_config" ]
1221
1222 if (!build_with_chromium && is_clang) {
1223 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1224 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1225 }
1226
1227 deps = [
1228 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001229 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001230 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001231 "../../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +01001232 "../../api:libjingle_peerconnection_api",
mbonadei3edccb92017-06-01 04:47:20 -07001233 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001234 "../../rtc_base:checks",
Joachim Bauch4e909192017-12-19 22:27:51 +01001235 "../../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001236 "../../rtc_base:rtc_base_approved",
1237 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001238 "../../test:rtp_test_utils",
1239 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001240 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001241 ]
1242
1243 public_deps = [
1244 ":neteq_tools",
1245 ":neteq_tools_minimal",
1246 ]
1247
1248 if (rtc_enable_protobuf) {
1249 sources += [
1250 "neteq/tools/neteq_packet_source_input.cc",
1251 "neteq/tools/neteq_packet_source_input.h",
1252 ]
1253 deps += [ ":rtc_event_log_source" ]
1254 }
1255}
1256
1257config("neteq_tools_config") {
1258 include_dirs = [ "tools" ]
1259}
1260
1261rtc_source_set("neteq_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001262 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001263 sources = [
1264 "neteq/tools/fake_decode_from_file.cc",
1265 "neteq/tools/fake_decode_from_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001266 "neteq/tools/neteq_delay_analyzer.cc",
1267 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001268 "neteq/tools/neteq_replacement_input.cc",
1269 "neteq/tools/neteq_replacement_input.h",
Minyue Li2b415da2018-04-16 14:33:53 +02001270 "neteq/tools/neteq_stats_getter.cc",
1271 "neteq/tools/neteq_stats_getter.h",
mbonadei3edccb92017-06-01 04:47:20 -07001272 ]
1273
1274 public_configs = [ ":neteq_tools_config" ]
1275
1276 if (!build_with_chromium && is_clang) {
1277 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1278 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1279 }
1280
1281 deps = [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001282 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001283 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001284 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001285 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001286 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001287 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001288 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001289 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001290 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001291 "//third_party/abseil-cpp/absl/types:optional",
mbonadei3edccb92017-06-01 04:47:20 -07001292 ]
1293
1294 public_deps = [
Ivo Creusen385b10b2017-10-13 12:37:27 +02001295 ":neteq_input_audio_tools",
mbonadei3edccb92017-06-01 04:47:20 -07001296 ":neteq_tools_minimal",
1297 ]
1298}
1299
Ivo Creusen385b10b2017-10-13 12:37:27 +02001300rtc_source_set("neteq_input_audio_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001301 visibility += webrtc_default_visibility
Ivo Creusen385b10b2017-10-13 12:37:27 +02001302 sources = [
1303 "neteq/tools/input_audio_file.cc",
1304 "neteq/tools/input_audio_file.h",
1305 "neteq/tools/resample_input_audio_file.cc",
1306 "neteq/tools/resample_input_audio_file.h",
1307 ]
1308
1309 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001310 "../..:typedefs",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001311 "../..:webrtc_common",
1312 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001313 "../../rtc_base:checks",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001314 "../../rtc_base:rtc_base_approved",
1315 ]
1316}
1317
mbonadei3edccb92017-06-01 04:47:20 -07001318if (rtc_enable_protobuf) {
1319 rtc_static_library("rtc_event_log_source") {
1320 testonly = true
1321
mbonadei3edccb92017-06-01 04:47:20 -07001322 sources = [
1323 "neteq/tools/rtc_event_log_source.cc",
1324 "neteq/tools/rtc_event_log_source.h",
1325 ]
1326
1327 if (!build_with_chromium && is_clang) {
1328 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1329 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1330 }
1331
1332 deps = [
Patrik Höglundebe62402017-11-24 13:51:52 +01001333 ":neteq_tools_minimal",
mbonadei3edccb92017-06-01 04:47:20 -07001334 "../../logging:rtc_event_log_parser",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001335 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001336 "../../rtc_base:rtc_base_approved",
Mirko Bonadei818d9102017-12-12 12:46:13 +01001337 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001338 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001339 ]
1340 public_deps = [
1341 "../../logging:rtc_event_log_proto",
1342 ]
1343 }
1344}
1345
kjellanderfb114242016-06-13 00:19:48 -07001346if (rtc_include_tests) {
Patrik Höglundb960e412018-01-05 11:46:26 +01001347 rtc_source_set("mocks") {
1348 testonly = true
1349 sources = [
1350 "audio_network_adaptor/mock/mock_audio_network_adaptor.h",
1351 "audio_network_adaptor/mock/mock_controller.h",
1352 "audio_network_adaptor/mock/mock_controller_manager.h",
1353 "audio_network_adaptor/mock/mock_debug_dump_writer.h",
1354 ]
1355 deps = [
1356 ":audio_network_adaptor",
1357 "../../test:test_support",
1358 ]
1359 }
1360
kjellander6ceab082016-10-28 05:44:03 -07001361 group("audio_coding_tests") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001362 visibility += webrtc_default_visibility
kjellander6ceab082016-10-28 05:44:03 -07001363 testonly = true
1364 public_deps = [
kjellander6ceab082016-10-28 05:44:03 -07001365 ":acm_receive_test",
1366 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001367 ":audio_codec_speed_tests",
1368 ":audio_decoder_unittests",
1369 ":audio_decoder_unittests",
1370 ":delay_test",
1371 ":g711_test",
1372 ":g722_test",
1373 ":ilbc_test",
kjellander6ceab082016-10-28 05:44:03 -07001374 ":isac_api_test",
1375 ":isac_fix_test",
1376 ":isac_switch_samprate_test",
1377 ":isac_test",
1378 ":neteq_ilbc_quality_test",
1379 ":neteq_isac_quality_test",
1380 ":neteq_opus_quality_test",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001381 ":neteq_pcm16b_quality_test",
kjellander6ceab082016-10-28 05:44:03 -07001382 ":neteq_pcmu_quality_test",
1383 ":neteq_speed_test",
1384 ":rtp_analyze",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001385 ":rtp_encode",
Henrik Lundin81af4142017-11-24 13:39:39 +01001386 ":rtp_jitter",
kjellander6ceab082016-10-28 05:44:03 -07001387 ":rtpcat",
1388 ":webrtc_opus_fec_test",
1389 ]
1390 if (rtc_enable_protobuf) {
1391 public_deps += [ ":neteq_rtpplay" ]
1392 }
1393 }
1394
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001395 rtc_source_set("audio_coding_modules_tests") {
1396 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001397 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001398
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001399 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001400 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001401 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001402 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001403 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001404 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001405 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001406 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001407 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001408 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001409 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001410 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001411 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001412 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001413 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001414 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001415 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001416 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001417 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001418 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001419 "test/Tester.cc",
1420 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001421 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001422 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001423 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001424 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001425 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001426 "test/target_delay_unittest.cc",
1427 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001428 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001429 ]
1430 deps = [
1431 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001432 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001433 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001434 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001435 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001436 "../..:typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001437 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001438 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001439 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001440 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001441 "../../rtc_base:rtc_base_approved",
Karl Wiberg2b857922018-03-23 14:53:54 +01001442 "../../rtc_base/synchronization:rw_lock_wrapper",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001443 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001444 "../../test:fileutils",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001445 "../../test:test_support",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001446 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001447 ]
1448 defines = audio_coding_defines
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001449 if (!build_with_chromium && is_clang) {
1450 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1451 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1452 }
1453 }
1454
ehmaldonado021eef32017-01-05 07:09:50 -08001455 rtc_source_set("audio_coding_perf_tests") {
1456 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001457 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001458
ehmaldonado021eef32017-01-05 07:09:50 -08001459 sources = [
1460 "codecs/opus/opus_complexity_unittest.cc",
1461 "neteq/test/neteq_performance_unittest.cc",
1462 ]
1463 deps = [
1464 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001465 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001466 "../..:typedefs",
ehmaldonado021eef32017-01-05 07:09:50 -08001467 "../..:webrtc_common",
Karl Wiberg7275e182017-10-25 09:57:40 +02001468 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001469 "../../rtc_base:protobuf_utils",
1470 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001471 "../../system_wrappers",
1472 "../../system_wrappers:field_trial_api",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001473 "../../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +01001474 "../../test:perf_test",
ehmaldonado021eef32017-01-05 07:09:50 -08001475 "../../test:test_support",
1476 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001477
ehmaldonado021eef32017-01-05 07:09:50 -08001478 if (!build_with_chromium && is_clang) {
1479 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1480 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1481 }
1482 }
1483
ehmaldonado38a21322016-09-02 04:10:34 -07001484 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001485 testonly = true
1486 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001487 "acm2/acm_receive_test.cc",
1488 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001489 ]
1490
kjellanderfb114242016-06-13 00:19:48 -07001491 defines = audio_coding_defines
1492
1493 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001494 "..:module_api",
kjellanderfb114242016-06-13 00:19:48 -07001495 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001496 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001497 "../../api/audio_codecs:audio_codecs_api",
1498 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001499 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001500 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001501 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001502 "//testing/gtest",
1503 ]
1504 }
1505
ehmaldonado38a21322016-09-02 04:10:34 -07001506 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001507 testonly = true
1508 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001509 "acm2/acm_send_test.cc",
1510 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001511 ]
1512
kjellanderfb114242016-06-13 00:19:48 -07001513 defines = audio_coding_defines
1514
1515 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001516 "../../api/audio:audio_frame_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001517 "../../rtc_base:checks",
kjellanderfb114242016-06-13 00:19:48 -07001518 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001519 ":neteq_tools",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001520 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07001521 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001522 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001523 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001524 "//testing/gtest",
1525 ]
1526 }
1527
ehmaldonado38a21322016-09-02 04:10:34 -07001528 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001529 testonly = true
1530 sources = [
1531 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001532 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001533 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001534 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001535 "test/delay_test.cc",
1536 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001537 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001538 ]
1539
aleloi333f2062016-07-28 01:21:29 -07001540 deps = [
1541 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001542 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001543 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001544 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001545 "../..:typedefs",
aleloi333f2062016-07-28 01:21:29 -07001546 "../../:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001547 "../../api/audio:audio_frame_api",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001548 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001549 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001550 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001551 "../../system_wrappers",
1552 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001553 "../../test:fileutils",
aleloi333f2062016-07-28 01:21:29 -07001554 "../../test:test_support",
1555 "../rtp_rtcp",
1556 "//testing/gtest",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001557 "//third_party/abseil-cpp/absl/types:optional",
aleloi333f2062016-07-28 01:21:29 -07001558 ]
1559 } # delay_test
1560
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001561 audio_decoder_unittests_resources =
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001562 [ "../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001563
1564 if (is_ios) {
1565 bundle_data("audio_decoder_unittests_bundle_data") {
1566 testonly = true
1567 sources = audio_decoder_unittests_resources
1568 outputs = [
1569 "{{bundle_resources_dir}}/{{source_file_part}}",
1570 ]
1571 }
1572 }
1573
ehmaldonado38a21322016-09-02 04:10:34 -07001574 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001575 testonly = true
1576 sources = [
1577 "neteq/audio_decoder_unittest.cc",
1578 ]
1579
kjellandere40a7ee2016-10-16 23:56:12 -07001580 if (!build_with_chromium && is_clang) {
1581 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001582 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001583 }
1584
Patrik Höglund7696bef2018-03-15 15:05:39 +01001585 deps = [
1586 "../../test:fileutils",
1587 ]
charujainddf3e4a2016-08-01 07:49:42 -07001588
1589 defines = neteq_defines
1590
1591 deps += audio_coding_deps
1592 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001593 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001594 ":isac",
1595 ":isac_fix",
1596 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001597 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001598 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001599 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001600 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001601 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001602 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001603 "//testing/gtest",
1604 ]
1605
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001606 data = audio_decoder_unittests_resources
1607
charujainddf3e4a2016-08-01 07:49:42 -07001608 if (is_android) {
1609 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001610 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001611 }
kjellander32c4a202016-08-30 02:53:49 -07001612 if (is_ios) {
1613 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001614 }
1615 } # audio_decoder_unittests
1616
kjellanderfb114242016-06-13 00:19:48 -07001617 if (rtc_enable_protobuf) {
1618 proto_library("neteq_unittest_proto") {
1619 sources = [
1620 "neteq/neteq_unittest.proto",
1621 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001622 proto_out_dir = "modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001623 }
henrik.lundin03153f12016-06-21 05:38:42 -07001624
ehmaldonado38a21322016-09-02 04:10:34 -07001625 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001626 testonly = true
1627 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001628 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001629 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001630 "../../rtc_base:checks",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001631 "../../test:fileutils",
mbonadei1140f972017-04-26 03:38:35 -07001632 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001633 sources = [
1634 "neteq/tools/neteq_rtpplay.cc",
1635 ]
1636
kjellandere40a7ee2016-10-16 23:56:12 -07001637 if (!build_with_chromium && is_clang) {
1638 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001639 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001640 }
1641
henrik.lundin03153f12016-06-21 05:38:42 -07001642 deps += [
1643 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001644 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001645 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001646 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001647 "../../system_wrappers:system_wrappers_default",
1648 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001649 ]
1650 }
kjellanderfb114242016-06-13 00:19:48 -07001651 }
1652
minyue81f1da32017-07-27 05:49:57 -07001653 audio_codec_speed_tests_resources = [
1654 "//resources/audio_coding/music_stereo_48kHz.pcm",
1655 "//resources/audio_coding/speech_mono_16kHz.pcm",
1656 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1657 ]
1658
1659 if (is_ios) {
1660 bundle_data("audio_codec_speed_tests_data") {
1661 testonly = true
1662 sources = audio_codec_speed_tests_resources
1663 outputs = [
1664 "{{bundle_resources_dir}}/{{source_file_part}}",
1665 ]
1666 }
1667 }
1668
ehmaldonado38a21322016-09-02 04:10:34 -07001669 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001670 testonly = true
1671 defines = []
Patrik Höglund3e113432017-12-15 14:40:10 +01001672 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001673 "../..:typedefs",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001674 "../../test:fileutils",
Patrik Höglund3e113432017-12-15 14:40:10 +01001675 ]
aleloie6b60a42016-07-28 02:34:30 -07001676 sources = [
1677 "codecs/isac/fix/test/isac_speed_test.cc",
1678 "codecs/opus/opus_speed_test.cc",
1679 "codecs/tools/audio_codec_speed_test.cc",
1680 "codecs/tools/audio_codec_speed_test.h",
1681 ]
1682
kjellandere40a7ee2016-10-16 23:56:12 -07001683 if (!build_with_chromium && is_clang) {
1684 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001685 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001686 }
1687
minyue81f1da32017-07-27 05:49:57 -07001688 data = audio_codec_speed_tests_resources
1689
aleloie6b60a42016-07-28 02:34:30 -07001690 if (is_android) {
1691 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001692 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001693 }
1694
minyue81f1da32017-07-27 05:49:57 -07001695 if (is_ios) {
1696 deps += [ ":audio_codec_speed_tests_data" ]
1697 }
1698
aleloie6b60a42016-07-28 02:34:30 -07001699 deps += [
1700 ":isac_fix",
1701 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001702 "../..:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001703 "../../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001704 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001705 "../../system_wrappers:metrics_default",
aleloie6b60a42016-07-28 02:34:30 -07001706 "../../system_wrappers:system_wrappers_default",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001707 "../../test:field_trial",
ehmaldonado26bddb92016-11-30 06:12:01 -08001708 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001709 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001710 "//testing/gtest",
1711 ]
1712 }
1713
ehmaldonado38a21322016-09-02 04:10:34 -07001714 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001715 testonly = true
1716 sources = [
1717 "neteq/tools/neteq_external_decoder_test.cc",
1718 "neteq/tools/neteq_external_decoder_test.h",
1719 "neteq/tools/neteq_performance_test.cc",
1720 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001721 ]
1722
kjellandere40a7ee2016-10-16 23:56:12 -07001723 if (!build_with_chromium && is_clang) {
1724 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001725 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001726 }
1727
1728 deps = [
1729 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001730 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001731 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001732 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001733 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001734 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001735 "../../api/audio_codecs:audio_codecs_api",
1736 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001737 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001738 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001739 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001740 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001741 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001742 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001743 ]
1744 }
1745
ehmaldonado38a21322016-09-02 04:10:34 -07001746 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001747 testonly = true
1748 sources = [
1749 "neteq/tools/neteq_quality_test.cc",
1750 "neteq/tools/neteq_quality_test.h",
1751 ]
1752
kjellandere40a7ee2016-10-16 23:56:12 -07001753 if (!build_with_chromium && is_clang) {
1754 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001755 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001756 }
1757
1758 deps = [
1759 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001760 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001761 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001762 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001763 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001764 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001765 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001766 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001767 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001768 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001769 ]
1770 }
1771
Henrik Lundin1391bd42017-11-24 09:28:57 +01001772 rtc_executable("rtp_encode") {
aleloi82667732016-08-02 01:45:50 -07001773 testonly = true
1774
Henrik Lundin1391bd42017-11-24 09:28:57 +01001775 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001776 "../..:typedefs",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001777 ":audio_coding",
1778 ":neteq_input_audio_tools",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001779 "../../api/audio:audio_frame_api",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001780 "../../api/audio_codecs/g711:audio_encoder_g711",
1781 "../../api/audio_codecs/L16:audio_encoder_L16",
1782 "../../api/audio_codecs/g722:audio_encoder_g722",
1783 "../../api/audio_codecs/ilbc:audio_encoder_ilbc",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001784 "../../system_wrappers:system_wrappers_default",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001785 "../../api/audio_codecs/isac:audio_encoder_isac",
1786 "../../api/audio_codecs/opus:audio_encoder_opus",
1787 "../../rtc_base:rtc_base_approved",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001788 ]
aleloi82667732016-08-02 01:45:50 -07001789
1790 sources = [
Henrik Lundin1391bd42017-11-24 09:28:57 +01001791 "neteq/tools/rtp_encode.cc",
aleloi82667732016-08-02 01:45:50 -07001792 ]
1793
Henrik Lundin1391bd42017-11-24 09:28:57 +01001794 defines = audio_coding_defines
aleloi82667732016-08-02 01:45:50 -07001795 }
1796
Henrik Lundin81af4142017-11-24 13:39:39 +01001797 rtc_executable("rtp_jitter") {
aleloi76cbe192016-08-02 02:05:03 -07001798 testonly = true
1799
Henrik Lundin81af4142017-11-24 13:39:39 +01001800 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001801 "../..:typedefs",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001802 "../../system_wrappers:system_wrappers_default",
Henrik Lundin81af4142017-11-24 13:39:39 +01001803 "../rtp_rtcp:rtp_rtcp_format",
1804 "../../api:array_view",
1805 "../../rtc_base:rtc_base_approved",
Henrik Lundin81af4142017-11-24 13:39:39 +01001806 ]
1807
aleloi76cbe192016-08-02 02:05:03 -07001808 sources = [
Henrik Lundin81af4142017-11-24 13:39:39 +01001809 "neteq/tools/rtp_jitter.cc",
aleloi76cbe192016-08-02 02:05:03 -07001810 ]
1811
Henrik Lundin81af4142017-11-24 13:39:39 +01001812 defines = audio_coding_defines
aleloi76cbe192016-08-02 02:05:03 -07001813 }
1814
ehmaldonado38a21322016-09-02 04:10:34 -07001815 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001816 testonly = true
1817
1818 sources = [
1819 "neteq/tools/rtpcat.cc",
1820 ]
1821
1822 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001823 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001824 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001825 "../../system_wrappers:system_wrappers_default",
1826 "../../test:rtp_test_utils",
1827 "//testing/gtest",
1828 ]
1829 }
1830
ehmaldonado38a21322016-09-02 04:10:34 -07001831 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001832 testonly = true
1833
1834 sources = [
1835 "neteq/tools/rtp_analyze.cc",
1836 ]
1837
1838 deps = [
1839 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001840 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001841 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001842 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001843 "../../system_wrappers:system_wrappers_default",
1844 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001845 ]
1846
kjellandere40a7ee2016-10-16 23:56:12 -07001847 if (!build_with_chromium && is_clang) {
1848 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001849 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001850 }
1851 }
aleloi630c6d52016-08-10 02:11:30 -07001852
ehmaldonado38a21322016-09-02 04:10:34 -07001853 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001854 testonly = true
1855
1856 sources = [
1857 "neteq/test/neteq_opus_quality_test.cc",
1858 ]
1859
1860 deps = [
1861 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001862 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001863 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001864 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001865 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001866 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001867 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001868 ]
aleloi630c6d52016-08-10 02:11:30 -07001869 }
aleloi116fd612016-08-10 04:16:36 -07001870
ehmaldonado38a21322016-09-02 04:10:34 -07001871 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001872 testonly = true
1873
1874 sources = [
1875 "neteq/test/neteq_speed_test.cc",
1876 ]
1877
1878 deps = [
1879 ":neteq",
1880 ":neteq_test_support",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001881 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001882 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001883 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001884 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001885 "../../test:fileutils",
aleloi116fd612016-08-10 04:16:36 -07001886 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001887 ]
1888 }
aleloi63910122016-08-10 04:41:14 -07001889
ehmaldonado38a21322016-09-02 04:10:34 -07001890 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001891 testonly = true
1892
1893 sources = [
1894 "neteq/test/neteq_ilbc_quality_test.cc",
1895 ]
1896
1897 deps = [
1898 ":ilbc",
1899 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001900 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001901 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001902 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001903 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001904 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001905 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001906 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001907 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001908 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001909 ]
1910 }
aleloi6df36dc2016-08-10 05:04:47 -07001911
ehmaldonado38a21322016-09-02 04:10:34 -07001912 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001913 testonly = true
1914
1915 sources = [
1916 "neteq/test/neteq_isac_quality_test.cc",
1917 ]
1918
1919 deps = [
1920 ":isac_fix",
1921 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001922 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001923 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001924 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001925 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001926 ]
1927 }
aleloic4ac7002016-08-10 05:06:27 -07001928
ehmaldonado38a21322016-09-02 04:10:34 -07001929 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001930 testonly = true
1931
1932 sources = [
1933 "neteq/test/neteq_pcmu_quality_test.cc",
1934 ]
1935
1936 deps = [
1937 ":g711",
1938 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001939 ":neteq_quality_test_support",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001940 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001941 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001942 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001943 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001944 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001945 ]
1946 }
aleloib7186d02016-08-16 01:47:16 -07001947
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001948 rtc_executable("neteq_pcm16b_quality_test") {
1949 testonly = true
1950
1951 sources = [
1952 "neteq/test/neteq_pcm16b_quality_test.cc",
1953 ]
1954
1955 deps = [
1956 ":neteq",
1957 ":neteq_quality_test_support",
1958 ":pcm16b",
1959 "../../rtc_base:checks",
1960 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001961 "../../test:fileutils",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001962 "../../test:test_main",
1963 "//testing/gtest",
1964 ]
1965 }
1966
ehmaldonado38a21322016-09-02 04:10:34 -07001967 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001968 testonly = true
1969
1970 sources = [
1971 "codecs/isac/fix/test/kenny.cc",
1972 ]
1973
1974 deps = [
1975 ":isac_fix",
Edward Lemure66572b2018-01-05 15:34:09 +01001976 "../../test:perf_test",
aleloib7186d02016-08-16 01:47:16 -07001977 "../../test:test_support",
1978 ]
1979
ehmaldonado25586ce2017-09-07 23:18:35 -07001980 data = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001981 "../../resources/speech_and_misc_wb.pcm",
ehmaldonado25586ce2017-09-07 23:18:35 -07001982 ]
aleloib7186d02016-08-16 01:47:16 -07001983 }
aleloi16f55a12016-08-23 08:08:23 -07001984
kjellander7439f972016-12-05 22:47:46 -08001985 rtc_source_set("isac_test_util") {
1986 testonly = true
1987 sources = [
1988 "codecs/isac/main/util/utility.c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001989 "codecs/isac/main/util/utility.h",
kjellander7439f972016-12-05 22:47:46 -08001990 ]
1991 }
1992
ehmaldonado38a21322016-09-02 04:10:34 -07001993 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001994 testonly = true
1995
1996 sources = [
1997 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001998 ]
1999
2000 include_dirs = [
2001 "codecs/isac/main/include",
2002 "codecs/isac/main/test",
2003 "codecs/isac/main/util",
2004 ]
2005
2006 deps = [
2007 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002008 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002009 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07002010 ]
ivoce51b41a2016-08-24 02:25:57 -07002011 }
2012
ehmaldonado38a21322016-09-02 04:10:34 -07002013 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07002014 testonly = true
2015
2016 sources = [
2017 "codecs/g711/test/testG711.cc",
2018 ]
2019
aleloi16f55a12016-08-23 08:08:23 -07002020 deps = [
2021 ":g711",
2022 ]
2023 }
aleloi9a117842016-08-23 08:36:10 -07002024
ehmaldonado38a21322016-09-02 04:10:34 -07002025 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07002026 testonly = true
2027
2028 sources = [
2029 "codecs/g722/test/testG722.cc",
2030 ]
2031
aleloi9a117842016-08-23 08:36:10 -07002032 deps = [
2033 ":g722",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002034 "../..:typedefs",
aleloi9a117842016-08-23 08:36:10 -07002035 "../..:webrtc_common",
2036 ]
2037 }
ivoc2c670db2016-08-24 06:11:18 -07002038
ehmaldonado38a21322016-09-02 04:10:34 -07002039 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07002040 testonly = true
2041
2042 sources = [
2043 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07002044 ]
2045
aleloicfee2152016-08-29 04:09:19 -07002046 deps = [
2047 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002048 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002049 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07002050 ]
2051
2052 include_dirs = [
2053 "codecs/isac/main/include",
2054 "codecs/isac/main/test",
2055 "codecs/isac/main/util",
2056 ]
2057 }
2058
ehmaldonado38a21322016-09-02 04:10:34 -07002059 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002060 testonly = true
2061
2062 sources = [
2063 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002064 ]
2065
aleloicfee2152016-08-29 04:09:19 -07002066 deps = [
2067 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002068 ":isac_test_util",
Mirko Bonadei08973ee2018-02-01 14:12:55 +01002069 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002070 "../../common_audio:common_audio_c",
aleloicfee2152016-08-29 04:09:19 -07002071 ]
2072
2073 include_dirs = [
2074 "codecs/isac/main/include",
2075 "codecs/isac/main/test",
2076 "codecs/isac/main/util",
2077 "../../common_audio/signal_processing/include",
2078 ]
2079 }
2080
ehmaldonado38a21322016-09-02 04:10:34 -07002081 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002082 testonly = true
2083
2084 sources = [
2085 "codecs/ilbc/test/iLBC_test.c",
2086 ]
2087
aleloicfee2152016-08-29 04:09:19 -07002088 deps = [
2089 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002090 ]
2091 }
2092
ehmaldonado38a21322016-09-02 04:10:34 -07002093 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002094 testonly = true
2095
2096 sources = [
2097 "codecs/opus/opus_fec_test.cc",
2098 ]
2099
2100 deps = [
2101 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002102 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002103 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002104 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08002105 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002106 "//testing/gtest",
2107 ]
2108
kjellandere40a7ee2016-10-16 23:56:12 -07002109 if (!build_with_chromium && is_clang) {
2110 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002111 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002112 }
2113 }
ehmaldonado36268652017-01-19 08:27:11 -08002114
2115 rtc_source_set("audio_coding_unittests") {
2116 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00002117 visibility += webrtc_default_visibility
ehmaldonado36268652017-01-19 08:27:11 -08002118
2119 sources = [
2120 "acm2/acm_receiver_unittest.cc",
2121 "acm2/audio_coding_module_unittest.cc",
2122 "acm2/call_statistics_unittest.cc",
2123 "acm2/codec_manager_unittest.cc",
2124 "acm2/rent_a_codec_unittest.cc",
2125 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2126 "audio_network_adaptor/bitrate_controller_unittest.cc",
2127 "audio_network_adaptor/channel_controller_unittest.cc",
2128 "audio_network_adaptor/controller_manager_unittest.cc",
2129 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002130 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002131 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2132 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002133 "audio_network_adaptor/frame_length_controller_unittest.cc",
elad.alon326263a2017-03-29 03:16:58 -07002134 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002135 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002136 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002137 "codecs/cng/audio_encoder_cng_unittest.cc",
2138 "codecs/cng/cng_unittest.cc",
2139 "codecs/ilbc/ilbc_unittest.cc",
2140 "codecs/isac/fix/source/filterbanks_unittest.cc",
2141 "codecs/isac/fix/source/filters_unittest.cc",
2142 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2143 "codecs/isac/fix/source/transform_unittest.cc",
2144 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2145 "codecs/isac/main/source/isac_unittest.cc",
2146 "codecs/isac/unittest.cc",
2147 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002148 "codecs/opus/audio_encoder_opus_unittest.cc",
Alex Luebseeb27652017-11-20 11:13:56 -08002149 "codecs/opus/opus_bandwidth_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002150 "codecs/opus/opus_unittest.cc",
2151 "codecs/red/audio_encoder_copy_red_unittest.cc",
2152 "neteq/audio_multi_vector_unittest.cc",
2153 "neteq/audio_vector_unittest.cc",
2154 "neteq/background_noise_unittest.cc",
2155 "neteq/buffer_level_filter_unittest.cc",
2156 "neteq/comfort_noise_unittest.cc",
2157 "neteq/decision_logic_unittest.cc",
2158 "neteq/decoder_database_unittest.cc",
2159 "neteq/delay_manager_unittest.cc",
2160 "neteq/delay_peak_detector_unittest.cc",
2161 "neteq/dsp_helper_unittest.cc",
2162 "neteq/dtmf_buffer_unittest.cc",
2163 "neteq/dtmf_tone_generator_unittest.cc",
2164 "neteq/expand_unittest.cc",
2165 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002166 "neteq/mock/mock_buffer_level_filter.h",
2167 "neteq/mock/mock_decoder_database.h",
2168 "neteq/mock/mock_delay_manager.h",
2169 "neteq/mock/mock_delay_peak_detector.h",
2170 "neteq/mock/mock_dtmf_buffer.h",
2171 "neteq/mock/mock_dtmf_tone_generator.h",
2172 "neteq/mock/mock_expand.h",
2173 "neteq/mock/mock_external_decoder_pcm16b.h",
2174 "neteq/mock/mock_packet_buffer.h",
2175 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002176 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002177 "neteq/nack_tracker_unittest.cc",
2178 "neteq/neteq_external_decoder_unittest.cc",
2179 "neteq/neteq_impl_unittest.cc",
2180 "neteq/neteq_network_stats_unittest.cc",
2181 "neteq/neteq_stereo_unittest.cc",
2182 "neteq/neteq_unittest.cc",
2183 "neteq/normal_unittest.cc",
2184 "neteq/packet_buffer_unittest.cc",
2185 "neteq/post_decode_vad_unittest.cc",
2186 "neteq/random_vector_unittest.cc",
2187 "neteq/red_payload_splitter_unittest.cc",
Henrik Lundinac0a5032017-09-25 12:22:46 +02002188 "neteq/statistics_calculator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002189 "neteq/sync_buffer_unittest.cc",
2190 "neteq/tick_timer_unittest.cc",
2191 "neteq/time_stretch_unittest.cc",
2192 "neteq/timestamp_scaler_unittest.cc",
2193 "neteq/tools/input_audio_file_unittest.cc",
2194 "neteq/tools/packet_unittest.cc",
2195 ]
2196
2197 deps = [
2198 ":acm_receive_test",
2199 ":acm_send_test",
2200 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002201 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002202 ":audio_format_conversion",
2203 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002204 ":cng",
2205 ":g711",
2206 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002207 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002208 ":isac_c",
2209 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002210 ":legacy_encoded_audio_frame",
Patrik Höglundb960e412018-01-05 11:46:26 +01002211 ":mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002212 ":neteq",
2213 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002214 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002215 ":pcm16b",
2216 ":red",
2217 ":rent_a_codec",
2218 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002219 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002220 "../..:typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002221 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02002222 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08002223 "../../api/audio_codecs:audio_codecs_api",
2224 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002225 "../../api/audio_codecs:builtin_audio_encoder_factory",
Alex Luebseeb27652017-11-20 11:13:56 -08002226 "../../api/audio_codecs/opus:audio_decoder_opus",
Karl Wiberg7275e182017-10-25 09:57:40 +02002227 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonado36268652017-01-19 08:27:11 -08002228 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002229 "../../common_audio:common_audio_c",
charujain9a451162017-09-15 03:51:34 -07002230 "../../common_audio:mock_common_audio",
Patrik Höglund731082c2018-01-03 09:08:20 +01002231 "../../logging:mocks",
Qingsi Wang970b0882018-02-01 11:04:46 -08002232 "../../logging:rtc_event_audio",
Elad Alon4a87e1c2017-10-03 16:11:34 +02002233 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002234 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002235 "../../rtc_base:protobuf_utils",
2236 "../../rtc_base:rtc_base",
2237 "../../rtc_base:rtc_base_approved",
2238 "../../rtc_base:rtc_base_tests_utils",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002239 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01002240 "../../system_wrappers",
2241 "../../system_wrappers:cpu_features_api",
kwiberg37e99fd2017-04-10 05:15:48 -07002242 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002243 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002244 "../../test:fileutils",
ehmaldonado36268652017-01-19 08:27:11 -08002245 "../../test:rtp_test_utils",
2246 "../../test:test_common",
2247 "../../test:test_support",
ehmaldonado36268652017-01-19 08:27:11 -08002248 "//testing/gtest",
ehmaldonado36268652017-01-19 08:27:11 -08002249 ]
2250
2251 defines = audio_coding_defines
2252
2253 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002254 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002255 deps += [
2256 ":ana_config_proto",
2257 ":neteq_unittest_proto",
2258 ]
2259 }
2260
2261 if (!build_with_chromium && is_clang) {
2262 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2263 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2264 }
2265 }
kjellanderfb114242016-06-13 00:19:48 -07002266}
kwiberg087bd342017-02-10 08:15:44 -08002267
2268# For backwards compatibility only! Use
2269# webrtc/api/audio_codecs:audio_codecs_api instead.
2270# TODO(kwiberg): Remove this.
2271rtc_source_set("audio_decoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002272 visibility += [ "*" ]
kwiberg087bd342017-02-10 08:15:44 -08002273 sources = [
2274 "codecs/audio_decoder.h",
2275 ]
2276 deps = [
2277 "../../api/audio_codecs:audio_codecs_api",
2278 ]
2279}
2280
2281# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002282# webrtc/api/audio_codecs:audio_codecs_api instead.
2283# TODO(ossu): Remove this.
2284rtc_source_set("audio_encoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002285 visibility += [ "*" ]
ossueb1fde42017-05-02 06:46:30 -07002286 sources = [
2287 "codecs/audio_encoder.h",
2288 ]
2289 deps = [
2290 "../../api/audio_codecs:audio_codecs_api",
2291 ]
2292}