blob: bb7f89012d54391b97bdb7172d1892a13bd78eb9 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellanderfb114242016-06-13 00:19:48 -070010import("audio_coding.gni")
11import("//build/config/arm.gni")
Dan Minor9c686132018-01-15 10:20:00 -050012if (!build_with_mozilla) {
13 import("//third_party/protobuf/proto_library.gni")
14}
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000015
Karl Wiberg1a8fffb2017-12-12 10:41:29 +010016visibility = [ ":*" ]
17
kwiberg0edb05b2016-01-19 05:54:28 -080018audio_codec_deps = [
19 ":cng",
20 ":g711",
21 ":pcm16b",
22]
kwiberg0edb05b2016-01-19 05:54:28 -080023if (rtc_include_ilbc) {
kwiberg0edb05b2016-01-19 05:54:28 -080024 audio_codec_deps += [ ":ilbc" ]
25}
26if (rtc_include_opus) {
kwiberg0edb05b2016-01-19 05:54:28 -080027 audio_codec_deps += [ ":webrtc_opus" ]
28}
Karl Wibergeb254b42017-11-01 15:08:12 +010029if (current_cpu == "arm") {
30 audio_codec_deps += [ ":isac_fix" ]
31} else {
32 audio_codec_deps += [ ":isac" ]
kwiberg0edb05b2016-01-19 05:54:28 -080033}
Karl Wibergeb254b42017-11-01 15:08:12 +010034audio_codec_deps += [ ":g722" ]
kwiberg0edb05b2016-01-19 05:54:28 -080035if (!build_with_mozilla && !build_with_chromium) {
kwiberg0edb05b2016-01-19 05:54:28 -080036 audio_codec_deps += [ ":red" ]
37}
kjellanderfb114242016-06-13 00:19:48 -070038audio_coding_deps = audio_codec_deps + [
39 "../..:webrtc_common",
40 "../../common_audio",
41 "../../system_wrappers",
42 ]
kwiberg0edb05b2016-01-19 05:54:28 -080043
kwibergda2bf4e2016-10-24 13:47:09 -070044rtc_static_library("audio_format_conversion") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000045 visibility += webrtc_default_visibility
kwibergda2bf4e2016-10-24 13:47:09 -070046 sources = [
47 "codecs/audio_format_conversion.cc",
48 "codecs/audio_format_conversion.h",
49 ]
50 deps = [
kwiberga6b82982016-10-24 16:31:17 -070051 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -070052 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -080053 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010054 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070055 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010056 "../../rtc_base:sanitizer",
Danil Chapovalovb6021232018-06-19 13:26:36 +020057 "//third_party/abseil-cpp/absl/types:optional",
kwibergda2bf4e2016-10-24 13:47:09 -070058 ]
59}
60
kjellanderb62dbbe2016-09-23 00:38:52 -070061rtc_static_library("rent_a_codec") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000062 visibility += webrtc_default_visibility
kwibergfce4a942015-10-27 11:40:24 -070063 sources = [
kjellander3e6db232015-11-26 04:44:54 -080064 "acm2/acm_codec_database.cc",
65 "acm2/acm_codec_database.h",
66 "acm2/rent_a_codec.cc",
67 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -070068 ]
kjellander676e08f2016-12-07 08:23:27 -080069 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +010070 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010071 "../../rtc_base:checks",
kwiberg529662a2017-09-04 05:43:17 -070072 "../../api:array_view",
Danil Chapovalovb6021232018-06-19 13:26:36 +020073 "//third_party/abseil-cpp/absl/types:optional",
kwiberg087bd342017-02-10 08:15:44 -080074 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -080075 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -070076 "../../rtc_base:protobuf_utils",
77 "../../rtc_base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -080078 "../../system_wrappers",
79 ":audio_coding_module_typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -080080 ":isac_common",
81 ":isac_fix_c",
82 ":neteq_decoder_enum",
kjellander676e08f2016-12-07 08:23:27 -080083 ] + audio_codec_deps
mbonadei7c2c8432017-04-07 00:59:12 -070084
kwiberg0edb05b2016-01-19 05:54:28 -080085 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -070086}
87
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000088config("audio_coding_config") {
89 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -080090 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010091 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000092 ]
93}
94
kwiberg65cb70d2017-03-03 06:16:28 -080095rtc_source_set("audio_coding_module_typedefs") {
96 sources = [
97 "include/audio_coding_module_typedefs.h",
98 ]
99 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100100 "../..:typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -0800101 "../..:webrtc_common",
102 ]
103}
104
kjellanderb62dbbe2016-09-23 00:38:52 -0700105rtc_static_library("audio_coding") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100106 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200107 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000108 sources = [
kjellander3e6db232015-11-26 04:44:54 -0800109 "acm2/acm_receiver.cc",
110 "acm2/acm_receiver.h",
111 "acm2/acm_resampler.cc",
112 "acm2/acm_resampler.h",
113 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800114 "acm2/call_statistics.cc",
115 "acm2/call_statistics.h",
116 "acm2/codec_manager.cc",
117 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800118 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000119 ]
120
121 defines = []
122
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700123 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000124
kjellanderfb114242016-06-13 00:19:48 -0700125 if (rtc_include_opus) {
126 public_deps = [
127 ":webrtc_opus",
128 ]
129 }
130
kjellanderfb114242016-06-13 00:19:48 -0700131 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +0200132 "../../api/audio:audio_frame_api",
133 "..:module_api",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100134 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100135 "../..:typedefs",
Patrik Höglund3e113432017-12-15 14:40:10 +0100136 "../../rtc_base:deprecation",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100137 "../../rtc_base:checks",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100138 "../../system_wrappers:metrics_api",
kwiberg529662a2017-09-04 05:43:17 -0700139 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800140 "../../api/audio_codecs:audio_codecs_api",
kwiberg65cb70d2017-03-03 06:16:28 -0800141 ":audio_coding_module_typedefs",
kwiberg0edb05b2016-01-19 05:54:28 -0800142 ":neteq",
143 ":rent_a_codec",
Jonas Olssonabbe8412018-04-03 13:40:05 +0200144 "../../rtc_base:audio_format_to_string",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700145 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200146 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700147 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800148 ]
kjellanderfb114242016-06-13 00:19:48 -0700149 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000150}
151
kwiberg087bd342017-02-10 08:15:44 -0800152rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000153 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700154 "codecs/legacy_encoded_audio_frame.cc",
155 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000156 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200157 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700158 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800159 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700160 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200161 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000162}
163
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000164config("cng_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200165 include_dirs = [ "codecs/cng/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000166}
167
kjellanderb62dbbe2016-09-23 00:38:52 -0700168rtc_static_library("cng") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100169 visibility += [ "*" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000170 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000171 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100172 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700173 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100174 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000175 ]
176
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700177 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000178
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000179 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100180 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800181 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700182 "../../api:array_view",
ossueb1fde42017-05-02 06:46:30 -0700183 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100184 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100185 "../../common_audio:common_audio_c",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700186 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000187 ]
188}
189
190config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200191 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000192}
193
kjellanderb62dbbe2016-09-23 00:38:52 -0700194rtc_static_library("red") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100195 visibility += [ "*" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000196 sources = [
197 "codecs/red/audio_encoder_copy_red.cc",
198 "codecs/red/audio_encoder_copy_red.h",
199 ]
200
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700201 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000202
203 deps = [
ossueb1fde42017-05-02 06:46:30 -0700204 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100205 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100206 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700207 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000208 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000209}
210
211config("g711_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200212 include_dirs = [ "codecs/g711/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000213}
214
kjellanderb62dbbe2016-09-23 00:38:52 -0700215rtc_static_library("g711") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100216 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200217 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000218 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700219 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100220 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000221 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100222 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000223 ]
224
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700225 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000226
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200227 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800228 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800229 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800230 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100231 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700232 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200233 ]
kjellander7439f972016-12-05 22:47:46 -0800234 public_deps = [
235 ":g711_c",
236 ]
237}
238
239rtc_source_set("g711_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200240 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800241 sources = [
kjellander7439f972016-12-05 22:47:46 -0800242 "codecs/g711/g711_interface.c",
243 "codecs/g711/g711_interface.h",
244 ]
kjellander676e08f2016-12-07 08:23:27 -0800245 deps = [
Artem Titov3ecec172018-06-21 16:34:10 +0200246 ":g711_3p",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100247 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800248 "../..:webrtc_common",
249 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000250}
251
Artem Titov3ecec172018-06-21 16:34:10 +0200252rtc_source_set("g711_3p") {
253 poisonous = [ "audio_codecs" ]
254 sources = [
255 "codecs/g711/g711.c",
256 "codecs/g711/g711.h",
257 ]
258}
259
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000260config("g722_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200261 include_dirs = [ "codecs/g722/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000262}
263
kjellanderb62dbbe2016-09-23 00:38:52 -0700264rtc_static_library("g722") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100265 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200266 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000267 sources = [
kwibergada4c132015-09-17 03:12:35 -0700268 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100269 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000270 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100271 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000272 ]
273
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700274 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000275
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200276 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800277 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800278 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800279 "../../api/audio_codecs:audio_codecs_api",
kwibergb8727ae2017-06-17 17:41:59 -0700280 "../../api/audio_codecs/g722:audio_encoder_g722_config",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100281 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700282 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200283 ]
kjellander7439f972016-12-05 22:47:46 -0800284 public_deps = [
285 ":g722_c",
286 ]
287}
288
289rtc_source_set("g722_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200290 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800291 sources = [
kjellander7439f972016-12-05 22:47:46 -0800292 "codecs/g722/g722_interface.c",
293 "codecs/g722/g722_interface.h",
294 ]
kjellander676e08f2016-12-07 08:23:27 -0800295 deps = [
Artem Titov91280e42018-06-21 16:39:37 +0200296 ":g722_3p",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100297 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800298 "../..:webrtc_common",
299 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000300}
301
Artem Titov91280e42018-06-21 16:39:37 +0200302rtc_source_set("g722_3p") {
303 poisonous = [ "audio_codecs" ]
304 sources = [
305 "codecs/g722/g722_decode.c",
306 "codecs/g722/g722_enc_dec.h",
307 "codecs/g722/g722_encode.c",
308 ]
309}
310
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000311config("ilbc_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200312 include_dirs = [ "codecs/ilbc/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000313}
314
kjellanderb62dbbe2016-09-23 00:38:52 -0700315rtc_static_library("ilbc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000316 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200317 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000318 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700319 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100320 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200321 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100322 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800323 ]
324
325 public_configs = [ ":ilbc_config" ]
326
327 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800328 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800329 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800330 "../../api/audio_codecs:audio_codecs_api",
solenbergdb3c9b02017-06-28 02:05:04 -0700331 "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
kjellander7439f972016-12-05 22:47:46 -0800332 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100333 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700334 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800335 ]
336 public_deps = [
337 ":ilbc_c",
338 ]
339}
340
341rtc_source_set("ilbc_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200342 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800343 sources = [
344 "codecs/ilbc/abs_quant.c",
345 "codecs/ilbc/abs_quant.h",
346 "codecs/ilbc/abs_quant_loop.c",
347 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000348 "codecs/ilbc/augmented_cb_corr.c",
349 "codecs/ilbc/augmented_cb_corr.h",
350 "codecs/ilbc/bw_expand.c",
351 "codecs/ilbc/bw_expand.h",
352 "codecs/ilbc/cb_construct.c",
353 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200354 "codecs/ilbc/cb_mem_energy.c",
355 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000356 "codecs/ilbc/cb_mem_energy_augmentation.c",
357 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000358 "codecs/ilbc/cb_mem_energy_calc.c",
359 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000360 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200361 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000362 "codecs/ilbc/cb_search_core.c",
363 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000364 "codecs/ilbc/cb_update_best_index.c",
365 "codecs/ilbc/cb_update_best_index.h",
366 "codecs/ilbc/chebyshev.c",
367 "codecs/ilbc/chebyshev.h",
368 "codecs/ilbc/comp_corr.c",
369 "codecs/ilbc/comp_corr.h",
370 "codecs/ilbc/constants.c",
371 "codecs/ilbc/constants.h",
372 "codecs/ilbc/create_augmented_vec.c",
373 "codecs/ilbc/create_augmented_vec.h",
374 "codecs/ilbc/decode.c",
375 "codecs/ilbc/decode.h",
376 "codecs/ilbc/decode_residual.c",
377 "codecs/ilbc/decode_residual.h",
378 "codecs/ilbc/decoder_interpolate_lsf.c",
379 "codecs/ilbc/decoder_interpolate_lsf.h",
380 "codecs/ilbc/defines.h",
381 "codecs/ilbc/do_plc.c",
382 "codecs/ilbc/do_plc.h",
383 "codecs/ilbc/encode.c",
384 "codecs/ilbc/encode.h",
385 "codecs/ilbc/energy_inverse.c",
386 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200387 "codecs/ilbc/enh_upsample.c",
388 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000389 "codecs/ilbc/enhancer.c",
390 "codecs/ilbc/enhancer.h",
391 "codecs/ilbc/enhancer_interface.c",
392 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000393 "codecs/ilbc/filtered_cb_vecs.c",
394 "codecs/ilbc/filtered_cb_vecs.h",
395 "codecs/ilbc/frame_classify.c",
396 "codecs/ilbc/frame_classify.h",
397 "codecs/ilbc/gain_dequant.c",
398 "codecs/ilbc/gain_dequant.h",
399 "codecs/ilbc/gain_quant.c",
400 "codecs/ilbc/gain_quant.h",
401 "codecs/ilbc/get_cd_vec.c",
402 "codecs/ilbc/get_cd_vec.h",
403 "codecs/ilbc/get_lsp_poly.c",
404 "codecs/ilbc/get_lsp_poly.h",
405 "codecs/ilbc/get_sync_seq.c",
406 "codecs/ilbc/get_sync_seq.h",
407 "codecs/ilbc/hp_input.c",
408 "codecs/ilbc/hp_input.h",
409 "codecs/ilbc/hp_output.c",
410 "codecs/ilbc/hp_output.h",
411 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100412 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000413 "codecs/ilbc/index_conv_dec.c",
414 "codecs/ilbc/index_conv_dec.h",
415 "codecs/ilbc/index_conv_enc.c",
416 "codecs/ilbc/index_conv_enc.h",
417 "codecs/ilbc/init_decode.c",
418 "codecs/ilbc/init_decode.h",
419 "codecs/ilbc/init_encode.c",
420 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000421 "codecs/ilbc/interpolate.c",
422 "codecs/ilbc/interpolate.h",
423 "codecs/ilbc/interpolate_samples.c",
424 "codecs/ilbc/interpolate_samples.h",
425 "codecs/ilbc/lpc_encode.c",
426 "codecs/ilbc/lpc_encode.h",
427 "codecs/ilbc/lsf_check.c",
428 "codecs/ilbc/lsf_check.h",
429 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
430 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
431 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
432 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
433 "codecs/ilbc/lsf_to_lsp.c",
434 "codecs/ilbc/lsf_to_lsp.h",
435 "codecs/ilbc/lsf_to_poly.c",
436 "codecs/ilbc/lsf_to_poly.h",
437 "codecs/ilbc/lsp_to_lsf.c",
438 "codecs/ilbc/lsp_to_lsf.h",
439 "codecs/ilbc/my_corr.c",
440 "codecs/ilbc/my_corr.h",
441 "codecs/ilbc/nearest_neighbor.c",
442 "codecs/ilbc/nearest_neighbor.h",
443 "codecs/ilbc/pack_bits.c",
444 "codecs/ilbc/pack_bits.h",
445 "codecs/ilbc/poly_to_lsf.c",
446 "codecs/ilbc/poly_to_lsf.h",
447 "codecs/ilbc/poly_to_lsp.c",
448 "codecs/ilbc/poly_to_lsp.h",
449 "codecs/ilbc/refiner.c",
450 "codecs/ilbc/refiner.h",
451 "codecs/ilbc/simple_interpolate_lsf.c",
452 "codecs/ilbc/simple_interpolate_lsf.h",
453 "codecs/ilbc/simple_lpc_analysis.c",
454 "codecs/ilbc/simple_lpc_analysis.h",
455 "codecs/ilbc/simple_lsf_dequant.c",
456 "codecs/ilbc/simple_lsf_dequant.h",
457 "codecs/ilbc/simple_lsf_quant.c",
458 "codecs/ilbc/simple_lsf_quant.h",
459 "codecs/ilbc/smooth.c",
460 "codecs/ilbc/smooth.h",
461 "codecs/ilbc/smooth_out_data.c",
462 "codecs/ilbc/smooth_out_data.h",
463 "codecs/ilbc/sort_sq.c",
464 "codecs/ilbc/sort_sq.h",
465 "codecs/ilbc/split_vq.c",
466 "codecs/ilbc/split_vq.h",
467 "codecs/ilbc/state_construct.c",
468 "codecs/ilbc/state_construct.h",
469 "codecs/ilbc/state_search.c",
470 "codecs/ilbc/state_search.h",
471 "codecs/ilbc/swap_bytes.c",
472 "codecs/ilbc/swap_bytes.h",
473 "codecs/ilbc/unpack_bits.c",
474 "codecs/ilbc/unpack_bits.h",
475 "codecs/ilbc/vq3.c",
476 "codecs/ilbc/vq3.h",
477 "codecs/ilbc/vq4.c",
478 "codecs/ilbc/vq4.h",
479 "codecs/ilbc/window32_w32.c",
480 "codecs/ilbc/window32_w32.h",
481 "codecs/ilbc/xcorr_coef.c",
482 "codecs/ilbc/xcorr_coef.h",
483 ]
484
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700485 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000486
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000487 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100488 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800489 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800490 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100491 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100492 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100493 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700494 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100495 "../../rtc_base:sanitizer",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000496 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000497}
498
kjellanderb62dbbe2016-09-23 00:38:52 -0700499rtc_static_library("isac_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200500 poisonous = [ "audio_codecs" ]
kwiberg608c3cf2015-08-24 02:03:23 -0700501 sources = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100502 "codecs/isac/audio_decoder_isac_t.h",
503 "codecs/isac/audio_decoder_isac_t_impl.h",
kwiberg608c3cf2015-08-24 02:03:23 -0700504 "codecs/isac/audio_encoder_isac_t.h",
505 "codecs/isac/audio_encoder_isac_t_impl.h",
506 "codecs/isac/locked_bandwidth_info.cc",
507 "codecs/isac/locked_bandwidth_info.h",
508 ]
kjellander676e08f2016-12-07 08:23:27 -0800509 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200510 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100511 "../..:typedefs",
kwiberga6ca5182017-01-30 05:28:54 -0800512 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700513 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100514 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700515 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200516 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -0800517 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700518}
519
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000520config("isac_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200521 include_dirs = [ "codecs/isac/main/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000522}
523
kjellanderb62dbbe2016-09-23 00:38:52 -0700524rtc_static_library("isac") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100525 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200526 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000527 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800528 "codecs/isac/main/include/audio_decoder_isac.h",
529 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800530 "codecs/isac/main/source/audio_decoder_isac.cc",
531 "codecs/isac/main/source/audio_encoder_isac.cc",
532 ]
533
534 deps = [
kjellander7439f972016-12-05 22:47:46 -0800535 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800536 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800537 ]
538 public_deps = [
539 ":isac_c",
540 ]
541}
542
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200543rtc_source_set("isac_bwinfo") {
544 sources = [
545 "codecs/isac/bandwidth_info.h",
546 ]
547 deps = [
548 "../..:typedefs",
549 ]
550}
551
552rtc_source_set("isac_vad") {
553 visibility += webrtc_default_visibility
554 sources = [
555 "codecs/isac/main/source/filter_functions.c",
556 "codecs/isac/main/source/filter_functions.h",
557 "codecs/isac/main/source/isac_vad.c",
558 "codecs/isac/main/source/isac_vad.h",
559 "codecs/isac/main/source/os_specific_inline.h",
560 "codecs/isac/main/source/pitch_estimator.c",
561 "codecs/isac/main/source/pitch_estimator.h",
562 "codecs/isac/main/source/pitch_filter.c",
563 "codecs/isac/main/source/pitch_filter.h",
564 "codecs/isac/main/source/settings.h",
565 "codecs/isac/main/source/structs.h",
566 ]
567 deps = [
568 ":isac_bwinfo",
569 "../..:typedefs",
570 "../../rtc_base:compile_assert_c",
571 "../../rtc_base/system:ignore_warnings",
572 ]
573}
574
kjellander7439f972016-12-05 22:47:46 -0800575rtc_static_library("isac_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200576 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800577 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100578 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000579 "codecs/isac/main/source/arith_routines.c",
580 "codecs/isac/main/source/arith_routines.h",
581 "codecs/isac/main/source/arith_routines_hist.c",
582 "codecs/isac/main/source/arith_routines_logist.c",
583 "codecs/isac/main/source/bandwidth_estimator.c",
584 "codecs/isac/main/source/bandwidth_estimator.h",
585 "codecs/isac/main/source/codec.h",
586 "codecs/isac/main/source/crc.c",
587 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000588 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200589 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000590 "codecs/isac/main/source/encode.c",
591 "codecs/isac/main/source/encode_lpc_swb.c",
592 "codecs/isac/main/source/encode_lpc_swb.h",
593 "codecs/isac/main/source/entropy_coding.c",
594 "codecs/isac/main/source/entropy_coding.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200595 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000596 "codecs/isac/main/source/intialize.c",
597 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200598 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000599 "codecs/isac/main/source/lattice.c",
600 "codecs/isac/main/source/lpc_analysis.c",
601 "codecs/isac/main/source/lpc_analysis.h",
602 "codecs/isac/main/source/lpc_gain_swb_tables.c",
603 "codecs/isac/main/source/lpc_gain_swb_tables.h",
604 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
605 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
606 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
607 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
608 "codecs/isac/main/source/lpc_tables.c",
609 "codecs/isac/main/source/lpc_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000610 "codecs/isac/main/source/pitch_gain_tables.c",
611 "codecs/isac/main/source/pitch_gain_tables.h",
612 "codecs/isac/main/source/pitch_lag_tables.c",
613 "codecs/isac/main/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000614 "codecs/isac/main/source/spectrum_ar_model_tables.c",
615 "codecs/isac/main/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000616 "codecs/isac/main/source/transform.c",
617 ]
618
619 if (is_linux) {
620 libs = [ "m" ]
621 }
622
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700623 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000624
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000625 deps = [
Artem Titovd9711092018-06-26 14:50:13 +0200626 ":fft",
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200627 ":isac_bwinfo",
628 ":isac_vad",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100629 "../..:typedefs",
aleloicfee2152016-08-29 04:09:19 -0700630 "../..:webrtc_common",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000631 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100632 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100633 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700634 "../../rtc_base:compile_assert_c",
635 "../../rtc_base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000636 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000637}
638
Artem Titovd9711092018-06-26 14:50:13 +0200639rtc_source_set("fft") {
640 poisonous = [ "audio_codecs" ]
641 sources = [
642 "codecs/isac/main/source/fft.c",
643 "codecs/isac/main/source/fft.h",
644 ]
645 deps = [
646 ":isac_vad",
647 ]
648}
649
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000650config("isac_fix_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200651 include_dirs = [ "codecs/isac/fix/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000652}
653
kjellanderb62dbbe2016-09-23 00:38:52 -0700654rtc_static_library("isac_fix") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100655 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200656 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000657 sources = [
kjellander7439f972016-12-05 22:47:46 -0800658 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
659 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
660 ]
661
662 public_configs = [ ":isac_fix_config" ]
663
664 deps = [
kjellander7439f972016-12-05 22:47:46 -0800665 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800666 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800667 "../../common_audio",
668 "../../system_wrappers",
669 ]
670 public_deps = [
671 ":isac_fix_c",
672 ]
673
674 if (rtc_build_with_neon) {
675 deps += [ ":isac_neon" ]
676 }
677}
678
kwiberga6ca5182017-01-30 05:28:54 -0800679rtc_source_set("isac_fix_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200680 poisonous = [ "audio_codecs" ]
kwiberga6ca5182017-01-30 05:28:54 -0800681 sources = [
682 "codecs/isac/fix/source/codec.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100683 "codecs/isac/fix/source/entropy_coding.h",
kwiberga6ca5182017-01-30 05:28:54 -0800684 "codecs/isac/fix/source/fft.c",
685 "codecs/isac/fix/source/fft.h",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100686 "codecs/isac/fix/source/filterbank_internal.h",
kwiberga6ca5182017-01-30 05:28:54 -0800687 "codecs/isac/fix/source/settings.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100688 "codecs/isac/fix/source/structs.h",
Mirko Bonadei6e396b02018-04-20 13:54:53 -0700689 "codecs/isac/fix/source/transform_tables.c",
kwiberga6ca5182017-01-30 05:28:54 -0800690 ]
691 public_configs = [ ":isac_fix_config" ]
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100692 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200693 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100694 "../..:typedefs",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100695 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100696 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100697 ]
kwiberga6ca5182017-01-30 05:28:54 -0800698}
kjellander676e08f2016-12-07 08:23:27 -0800699
mbonadei5c0d7032017-07-06 03:48:55 -0700700rtc_source_set("isac_fix_c_arm_asm") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200701 poisonous = [ "audio_codecs" ]
mbonadei5c0d7032017-07-06 03:48:55 -0700702 sources = []
703 if (current_cpu == "arm" && arm_version >= 7) {
704 sources += [
705 "codecs/isac/fix/source/lattice_armv7.S",
706 "codecs/isac/fix/source/pitch_filter_armv6.S",
707 ]
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100708 deps = [
Mirko Bonadei6ce03592018-02-22 15:10:27 +0100709 ":isac_fix_common",
Karl Wiberg7aabd392018-03-22 02:59:49 +0100710 "../../rtc_base/system:asm_defines",
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100711 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700712 }
713}
714
kwiberga6ca5182017-01-30 05:28:54 -0800715rtc_source_set("isac_fix_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200716 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800717 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100718 "codecs/isac/fix/include/audio_decoder_isacfix.h",
719 "codecs/isac/fix/include/audio_encoder_isacfix.h",
720 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000721 "codecs/isac/fix/source/arith_routines.c",
722 "codecs/isac/fix/source/arith_routines_hist.c",
723 "codecs/isac/fix/source/arith_routines_logist.c",
724 "codecs/isac/fix/source/arith_routins.h",
725 "codecs/isac/fix/source/bandwidth_estimator.c",
726 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000727 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200728 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000729 "codecs/isac/fix/source/decode_plc.c",
730 "codecs/isac/fix/source/encode.c",
731 "codecs/isac/fix/source/entropy_coding.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000732 "codecs/isac/fix/source/filterbank_tables.c",
733 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200734 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000735 "codecs/isac/fix/source/filters.c",
736 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200737 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000738 "codecs/isac/fix/source/isacfix.c",
739 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700740 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000741 "codecs/isac/fix/source/lpc_masking_model.c",
742 "codecs/isac/fix/source/lpc_masking_model.h",
743 "codecs/isac/fix/source/lpc_tables.c",
744 "codecs/isac/fix/source/lpc_tables.h",
745 "codecs/isac/fix/source/pitch_estimator.c",
746 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700747 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000748 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700749 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000750 "codecs/isac/fix/source/pitch_gain_tables.c",
751 "codecs/isac/fix/source/pitch_gain_tables.h",
752 "codecs/isac/fix/source/pitch_lag_tables.c",
753 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000754 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
755 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000756 "codecs/isac/fix/source/transform.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000757 ]
758
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700759 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000760
kjellander676e08f2016-12-07 08:23:27 -0800761 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200762 ":isac_bwinfo",
kjellander676e08f2016-12-07 08:23:27 -0800763 ":isac_common",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100764 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800765 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800766 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800767 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100768 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100769 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700770 "../../rtc_base:compile_assert_c",
771 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100772 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100773 "../../system_wrappers:cpu_features_api",
kjellander676e08f2016-12-07 08:23:27 -0800774 ]
775
kwiberga6ca5182017-01-30 05:28:54 -0800776 public_deps = [
777 ":isac_fix_common",
778 ]
779
mbonadeie5dc3ce2017-01-25 05:34:46 -0800780 if (rtc_build_with_neon) {
781 deps += [ ":isac_neon" ]
782 }
783
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700784 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700785 sources -= [
786 "codecs/isac/fix/source/lattice_c.c",
787 "codecs/isac/fix/source/pitch_filter_c.c",
788 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700789 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000790 }
791
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000792 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000793 sources += [
794 "codecs/isac/fix/source/entropy_coding_mips.c",
795 "codecs/isac/fix/source/filters_mips.c",
796 "codecs/isac/fix/source/lattice_mips.c",
797 "codecs/isac/fix/source/pitch_estimator_mips.c",
798 "codecs/isac/fix/source/transform_mips.c",
799 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700800 sources -= [
801 "codecs/isac/fix/source/lattice_c.c",
802 "codecs/isac/fix/source/pitch_estimator_c.c",
803 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000804 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200805 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000806 }
807 if (mips_dsp_rev > 1) {
808 sources += [
809 "codecs/isac/fix/source/lpc_masking_model_mips.c",
810 "codecs/isac/fix/source/pitch_filter_mips.c",
811 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200812 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000813 }
814 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000815}
816
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700817if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700818 rtc_static_library("isac_neon") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200819 poisonous = [ "audio_codecs" ]
Zhongwei Yaof242e662015-05-06 16:39:17 +0800820 sources = [
821 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800822 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800823 "codecs/isac/fix/source/filters_neon.c",
824 "codecs/isac/fix/source/lattice_neon.c",
825 "codecs/isac/fix/source/transform_neon.c",
826 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000827
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700828 if (current_cpu != "arm64") {
829 # Enable compilation for the NEON instruction set. This is needed
830 # since //build/config/arm.gni only enables NEON for iOS, not Android.
831 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700832 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700833 cflags = [ "-mfpu=neon" ]
834 }
835
836 # Disable LTO on NEON targets due to compiler bug.
837 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000838 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000839 cflags -= [
840 "-flto",
841 "-ffat-lto-objects",
842 ]
843 }
844
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200845 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800846 ":isac_fix_common",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200847 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100848 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100849 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700850 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200851 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000852 }
853}
854
855config("pcm16b_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200856 include_dirs = [ "codecs/pcm16b/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000857}
858
kjellanderb62dbbe2016-09-23 00:38:52 -0700859rtc_static_library("pcm16b") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100860 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200861 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000862 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200863 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100864 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200865 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100866 "codecs/pcm16b/audio_encoder_pcm16b.h",
kwiberg7ea6e592017-08-16 06:12:57 -0700867 "codecs/pcm16b/pcm16b_common.cc",
868 "codecs/pcm16b/pcm16b_common.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000869 ]
870
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000871 deps = [
872 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800873 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800874 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800875 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100876 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700877 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000878 ]
kjellander7439f972016-12-05 22:47:46 -0800879 public_deps = [
880 ":pcm16b_c",
881 ]
882 public_configs = [ ":pcm16b_config" ]
883}
884
885rtc_source_set("pcm16b_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200886 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800887 sources = [
888 "codecs/pcm16b/pcm16b.c",
889 "codecs/pcm16b/pcm16b.h",
890 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000891
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700892 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800893 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100894 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800895 "../..:webrtc_common",
896 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000897}
898
kjellanderb62dbbe2016-09-23 00:38:52 -0700899rtc_static_library("webrtc_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000900 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200901 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000902 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200903 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100904 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000905 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100906 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000907 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000908
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200909 deps = [
minyue41b9c802016-10-06 07:13:54 -0700910 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800911 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800912 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700913 "../../api/audio_codecs/opus:audio_encoder_opus_config",
michaelt566d8202017-01-12 10:17:38 -0800914 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100915 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700916 "../../rtc_base:rtc_base_approved",
917 "../../rtc_base:rtc_numerics",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100918 "../../rtc_base:safe_minmax",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100919 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200920 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200921 ]
kjellander7439f972016-12-05 22:47:46 -0800922 public_deps = [
923 ":webrtc_opus_c",
kwiberge5eb7242017-08-25 03:10:50 -0700924 "../../rtc_base:protobuf_utils",
kjellander7439f972016-12-05 22:47:46 -0800925 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000926
michaelta55f0212017-02-02 07:47:19 -0800927 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800928
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000929 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800930 public_deps += [ rtc_opus_dir ]
931 } else if (build_with_mozilla) {
Dan Minor9c686132018-01-15 10:20:00 -0500932 include_dirs = [ "/media/libopus/include" ]
kjellander7439f972016-12-05 22:47:46 -0800933 }
934}
935
936rtc_source_set("webrtc_opus_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200937 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800938 sources = [
939 "codecs/opus/opus_inst.h",
940 "codecs/opus/opus_interface.c",
941 "codecs/opus/opus_interface.h",
942 ]
943
minyue2e03c662017-02-01 17:31:11 -0800944 defines = audio_coding_defines
945
kjellander7439f972016-12-05 22:47:46 -0800946 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700947 public_deps = [
948 rtc_opus_dir,
949 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000950 } else if (build_with_mozilla) {
951 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000952 }
kjellander7439f972016-12-05 22:47:46 -0800953
954 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100955 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800956 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100957 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700958 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800959 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000960}
961
minyue25f6a392016-09-22 22:23:20 -0700962if (rtc_enable_protobuf) {
963 proto_library("ana_debug_dump_proto") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000964 visibility += webrtc_default_visibility
minyue25f6a392016-09-22 22:23:20 -0700965 sources = [
966 "audio_network_adaptor/debug_dump.proto",
967 ]
jbudorick58f17252017-07-26 14:49:20 -0700968 deps = [
969 ":ana_config_proto",
970 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200971 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700972 }
minyuea1d9ad02016-10-02 14:53:37 -0700973 proto_library("ana_config_proto") {
974 sources = [
975 "audio_network_adaptor/config.proto",
976 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200977 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyuea1d9ad02016-10-02 14:53:37 -0700978 }
minyue25f6a392016-09-22 22:23:20 -0700979}
980
eladalon1e7dd312017-09-12 04:38:25 -0700981rtc_static_library("audio_network_adaptor_config") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000982 visibility += webrtc_default_visibility
eladalon1e7dd312017-09-12 04:38:25 -0700983 sources = [
984 "audio_network_adaptor/audio_network_adaptor_config.cc",
985 "audio_network_adaptor/include/audio_network_adaptor_config.h",
986 ]
987 deps = [
Danil Chapovalovb6021232018-06-19 13:26:36 +0200988 "//third_party/abseil-cpp/absl/types:optional",
eladalon1e7dd312017-09-12 04:38:25 -0700989 ]
990}
991
minyue0d382ef2016-10-07 07:59:28 -0700992rtc_static_library("audio_network_adaptor") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000993 visibility += webrtc_default_visibility
minyue7610f852016-09-07 13:51:51 -0700994 sources = [
minyuecaa9cb22016-09-13 13:34:15 -0700995 "audio_network_adaptor/audio_network_adaptor_impl.cc",
996 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700997 "audio_network_adaptor/bitrate_controller.cc",
998 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700999 "audio_network_adaptor/channel_controller.cc",
1000 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -07001001 "audio_network_adaptor/controller.cc",
1002 "audio_network_adaptor/controller.h",
1003 "audio_network_adaptor/controller_manager.cc",
1004 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -07001005 "audio_network_adaptor/debug_dump_writer.cc",
1006 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -07001007 "audio_network_adaptor/dtx_controller.cc",
1008 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -08001009 "audio_network_adaptor/event_log_writer.cc",
1010 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -07001011 "audio_network_adaptor/fec_controller_plr_based.cc",
1012 "audio_network_adaptor/fec_controller_plr_based.h",
1013 "audio_network_adaptor/fec_controller_rplr_based.cc",
1014 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -07001015 "audio_network_adaptor/frame_length_controller.cc",
1016 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -07001017 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -07001018 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -07001019 ]
minyue25f6a392016-09-22 22:23:20 -07001020
eladalon1e7dd312017-09-12 04:38:25 -07001021 public_deps = [
1022 ":audio_network_adaptor_config",
1023 ]
1024
minyue41b9c802016-10-06 07:13:54 -07001025 deps = [
1026 "../..:webrtc_common",
ivoce1198e02017-09-08 08:13:19 -07001027 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001028 "../../common_audio",
Qingsi Wang970b0882018-02-01 11:04:46 -08001029 "../../logging:rtc_event_audio",
minyue4b7c9522017-01-24 04:54:59 -08001030 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001031 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001032 "../../rtc_base:protobuf_utils",
1033 "../../rtc_base:rtc_base_approved",
Karl Wiberg6a4d4112018-03-23 10:39:34 +01001034 "../../rtc_base/system:file_wrapper",
minyue41b9c802016-10-06 07:13:54 -07001035 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001036 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001037 "//third_party/abseil-cpp/absl/types:optional",
minyue41b9c802016-10-06 07:13:54 -07001038 ]
1039
minyue25f6a392016-09-22 22:23:20 -07001040 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -07001041 deps += [
minyuea1d9ad02016-10-02 14:53:37 -07001042 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -07001043 ":ana_debug_dump_proto",
1044 ]
minyue25f6a392016-09-22 22:23:20 -07001045 }
minyue4b7c9522017-01-24 04:54:59 -08001046
1047 if (!build_with_chromium && is_clang) {
1048 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1049 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1050 }
minyue7610f852016-09-07 13:51:51 -07001051}
1052
kwiberg65cb70d2017-03-03 06:16:28 -08001053rtc_source_set("neteq_decoder_enum") {
1054 sources = [
1055 "neteq/neteq_decoder_enum.cc",
1056 "neteq/neteq_decoder_enum.h",
1057 ]
1058 deps = [
1059 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001060 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001061 "//third_party/abseil-cpp/absl/types:optional",
kwiberg65cb70d2017-03-03 06:16:28 -08001062 ]
1063}
kjellander676e08f2016-12-07 08:23:27 -08001064
kwiberg65cb70d2017-03-03 06:16:28 -08001065rtc_static_library("neteq") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001066 visibility += webrtc_default_visibility
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001067 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001068 "neteq/accelerate.cc",
1069 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001070 "neteq/audio_multi_vector.cc",
1071 "neteq/audio_multi_vector.h",
1072 "neteq/audio_vector.cc",
1073 "neteq/audio_vector.h",
1074 "neteq/background_noise.cc",
1075 "neteq/background_noise.h",
1076 "neteq/buffer_level_filter.cc",
1077 "neteq/buffer_level_filter.h",
1078 "neteq/comfort_noise.cc",
1079 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -07001080 "neteq/cross_correlation.cc",
1081 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001082 "neteq/decision_logic.cc",
1083 "neteq/decision_logic.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001084 "neteq/decoder_database.cc",
1085 "neteq/decoder_database.h",
1086 "neteq/defines.h",
1087 "neteq/delay_manager.cc",
1088 "neteq/delay_manager.h",
1089 "neteq/delay_peak_detector.cc",
1090 "neteq/delay_peak_detector.h",
1091 "neteq/dsp_helper.cc",
1092 "neteq/dsp_helper.h",
1093 "neteq/dtmf_buffer.cc",
1094 "neteq/dtmf_buffer.h",
1095 "neteq/dtmf_tone_generator.cc",
1096 "neteq/dtmf_tone_generator.h",
1097 "neteq/expand.cc",
1098 "neteq/expand.h",
Henrik Lundin3ef3bfc2018-04-10 15:10:26 +02001099 "neteq/expand_uma_logger.cc",
1100 "neteq/expand_uma_logger.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001101 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001102 "neteq/merge.cc",
1103 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001104 "neteq/nack_tracker.cc",
1105 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001106 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001107 "neteq/neteq_impl.cc",
1108 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001109 "neteq/normal.cc",
1110 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001111 "neteq/packet.cc",
1112 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001113 "neteq/packet_buffer.cc",
1114 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001115 "neteq/post_decode_vad.cc",
1116 "neteq/post_decode_vad.h",
1117 "neteq/preemptive_expand.cc",
1118 "neteq/preemptive_expand.h",
1119 "neteq/random_vector.cc",
1120 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001121 "neteq/red_payload_splitter.cc",
1122 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001123 "neteq/rtcp.cc",
1124 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001125 "neteq/statistics_calculator.cc",
1126 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001127 "neteq/sync_buffer.cc",
1128 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001129 "neteq/tick_timer.cc",
1130 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001131 "neteq/time_stretch.cc",
1132 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001133 "neteq/timestamp_scaler.cc",
1134 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001135 ]
1136
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001137 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001138 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001139 ":cng",
kwiberg65cb70d2017-03-03 06:16:28 -08001140 ":neteq_decoder_enum",
mbonadei1140f972017-04-26 03:38:35 -07001141 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001142 "../..:typedefs",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001143 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001144 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001145 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001146 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001147 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01001148 "../../common_audio:common_audio_c",
Jonas Olssonabbe8412018-04-03 13:40:05 +02001149 "../../rtc_base:audio_format_to_string",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001150 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001151 "../../rtc_base:gtest_prod",
1152 "../../rtc_base:rtc_base_approved",
Karl Wiberg12edf4c2018-03-07 14:18:56 +01001153 "../../rtc_base:safe_minmax",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001154 "../../rtc_base:sanitizer",
Karl Wiberg80ba3332018-02-05 10:33:35 +01001155 "../../rtc_base/system:fallthrough",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001156 "../../system_wrappers:field_trial_api",
1157 "../../system_wrappers:metrics_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001158 "//third_party/abseil-cpp/absl/types:optional",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001159 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001160}
kjellanderfb114242016-06-13 00:19:48 -07001161
henrik.lundin58466f62016-10-05 02:27:42 -07001162# Although providing only test support, this target must be outside of the
1163# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1164# that ultimately are built and run as a part of the Chromium ecosystem, which
1165# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001166rtc_source_set("neteq_tools_minimal") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001167 visibility += webrtc_default_visibility
henrik.lundin58466f62016-10-05 02:27:42 -07001168 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001169 "neteq/tools/audio_sink.cc",
1170 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001171 "neteq/tools/encode_neteq_input.cc",
1172 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001173 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001174 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001175 "neteq/tools/neteq_test.cc",
1176 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001177 "neteq/tools/packet.cc",
1178 "neteq/tools/packet.h",
1179 "neteq/tools/packet_source.cc",
1180 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001181 ]
1182
kjellandere40a7ee2016-10-16 23:56:12 -07001183 if (!build_with_chromium && is_clang) {
1184 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001185 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1186 }
kjellander676e08f2016-12-07 08:23:27 -08001187
1188 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001189 ":neteq",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001190 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001191 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001192 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001193 "../../api/audio:audio_frame_api",
ossueb1fde42017-05-02 06:46:30 -07001194 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001195 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001196 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001197 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001198 "../rtp_rtcp",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001199 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -08001200 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001201}
1202
mbonadei3edccb92017-06-01 04:47:20 -07001203rtc_source_set("neteq_test_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001204 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001205 testonly = true
1206 sources = [
1207 "neteq/tools/audio_checksum.h",
1208 "neteq/tools/audio_loop.cc",
1209 "neteq/tools/audio_loop.h",
1210 "neteq/tools/constant_pcm_packet_source.cc",
1211 "neteq/tools/constant_pcm_packet_source.h",
Henrik Lundin9f2e6242018-07-02 14:05:37 +02001212 "neteq/tools/neteq_packet_source_input.cc",
1213 "neteq/tools/neteq_packet_source_input.h",
mbonadei3edccb92017-06-01 04:47:20 -07001214 "neteq/tools/output_audio_file.h",
1215 "neteq/tools/output_wav_file.h",
1216 "neteq/tools/rtp_file_source.cc",
1217 "neteq/tools/rtp_file_source.h",
1218 "neteq/tools/rtp_generator.cc",
1219 "neteq/tools/rtp_generator.h",
1220 ]
1221
1222 public_configs = [ ":neteq_tools_config" ]
1223
1224 if (!build_with_chromium && is_clang) {
1225 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1226 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1227 }
1228
1229 deps = [
1230 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001231 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001232 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001233 "../../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +01001234 "../../api:libjingle_peerconnection_api",
mbonadei3edccb92017-06-01 04:47:20 -07001235 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001236 "../../rtc_base:checks",
Joachim Bauch4e909192017-12-19 22:27:51 +01001237 "../../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001238 "../../rtc_base:rtc_base_approved",
1239 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001240 "../../test:rtp_test_utils",
1241 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001242 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001243 ]
1244
1245 public_deps = [
1246 ":neteq_tools",
1247 ":neteq_tools_minimal",
1248 ]
1249
1250 if (rtc_enable_protobuf) {
1251 sources += [
Henrik Lundin9f2e6242018-07-02 14:05:37 +02001252 "neteq/tools/neteq_event_log_input.cc",
1253 "neteq/tools/neteq_event_log_input.h",
mbonadei3edccb92017-06-01 04:47:20 -07001254 ]
1255 deps += [ ":rtc_event_log_source" ]
1256 }
1257}
1258
1259config("neteq_tools_config") {
1260 include_dirs = [ "tools" ]
1261}
1262
1263rtc_source_set("neteq_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001264 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001265 sources = [
1266 "neteq/tools/fake_decode_from_file.cc",
1267 "neteq/tools/fake_decode_from_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001268 "neteq/tools/neteq_delay_analyzer.cc",
1269 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001270 "neteq/tools/neteq_replacement_input.cc",
1271 "neteq/tools/neteq_replacement_input.h",
Minyue Li2b415da2018-04-16 14:33:53 +02001272 "neteq/tools/neteq_stats_getter.cc",
1273 "neteq/tools/neteq_stats_getter.h",
mbonadei3edccb92017-06-01 04:47:20 -07001274 ]
1275
1276 public_configs = [ ":neteq_tools_config" ]
1277
1278 if (!build_with_chromium && is_clang) {
1279 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1280 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1281 }
1282
1283 deps = [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001284 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001285 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001286 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001287 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001288 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001289 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001290 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001291 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001292 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001293 "//third_party/abseil-cpp/absl/types:optional",
mbonadei3edccb92017-06-01 04:47:20 -07001294 ]
1295
1296 public_deps = [
Ivo Creusen385b10b2017-10-13 12:37:27 +02001297 ":neteq_input_audio_tools",
mbonadei3edccb92017-06-01 04:47:20 -07001298 ":neteq_tools_minimal",
1299 ]
1300}
1301
Ivo Creusen385b10b2017-10-13 12:37:27 +02001302rtc_source_set("neteq_input_audio_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001303 visibility += webrtc_default_visibility
Ivo Creusen385b10b2017-10-13 12:37:27 +02001304 sources = [
1305 "neteq/tools/input_audio_file.cc",
1306 "neteq/tools/input_audio_file.h",
1307 "neteq/tools/resample_input_audio_file.cc",
1308 "neteq/tools/resample_input_audio_file.h",
1309 ]
1310
1311 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001312 "../..:typedefs",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001313 "../..:webrtc_common",
1314 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001315 "../../rtc_base:checks",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001316 "../../rtc_base:rtc_base_approved",
1317 ]
1318}
1319
mbonadei3edccb92017-06-01 04:47:20 -07001320if (rtc_enable_protobuf) {
1321 rtc_static_library("rtc_event_log_source") {
1322 testonly = true
1323
mbonadei3edccb92017-06-01 04:47:20 -07001324 sources = [
1325 "neteq/tools/rtc_event_log_source.cc",
1326 "neteq/tools/rtc_event_log_source.h",
1327 ]
1328
1329 if (!build_with_chromium && is_clang) {
1330 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1331 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1332 }
1333
1334 deps = [
Patrik Höglundebe62402017-11-24 13:51:52 +01001335 ":neteq_tools_minimal",
mbonadei3edccb92017-06-01 04:47:20 -07001336 "../../logging:rtc_event_log_parser",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001337 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001338 "../../rtc_base:rtc_base_approved",
Mirko Bonadei818d9102017-12-12 12:46:13 +01001339 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001340 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001341 ]
1342 public_deps = [
1343 "../../logging:rtc_event_log_proto",
1344 ]
1345 }
1346}
1347
kjellanderfb114242016-06-13 00:19:48 -07001348if (rtc_include_tests) {
Patrik Höglundb960e412018-01-05 11:46:26 +01001349 rtc_source_set("mocks") {
1350 testonly = true
1351 sources = [
1352 "audio_network_adaptor/mock/mock_audio_network_adaptor.h",
1353 "audio_network_adaptor/mock/mock_controller.h",
1354 "audio_network_adaptor/mock/mock_controller_manager.h",
1355 "audio_network_adaptor/mock/mock_debug_dump_writer.h",
1356 ]
1357 deps = [
1358 ":audio_network_adaptor",
1359 "../../test:test_support",
1360 ]
1361 }
1362
kjellander6ceab082016-10-28 05:44:03 -07001363 group("audio_coding_tests") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001364 visibility += webrtc_default_visibility
kjellander6ceab082016-10-28 05:44:03 -07001365 testonly = true
1366 public_deps = [
kjellander6ceab082016-10-28 05:44:03 -07001367 ":acm_receive_test",
1368 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001369 ":audio_codec_speed_tests",
1370 ":audio_decoder_unittests",
1371 ":audio_decoder_unittests",
1372 ":delay_test",
1373 ":g711_test",
1374 ":g722_test",
1375 ":ilbc_test",
kjellander6ceab082016-10-28 05:44:03 -07001376 ":isac_api_test",
1377 ":isac_fix_test",
1378 ":isac_switch_samprate_test",
1379 ":isac_test",
1380 ":neteq_ilbc_quality_test",
1381 ":neteq_isac_quality_test",
1382 ":neteq_opus_quality_test",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001383 ":neteq_pcm16b_quality_test",
kjellander6ceab082016-10-28 05:44:03 -07001384 ":neteq_pcmu_quality_test",
1385 ":neteq_speed_test",
1386 ":rtp_analyze",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001387 ":rtp_encode",
Henrik Lundin81af4142017-11-24 13:39:39 +01001388 ":rtp_jitter",
kjellander6ceab082016-10-28 05:44:03 -07001389 ":rtpcat",
1390 ":webrtc_opus_fec_test",
1391 ]
1392 if (rtc_enable_protobuf) {
1393 public_deps += [ ":neteq_rtpplay" ]
1394 }
1395 }
1396
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001397 rtc_source_set("audio_coding_modules_tests") {
1398 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001399 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001400
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001401 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001402 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001403 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001404 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001405 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001406 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001407 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001408 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001409 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001410 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001411 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001412 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001413 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001414 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001415 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001416 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001417 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001418 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001419 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001420 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001421 "test/Tester.cc",
1422 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001423 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001424 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001425 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001426 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001427 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001428 "test/target_delay_unittest.cc",
1429 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001430 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001431 ]
1432 deps = [
1433 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001434 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001435 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001436 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001437 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001438 "../..:typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001439 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001440 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001441 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001442 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001443 "../../rtc_base:rtc_base_approved",
Karl Wiberg2b857922018-03-23 14:53:54 +01001444 "../../rtc_base/synchronization:rw_lock_wrapper",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001445 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001446 "../../test:fileutils",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001447 "../../test:test_support",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001448 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001449 ]
1450 defines = audio_coding_defines
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001451 if (!build_with_chromium && is_clang) {
1452 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1453 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1454 }
1455 }
1456
ehmaldonado021eef32017-01-05 07:09:50 -08001457 rtc_source_set("audio_coding_perf_tests") {
1458 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001459 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001460
ehmaldonado021eef32017-01-05 07:09:50 -08001461 sources = [
1462 "codecs/opus/opus_complexity_unittest.cc",
1463 "neteq/test/neteq_performance_unittest.cc",
1464 ]
1465 deps = [
1466 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001467 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001468 "../..:typedefs",
ehmaldonado021eef32017-01-05 07:09:50 -08001469 "../..:webrtc_common",
Karl Wiberg7275e182017-10-25 09:57:40 +02001470 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001471 "../../rtc_base:protobuf_utils",
1472 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001473 "../../system_wrappers",
1474 "../../system_wrappers:field_trial_api",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001475 "../../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +01001476 "../../test:perf_test",
ehmaldonado021eef32017-01-05 07:09:50 -08001477 "../../test:test_support",
1478 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001479
ehmaldonado021eef32017-01-05 07:09:50 -08001480 if (!build_with_chromium && is_clang) {
1481 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1482 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1483 }
1484 }
1485
ehmaldonado38a21322016-09-02 04:10:34 -07001486 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001487 testonly = true
1488 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001489 "acm2/acm_receive_test.cc",
1490 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001491 ]
1492
kjellanderfb114242016-06-13 00:19:48 -07001493 defines = audio_coding_defines
1494
1495 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001496 "..:module_api",
kjellanderfb114242016-06-13 00:19:48 -07001497 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001498 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001499 "../../api/audio_codecs:audio_codecs_api",
1500 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001501 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001502 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001503 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001504 "//testing/gtest",
1505 ]
1506 }
1507
ehmaldonado38a21322016-09-02 04:10:34 -07001508 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001509 testonly = true
1510 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001511 "acm2/acm_send_test.cc",
1512 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001513 ]
1514
kjellanderfb114242016-06-13 00:19:48 -07001515 defines = audio_coding_defines
1516
1517 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001518 "../../api/audio:audio_frame_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001519 "../../rtc_base:checks",
kjellanderfb114242016-06-13 00:19:48 -07001520 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001521 ":neteq_tools",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001522 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07001523 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001524 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001525 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001526 "//testing/gtest",
1527 ]
1528 }
1529
ehmaldonado38a21322016-09-02 04:10:34 -07001530 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001531 testonly = true
1532 sources = [
1533 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001534 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001535 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001536 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001537 "test/delay_test.cc",
1538 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001539 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001540 ]
1541
aleloi333f2062016-07-28 01:21:29 -07001542 deps = [
1543 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001544 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001545 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001546 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001547 "../..:typedefs",
aleloi333f2062016-07-28 01:21:29 -07001548 "../../:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001549 "../../api/audio:audio_frame_api",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001550 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001551 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001552 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001553 "../../system_wrappers",
1554 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001555 "../../test:fileutils",
aleloi333f2062016-07-28 01:21:29 -07001556 "../../test:test_support",
1557 "../rtp_rtcp",
1558 "//testing/gtest",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001559 "//third_party/abseil-cpp/absl/types:optional",
aleloi333f2062016-07-28 01:21:29 -07001560 ]
1561 } # delay_test
1562
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001563 audio_decoder_unittests_resources =
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001564 [ "../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001565
1566 if (is_ios) {
1567 bundle_data("audio_decoder_unittests_bundle_data") {
1568 testonly = true
1569 sources = audio_decoder_unittests_resources
1570 outputs = [
1571 "{{bundle_resources_dir}}/{{source_file_part}}",
1572 ]
1573 }
1574 }
1575
ehmaldonado38a21322016-09-02 04:10:34 -07001576 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001577 testonly = true
1578 sources = [
1579 "neteq/audio_decoder_unittest.cc",
1580 ]
1581
kjellandere40a7ee2016-10-16 23:56:12 -07001582 if (!build_with_chromium && is_clang) {
1583 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001584 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001585 }
1586
Patrik Höglund7696bef2018-03-15 15:05:39 +01001587 deps = [
1588 "../../test:fileutils",
1589 ]
charujainddf3e4a2016-08-01 07:49:42 -07001590
1591 defines = neteq_defines
1592
1593 deps += audio_coding_deps
1594 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001595 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001596 ":isac",
1597 ":isac_fix",
1598 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001599 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001600 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001601 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001602 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001603 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001604 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001605 "//testing/gtest",
1606 ]
1607
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001608 data = audio_decoder_unittests_resources
1609
charujainddf3e4a2016-08-01 07:49:42 -07001610 if (is_android) {
1611 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001612 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001613 }
kjellander32c4a202016-08-30 02:53:49 -07001614 if (is_ios) {
1615 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001616 }
1617 } # audio_decoder_unittests
1618
kjellanderfb114242016-06-13 00:19:48 -07001619 if (rtc_enable_protobuf) {
1620 proto_library("neteq_unittest_proto") {
1621 sources = [
1622 "neteq/neteq_unittest.proto",
1623 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001624 proto_out_dir = "modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001625 }
henrik.lundin03153f12016-06-21 05:38:42 -07001626
ehmaldonado38a21322016-09-02 04:10:34 -07001627 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001628 testonly = true
1629 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001630 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001631 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001632 "../../rtc_base:checks",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001633 "../../test:fileutils",
mbonadei1140f972017-04-26 03:38:35 -07001634 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001635 sources = [
1636 "neteq/tools/neteq_rtpplay.cc",
1637 ]
1638
kjellandere40a7ee2016-10-16 23:56:12 -07001639 if (!build_with_chromium && is_clang) {
1640 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001641 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001642 }
1643
henrik.lundin03153f12016-06-21 05:38:42 -07001644 deps += [
1645 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001646 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001647 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001648 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001649 "../../system_wrappers:system_wrappers_default",
1650 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001651 ]
1652 }
kjellanderfb114242016-06-13 00:19:48 -07001653 }
1654
minyue81f1da32017-07-27 05:49:57 -07001655 audio_codec_speed_tests_resources = [
1656 "//resources/audio_coding/music_stereo_48kHz.pcm",
1657 "//resources/audio_coding/speech_mono_16kHz.pcm",
1658 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1659 ]
1660
1661 if (is_ios) {
1662 bundle_data("audio_codec_speed_tests_data") {
1663 testonly = true
1664 sources = audio_codec_speed_tests_resources
1665 outputs = [
1666 "{{bundle_resources_dir}}/{{source_file_part}}",
1667 ]
1668 }
1669 }
1670
ehmaldonado38a21322016-09-02 04:10:34 -07001671 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001672 testonly = true
1673 defines = []
Patrik Höglund3e113432017-12-15 14:40:10 +01001674 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001675 "../..:typedefs",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001676 "../../test:fileutils",
Patrik Höglund3e113432017-12-15 14:40:10 +01001677 ]
aleloie6b60a42016-07-28 02:34:30 -07001678 sources = [
1679 "codecs/isac/fix/test/isac_speed_test.cc",
1680 "codecs/opus/opus_speed_test.cc",
1681 "codecs/tools/audio_codec_speed_test.cc",
1682 "codecs/tools/audio_codec_speed_test.h",
1683 ]
1684
kjellandere40a7ee2016-10-16 23:56:12 -07001685 if (!build_with_chromium && is_clang) {
1686 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001687 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001688 }
1689
minyue81f1da32017-07-27 05:49:57 -07001690 data = audio_codec_speed_tests_resources
1691
aleloie6b60a42016-07-28 02:34:30 -07001692 if (is_android) {
1693 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001694 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001695 }
1696
minyue81f1da32017-07-27 05:49:57 -07001697 if (is_ios) {
1698 deps += [ ":audio_codec_speed_tests_data" ]
1699 }
1700
aleloie6b60a42016-07-28 02:34:30 -07001701 deps += [
1702 ":isac_fix",
1703 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001704 "../..:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001705 "../../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001706 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001707 "../../system_wrappers:metrics_default",
aleloie6b60a42016-07-28 02:34:30 -07001708 "../../system_wrappers:system_wrappers_default",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001709 "../../test:field_trial",
ehmaldonado26bddb92016-11-30 06:12:01 -08001710 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001711 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001712 "//testing/gtest",
1713 ]
1714 }
1715
ehmaldonado38a21322016-09-02 04:10:34 -07001716 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001717 testonly = true
1718 sources = [
1719 "neteq/tools/neteq_external_decoder_test.cc",
1720 "neteq/tools/neteq_external_decoder_test.h",
1721 "neteq/tools/neteq_performance_test.cc",
1722 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001723 ]
1724
kjellandere40a7ee2016-10-16 23:56:12 -07001725 if (!build_with_chromium && is_clang) {
1726 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001727 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001728 }
1729
1730 deps = [
1731 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001732 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001733 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001734 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001735 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001736 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001737 "../../api/audio_codecs:audio_codecs_api",
1738 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001739 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001740 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001741 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001742 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001743 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001744 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001745 ]
1746 }
1747
ehmaldonado38a21322016-09-02 04:10:34 -07001748 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001749 testonly = true
1750 sources = [
1751 "neteq/tools/neteq_quality_test.cc",
1752 "neteq/tools/neteq_quality_test.h",
1753 ]
1754
kjellandere40a7ee2016-10-16 23:56:12 -07001755 if (!build_with_chromium && is_clang) {
1756 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001757 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001758 }
1759
1760 deps = [
1761 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001762 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001763 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001764 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001765 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001766 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001767 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001768 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001769 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001770 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001771 ]
1772 }
1773
Henrik Lundin1391bd42017-11-24 09:28:57 +01001774 rtc_executable("rtp_encode") {
aleloi82667732016-08-02 01:45:50 -07001775 testonly = true
1776
Henrik Lundin1391bd42017-11-24 09:28:57 +01001777 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001778 "../..:typedefs",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001779 ":audio_coding",
1780 ":neteq_input_audio_tools",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001781 "../../api/audio:audio_frame_api",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001782 "../../api/audio_codecs/g711:audio_encoder_g711",
1783 "../../api/audio_codecs/L16:audio_encoder_L16",
1784 "../../api/audio_codecs/g722:audio_encoder_g722",
1785 "../../api/audio_codecs/ilbc:audio_encoder_ilbc",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001786 "../../system_wrappers:system_wrappers_default",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001787 "../../api/audio_codecs/isac:audio_encoder_isac",
1788 "../../api/audio_codecs/opus:audio_encoder_opus",
1789 "../../rtc_base:rtc_base_approved",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001790 ]
aleloi82667732016-08-02 01:45:50 -07001791
1792 sources = [
Henrik Lundin1391bd42017-11-24 09:28:57 +01001793 "neteq/tools/rtp_encode.cc",
aleloi82667732016-08-02 01:45:50 -07001794 ]
1795
Henrik Lundin1391bd42017-11-24 09:28:57 +01001796 defines = audio_coding_defines
aleloi82667732016-08-02 01:45:50 -07001797 }
1798
Henrik Lundin81af4142017-11-24 13:39:39 +01001799 rtc_executable("rtp_jitter") {
aleloi76cbe192016-08-02 02:05:03 -07001800 testonly = true
1801
Henrik Lundin81af4142017-11-24 13:39:39 +01001802 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001803 "../..:typedefs",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001804 "../../system_wrappers:system_wrappers_default",
Henrik Lundin81af4142017-11-24 13:39:39 +01001805 "../rtp_rtcp:rtp_rtcp_format",
1806 "../../api:array_view",
1807 "../../rtc_base:rtc_base_approved",
Henrik Lundin81af4142017-11-24 13:39:39 +01001808 ]
1809
aleloi76cbe192016-08-02 02:05:03 -07001810 sources = [
Henrik Lundin81af4142017-11-24 13:39:39 +01001811 "neteq/tools/rtp_jitter.cc",
aleloi76cbe192016-08-02 02:05:03 -07001812 ]
1813
Henrik Lundin81af4142017-11-24 13:39:39 +01001814 defines = audio_coding_defines
aleloi76cbe192016-08-02 02:05:03 -07001815 }
1816
ehmaldonado38a21322016-09-02 04:10:34 -07001817 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001818 testonly = true
1819
1820 sources = [
1821 "neteq/tools/rtpcat.cc",
1822 ]
1823
1824 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001825 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001826 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001827 "../../system_wrappers:system_wrappers_default",
1828 "../../test:rtp_test_utils",
1829 "//testing/gtest",
1830 ]
1831 }
1832
ehmaldonado38a21322016-09-02 04:10:34 -07001833 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001834 testonly = true
1835
1836 sources = [
1837 "neteq/tools/rtp_analyze.cc",
1838 ]
1839
1840 deps = [
1841 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001842 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001843 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001844 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001845 "../../system_wrappers:system_wrappers_default",
1846 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001847 ]
1848
kjellandere40a7ee2016-10-16 23:56:12 -07001849 if (!build_with_chromium && is_clang) {
1850 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001851 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001852 }
1853 }
aleloi630c6d52016-08-10 02:11:30 -07001854
ehmaldonado38a21322016-09-02 04:10:34 -07001855 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001856 testonly = true
1857
1858 sources = [
1859 "neteq/test/neteq_opus_quality_test.cc",
1860 ]
1861
1862 deps = [
1863 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001864 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001865 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001866 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001867 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001868 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001869 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001870 ]
aleloi630c6d52016-08-10 02:11:30 -07001871 }
aleloi116fd612016-08-10 04:16:36 -07001872
ehmaldonado38a21322016-09-02 04:10:34 -07001873 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001874 testonly = true
1875
1876 sources = [
1877 "neteq/test/neteq_speed_test.cc",
1878 ]
1879
1880 deps = [
1881 ":neteq",
1882 ":neteq_test_support",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001883 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001884 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001885 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001886 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001887 "../../test:fileutils",
aleloi116fd612016-08-10 04:16:36 -07001888 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001889 ]
1890 }
aleloi63910122016-08-10 04:41:14 -07001891
ehmaldonado38a21322016-09-02 04:10:34 -07001892 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001893 testonly = true
1894
1895 sources = [
1896 "neteq/test/neteq_ilbc_quality_test.cc",
1897 ]
1898
1899 deps = [
1900 ":ilbc",
1901 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001902 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001903 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001904 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001905 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001906 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001907 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001908 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001909 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001910 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001911 ]
1912 }
aleloi6df36dc2016-08-10 05:04:47 -07001913
ehmaldonado38a21322016-09-02 04:10:34 -07001914 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001915 testonly = true
1916
1917 sources = [
1918 "neteq/test/neteq_isac_quality_test.cc",
1919 ]
1920
1921 deps = [
1922 ":isac_fix",
1923 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001924 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001925 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001926 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001927 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001928 ]
1929 }
aleloic4ac7002016-08-10 05:06:27 -07001930
ehmaldonado38a21322016-09-02 04:10:34 -07001931 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001932 testonly = true
1933
1934 sources = [
1935 "neteq/test/neteq_pcmu_quality_test.cc",
1936 ]
1937
1938 deps = [
1939 ":g711",
1940 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001941 ":neteq_quality_test_support",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001942 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001943 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001944 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001945 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001946 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001947 ]
1948 }
aleloib7186d02016-08-16 01:47:16 -07001949
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001950 rtc_executable("neteq_pcm16b_quality_test") {
1951 testonly = true
1952
1953 sources = [
1954 "neteq/test/neteq_pcm16b_quality_test.cc",
1955 ]
1956
1957 deps = [
1958 ":neteq",
1959 ":neteq_quality_test_support",
1960 ":pcm16b",
1961 "../../rtc_base:checks",
1962 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001963 "../../test:fileutils",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001964 "../../test:test_main",
1965 "//testing/gtest",
1966 ]
1967 }
1968
ehmaldonado38a21322016-09-02 04:10:34 -07001969 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001970 testonly = true
1971
1972 sources = [
1973 "codecs/isac/fix/test/kenny.cc",
1974 ]
1975
1976 deps = [
1977 ":isac_fix",
Edward Lemure66572b2018-01-05 15:34:09 +01001978 "../../test:perf_test",
aleloib7186d02016-08-16 01:47:16 -07001979 "../../test:test_support",
1980 ]
1981
ehmaldonado25586ce2017-09-07 23:18:35 -07001982 data = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001983 "../../resources/speech_and_misc_wb.pcm",
ehmaldonado25586ce2017-09-07 23:18:35 -07001984 ]
aleloib7186d02016-08-16 01:47:16 -07001985 }
aleloi16f55a12016-08-23 08:08:23 -07001986
kjellander7439f972016-12-05 22:47:46 -08001987 rtc_source_set("isac_test_util") {
1988 testonly = true
1989 sources = [
1990 "codecs/isac/main/util/utility.c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001991 "codecs/isac/main/util/utility.h",
kjellander7439f972016-12-05 22:47:46 -08001992 ]
1993 }
1994
ehmaldonado38a21322016-09-02 04:10:34 -07001995 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001996 testonly = true
1997
1998 sources = [
1999 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07002000 ]
2001
2002 include_dirs = [
2003 "codecs/isac/main/include",
2004 "codecs/isac/main/test",
2005 "codecs/isac/main/util",
2006 ]
2007
2008 deps = [
2009 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002010 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002011 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07002012 ]
ivoce51b41a2016-08-24 02:25:57 -07002013 }
2014
ehmaldonado38a21322016-09-02 04:10:34 -07002015 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07002016 testonly = true
2017
2018 sources = [
2019 "codecs/g711/test/testG711.cc",
2020 ]
2021
aleloi16f55a12016-08-23 08:08:23 -07002022 deps = [
2023 ":g711",
2024 ]
2025 }
aleloi9a117842016-08-23 08:36:10 -07002026
ehmaldonado38a21322016-09-02 04:10:34 -07002027 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07002028 testonly = true
2029
2030 sources = [
2031 "codecs/g722/test/testG722.cc",
2032 ]
2033
aleloi9a117842016-08-23 08:36:10 -07002034 deps = [
2035 ":g722",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002036 "../..:typedefs",
aleloi9a117842016-08-23 08:36:10 -07002037 "../..:webrtc_common",
2038 ]
2039 }
ivoc2c670db2016-08-24 06:11:18 -07002040
ehmaldonado38a21322016-09-02 04:10:34 -07002041 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07002042 testonly = true
2043
2044 sources = [
2045 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07002046 ]
2047
aleloicfee2152016-08-29 04:09:19 -07002048 deps = [
2049 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002050 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002051 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07002052 ]
2053
2054 include_dirs = [
2055 "codecs/isac/main/include",
2056 "codecs/isac/main/test",
2057 "codecs/isac/main/util",
2058 ]
2059 }
2060
ehmaldonado38a21322016-09-02 04:10:34 -07002061 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002062 testonly = true
2063
2064 sources = [
2065 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002066 ]
2067
aleloicfee2152016-08-29 04:09:19 -07002068 deps = [
2069 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002070 ":isac_test_util",
Mirko Bonadei08973ee2018-02-01 14:12:55 +01002071 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002072 "../../common_audio:common_audio_c",
aleloicfee2152016-08-29 04:09:19 -07002073 ]
2074
2075 include_dirs = [
2076 "codecs/isac/main/include",
2077 "codecs/isac/main/test",
2078 "codecs/isac/main/util",
2079 "../../common_audio/signal_processing/include",
2080 ]
2081 }
2082
ehmaldonado38a21322016-09-02 04:10:34 -07002083 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002084 testonly = true
2085
2086 sources = [
2087 "codecs/ilbc/test/iLBC_test.c",
2088 ]
2089
aleloicfee2152016-08-29 04:09:19 -07002090 deps = [
2091 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002092 ]
2093 }
2094
ehmaldonado38a21322016-09-02 04:10:34 -07002095 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002096 testonly = true
2097
2098 sources = [
2099 "codecs/opus/opus_fec_test.cc",
2100 ]
2101
2102 deps = [
2103 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002104 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002105 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002106 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08002107 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002108 "//testing/gtest",
2109 ]
2110
kjellandere40a7ee2016-10-16 23:56:12 -07002111 if (!build_with_chromium && is_clang) {
2112 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002113 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002114 }
2115 }
ehmaldonado36268652017-01-19 08:27:11 -08002116
2117 rtc_source_set("audio_coding_unittests") {
2118 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00002119 visibility += webrtc_default_visibility
ehmaldonado36268652017-01-19 08:27:11 -08002120
2121 sources = [
2122 "acm2/acm_receiver_unittest.cc",
2123 "acm2/audio_coding_module_unittest.cc",
2124 "acm2/call_statistics_unittest.cc",
2125 "acm2/codec_manager_unittest.cc",
2126 "acm2/rent_a_codec_unittest.cc",
2127 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2128 "audio_network_adaptor/bitrate_controller_unittest.cc",
2129 "audio_network_adaptor/channel_controller_unittest.cc",
2130 "audio_network_adaptor/controller_manager_unittest.cc",
2131 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002132 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002133 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2134 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002135 "audio_network_adaptor/frame_length_controller_unittest.cc",
elad.alon326263a2017-03-29 03:16:58 -07002136 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002137 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002138 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002139 "codecs/cng/audio_encoder_cng_unittest.cc",
2140 "codecs/cng/cng_unittest.cc",
2141 "codecs/ilbc/ilbc_unittest.cc",
2142 "codecs/isac/fix/source/filterbanks_unittest.cc",
2143 "codecs/isac/fix/source/filters_unittest.cc",
2144 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2145 "codecs/isac/fix/source/transform_unittest.cc",
2146 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2147 "codecs/isac/main/source/isac_unittest.cc",
2148 "codecs/isac/unittest.cc",
2149 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002150 "codecs/opus/audio_encoder_opus_unittest.cc",
Alex Luebseeb27652017-11-20 11:13:56 -08002151 "codecs/opus/opus_bandwidth_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002152 "codecs/opus/opus_unittest.cc",
2153 "codecs/red/audio_encoder_copy_red_unittest.cc",
2154 "neteq/audio_multi_vector_unittest.cc",
2155 "neteq/audio_vector_unittest.cc",
2156 "neteq/background_noise_unittest.cc",
2157 "neteq/buffer_level_filter_unittest.cc",
2158 "neteq/comfort_noise_unittest.cc",
2159 "neteq/decision_logic_unittest.cc",
2160 "neteq/decoder_database_unittest.cc",
2161 "neteq/delay_manager_unittest.cc",
2162 "neteq/delay_peak_detector_unittest.cc",
2163 "neteq/dsp_helper_unittest.cc",
2164 "neteq/dtmf_buffer_unittest.cc",
2165 "neteq/dtmf_tone_generator_unittest.cc",
2166 "neteq/expand_unittest.cc",
2167 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002168 "neteq/mock/mock_buffer_level_filter.h",
2169 "neteq/mock/mock_decoder_database.h",
2170 "neteq/mock/mock_delay_manager.h",
2171 "neteq/mock/mock_delay_peak_detector.h",
2172 "neteq/mock/mock_dtmf_buffer.h",
2173 "neteq/mock/mock_dtmf_tone_generator.h",
2174 "neteq/mock/mock_expand.h",
2175 "neteq/mock/mock_external_decoder_pcm16b.h",
2176 "neteq/mock/mock_packet_buffer.h",
2177 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002178 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002179 "neteq/nack_tracker_unittest.cc",
2180 "neteq/neteq_external_decoder_unittest.cc",
2181 "neteq/neteq_impl_unittest.cc",
2182 "neteq/neteq_network_stats_unittest.cc",
2183 "neteq/neteq_stereo_unittest.cc",
2184 "neteq/neteq_unittest.cc",
2185 "neteq/normal_unittest.cc",
2186 "neteq/packet_buffer_unittest.cc",
2187 "neteq/post_decode_vad_unittest.cc",
2188 "neteq/random_vector_unittest.cc",
2189 "neteq/red_payload_splitter_unittest.cc",
Henrik Lundinac0a5032017-09-25 12:22:46 +02002190 "neteq/statistics_calculator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002191 "neteq/sync_buffer_unittest.cc",
2192 "neteq/tick_timer_unittest.cc",
2193 "neteq/time_stretch_unittest.cc",
2194 "neteq/timestamp_scaler_unittest.cc",
2195 "neteq/tools/input_audio_file_unittest.cc",
2196 "neteq/tools/packet_unittest.cc",
2197 ]
2198
2199 deps = [
2200 ":acm_receive_test",
2201 ":acm_send_test",
2202 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002203 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002204 ":audio_format_conversion",
2205 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002206 ":cng",
2207 ":g711",
2208 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002209 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002210 ":isac_c",
2211 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002212 ":legacy_encoded_audio_frame",
Patrik Höglundb960e412018-01-05 11:46:26 +01002213 ":mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002214 ":neteq",
2215 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002216 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002217 ":pcm16b",
2218 ":red",
2219 ":rent_a_codec",
2220 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002221 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002222 "../..:typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002223 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02002224 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08002225 "../../api/audio_codecs:audio_codecs_api",
2226 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002227 "../../api/audio_codecs:builtin_audio_encoder_factory",
Alex Luebseeb27652017-11-20 11:13:56 -08002228 "../../api/audio_codecs/opus:audio_decoder_opus",
Karl Wiberg7275e182017-10-25 09:57:40 +02002229 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonado36268652017-01-19 08:27:11 -08002230 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002231 "../../common_audio:common_audio_c",
charujain9a451162017-09-15 03:51:34 -07002232 "../../common_audio:mock_common_audio",
Patrik Höglund731082c2018-01-03 09:08:20 +01002233 "../../logging:mocks",
Qingsi Wang970b0882018-02-01 11:04:46 -08002234 "../../logging:rtc_event_audio",
Elad Alon4a87e1c2017-10-03 16:11:34 +02002235 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002236 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002237 "../../rtc_base:protobuf_utils",
2238 "../../rtc_base:rtc_base",
2239 "../../rtc_base:rtc_base_approved",
2240 "../../rtc_base:rtc_base_tests_utils",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002241 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01002242 "../../system_wrappers",
2243 "../../system_wrappers:cpu_features_api",
kwiberg37e99fd2017-04-10 05:15:48 -07002244 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002245 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002246 "../../test:fileutils",
ehmaldonado36268652017-01-19 08:27:11 -08002247 "../../test:rtp_test_utils",
2248 "../../test:test_common",
2249 "../../test:test_support",
ehmaldonado36268652017-01-19 08:27:11 -08002250 "//testing/gtest",
ehmaldonado36268652017-01-19 08:27:11 -08002251 ]
2252
2253 defines = audio_coding_defines
2254
2255 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002256 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002257 deps += [
2258 ":ana_config_proto",
2259 ":neteq_unittest_proto",
2260 ]
2261 }
2262
2263 if (!build_with_chromium && is_clang) {
2264 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2265 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2266 }
2267 }
kjellanderfb114242016-06-13 00:19:48 -07002268}
kwiberg087bd342017-02-10 08:15:44 -08002269
2270# For backwards compatibility only! Use
2271# webrtc/api/audio_codecs:audio_codecs_api instead.
2272# TODO(kwiberg): Remove this.
2273rtc_source_set("audio_decoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002274 visibility += [ "*" ]
kwiberg087bd342017-02-10 08:15:44 -08002275 sources = [
2276 "codecs/audio_decoder.h",
2277 ]
2278 deps = [
2279 "../../api/audio_codecs:audio_codecs_api",
2280 ]
2281}
2282
2283# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002284# webrtc/api/audio_codecs:audio_codecs_api instead.
2285# TODO(ossu): Remove this.
2286rtc_source_set("audio_encoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002287 visibility += [ "*" ]
ossueb1fde42017-05-02 06:46:30 -07002288 sources = [
2289 "codecs/audio_encoder.h",
2290 ]
2291 deps = [
2292 "../../api/audio_codecs:audio_codecs_api",
2293 ]
2294}