blob: 578b442bdd747d06e83ac123625883bdb3d5c1c0 [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",
Henrik Lundin1ff41eb2018-06-21 12:36:28 +00001084 "neteq/decision_logic_fax.cc",
1085 "neteq/decision_logic_fax.h",
1086 "neteq/decision_logic_normal.cc",
1087 "neteq/decision_logic_normal.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001088 "neteq/decoder_database.cc",
1089 "neteq/decoder_database.h",
1090 "neteq/defines.h",
1091 "neteq/delay_manager.cc",
1092 "neteq/delay_manager.h",
1093 "neteq/delay_peak_detector.cc",
1094 "neteq/delay_peak_detector.h",
1095 "neteq/dsp_helper.cc",
1096 "neteq/dsp_helper.h",
1097 "neteq/dtmf_buffer.cc",
1098 "neteq/dtmf_buffer.h",
1099 "neteq/dtmf_tone_generator.cc",
1100 "neteq/dtmf_tone_generator.h",
1101 "neteq/expand.cc",
1102 "neteq/expand.h",
Henrik Lundin3ef3bfc2018-04-10 15:10:26 +02001103 "neteq/expand_uma_logger.cc",
1104 "neteq/expand_uma_logger.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001105 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001106 "neteq/merge.cc",
1107 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001108 "neteq/nack_tracker.cc",
1109 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001110 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001111 "neteq/neteq_impl.cc",
1112 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001113 "neteq/normal.cc",
1114 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001115 "neteq/packet.cc",
1116 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001117 "neteq/packet_buffer.cc",
1118 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001119 "neteq/post_decode_vad.cc",
1120 "neteq/post_decode_vad.h",
1121 "neteq/preemptive_expand.cc",
1122 "neteq/preemptive_expand.h",
1123 "neteq/random_vector.cc",
1124 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001125 "neteq/red_payload_splitter.cc",
1126 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001127 "neteq/rtcp.cc",
1128 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001129 "neteq/statistics_calculator.cc",
1130 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001131 "neteq/sync_buffer.cc",
1132 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001133 "neteq/tick_timer.cc",
1134 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001135 "neteq/time_stretch.cc",
1136 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001137 "neteq/timestamp_scaler.cc",
1138 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001139 ]
1140
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001141 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001142 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001143 ":cng",
kwiberg65cb70d2017-03-03 06:16:28 -08001144 ":neteq_decoder_enum",
mbonadei1140f972017-04-26 03:38:35 -07001145 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001146 "../..:typedefs",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001147 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001148 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001149 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001150 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001151 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01001152 "../../common_audio:common_audio_c",
Jonas Olssonabbe8412018-04-03 13:40:05 +02001153 "../../rtc_base:audio_format_to_string",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001154 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001155 "../../rtc_base:gtest_prod",
1156 "../../rtc_base:rtc_base_approved",
Karl Wiberg12edf4c2018-03-07 14:18:56 +01001157 "../../rtc_base:safe_minmax",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001158 "../../rtc_base:sanitizer",
Karl Wiberg80ba3332018-02-05 10:33:35 +01001159 "../../rtc_base/system:fallthrough",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001160 "../../system_wrappers:field_trial_api",
1161 "../../system_wrappers:metrics_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001162 "//third_party/abseil-cpp/absl/types:optional",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001163 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001164}
kjellanderfb114242016-06-13 00:19:48 -07001165
henrik.lundin58466f62016-10-05 02:27:42 -07001166# Although providing only test support, this target must be outside of the
1167# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1168# that ultimately are built and run as a part of the Chromium ecosystem, which
1169# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001170rtc_source_set("neteq_tools_minimal") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001171 visibility += webrtc_default_visibility
henrik.lundin58466f62016-10-05 02:27:42 -07001172 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001173 "neteq/tools/audio_sink.cc",
1174 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001175 "neteq/tools/encode_neteq_input.cc",
1176 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001177 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001178 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001179 "neteq/tools/neteq_test.cc",
1180 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001181 "neteq/tools/packet.cc",
1182 "neteq/tools/packet.h",
1183 "neteq/tools/packet_source.cc",
1184 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001185 ]
1186
kjellandere40a7ee2016-10-16 23:56:12 -07001187 if (!build_with_chromium && is_clang) {
1188 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001189 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1190 }
kjellander676e08f2016-12-07 08:23:27 -08001191
1192 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001193 ":neteq",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001194 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001195 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001196 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001197 "../../api/audio:audio_frame_api",
ossueb1fde42017-05-02 06:46:30 -07001198 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001199 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001200 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001201 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001202 "../rtp_rtcp",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001203 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -08001204 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001205}
1206
mbonadei3edccb92017-06-01 04:47:20 -07001207rtc_source_set("neteq_test_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001208 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001209 testonly = true
1210 sources = [
1211 "neteq/tools/audio_checksum.h",
1212 "neteq/tools/audio_loop.cc",
1213 "neteq/tools/audio_loop.h",
1214 "neteq/tools/constant_pcm_packet_source.cc",
1215 "neteq/tools/constant_pcm_packet_source.h",
1216 "neteq/tools/output_audio_file.h",
1217 "neteq/tools/output_wav_file.h",
1218 "neteq/tools/rtp_file_source.cc",
1219 "neteq/tools/rtp_file_source.h",
1220 "neteq/tools/rtp_generator.cc",
1221 "neteq/tools/rtp_generator.h",
1222 ]
1223
1224 public_configs = [ ":neteq_tools_config" ]
1225
1226 if (!build_with_chromium && is_clang) {
1227 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1228 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1229 }
1230
1231 deps = [
1232 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001233 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001234 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001235 "../../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +01001236 "../../api:libjingle_peerconnection_api",
mbonadei3edccb92017-06-01 04:47:20 -07001237 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001238 "../../rtc_base:checks",
Joachim Bauch4e909192017-12-19 22:27:51 +01001239 "../../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001240 "../../rtc_base:rtc_base_approved",
1241 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001242 "../../test:rtp_test_utils",
1243 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001244 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001245 ]
1246
1247 public_deps = [
1248 ":neteq_tools",
1249 ":neteq_tools_minimal",
1250 ]
1251
1252 if (rtc_enable_protobuf) {
1253 sources += [
1254 "neteq/tools/neteq_packet_source_input.cc",
1255 "neteq/tools/neteq_packet_source_input.h",
1256 ]
1257 deps += [ ":rtc_event_log_source" ]
1258 }
1259}
1260
1261config("neteq_tools_config") {
1262 include_dirs = [ "tools" ]
1263}
1264
1265rtc_source_set("neteq_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001266 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001267 sources = [
1268 "neteq/tools/fake_decode_from_file.cc",
1269 "neteq/tools/fake_decode_from_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001270 "neteq/tools/neteq_delay_analyzer.cc",
1271 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001272 "neteq/tools/neteq_replacement_input.cc",
1273 "neteq/tools/neteq_replacement_input.h",
Minyue Li2b415da2018-04-16 14:33:53 +02001274 "neteq/tools/neteq_stats_getter.cc",
1275 "neteq/tools/neteq_stats_getter.h",
mbonadei3edccb92017-06-01 04:47:20 -07001276 ]
1277
1278 public_configs = [ ":neteq_tools_config" ]
1279
1280 if (!build_with_chromium && is_clang) {
1281 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1282 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1283 }
1284
1285 deps = [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001286 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001287 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001288 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001289 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001290 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001291 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001292 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001293 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001294 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001295 "//third_party/abseil-cpp/absl/types:optional",
mbonadei3edccb92017-06-01 04:47:20 -07001296 ]
1297
1298 public_deps = [
Ivo Creusen385b10b2017-10-13 12:37:27 +02001299 ":neteq_input_audio_tools",
mbonadei3edccb92017-06-01 04:47:20 -07001300 ":neteq_tools_minimal",
1301 ]
1302}
1303
Ivo Creusen385b10b2017-10-13 12:37:27 +02001304rtc_source_set("neteq_input_audio_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001305 visibility += webrtc_default_visibility
Ivo Creusen385b10b2017-10-13 12:37:27 +02001306 sources = [
1307 "neteq/tools/input_audio_file.cc",
1308 "neteq/tools/input_audio_file.h",
1309 "neteq/tools/resample_input_audio_file.cc",
1310 "neteq/tools/resample_input_audio_file.h",
1311 ]
1312
1313 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001314 "../..:typedefs",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001315 "../..:webrtc_common",
1316 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001317 "../../rtc_base:checks",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001318 "../../rtc_base:rtc_base_approved",
1319 ]
1320}
1321
mbonadei3edccb92017-06-01 04:47:20 -07001322if (rtc_enable_protobuf) {
1323 rtc_static_library("rtc_event_log_source") {
1324 testonly = true
1325
mbonadei3edccb92017-06-01 04:47:20 -07001326 sources = [
1327 "neteq/tools/rtc_event_log_source.cc",
1328 "neteq/tools/rtc_event_log_source.h",
1329 ]
1330
1331 if (!build_with_chromium && is_clang) {
1332 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1333 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1334 }
1335
1336 deps = [
Patrik Höglundebe62402017-11-24 13:51:52 +01001337 ":neteq_tools_minimal",
mbonadei3edccb92017-06-01 04:47:20 -07001338 "../../logging:rtc_event_log_parser",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001339 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001340 "../../rtc_base:rtc_base_approved",
Mirko Bonadei818d9102017-12-12 12:46:13 +01001341 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001342 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001343 ]
1344 public_deps = [
1345 "../../logging:rtc_event_log_proto",
1346 ]
1347 }
1348}
1349
kjellanderfb114242016-06-13 00:19:48 -07001350if (rtc_include_tests) {
Patrik Höglundb960e412018-01-05 11:46:26 +01001351 rtc_source_set("mocks") {
1352 testonly = true
1353 sources = [
1354 "audio_network_adaptor/mock/mock_audio_network_adaptor.h",
1355 "audio_network_adaptor/mock/mock_controller.h",
1356 "audio_network_adaptor/mock/mock_controller_manager.h",
1357 "audio_network_adaptor/mock/mock_debug_dump_writer.h",
1358 ]
1359 deps = [
1360 ":audio_network_adaptor",
1361 "../../test:test_support",
1362 ]
1363 }
1364
kjellander6ceab082016-10-28 05:44:03 -07001365 group("audio_coding_tests") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001366 visibility += webrtc_default_visibility
kjellander6ceab082016-10-28 05:44:03 -07001367 testonly = true
1368 public_deps = [
kjellander6ceab082016-10-28 05:44:03 -07001369 ":acm_receive_test",
1370 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001371 ":audio_codec_speed_tests",
1372 ":audio_decoder_unittests",
1373 ":audio_decoder_unittests",
1374 ":delay_test",
1375 ":g711_test",
1376 ":g722_test",
1377 ":ilbc_test",
kjellander6ceab082016-10-28 05:44:03 -07001378 ":isac_api_test",
1379 ":isac_fix_test",
1380 ":isac_switch_samprate_test",
1381 ":isac_test",
1382 ":neteq_ilbc_quality_test",
1383 ":neteq_isac_quality_test",
1384 ":neteq_opus_quality_test",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001385 ":neteq_pcm16b_quality_test",
kjellander6ceab082016-10-28 05:44:03 -07001386 ":neteq_pcmu_quality_test",
1387 ":neteq_speed_test",
1388 ":rtp_analyze",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001389 ":rtp_encode",
Henrik Lundin81af4142017-11-24 13:39:39 +01001390 ":rtp_jitter",
kjellander6ceab082016-10-28 05:44:03 -07001391 ":rtpcat",
1392 ":webrtc_opus_fec_test",
1393 ]
1394 if (rtc_enable_protobuf) {
1395 public_deps += [ ":neteq_rtpplay" ]
1396 }
1397 }
1398
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001399 rtc_source_set("audio_coding_modules_tests") {
1400 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001401 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001402
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001403 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001404 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001405 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001406 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001407 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001408 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001409 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001410 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001411 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001412 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001413 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001414 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001415 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001416 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001417 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001418 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001419 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001420 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001421 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001422 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001423 "test/Tester.cc",
1424 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001425 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001426 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001427 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001428 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001429 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001430 "test/target_delay_unittest.cc",
1431 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001432 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001433 ]
1434 deps = [
1435 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001436 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001437 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001438 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001439 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001440 "../..:typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001441 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001442 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001443 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001444 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001445 "../../rtc_base:rtc_base_approved",
Karl Wiberg2b857922018-03-23 14:53:54 +01001446 "../../rtc_base/synchronization:rw_lock_wrapper",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001447 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001448 "../../test:fileutils",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001449 "../../test:test_support",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001450 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001451 ]
1452 defines = audio_coding_defines
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001453 if (!build_with_chromium && is_clang) {
1454 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1455 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1456 }
1457 }
1458
ehmaldonado021eef32017-01-05 07:09:50 -08001459 rtc_source_set("audio_coding_perf_tests") {
1460 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001461 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001462
ehmaldonado021eef32017-01-05 07:09:50 -08001463 sources = [
1464 "codecs/opus/opus_complexity_unittest.cc",
1465 "neteq/test/neteq_performance_unittest.cc",
1466 ]
1467 deps = [
1468 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001469 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001470 "../..:typedefs",
ehmaldonado021eef32017-01-05 07:09:50 -08001471 "../..:webrtc_common",
Karl Wiberg7275e182017-10-25 09:57:40 +02001472 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001473 "../../rtc_base:protobuf_utils",
1474 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001475 "../../system_wrappers",
1476 "../../system_wrappers:field_trial_api",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001477 "../../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +01001478 "../../test:perf_test",
ehmaldonado021eef32017-01-05 07:09:50 -08001479 "../../test:test_support",
1480 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001481
ehmaldonado021eef32017-01-05 07:09:50 -08001482 if (!build_with_chromium && is_clang) {
1483 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1484 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1485 }
1486 }
1487
ehmaldonado38a21322016-09-02 04:10:34 -07001488 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001489 testonly = true
1490 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001491 "acm2/acm_receive_test.cc",
1492 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001493 ]
1494
kjellanderfb114242016-06-13 00:19:48 -07001495 defines = audio_coding_defines
1496
1497 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001498 "..:module_api",
kjellanderfb114242016-06-13 00:19:48 -07001499 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001500 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001501 "../../api/audio_codecs:audio_codecs_api",
1502 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001503 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001504 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001505 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001506 "//testing/gtest",
1507 ]
1508 }
1509
ehmaldonado38a21322016-09-02 04:10:34 -07001510 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001511 testonly = true
1512 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001513 "acm2/acm_send_test.cc",
1514 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001515 ]
1516
kjellanderfb114242016-06-13 00:19:48 -07001517 defines = audio_coding_defines
1518
1519 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001520 "../../api/audio:audio_frame_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001521 "../../rtc_base:checks",
kjellanderfb114242016-06-13 00:19:48 -07001522 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001523 ":neteq_tools",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001524 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07001525 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001526 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001527 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001528 "//testing/gtest",
1529 ]
1530 }
1531
ehmaldonado38a21322016-09-02 04:10:34 -07001532 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001533 testonly = true
1534 sources = [
1535 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001536 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001537 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001538 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001539 "test/delay_test.cc",
1540 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001541 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001542 ]
1543
aleloi333f2062016-07-28 01:21:29 -07001544 deps = [
1545 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001546 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001547 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001548 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001549 "../..:typedefs",
aleloi333f2062016-07-28 01:21:29 -07001550 "../../:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001551 "../../api/audio:audio_frame_api",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001552 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001553 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001554 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001555 "../../system_wrappers",
1556 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001557 "../../test:fileutils",
aleloi333f2062016-07-28 01:21:29 -07001558 "../../test:test_support",
1559 "../rtp_rtcp",
1560 "//testing/gtest",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001561 "//third_party/abseil-cpp/absl/types:optional",
aleloi333f2062016-07-28 01:21:29 -07001562 ]
1563 } # delay_test
1564
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001565 audio_decoder_unittests_resources =
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001566 [ "../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001567
1568 if (is_ios) {
1569 bundle_data("audio_decoder_unittests_bundle_data") {
1570 testonly = true
1571 sources = audio_decoder_unittests_resources
1572 outputs = [
1573 "{{bundle_resources_dir}}/{{source_file_part}}",
1574 ]
1575 }
1576 }
1577
ehmaldonado38a21322016-09-02 04:10:34 -07001578 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001579 testonly = true
1580 sources = [
1581 "neteq/audio_decoder_unittest.cc",
1582 ]
1583
kjellandere40a7ee2016-10-16 23:56:12 -07001584 if (!build_with_chromium && is_clang) {
1585 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001586 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001587 }
1588
Patrik Höglund7696bef2018-03-15 15:05:39 +01001589 deps = [
1590 "../../test:fileutils",
1591 ]
charujainddf3e4a2016-08-01 07:49:42 -07001592
1593 defines = neteq_defines
1594
1595 deps += audio_coding_deps
1596 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001597 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001598 ":isac",
1599 ":isac_fix",
1600 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001601 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001602 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001603 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001604 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001605 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001606 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001607 "//testing/gtest",
1608 ]
1609
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001610 data = audio_decoder_unittests_resources
1611
charujainddf3e4a2016-08-01 07:49:42 -07001612 if (is_android) {
1613 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001614 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001615 }
kjellander32c4a202016-08-30 02:53:49 -07001616 if (is_ios) {
1617 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001618 }
1619 } # audio_decoder_unittests
1620
kjellanderfb114242016-06-13 00:19:48 -07001621 if (rtc_enable_protobuf) {
1622 proto_library("neteq_unittest_proto") {
1623 sources = [
1624 "neteq/neteq_unittest.proto",
1625 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001626 proto_out_dir = "modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001627 }
henrik.lundin03153f12016-06-21 05:38:42 -07001628
ehmaldonado38a21322016-09-02 04:10:34 -07001629 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001630 testonly = true
1631 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001632 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001633 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001634 "../../rtc_base:checks",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001635 "../../test:fileutils",
mbonadei1140f972017-04-26 03:38:35 -07001636 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001637 sources = [
1638 "neteq/tools/neteq_rtpplay.cc",
1639 ]
1640
kjellandere40a7ee2016-10-16 23:56:12 -07001641 if (!build_with_chromium && is_clang) {
1642 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001643 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001644 }
1645
henrik.lundin03153f12016-06-21 05:38:42 -07001646 deps += [
1647 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001648 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001649 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001650 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001651 "../../system_wrappers:system_wrappers_default",
1652 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001653 ]
1654 }
kjellanderfb114242016-06-13 00:19:48 -07001655 }
1656
minyue81f1da32017-07-27 05:49:57 -07001657 audio_codec_speed_tests_resources = [
1658 "//resources/audio_coding/music_stereo_48kHz.pcm",
1659 "//resources/audio_coding/speech_mono_16kHz.pcm",
1660 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1661 ]
1662
1663 if (is_ios) {
1664 bundle_data("audio_codec_speed_tests_data") {
1665 testonly = true
1666 sources = audio_codec_speed_tests_resources
1667 outputs = [
1668 "{{bundle_resources_dir}}/{{source_file_part}}",
1669 ]
1670 }
1671 }
1672
ehmaldonado38a21322016-09-02 04:10:34 -07001673 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001674 testonly = true
1675 defines = []
Patrik Höglund3e113432017-12-15 14:40:10 +01001676 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001677 "../..:typedefs",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001678 "../../test:fileutils",
Patrik Höglund3e113432017-12-15 14:40:10 +01001679 ]
aleloie6b60a42016-07-28 02:34:30 -07001680 sources = [
1681 "codecs/isac/fix/test/isac_speed_test.cc",
1682 "codecs/opus/opus_speed_test.cc",
1683 "codecs/tools/audio_codec_speed_test.cc",
1684 "codecs/tools/audio_codec_speed_test.h",
1685 ]
1686
kjellandere40a7ee2016-10-16 23:56:12 -07001687 if (!build_with_chromium && is_clang) {
1688 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001689 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001690 }
1691
minyue81f1da32017-07-27 05:49:57 -07001692 data = audio_codec_speed_tests_resources
1693
aleloie6b60a42016-07-28 02:34:30 -07001694 if (is_android) {
1695 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001696 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001697 }
1698
minyue81f1da32017-07-27 05:49:57 -07001699 if (is_ios) {
1700 deps += [ ":audio_codec_speed_tests_data" ]
1701 }
1702
aleloie6b60a42016-07-28 02:34:30 -07001703 deps += [
1704 ":isac_fix",
1705 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001706 "../..:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001707 "../../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001708 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001709 "../../system_wrappers:metrics_default",
aleloie6b60a42016-07-28 02:34:30 -07001710 "../../system_wrappers:system_wrappers_default",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001711 "../../test:field_trial",
ehmaldonado26bddb92016-11-30 06:12:01 -08001712 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001713 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001714 "//testing/gtest",
1715 ]
1716 }
1717
ehmaldonado38a21322016-09-02 04:10:34 -07001718 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001719 testonly = true
1720 sources = [
1721 "neteq/tools/neteq_external_decoder_test.cc",
1722 "neteq/tools/neteq_external_decoder_test.h",
1723 "neteq/tools/neteq_performance_test.cc",
1724 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001725 ]
1726
kjellandere40a7ee2016-10-16 23:56:12 -07001727 if (!build_with_chromium && is_clang) {
1728 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001729 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001730 }
1731
1732 deps = [
1733 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001734 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001735 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001736 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001737 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001738 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001739 "../../api/audio_codecs:audio_codecs_api",
1740 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001741 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001742 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001743 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001744 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001745 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001746 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001747 ]
1748 }
1749
ehmaldonado38a21322016-09-02 04:10:34 -07001750 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001751 testonly = true
1752 sources = [
1753 "neteq/tools/neteq_quality_test.cc",
1754 "neteq/tools/neteq_quality_test.h",
1755 ]
1756
kjellandere40a7ee2016-10-16 23:56:12 -07001757 if (!build_with_chromium && is_clang) {
1758 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001759 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001760 }
1761
1762 deps = [
1763 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001764 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001765 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001766 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001767 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001768 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001769 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001770 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001771 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001772 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001773 ]
1774 }
1775
Henrik Lundin1391bd42017-11-24 09:28:57 +01001776 rtc_executable("rtp_encode") {
aleloi82667732016-08-02 01:45:50 -07001777 testonly = true
1778
Henrik Lundin1391bd42017-11-24 09:28:57 +01001779 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001780 "../..:typedefs",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001781 ":audio_coding",
1782 ":neteq_input_audio_tools",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001783 "../../api/audio:audio_frame_api",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001784 "../../api/audio_codecs/g711:audio_encoder_g711",
1785 "../../api/audio_codecs/L16:audio_encoder_L16",
1786 "../../api/audio_codecs/g722:audio_encoder_g722",
1787 "../../api/audio_codecs/ilbc:audio_encoder_ilbc",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001788 "../../system_wrappers:system_wrappers_default",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001789 "../../api/audio_codecs/isac:audio_encoder_isac",
1790 "../../api/audio_codecs/opus:audio_encoder_opus",
1791 "../../rtc_base:rtc_base_approved",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001792 ]
aleloi82667732016-08-02 01:45:50 -07001793
1794 sources = [
Henrik Lundin1391bd42017-11-24 09:28:57 +01001795 "neteq/tools/rtp_encode.cc",
aleloi82667732016-08-02 01:45:50 -07001796 ]
1797
Henrik Lundin1391bd42017-11-24 09:28:57 +01001798 defines = audio_coding_defines
aleloi82667732016-08-02 01:45:50 -07001799 }
1800
Henrik Lundin81af4142017-11-24 13:39:39 +01001801 rtc_executable("rtp_jitter") {
aleloi76cbe192016-08-02 02:05:03 -07001802 testonly = true
1803
Henrik Lundin81af4142017-11-24 13:39:39 +01001804 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001805 "../..:typedefs",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001806 "../../system_wrappers:system_wrappers_default",
Henrik Lundin81af4142017-11-24 13:39:39 +01001807 "../rtp_rtcp:rtp_rtcp_format",
1808 "../../api:array_view",
1809 "../../rtc_base:rtc_base_approved",
Henrik Lundin81af4142017-11-24 13:39:39 +01001810 ]
1811
aleloi76cbe192016-08-02 02:05:03 -07001812 sources = [
Henrik Lundin81af4142017-11-24 13:39:39 +01001813 "neteq/tools/rtp_jitter.cc",
aleloi76cbe192016-08-02 02:05:03 -07001814 ]
1815
Henrik Lundin81af4142017-11-24 13:39:39 +01001816 defines = audio_coding_defines
aleloi76cbe192016-08-02 02:05:03 -07001817 }
1818
ehmaldonado38a21322016-09-02 04:10:34 -07001819 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001820 testonly = true
1821
1822 sources = [
1823 "neteq/tools/rtpcat.cc",
1824 ]
1825
1826 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001827 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001828 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001829 "../../system_wrappers:system_wrappers_default",
1830 "../../test:rtp_test_utils",
1831 "//testing/gtest",
1832 ]
1833 }
1834
ehmaldonado38a21322016-09-02 04:10:34 -07001835 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001836 testonly = true
1837
1838 sources = [
1839 "neteq/tools/rtp_analyze.cc",
1840 ]
1841
1842 deps = [
1843 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001844 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001845 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001846 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001847 "../../system_wrappers:system_wrappers_default",
1848 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001849 ]
1850
kjellandere40a7ee2016-10-16 23:56:12 -07001851 if (!build_with_chromium && is_clang) {
1852 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001853 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001854 }
1855 }
aleloi630c6d52016-08-10 02:11:30 -07001856
ehmaldonado38a21322016-09-02 04:10:34 -07001857 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001858 testonly = true
1859
1860 sources = [
1861 "neteq/test/neteq_opus_quality_test.cc",
1862 ]
1863
1864 deps = [
1865 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001866 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001867 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001868 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001869 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001870 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001871 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001872 ]
aleloi630c6d52016-08-10 02:11:30 -07001873 }
aleloi116fd612016-08-10 04:16:36 -07001874
ehmaldonado38a21322016-09-02 04:10:34 -07001875 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001876 testonly = true
1877
1878 sources = [
1879 "neteq/test/neteq_speed_test.cc",
1880 ]
1881
1882 deps = [
1883 ":neteq",
1884 ":neteq_test_support",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001885 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001886 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001887 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001888 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001889 "../../test:fileutils",
aleloi116fd612016-08-10 04:16:36 -07001890 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001891 ]
1892 }
aleloi63910122016-08-10 04:41:14 -07001893
ehmaldonado38a21322016-09-02 04:10:34 -07001894 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001895 testonly = true
1896
1897 sources = [
1898 "neteq/test/neteq_ilbc_quality_test.cc",
1899 ]
1900
1901 deps = [
1902 ":ilbc",
1903 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001904 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001905 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001906 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001907 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001908 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001909 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001910 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001911 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001912 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001913 ]
1914 }
aleloi6df36dc2016-08-10 05:04:47 -07001915
ehmaldonado38a21322016-09-02 04:10:34 -07001916 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001917 testonly = true
1918
1919 sources = [
1920 "neteq/test/neteq_isac_quality_test.cc",
1921 ]
1922
1923 deps = [
1924 ":isac_fix",
1925 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001926 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001927 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001928 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001929 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001930 ]
1931 }
aleloic4ac7002016-08-10 05:06:27 -07001932
ehmaldonado38a21322016-09-02 04:10:34 -07001933 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001934 testonly = true
1935
1936 sources = [
1937 "neteq/test/neteq_pcmu_quality_test.cc",
1938 ]
1939
1940 deps = [
1941 ":g711",
1942 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001943 ":neteq_quality_test_support",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001944 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001945 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001946 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001947 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001948 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001949 ]
1950 }
aleloib7186d02016-08-16 01:47:16 -07001951
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001952 rtc_executable("neteq_pcm16b_quality_test") {
1953 testonly = true
1954
1955 sources = [
1956 "neteq/test/neteq_pcm16b_quality_test.cc",
1957 ]
1958
1959 deps = [
1960 ":neteq",
1961 ":neteq_quality_test_support",
1962 ":pcm16b",
1963 "../../rtc_base:checks",
1964 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001965 "../../test:fileutils",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001966 "../../test:test_main",
1967 "//testing/gtest",
1968 ]
1969 }
1970
ehmaldonado38a21322016-09-02 04:10:34 -07001971 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001972 testonly = true
1973
1974 sources = [
1975 "codecs/isac/fix/test/kenny.cc",
1976 ]
1977
1978 deps = [
1979 ":isac_fix",
Edward Lemure66572b2018-01-05 15:34:09 +01001980 "../../test:perf_test",
aleloib7186d02016-08-16 01:47:16 -07001981 "../../test:test_support",
1982 ]
1983
ehmaldonado25586ce2017-09-07 23:18:35 -07001984 data = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001985 "../../resources/speech_and_misc_wb.pcm",
ehmaldonado25586ce2017-09-07 23:18:35 -07001986 ]
aleloib7186d02016-08-16 01:47:16 -07001987 }
aleloi16f55a12016-08-23 08:08:23 -07001988
kjellander7439f972016-12-05 22:47:46 -08001989 rtc_source_set("isac_test_util") {
1990 testonly = true
1991 sources = [
1992 "codecs/isac/main/util/utility.c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001993 "codecs/isac/main/util/utility.h",
kjellander7439f972016-12-05 22:47:46 -08001994 ]
1995 }
1996
ehmaldonado38a21322016-09-02 04:10:34 -07001997 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001998 testonly = true
1999
2000 sources = [
2001 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07002002 ]
2003
2004 include_dirs = [
2005 "codecs/isac/main/include",
2006 "codecs/isac/main/test",
2007 "codecs/isac/main/util",
2008 ]
2009
2010 deps = [
2011 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002012 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002013 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07002014 ]
ivoce51b41a2016-08-24 02:25:57 -07002015 }
2016
ehmaldonado38a21322016-09-02 04:10:34 -07002017 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07002018 testonly = true
2019
2020 sources = [
2021 "codecs/g711/test/testG711.cc",
2022 ]
2023
aleloi16f55a12016-08-23 08:08:23 -07002024 deps = [
2025 ":g711",
2026 ]
2027 }
aleloi9a117842016-08-23 08:36:10 -07002028
ehmaldonado38a21322016-09-02 04:10:34 -07002029 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07002030 testonly = true
2031
2032 sources = [
2033 "codecs/g722/test/testG722.cc",
2034 ]
2035
aleloi9a117842016-08-23 08:36:10 -07002036 deps = [
2037 ":g722",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002038 "../..:typedefs",
aleloi9a117842016-08-23 08:36:10 -07002039 "../..:webrtc_common",
2040 ]
2041 }
ivoc2c670db2016-08-24 06:11:18 -07002042
ehmaldonado38a21322016-09-02 04:10:34 -07002043 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07002044 testonly = true
2045
2046 sources = [
2047 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07002048 ]
2049
aleloicfee2152016-08-29 04:09:19 -07002050 deps = [
2051 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002052 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002053 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07002054 ]
2055
2056 include_dirs = [
2057 "codecs/isac/main/include",
2058 "codecs/isac/main/test",
2059 "codecs/isac/main/util",
2060 ]
2061 }
2062
ehmaldonado38a21322016-09-02 04:10:34 -07002063 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002064 testonly = true
2065
2066 sources = [
2067 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002068 ]
2069
aleloicfee2152016-08-29 04:09:19 -07002070 deps = [
2071 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002072 ":isac_test_util",
Mirko Bonadei08973ee2018-02-01 14:12:55 +01002073 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002074 "../../common_audio:common_audio_c",
aleloicfee2152016-08-29 04:09:19 -07002075 ]
2076
2077 include_dirs = [
2078 "codecs/isac/main/include",
2079 "codecs/isac/main/test",
2080 "codecs/isac/main/util",
2081 "../../common_audio/signal_processing/include",
2082 ]
2083 }
2084
ehmaldonado38a21322016-09-02 04:10:34 -07002085 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002086 testonly = true
2087
2088 sources = [
2089 "codecs/ilbc/test/iLBC_test.c",
2090 ]
2091
aleloicfee2152016-08-29 04:09:19 -07002092 deps = [
2093 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002094 ]
2095 }
2096
ehmaldonado38a21322016-09-02 04:10:34 -07002097 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002098 testonly = true
2099
2100 sources = [
2101 "codecs/opus/opus_fec_test.cc",
2102 ]
2103
2104 deps = [
2105 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002106 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002107 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002108 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08002109 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002110 "//testing/gtest",
2111 ]
2112
kjellandere40a7ee2016-10-16 23:56:12 -07002113 if (!build_with_chromium && is_clang) {
2114 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002115 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002116 }
2117 }
ehmaldonado36268652017-01-19 08:27:11 -08002118
2119 rtc_source_set("audio_coding_unittests") {
2120 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00002121 visibility += webrtc_default_visibility
ehmaldonado36268652017-01-19 08:27:11 -08002122
2123 sources = [
2124 "acm2/acm_receiver_unittest.cc",
2125 "acm2/audio_coding_module_unittest.cc",
2126 "acm2/call_statistics_unittest.cc",
2127 "acm2/codec_manager_unittest.cc",
2128 "acm2/rent_a_codec_unittest.cc",
2129 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2130 "audio_network_adaptor/bitrate_controller_unittest.cc",
2131 "audio_network_adaptor/channel_controller_unittest.cc",
2132 "audio_network_adaptor/controller_manager_unittest.cc",
2133 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002134 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002135 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2136 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002137 "audio_network_adaptor/frame_length_controller_unittest.cc",
elad.alon326263a2017-03-29 03:16:58 -07002138 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002139 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002140 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002141 "codecs/cng/audio_encoder_cng_unittest.cc",
2142 "codecs/cng/cng_unittest.cc",
2143 "codecs/ilbc/ilbc_unittest.cc",
2144 "codecs/isac/fix/source/filterbanks_unittest.cc",
2145 "codecs/isac/fix/source/filters_unittest.cc",
2146 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2147 "codecs/isac/fix/source/transform_unittest.cc",
2148 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2149 "codecs/isac/main/source/isac_unittest.cc",
2150 "codecs/isac/unittest.cc",
2151 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002152 "codecs/opus/audio_encoder_opus_unittest.cc",
Alex Luebseeb27652017-11-20 11:13:56 -08002153 "codecs/opus/opus_bandwidth_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002154 "codecs/opus/opus_unittest.cc",
2155 "codecs/red/audio_encoder_copy_red_unittest.cc",
2156 "neteq/audio_multi_vector_unittest.cc",
2157 "neteq/audio_vector_unittest.cc",
2158 "neteq/background_noise_unittest.cc",
2159 "neteq/buffer_level_filter_unittest.cc",
2160 "neteq/comfort_noise_unittest.cc",
2161 "neteq/decision_logic_unittest.cc",
2162 "neteq/decoder_database_unittest.cc",
2163 "neteq/delay_manager_unittest.cc",
2164 "neteq/delay_peak_detector_unittest.cc",
2165 "neteq/dsp_helper_unittest.cc",
2166 "neteq/dtmf_buffer_unittest.cc",
2167 "neteq/dtmf_tone_generator_unittest.cc",
2168 "neteq/expand_unittest.cc",
2169 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002170 "neteq/mock/mock_buffer_level_filter.h",
2171 "neteq/mock/mock_decoder_database.h",
2172 "neteq/mock/mock_delay_manager.h",
2173 "neteq/mock/mock_delay_peak_detector.h",
2174 "neteq/mock/mock_dtmf_buffer.h",
2175 "neteq/mock/mock_dtmf_tone_generator.h",
2176 "neteq/mock/mock_expand.h",
2177 "neteq/mock/mock_external_decoder_pcm16b.h",
2178 "neteq/mock/mock_packet_buffer.h",
2179 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002180 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002181 "neteq/nack_tracker_unittest.cc",
2182 "neteq/neteq_external_decoder_unittest.cc",
2183 "neteq/neteq_impl_unittest.cc",
2184 "neteq/neteq_network_stats_unittest.cc",
2185 "neteq/neteq_stereo_unittest.cc",
2186 "neteq/neteq_unittest.cc",
2187 "neteq/normal_unittest.cc",
2188 "neteq/packet_buffer_unittest.cc",
2189 "neteq/post_decode_vad_unittest.cc",
2190 "neteq/random_vector_unittest.cc",
2191 "neteq/red_payload_splitter_unittest.cc",
Henrik Lundinac0a5032017-09-25 12:22:46 +02002192 "neteq/statistics_calculator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002193 "neteq/sync_buffer_unittest.cc",
2194 "neteq/tick_timer_unittest.cc",
2195 "neteq/time_stretch_unittest.cc",
2196 "neteq/timestamp_scaler_unittest.cc",
2197 "neteq/tools/input_audio_file_unittest.cc",
2198 "neteq/tools/packet_unittest.cc",
2199 ]
2200
2201 deps = [
2202 ":acm_receive_test",
2203 ":acm_send_test",
2204 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002205 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002206 ":audio_format_conversion",
2207 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002208 ":cng",
2209 ":g711",
2210 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002211 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002212 ":isac_c",
2213 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002214 ":legacy_encoded_audio_frame",
Patrik Höglundb960e412018-01-05 11:46:26 +01002215 ":mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002216 ":neteq",
2217 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002218 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002219 ":pcm16b",
2220 ":red",
2221 ":rent_a_codec",
2222 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002223 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002224 "../..:typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002225 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02002226 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08002227 "../../api/audio_codecs:audio_codecs_api",
2228 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002229 "../../api/audio_codecs:builtin_audio_encoder_factory",
Alex Luebseeb27652017-11-20 11:13:56 -08002230 "../../api/audio_codecs/opus:audio_decoder_opus",
Karl Wiberg7275e182017-10-25 09:57:40 +02002231 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonado36268652017-01-19 08:27:11 -08002232 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002233 "../../common_audio:common_audio_c",
charujain9a451162017-09-15 03:51:34 -07002234 "../../common_audio:mock_common_audio",
Patrik Höglund731082c2018-01-03 09:08:20 +01002235 "../../logging:mocks",
Qingsi Wang970b0882018-02-01 11:04:46 -08002236 "../../logging:rtc_event_audio",
Elad Alon4a87e1c2017-10-03 16:11:34 +02002237 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002238 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002239 "../../rtc_base:protobuf_utils",
2240 "../../rtc_base:rtc_base",
2241 "../../rtc_base:rtc_base_approved",
2242 "../../rtc_base:rtc_base_tests_utils",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002243 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01002244 "../../system_wrappers",
2245 "../../system_wrappers:cpu_features_api",
kwiberg37e99fd2017-04-10 05:15:48 -07002246 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002247 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002248 "../../test:fileutils",
ehmaldonado36268652017-01-19 08:27:11 -08002249 "../../test:rtp_test_utils",
2250 "../../test:test_common",
2251 "../../test:test_support",
ehmaldonado36268652017-01-19 08:27:11 -08002252 "//testing/gtest",
ehmaldonado36268652017-01-19 08:27:11 -08002253 ]
2254
2255 defines = audio_coding_defines
2256
2257 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002258 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002259 deps += [
2260 ":ana_config_proto",
2261 ":neteq_unittest_proto",
2262 ]
2263 }
2264
2265 if (!build_with_chromium && is_clang) {
2266 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2267 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2268 }
2269 }
kjellanderfb114242016-06-13 00:19:48 -07002270}
kwiberg087bd342017-02-10 08:15:44 -08002271
2272# For backwards compatibility only! Use
2273# webrtc/api/audio_codecs:audio_codecs_api instead.
2274# TODO(kwiberg): Remove this.
2275rtc_source_set("audio_decoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002276 visibility += [ "*" ]
kwiberg087bd342017-02-10 08:15:44 -08002277 sources = [
2278 "codecs/audio_decoder.h",
2279 ]
2280 deps = [
2281 "../../api/audio_codecs:audio_codecs_api",
2282 ]
2283}
2284
2285# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002286# webrtc/api/audio_codecs:audio_codecs_api instead.
2287# TODO(ossu): Remove this.
2288rtc_source_set("audio_encoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002289 visibility += [ "*" ]
ossueb1fde42017-05-02 06:46:30 -07002290 sources = [
2291 "codecs/audio_encoder.h",
2292 ]
2293 deps = [
2294 "../../api/audio_codecs:audio_codecs_api",
2295 ]
2296}