blob: c3473b7e9ab2c28bc7c12046426ee3ddeeedb4d1 [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 = [
292 "codecs/g722/g722_decode.c",
293 "codecs/g722/g722_enc_dec.h",
294 "codecs/g722/g722_encode.c",
295 "codecs/g722/g722_interface.c",
296 "codecs/g722/g722_interface.h",
297 ]
kjellander676e08f2016-12-07 08:23:27 -0800298 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100299 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800300 "../..:webrtc_common",
301 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000302}
303
304config("ilbc_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200305 include_dirs = [ "codecs/ilbc/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000306}
307
kjellanderb62dbbe2016-09-23 00:38:52 -0700308rtc_static_library("ilbc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000309 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200310 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000311 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700312 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100313 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200314 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100315 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800316 ]
317
318 public_configs = [ ":ilbc_config" ]
319
320 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800321 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800322 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800323 "../../api/audio_codecs:audio_codecs_api",
solenbergdb3c9b02017-06-28 02:05:04 -0700324 "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
kjellander7439f972016-12-05 22:47:46 -0800325 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100326 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700327 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800328 ]
329 public_deps = [
330 ":ilbc_c",
331 ]
332}
333
334rtc_source_set("ilbc_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200335 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800336 sources = [
337 "codecs/ilbc/abs_quant.c",
338 "codecs/ilbc/abs_quant.h",
339 "codecs/ilbc/abs_quant_loop.c",
340 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000341 "codecs/ilbc/augmented_cb_corr.c",
342 "codecs/ilbc/augmented_cb_corr.h",
343 "codecs/ilbc/bw_expand.c",
344 "codecs/ilbc/bw_expand.h",
345 "codecs/ilbc/cb_construct.c",
346 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200347 "codecs/ilbc/cb_mem_energy.c",
348 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000349 "codecs/ilbc/cb_mem_energy_augmentation.c",
350 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000351 "codecs/ilbc/cb_mem_energy_calc.c",
352 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000353 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200354 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000355 "codecs/ilbc/cb_search_core.c",
356 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000357 "codecs/ilbc/cb_update_best_index.c",
358 "codecs/ilbc/cb_update_best_index.h",
359 "codecs/ilbc/chebyshev.c",
360 "codecs/ilbc/chebyshev.h",
361 "codecs/ilbc/comp_corr.c",
362 "codecs/ilbc/comp_corr.h",
363 "codecs/ilbc/constants.c",
364 "codecs/ilbc/constants.h",
365 "codecs/ilbc/create_augmented_vec.c",
366 "codecs/ilbc/create_augmented_vec.h",
367 "codecs/ilbc/decode.c",
368 "codecs/ilbc/decode.h",
369 "codecs/ilbc/decode_residual.c",
370 "codecs/ilbc/decode_residual.h",
371 "codecs/ilbc/decoder_interpolate_lsf.c",
372 "codecs/ilbc/decoder_interpolate_lsf.h",
373 "codecs/ilbc/defines.h",
374 "codecs/ilbc/do_plc.c",
375 "codecs/ilbc/do_plc.h",
376 "codecs/ilbc/encode.c",
377 "codecs/ilbc/encode.h",
378 "codecs/ilbc/energy_inverse.c",
379 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200380 "codecs/ilbc/enh_upsample.c",
381 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000382 "codecs/ilbc/enhancer.c",
383 "codecs/ilbc/enhancer.h",
384 "codecs/ilbc/enhancer_interface.c",
385 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000386 "codecs/ilbc/filtered_cb_vecs.c",
387 "codecs/ilbc/filtered_cb_vecs.h",
388 "codecs/ilbc/frame_classify.c",
389 "codecs/ilbc/frame_classify.h",
390 "codecs/ilbc/gain_dequant.c",
391 "codecs/ilbc/gain_dequant.h",
392 "codecs/ilbc/gain_quant.c",
393 "codecs/ilbc/gain_quant.h",
394 "codecs/ilbc/get_cd_vec.c",
395 "codecs/ilbc/get_cd_vec.h",
396 "codecs/ilbc/get_lsp_poly.c",
397 "codecs/ilbc/get_lsp_poly.h",
398 "codecs/ilbc/get_sync_seq.c",
399 "codecs/ilbc/get_sync_seq.h",
400 "codecs/ilbc/hp_input.c",
401 "codecs/ilbc/hp_input.h",
402 "codecs/ilbc/hp_output.c",
403 "codecs/ilbc/hp_output.h",
404 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100405 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000406 "codecs/ilbc/index_conv_dec.c",
407 "codecs/ilbc/index_conv_dec.h",
408 "codecs/ilbc/index_conv_enc.c",
409 "codecs/ilbc/index_conv_enc.h",
410 "codecs/ilbc/init_decode.c",
411 "codecs/ilbc/init_decode.h",
412 "codecs/ilbc/init_encode.c",
413 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000414 "codecs/ilbc/interpolate.c",
415 "codecs/ilbc/interpolate.h",
416 "codecs/ilbc/interpolate_samples.c",
417 "codecs/ilbc/interpolate_samples.h",
418 "codecs/ilbc/lpc_encode.c",
419 "codecs/ilbc/lpc_encode.h",
420 "codecs/ilbc/lsf_check.c",
421 "codecs/ilbc/lsf_check.h",
422 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
423 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
424 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
425 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
426 "codecs/ilbc/lsf_to_lsp.c",
427 "codecs/ilbc/lsf_to_lsp.h",
428 "codecs/ilbc/lsf_to_poly.c",
429 "codecs/ilbc/lsf_to_poly.h",
430 "codecs/ilbc/lsp_to_lsf.c",
431 "codecs/ilbc/lsp_to_lsf.h",
432 "codecs/ilbc/my_corr.c",
433 "codecs/ilbc/my_corr.h",
434 "codecs/ilbc/nearest_neighbor.c",
435 "codecs/ilbc/nearest_neighbor.h",
436 "codecs/ilbc/pack_bits.c",
437 "codecs/ilbc/pack_bits.h",
438 "codecs/ilbc/poly_to_lsf.c",
439 "codecs/ilbc/poly_to_lsf.h",
440 "codecs/ilbc/poly_to_lsp.c",
441 "codecs/ilbc/poly_to_lsp.h",
442 "codecs/ilbc/refiner.c",
443 "codecs/ilbc/refiner.h",
444 "codecs/ilbc/simple_interpolate_lsf.c",
445 "codecs/ilbc/simple_interpolate_lsf.h",
446 "codecs/ilbc/simple_lpc_analysis.c",
447 "codecs/ilbc/simple_lpc_analysis.h",
448 "codecs/ilbc/simple_lsf_dequant.c",
449 "codecs/ilbc/simple_lsf_dequant.h",
450 "codecs/ilbc/simple_lsf_quant.c",
451 "codecs/ilbc/simple_lsf_quant.h",
452 "codecs/ilbc/smooth.c",
453 "codecs/ilbc/smooth.h",
454 "codecs/ilbc/smooth_out_data.c",
455 "codecs/ilbc/smooth_out_data.h",
456 "codecs/ilbc/sort_sq.c",
457 "codecs/ilbc/sort_sq.h",
458 "codecs/ilbc/split_vq.c",
459 "codecs/ilbc/split_vq.h",
460 "codecs/ilbc/state_construct.c",
461 "codecs/ilbc/state_construct.h",
462 "codecs/ilbc/state_search.c",
463 "codecs/ilbc/state_search.h",
464 "codecs/ilbc/swap_bytes.c",
465 "codecs/ilbc/swap_bytes.h",
466 "codecs/ilbc/unpack_bits.c",
467 "codecs/ilbc/unpack_bits.h",
468 "codecs/ilbc/vq3.c",
469 "codecs/ilbc/vq3.h",
470 "codecs/ilbc/vq4.c",
471 "codecs/ilbc/vq4.h",
472 "codecs/ilbc/window32_w32.c",
473 "codecs/ilbc/window32_w32.h",
474 "codecs/ilbc/xcorr_coef.c",
475 "codecs/ilbc/xcorr_coef.h",
476 ]
477
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700478 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000479
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000480 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100481 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800482 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800483 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100484 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100485 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100486 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700487 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100488 "../../rtc_base:sanitizer",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000489 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000490}
491
kjellanderb62dbbe2016-09-23 00:38:52 -0700492rtc_static_library("isac_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200493 poisonous = [ "audio_codecs" ]
kwiberg608c3cf2015-08-24 02:03:23 -0700494 sources = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100495 "codecs/isac/audio_decoder_isac_t.h",
496 "codecs/isac/audio_decoder_isac_t_impl.h",
kwiberg608c3cf2015-08-24 02:03:23 -0700497 "codecs/isac/audio_encoder_isac_t.h",
498 "codecs/isac/audio_encoder_isac_t_impl.h",
499 "codecs/isac/locked_bandwidth_info.cc",
500 "codecs/isac/locked_bandwidth_info.h",
501 ]
kjellander676e08f2016-12-07 08:23:27 -0800502 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200503 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100504 "../..:typedefs",
kwiberga6ca5182017-01-30 05:28:54 -0800505 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700506 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100507 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700508 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200509 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -0800510 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700511}
512
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000513config("isac_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200514 include_dirs = [ "codecs/isac/main/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000515}
516
kjellanderb62dbbe2016-09-23 00:38:52 -0700517rtc_static_library("isac") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100518 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200519 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000520 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800521 "codecs/isac/main/include/audio_decoder_isac.h",
522 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800523 "codecs/isac/main/source/audio_decoder_isac.cc",
524 "codecs/isac/main/source/audio_encoder_isac.cc",
525 ]
526
527 deps = [
kjellander7439f972016-12-05 22:47:46 -0800528 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800529 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800530 ]
531 public_deps = [
532 ":isac_c",
533 ]
534}
535
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200536rtc_source_set("isac_bwinfo") {
537 sources = [
538 "codecs/isac/bandwidth_info.h",
539 ]
540 deps = [
541 "../..:typedefs",
542 ]
543}
544
545rtc_source_set("isac_vad") {
546 visibility += webrtc_default_visibility
547 sources = [
548 "codecs/isac/main/source/filter_functions.c",
549 "codecs/isac/main/source/filter_functions.h",
550 "codecs/isac/main/source/isac_vad.c",
551 "codecs/isac/main/source/isac_vad.h",
552 "codecs/isac/main/source/os_specific_inline.h",
553 "codecs/isac/main/source/pitch_estimator.c",
554 "codecs/isac/main/source/pitch_estimator.h",
555 "codecs/isac/main/source/pitch_filter.c",
556 "codecs/isac/main/source/pitch_filter.h",
557 "codecs/isac/main/source/settings.h",
558 "codecs/isac/main/source/structs.h",
559 ]
560 deps = [
561 ":isac_bwinfo",
562 "../..:typedefs",
563 "../../rtc_base:compile_assert_c",
564 "../../rtc_base/system:ignore_warnings",
565 ]
566}
567
kjellander7439f972016-12-05 22:47:46 -0800568rtc_static_library("isac_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200569 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800570 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100571 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000572 "codecs/isac/main/source/arith_routines.c",
573 "codecs/isac/main/source/arith_routines.h",
574 "codecs/isac/main/source/arith_routines_hist.c",
575 "codecs/isac/main/source/arith_routines_logist.c",
576 "codecs/isac/main/source/bandwidth_estimator.c",
577 "codecs/isac/main/source/bandwidth_estimator.h",
578 "codecs/isac/main/source/codec.h",
579 "codecs/isac/main/source/crc.c",
580 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000581 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200582 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000583 "codecs/isac/main/source/encode.c",
584 "codecs/isac/main/source/encode_lpc_swb.c",
585 "codecs/isac/main/source/encode_lpc_swb.h",
586 "codecs/isac/main/source/entropy_coding.c",
587 "codecs/isac/main/source/entropy_coding.h",
588 "codecs/isac/main/source/fft.c",
589 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200590 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000591 "codecs/isac/main/source/intialize.c",
592 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200593 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000594 "codecs/isac/main/source/lattice.c",
595 "codecs/isac/main/source/lpc_analysis.c",
596 "codecs/isac/main/source/lpc_analysis.h",
597 "codecs/isac/main/source/lpc_gain_swb_tables.c",
598 "codecs/isac/main/source/lpc_gain_swb_tables.h",
599 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
600 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
601 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
602 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
603 "codecs/isac/main/source/lpc_tables.c",
604 "codecs/isac/main/source/lpc_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000605 "codecs/isac/main/source/pitch_gain_tables.c",
606 "codecs/isac/main/source/pitch_gain_tables.h",
607 "codecs/isac/main/source/pitch_lag_tables.c",
608 "codecs/isac/main/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000609 "codecs/isac/main/source/spectrum_ar_model_tables.c",
610 "codecs/isac/main/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000611 "codecs/isac/main/source/transform.c",
612 ]
613
614 if (is_linux) {
615 libs = [ "m" ]
616 }
617
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700618 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000619
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000620 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200621 ":isac_bwinfo",
622 ":isac_vad",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100623 "../..:typedefs",
aleloicfee2152016-08-29 04:09:19 -0700624 "../..:webrtc_common",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000625 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100626 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100627 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700628 "../../rtc_base:compile_assert_c",
629 "../../rtc_base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000630 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000631}
632
633config("isac_fix_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200634 include_dirs = [ "codecs/isac/fix/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000635}
636
kjellanderb62dbbe2016-09-23 00:38:52 -0700637rtc_static_library("isac_fix") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100638 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200639 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000640 sources = [
kjellander7439f972016-12-05 22:47:46 -0800641 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
642 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
643 ]
644
645 public_configs = [ ":isac_fix_config" ]
646
647 deps = [
kjellander7439f972016-12-05 22:47:46 -0800648 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800649 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800650 "../../common_audio",
651 "../../system_wrappers",
652 ]
653 public_deps = [
654 ":isac_fix_c",
655 ]
656
657 if (rtc_build_with_neon) {
658 deps += [ ":isac_neon" ]
659 }
660}
661
kwiberga6ca5182017-01-30 05:28:54 -0800662rtc_source_set("isac_fix_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200663 poisonous = [ "audio_codecs" ]
kwiberga6ca5182017-01-30 05:28:54 -0800664 sources = [
665 "codecs/isac/fix/source/codec.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100666 "codecs/isac/fix/source/entropy_coding.h",
kwiberga6ca5182017-01-30 05:28:54 -0800667 "codecs/isac/fix/source/fft.c",
668 "codecs/isac/fix/source/fft.h",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100669 "codecs/isac/fix/source/filterbank_internal.h",
kwiberga6ca5182017-01-30 05:28:54 -0800670 "codecs/isac/fix/source/settings.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100671 "codecs/isac/fix/source/structs.h",
Mirko Bonadei6e396b02018-04-20 13:54:53 -0700672 "codecs/isac/fix/source/transform_tables.c",
kwiberga6ca5182017-01-30 05:28:54 -0800673 ]
674 public_configs = [ ":isac_fix_config" ]
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100675 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200676 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100677 "../..:typedefs",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100678 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100679 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100680 ]
kwiberga6ca5182017-01-30 05:28:54 -0800681}
kjellander676e08f2016-12-07 08:23:27 -0800682
mbonadei5c0d7032017-07-06 03:48:55 -0700683rtc_source_set("isac_fix_c_arm_asm") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200684 poisonous = [ "audio_codecs" ]
mbonadei5c0d7032017-07-06 03:48:55 -0700685 sources = []
686 if (current_cpu == "arm" && arm_version >= 7) {
687 sources += [
688 "codecs/isac/fix/source/lattice_armv7.S",
689 "codecs/isac/fix/source/pitch_filter_armv6.S",
690 ]
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100691 deps = [
Mirko Bonadei6ce03592018-02-22 15:10:27 +0100692 ":isac_fix_common",
Karl Wiberg7aabd392018-03-22 02:59:49 +0100693 "../../rtc_base/system:asm_defines",
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100694 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700695 }
696}
697
kwiberga6ca5182017-01-30 05:28:54 -0800698rtc_source_set("isac_fix_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200699 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800700 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100701 "codecs/isac/fix/include/audio_decoder_isacfix.h",
702 "codecs/isac/fix/include/audio_encoder_isacfix.h",
703 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000704 "codecs/isac/fix/source/arith_routines.c",
705 "codecs/isac/fix/source/arith_routines_hist.c",
706 "codecs/isac/fix/source/arith_routines_logist.c",
707 "codecs/isac/fix/source/arith_routins.h",
708 "codecs/isac/fix/source/bandwidth_estimator.c",
709 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000710 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200711 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000712 "codecs/isac/fix/source/decode_plc.c",
713 "codecs/isac/fix/source/encode.c",
714 "codecs/isac/fix/source/entropy_coding.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000715 "codecs/isac/fix/source/filterbank_tables.c",
716 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200717 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000718 "codecs/isac/fix/source/filters.c",
719 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200720 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000721 "codecs/isac/fix/source/isacfix.c",
722 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700723 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000724 "codecs/isac/fix/source/lpc_masking_model.c",
725 "codecs/isac/fix/source/lpc_masking_model.h",
726 "codecs/isac/fix/source/lpc_tables.c",
727 "codecs/isac/fix/source/lpc_tables.h",
728 "codecs/isac/fix/source/pitch_estimator.c",
729 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700730 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000731 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700732 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000733 "codecs/isac/fix/source/pitch_gain_tables.c",
734 "codecs/isac/fix/source/pitch_gain_tables.h",
735 "codecs/isac/fix/source/pitch_lag_tables.c",
736 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000737 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
738 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000739 "codecs/isac/fix/source/transform.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000740 ]
741
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700742 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000743
kjellander676e08f2016-12-07 08:23:27 -0800744 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200745 ":isac_bwinfo",
kjellander676e08f2016-12-07 08:23:27 -0800746 ":isac_common",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100747 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800748 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800749 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800750 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100751 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100752 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700753 "../../rtc_base:compile_assert_c",
754 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100755 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100756 "../../system_wrappers:cpu_features_api",
kjellander676e08f2016-12-07 08:23:27 -0800757 ]
758
kwiberga6ca5182017-01-30 05:28:54 -0800759 public_deps = [
760 ":isac_fix_common",
761 ]
762
mbonadeie5dc3ce2017-01-25 05:34:46 -0800763 if (rtc_build_with_neon) {
764 deps += [ ":isac_neon" ]
765 }
766
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700767 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700768 sources -= [
769 "codecs/isac/fix/source/lattice_c.c",
770 "codecs/isac/fix/source/pitch_filter_c.c",
771 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700772 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000773 }
774
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000775 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000776 sources += [
777 "codecs/isac/fix/source/entropy_coding_mips.c",
778 "codecs/isac/fix/source/filters_mips.c",
779 "codecs/isac/fix/source/lattice_mips.c",
780 "codecs/isac/fix/source/pitch_estimator_mips.c",
781 "codecs/isac/fix/source/transform_mips.c",
782 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700783 sources -= [
784 "codecs/isac/fix/source/lattice_c.c",
785 "codecs/isac/fix/source/pitch_estimator_c.c",
786 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000787 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200788 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000789 }
790 if (mips_dsp_rev > 1) {
791 sources += [
792 "codecs/isac/fix/source/lpc_masking_model_mips.c",
793 "codecs/isac/fix/source/pitch_filter_mips.c",
794 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200795 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000796 }
797 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000798}
799
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700800if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700801 rtc_static_library("isac_neon") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200802 poisonous = [ "audio_codecs" ]
Zhongwei Yaof242e662015-05-06 16:39:17 +0800803 sources = [
804 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800805 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800806 "codecs/isac/fix/source/filters_neon.c",
807 "codecs/isac/fix/source/lattice_neon.c",
808 "codecs/isac/fix/source/transform_neon.c",
809 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000810
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700811 if (current_cpu != "arm64") {
812 # Enable compilation for the NEON instruction set. This is needed
813 # since //build/config/arm.gni only enables NEON for iOS, not Android.
814 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700815 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700816 cflags = [ "-mfpu=neon" ]
817 }
818
819 # Disable LTO on NEON targets due to compiler bug.
820 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000821 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000822 cflags -= [
823 "-flto",
824 "-ffat-lto-objects",
825 ]
826 }
827
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200828 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800829 ":isac_fix_common",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200830 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100831 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100832 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700833 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200834 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000835 }
836}
837
838config("pcm16b_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200839 include_dirs = [ "codecs/pcm16b/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000840}
841
kjellanderb62dbbe2016-09-23 00:38:52 -0700842rtc_static_library("pcm16b") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100843 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200844 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000845 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200846 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100847 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200848 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100849 "codecs/pcm16b/audio_encoder_pcm16b.h",
kwiberg7ea6e592017-08-16 06:12:57 -0700850 "codecs/pcm16b/pcm16b_common.cc",
851 "codecs/pcm16b/pcm16b_common.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000852 ]
853
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000854 deps = [
855 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800856 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800857 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800858 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100859 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700860 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000861 ]
kjellander7439f972016-12-05 22:47:46 -0800862 public_deps = [
863 ":pcm16b_c",
864 ]
865 public_configs = [ ":pcm16b_config" ]
866}
867
868rtc_source_set("pcm16b_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200869 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800870 sources = [
871 "codecs/pcm16b/pcm16b.c",
872 "codecs/pcm16b/pcm16b.h",
873 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000874
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700875 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800876 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100877 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800878 "../..:webrtc_common",
879 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000880}
881
kjellanderb62dbbe2016-09-23 00:38:52 -0700882rtc_static_library("webrtc_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000883 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200884 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000885 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200886 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100887 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000888 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100889 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000890 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000891
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200892 deps = [
minyue41b9c802016-10-06 07:13:54 -0700893 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800894 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800895 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700896 "../../api/audio_codecs/opus:audio_encoder_opus_config",
michaelt566d8202017-01-12 10:17:38 -0800897 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100898 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700899 "../../rtc_base:rtc_base_approved",
900 "../../rtc_base:rtc_numerics",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100901 "../../rtc_base:safe_minmax",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100902 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200903 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200904 ]
kjellander7439f972016-12-05 22:47:46 -0800905 public_deps = [
906 ":webrtc_opus_c",
kwiberge5eb7242017-08-25 03:10:50 -0700907 "../../rtc_base:protobuf_utils",
kjellander7439f972016-12-05 22:47:46 -0800908 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000909
michaelta55f0212017-02-02 07:47:19 -0800910 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800911
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000912 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800913 public_deps += [ rtc_opus_dir ]
914 } else if (build_with_mozilla) {
Dan Minor9c686132018-01-15 10:20:00 -0500915 include_dirs = [ "/media/libopus/include" ]
kjellander7439f972016-12-05 22:47:46 -0800916 }
917}
918
919rtc_source_set("webrtc_opus_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200920 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800921 sources = [
922 "codecs/opus/opus_inst.h",
923 "codecs/opus/opus_interface.c",
924 "codecs/opus/opus_interface.h",
925 ]
926
minyue2e03c662017-02-01 17:31:11 -0800927 defines = audio_coding_defines
928
kjellander7439f972016-12-05 22:47:46 -0800929 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700930 public_deps = [
931 rtc_opus_dir,
932 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000933 } else if (build_with_mozilla) {
934 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000935 }
kjellander7439f972016-12-05 22:47:46 -0800936
937 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100938 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800939 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100940 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700941 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800942 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000943}
944
minyue25f6a392016-09-22 22:23:20 -0700945if (rtc_enable_protobuf) {
946 proto_library("ana_debug_dump_proto") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000947 visibility += webrtc_default_visibility
minyue25f6a392016-09-22 22:23:20 -0700948 sources = [
949 "audio_network_adaptor/debug_dump.proto",
950 ]
jbudorick58f17252017-07-26 14:49:20 -0700951 deps = [
952 ":ana_config_proto",
953 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200954 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700955 }
minyuea1d9ad02016-10-02 14:53:37 -0700956 proto_library("ana_config_proto") {
957 sources = [
958 "audio_network_adaptor/config.proto",
959 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200960 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyuea1d9ad02016-10-02 14:53:37 -0700961 }
minyue25f6a392016-09-22 22:23:20 -0700962}
963
eladalon1e7dd312017-09-12 04:38:25 -0700964rtc_static_library("audio_network_adaptor_config") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000965 visibility += webrtc_default_visibility
eladalon1e7dd312017-09-12 04:38:25 -0700966 sources = [
967 "audio_network_adaptor/audio_network_adaptor_config.cc",
968 "audio_network_adaptor/include/audio_network_adaptor_config.h",
969 ]
970 deps = [
Danil Chapovalovb6021232018-06-19 13:26:36 +0200971 "//third_party/abseil-cpp/absl/types:optional",
eladalon1e7dd312017-09-12 04:38:25 -0700972 ]
973}
974
minyue0d382ef2016-10-07 07:59:28 -0700975rtc_static_library("audio_network_adaptor") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000976 visibility += webrtc_default_visibility
minyue7610f852016-09-07 13:51:51 -0700977 sources = [
minyuecaa9cb22016-09-13 13:34:15 -0700978 "audio_network_adaptor/audio_network_adaptor_impl.cc",
979 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700980 "audio_network_adaptor/bitrate_controller.cc",
981 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700982 "audio_network_adaptor/channel_controller.cc",
983 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700984 "audio_network_adaptor/controller.cc",
985 "audio_network_adaptor/controller.h",
986 "audio_network_adaptor/controller_manager.cc",
987 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700988 "audio_network_adaptor/debug_dump_writer.cc",
989 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700990 "audio_network_adaptor/dtx_controller.cc",
991 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800992 "audio_network_adaptor/event_log_writer.cc",
993 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700994 "audio_network_adaptor/fec_controller_plr_based.cc",
995 "audio_network_adaptor/fec_controller_plr_based.h",
996 "audio_network_adaptor/fec_controller_rplr_based.cc",
997 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700998 "audio_network_adaptor/frame_length_controller.cc",
999 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -07001000 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -07001001 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -07001002 ]
minyue25f6a392016-09-22 22:23:20 -07001003
eladalon1e7dd312017-09-12 04:38:25 -07001004 public_deps = [
1005 ":audio_network_adaptor_config",
1006 ]
1007
minyue41b9c802016-10-06 07:13:54 -07001008 deps = [
1009 "../..:webrtc_common",
ivoce1198e02017-09-08 08:13:19 -07001010 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001011 "../../common_audio",
Qingsi Wang970b0882018-02-01 11:04:46 -08001012 "../../logging:rtc_event_audio",
minyue4b7c9522017-01-24 04:54:59 -08001013 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001014 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001015 "../../rtc_base:protobuf_utils",
1016 "../../rtc_base:rtc_base_approved",
Karl Wiberg6a4d4112018-03-23 10:39:34 +01001017 "../../rtc_base/system:file_wrapper",
minyue41b9c802016-10-06 07:13:54 -07001018 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001019 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001020 "//third_party/abseil-cpp/absl/types:optional",
minyue41b9c802016-10-06 07:13:54 -07001021 ]
1022
minyue25f6a392016-09-22 22:23:20 -07001023 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -07001024 deps += [
minyuea1d9ad02016-10-02 14:53:37 -07001025 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -07001026 ":ana_debug_dump_proto",
1027 ]
minyue25f6a392016-09-22 22:23:20 -07001028 }
minyue4b7c9522017-01-24 04:54:59 -08001029
1030 if (!build_with_chromium && is_clang) {
1031 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1032 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1033 }
minyue7610f852016-09-07 13:51:51 -07001034}
1035
kwiberg65cb70d2017-03-03 06:16:28 -08001036rtc_source_set("neteq_decoder_enum") {
1037 sources = [
1038 "neteq/neteq_decoder_enum.cc",
1039 "neteq/neteq_decoder_enum.h",
1040 ]
1041 deps = [
1042 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001043 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001044 "//third_party/abseil-cpp/absl/types:optional",
kwiberg65cb70d2017-03-03 06:16:28 -08001045 ]
1046}
kjellander676e08f2016-12-07 08:23:27 -08001047
kwiberg65cb70d2017-03-03 06:16:28 -08001048rtc_static_library("neteq") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001049 visibility += webrtc_default_visibility
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001050 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001051 "neteq/accelerate.cc",
1052 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001053 "neteq/audio_multi_vector.cc",
1054 "neteq/audio_multi_vector.h",
1055 "neteq/audio_vector.cc",
1056 "neteq/audio_vector.h",
1057 "neteq/background_noise.cc",
1058 "neteq/background_noise.h",
1059 "neteq/buffer_level_filter.cc",
1060 "neteq/buffer_level_filter.h",
1061 "neteq/comfort_noise.cc",
1062 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -07001063 "neteq/cross_correlation.cc",
1064 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001065 "neteq/decision_logic.cc",
1066 "neteq/decision_logic.h",
Henrik Lundin1ff41eb2018-06-21 12:36:28 +00001067 "neteq/decision_logic_fax.cc",
1068 "neteq/decision_logic_fax.h",
1069 "neteq/decision_logic_normal.cc",
1070 "neteq/decision_logic_normal.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001071 "neteq/decoder_database.cc",
1072 "neteq/decoder_database.h",
1073 "neteq/defines.h",
1074 "neteq/delay_manager.cc",
1075 "neteq/delay_manager.h",
1076 "neteq/delay_peak_detector.cc",
1077 "neteq/delay_peak_detector.h",
1078 "neteq/dsp_helper.cc",
1079 "neteq/dsp_helper.h",
1080 "neteq/dtmf_buffer.cc",
1081 "neteq/dtmf_buffer.h",
1082 "neteq/dtmf_tone_generator.cc",
1083 "neteq/dtmf_tone_generator.h",
1084 "neteq/expand.cc",
1085 "neteq/expand.h",
Henrik Lundin3ef3bfc2018-04-10 15:10:26 +02001086 "neteq/expand_uma_logger.cc",
1087 "neteq/expand_uma_logger.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001088 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001089 "neteq/merge.cc",
1090 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001091 "neteq/nack_tracker.cc",
1092 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001093 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001094 "neteq/neteq_impl.cc",
1095 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001096 "neteq/normal.cc",
1097 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001098 "neteq/packet.cc",
1099 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001100 "neteq/packet_buffer.cc",
1101 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001102 "neteq/post_decode_vad.cc",
1103 "neteq/post_decode_vad.h",
1104 "neteq/preemptive_expand.cc",
1105 "neteq/preemptive_expand.h",
1106 "neteq/random_vector.cc",
1107 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001108 "neteq/red_payload_splitter.cc",
1109 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001110 "neteq/rtcp.cc",
1111 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001112 "neteq/statistics_calculator.cc",
1113 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001114 "neteq/sync_buffer.cc",
1115 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001116 "neteq/tick_timer.cc",
1117 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001118 "neteq/time_stretch.cc",
1119 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001120 "neteq/timestamp_scaler.cc",
1121 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001122 ]
1123
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001124 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001125 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001126 ":cng",
kwiberg65cb70d2017-03-03 06:16:28 -08001127 ":neteq_decoder_enum",
mbonadei1140f972017-04-26 03:38:35 -07001128 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001129 "../..:typedefs",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001130 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001131 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001132 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001133 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001134 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01001135 "../../common_audio:common_audio_c",
Jonas Olssonabbe8412018-04-03 13:40:05 +02001136 "../../rtc_base:audio_format_to_string",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001137 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001138 "../../rtc_base:gtest_prod",
1139 "../../rtc_base:rtc_base_approved",
Karl Wiberg12edf4c2018-03-07 14:18:56 +01001140 "../../rtc_base:safe_minmax",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001141 "../../rtc_base:sanitizer",
Karl Wiberg80ba3332018-02-05 10:33:35 +01001142 "../../rtc_base/system:fallthrough",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001143 "../../system_wrappers:field_trial_api",
1144 "../../system_wrappers:metrics_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001145 "//third_party/abseil-cpp/absl/types:optional",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001146 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001147}
kjellanderfb114242016-06-13 00:19:48 -07001148
henrik.lundin58466f62016-10-05 02:27:42 -07001149# Although providing only test support, this target must be outside of the
1150# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1151# that ultimately are built and run as a part of the Chromium ecosystem, which
1152# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001153rtc_source_set("neteq_tools_minimal") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001154 visibility += webrtc_default_visibility
henrik.lundin58466f62016-10-05 02:27:42 -07001155 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001156 "neteq/tools/audio_sink.cc",
1157 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001158 "neteq/tools/encode_neteq_input.cc",
1159 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001160 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001161 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001162 "neteq/tools/neteq_test.cc",
1163 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001164 "neteq/tools/packet.cc",
1165 "neteq/tools/packet.h",
1166 "neteq/tools/packet_source.cc",
1167 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001168 ]
1169
kjellandere40a7ee2016-10-16 23:56:12 -07001170 if (!build_with_chromium && is_clang) {
1171 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001172 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1173 }
kjellander676e08f2016-12-07 08:23:27 -08001174
1175 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001176 ":neteq",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001177 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001178 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001179 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001180 "../../api/audio:audio_frame_api",
ossueb1fde42017-05-02 06:46:30 -07001181 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001182 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001183 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001184 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001185 "../rtp_rtcp",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001186 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -08001187 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001188}
1189
mbonadei3edccb92017-06-01 04:47:20 -07001190rtc_source_set("neteq_test_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001191 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001192 testonly = true
1193 sources = [
1194 "neteq/tools/audio_checksum.h",
1195 "neteq/tools/audio_loop.cc",
1196 "neteq/tools/audio_loop.h",
1197 "neteq/tools/constant_pcm_packet_source.cc",
1198 "neteq/tools/constant_pcm_packet_source.h",
1199 "neteq/tools/output_audio_file.h",
1200 "neteq/tools/output_wav_file.h",
1201 "neteq/tools/rtp_file_source.cc",
1202 "neteq/tools/rtp_file_source.h",
1203 "neteq/tools/rtp_generator.cc",
1204 "neteq/tools/rtp_generator.h",
1205 ]
1206
1207 public_configs = [ ":neteq_tools_config" ]
1208
1209 if (!build_with_chromium && is_clang) {
1210 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1211 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1212 }
1213
1214 deps = [
1215 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001216 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001217 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001218 "../../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +01001219 "../../api:libjingle_peerconnection_api",
mbonadei3edccb92017-06-01 04:47:20 -07001220 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001221 "../../rtc_base:checks",
Joachim Bauch4e909192017-12-19 22:27:51 +01001222 "../../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001223 "../../rtc_base:rtc_base_approved",
1224 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001225 "../../test:rtp_test_utils",
1226 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001227 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001228 ]
1229
1230 public_deps = [
1231 ":neteq_tools",
1232 ":neteq_tools_minimal",
1233 ]
1234
1235 if (rtc_enable_protobuf) {
1236 sources += [
1237 "neteq/tools/neteq_packet_source_input.cc",
1238 "neteq/tools/neteq_packet_source_input.h",
1239 ]
1240 deps += [ ":rtc_event_log_source" ]
1241 }
1242}
1243
1244config("neteq_tools_config") {
1245 include_dirs = [ "tools" ]
1246}
1247
1248rtc_source_set("neteq_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001249 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001250 sources = [
1251 "neteq/tools/fake_decode_from_file.cc",
1252 "neteq/tools/fake_decode_from_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001253 "neteq/tools/neteq_delay_analyzer.cc",
1254 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001255 "neteq/tools/neteq_replacement_input.cc",
1256 "neteq/tools/neteq_replacement_input.h",
Minyue Li2b415da2018-04-16 14:33:53 +02001257 "neteq/tools/neteq_stats_getter.cc",
1258 "neteq/tools/neteq_stats_getter.h",
mbonadei3edccb92017-06-01 04:47:20 -07001259 ]
1260
1261 public_configs = [ ":neteq_tools_config" ]
1262
1263 if (!build_with_chromium && is_clang) {
1264 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1265 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1266 }
1267
1268 deps = [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001269 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001270 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001271 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001272 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001273 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001274 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001275 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001276 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001277 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001278 "//third_party/abseil-cpp/absl/types:optional",
mbonadei3edccb92017-06-01 04:47:20 -07001279 ]
1280
1281 public_deps = [
Ivo Creusen385b10b2017-10-13 12:37:27 +02001282 ":neteq_input_audio_tools",
mbonadei3edccb92017-06-01 04:47:20 -07001283 ":neteq_tools_minimal",
1284 ]
1285}
1286
Ivo Creusen385b10b2017-10-13 12:37:27 +02001287rtc_source_set("neteq_input_audio_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001288 visibility += webrtc_default_visibility
Ivo Creusen385b10b2017-10-13 12:37:27 +02001289 sources = [
1290 "neteq/tools/input_audio_file.cc",
1291 "neteq/tools/input_audio_file.h",
1292 "neteq/tools/resample_input_audio_file.cc",
1293 "neteq/tools/resample_input_audio_file.h",
1294 ]
1295
1296 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001297 "../..:typedefs",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001298 "../..:webrtc_common",
1299 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001300 "../../rtc_base:checks",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001301 "../../rtc_base:rtc_base_approved",
1302 ]
1303}
1304
mbonadei3edccb92017-06-01 04:47:20 -07001305if (rtc_enable_protobuf) {
1306 rtc_static_library("rtc_event_log_source") {
1307 testonly = true
1308
mbonadei3edccb92017-06-01 04:47:20 -07001309 sources = [
1310 "neteq/tools/rtc_event_log_source.cc",
1311 "neteq/tools/rtc_event_log_source.h",
1312 ]
1313
1314 if (!build_with_chromium && is_clang) {
1315 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1316 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1317 }
1318
1319 deps = [
Patrik Höglundebe62402017-11-24 13:51:52 +01001320 ":neteq_tools_minimal",
mbonadei3edccb92017-06-01 04:47:20 -07001321 "../../logging:rtc_event_log_parser",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001322 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001323 "../../rtc_base:rtc_base_approved",
Mirko Bonadei818d9102017-12-12 12:46:13 +01001324 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001325 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001326 ]
1327 public_deps = [
1328 "../../logging:rtc_event_log_proto",
1329 ]
1330 }
1331}
1332
kjellanderfb114242016-06-13 00:19:48 -07001333if (rtc_include_tests) {
Patrik Höglundb960e412018-01-05 11:46:26 +01001334 rtc_source_set("mocks") {
1335 testonly = true
1336 sources = [
1337 "audio_network_adaptor/mock/mock_audio_network_adaptor.h",
1338 "audio_network_adaptor/mock/mock_controller.h",
1339 "audio_network_adaptor/mock/mock_controller_manager.h",
1340 "audio_network_adaptor/mock/mock_debug_dump_writer.h",
1341 ]
1342 deps = [
1343 ":audio_network_adaptor",
1344 "../../test:test_support",
1345 ]
1346 }
1347
kjellander6ceab082016-10-28 05:44:03 -07001348 group("audio_coding_tests") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001349 visibility += webrtc_default_visibility
kjellander6ceab082016-10-28 05:44:03 -07001350 testonly = true
1351 public_deps = [
kjellander6ceab082016-10-28 05:44:03 -07001352 ":acm_receive_test",
1353 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001354 ":audio_codec_speed_tests",
1355 ":audio_decoder_unittests",
1356 ":audio_decoder_unittests",
1357 ":delay_test",
1358 ":g711_test",
1359 ":g722_test",
1360 ":ilbc_test",
kjellander6ceab082016-10-28 05:44:03 -07001361 ":isac_api_test",
1362 ":isac_fix_test",
1363 ":isac_switch_samprate_test",
1364 ":isac_test",
1365 ":neteq_ilbc_quality_test",
1366 ":neteq_isac_quality_test",
1367 ":neteq_opus_quality_test",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001368 ":neteq_pcm16b_quality_test",
kjellander6ceab082016-10-28 05:44:03 -07001369 ":neteq_pcmu_quality_test",
1370 ":neteq_speed_test",
1371 ":rtp_analyze",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001372 ":rtp_encode",
Henrik Lundin81af4142017-11-24 13:39:39 +01001373 ":rtp_jitter",
kjellander6ceab082016-10-28 05:44:03 -07001374 ":rtpcat",
1375 ":webrtc_opus_fec_test",
1376 ]
1377 if (rtc_enable_protobuf) {
1378 public_deps += [ ":neteq_rtpplay" ]
1379 }
1380 }
1381
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001382 rtc_source_set("audio_coding_modules_tests") {
1383 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001384 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001385
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001386 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001387 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001388 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001389 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001390 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001391 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001392 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001393 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001394 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001395 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001396 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001397 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001398 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001399 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001400 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001401 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001402 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001403 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001404 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001405 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001406 "test/Tester.cc",
1407 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001408 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001409 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001410 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001411 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001412 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001413 "test/target_delay_unittest.cc",
1414 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001415 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001416 ]
1417 deps = [
1418 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001419 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001420 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001421 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001422 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001423 "../..:typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001424 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001425 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001426 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001427 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001428 "../../rtc_base:rtc_base_approved",
Karl Wiberg2b857922018-03-23 14:53:54 +01001429 "../../rtc_base/synchronization:rw_lock_wrapper",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001430 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001431 "../../test:fileutils",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001432 "../../test:test_support",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001433 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001434 ]
1435 defines = audio_coding_defines
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001436 if (!build_with_chromium && is_clang) {
1437 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1438 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1439 }
1440 }
1441
ehmaldonado021eef32017-01-05 07:09:50 -08001442 rtc_source_set("audio_coding_perf_tests") {
1443 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001444 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001445
ehmaldonado021eef32017-01-05 07:09:50 -08001446 sources = [
1447 "codecs/opus/opus_complexity_unittest.cc",
1448 "neteq/test/neteq_performance_unittest.cc",
1449 ]
1450 deps = [
1451 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001452 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001453 "../..:typedefs",
ehmaldonado021eef32017-01-05 07:09:50 -08001454 "../..:webrtc_common",
Karl Wiberg7275e182017-10-25 09:57:40 +02001455 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001456 "../../rtc_base:protobuf_utils",
1457 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001458 "../../system_wrappers",
1459 "../../system_wrappers:field_trial_api",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001460 "../../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +01001461 "../../test:perf_test",
ehmaldonado021eef32017-01-05 07:09:50 -08001462 "../../test:test_support",
1463 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001464
ehmaldonado021eef32017-01-05 07:09:50 -08001465 if (!build_with_chromium && is_clang) {
1466 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1467 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1468 }
1469 }
1470
ehmaldonado38a21322016-09-02 04:10:34 -07001471 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001472 testonly = true
1473 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001474 "acm2/acm_receive_test.cc",
1475 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001476 ]
1477
kjellanderfb114242016-06-13 00:19:48 -07001478 defines = audio_coding_defines
1479
1480 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001481 "..:module_api",
kjellanderfb114242016-06-13 00:19:48 -07001482 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001483 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001484 "../../api/audio_codecs:audio_codecs_api",
1485 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001486 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001487 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001488 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001489 "//testing/gtest",
1490 ]
1491 }
1492
ehmaldonado38a21322016-09-02 04:10:34 -07001493 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001494 testonly = true
1495 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001496 "acm2/acm_send_test.cc",
1497 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001498 ]
1499
kjellanderfb114242016-06-13 00:19:48 -07001500 defines = audio_coding_defines
1501
1502 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001503 "../../api/audio:audio_frame_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001504 "../../rtc_base:checks",
kjellanderfb114242016-06-13 00:19:48 -07001505 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001506 ":neteq_tools",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001507 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07001508 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001509 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001510 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001511 "//testing/gtest",
1512 ]
1513 }
1514
ehmaldonado38a21322016-09-02 04:10:34 -07001515 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001516 testonly = true
1517 sources = [
1518 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001519 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001520 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001521 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001522 "test/delay_test.cc",
1523 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001524 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001525 ]
1526
aleloi333f2062016-07-28 01:21:29 -07001527 deps = [
1528 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001529 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001530 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001531 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001532 "../..:typedefs",
aleloi333f2062016-07-28 01:21:29 -07001533 "../../:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001534 "../../api/audio:audio_frame_api",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001535 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001536 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001537 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001538 "../../system_wrappers",
1539 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001540 "../../test:fileutils",
aleloi333f2062016-07-28 01:21:29 -07001541 "../../test:test_support",
1542 "../rtp_rtcp",
1543 "//testing/gtest",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001544 "//third_party/abseil-cpp/absl/types:optional",
aleloi333f2062016-07-28 01:21:29 -07001545 ]
1546 } # delay_test
1547
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001548 audio_decoder_unittests_resources =
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001549 [ "../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001550
1551 if (is_ios) {
1552 bundle_data("audio_decoder_unittests_bundle_data") {
1553 testonly = true
1554 sources = audio_decoder_unittests_resources
1555 outputs = [
1556 "{{bundle_resources_dir}}/{{source_file_part}}",
1557 ]
1558 }
1559 }
1560
ehmaldonado38a21322016-09-02 04:10:34 -07001561 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001562 testonly = true
1563 sources = [
1564 "neteq/audio_decoder_unittest.cc",
1565 ]
1566
kjellandere40a7ee2016-10-16 23:56:12 -07001567 if (!build_with_chromium && is_clang) {
1568 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001569 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001570 }
1571
Patrik Höglund7696bef2018-03-15 15:05:39 +01001572 deps = [
1573 "../../test:fileutils",
1574 ]
charujainddf3e4a2016-08-01 07:49:42 -07001575
1576 defines = neteq_defines
1577
1578 deps += audio_coding_deps
1579 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001580 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001581 ":isac",
1582 ":isac_fix",
1583 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001584 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001585 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001586 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001587 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001588 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001589 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001590 "//testing/gtest",
1591 ]
1592
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001593 data = audio_decoder_unittests_resources
1594
charujainddf3e4a2016-08-01 07:49:42 -07001595 if (is_android) {
1596 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001597 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001598 }
kjellander32c4a202016-08-30 02:53:49 -07001599 if (is_ios) {
1600 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001601 }
1602 } # audio_decoder_unittests
1603
kjellanderfb114242016-06-13 00:19:48 -07001604 if (rtc_enable_protobuf) {
1605 proto_library("neteq_unittest_proto") {
1606 sources = [
1607 "neteq/neteq_unittest.proto",
1608 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001609 proto_out_dir = "modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001610 }
henrik.lundin03153f12016-06-21 05:38:42 -07001611
ehmaldonado38a21322016-09-02 04:10:34 -07001612 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001613 testonly = true
1614 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001615 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001616 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001617 "../../rtc_base:checks",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001618 "../../test:fileutils",
mbonadei1140f972017-04-26 03:38:35 -07001619 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001620 sources = [
1621 "neteq/tools/neteq_rtpplay.cc",
1622 ]
1623
kjellandere40a7ee2016-10-16 23:56:12 -07001624 if (!build_with_chromium && is_clang) {
1625 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001626 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001627 }
1628
henrik.lundin03153f12016-06-21 05:38:42 -07001629 deps += [
1630 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001631 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001632 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001633 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001634 "../../system_wrappers:system_wrappers_default",
1635 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001636 ]
1637 }
kjellanderfb114242016-06-13 00:19:48 -07001638 }
1639
minyue81f1da32017-07-27 05:49:57 -07001640 audio_codec_speed_tests_resources = [
1641 "//resources/audio_coding/music_stereo_48kHz.pcm",
1642 "//resources/audio_coding/speech_mono_16kHz.pcm",
1643 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1644 ]
1645
1646 if (is_ios) {
1647 bundle_data("audio_codec_speed_tests_data") {
1648 testonly = true
1649 sources = audio_codec_speed_tests_resources
1650 outputs = [
1651 "{{bundle_resources_dir}}/{{source_file_part}}",
1652 ]
1653 }
1654 }
1655
ehmaldonado38a21322016-09-02 04:10:34 -07001656 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001657 testonly = true
1658 defines = []
Patrik Höglund3e113432017-12-15 14:40:10 +01001659 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001660 "../..:typedefs",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001661 "../../test:fileutils",
Patrik Höglund3e113432017-12-15 14:40:10 +01001662 ]
aleloie6b60a42016-07-28 02:34:30 -07001663 sources = [
1664 "codecs/isac/fix/test/isac_speed_test.cc",
1665 "codecs/opus/opus_speed_test.cc",
1666 "codecs/tools/audio_codec_speed_test.cc",
1667 "codecs/tools/audio_codec_speed_test.h",
1668 ]
1669
kjellandere40a7ee2016-10-16 23:56:12 -07001670 if (!build_with_chromium && is_clang) {
1671 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001672 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001673 }
1674
minyue81f1da32017-07-27 05:49:57 -07001675 data = audio_codec_speed_tests_resources
1676
aleloie6b60a42016-07-28 02:34:30 -07001677 if (is_android) {
1678 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001679 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001680 }
1681
minyue81f1da32017-07-27 05:49:57 -07001682 if (is_ios) {
1683 deps += [ ":audio_codec_speed_tests_data" ]
1684 }
1685
aleloie6b60a42016-07-28 02:34:30 -07001686 deps += [
1687 ":isac_fix",
1688 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001689 "../..:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001690 "../../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001691 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001692 "../../system_wrappers:metrics_default",
aleloie6b60a42016-07-28 02:34:30 -07001693 "../../system_wrappers:system_wrappers_default",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001694 "../../test:field_trial",
ehmaldonado26bddb92016-11-30 06:12:01 -08001695 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001696 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001697 "//testing/gtest",
1698 ]
1699 }
1700
ehmaldonado38a21322016-09-02 04:10:34 -07001701 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001702 testonly = true
1703 sources = [
1704 "neteq/tools/neteq_external_decoder_test.cc",
1705 "neteq/tools/neteq_external_decoder_test.h",
1706 "neteq/tools/neteq_performance_test.cc",
1707 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001708 ]
1709
kjellandere40a7ee2016-10-16 23:56:12 -07001710 if (!build_with_chromium && is_clang) {
1711 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001712 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001713 }
1714
1715 deps = [
1716 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001717 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001718 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001719 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001720 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001721 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001722 "../../api/audio_codecs:audio_codecs_api",
1723 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001724 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001725 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001726 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001727 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001728 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001729 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001730 ]
1731 }
1732
ehmaldonado38a21322016-09-02 04:10:34 -07001733 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001734 testonly = true
1735 sources = [
1736 "neteq/tools/neteq_quality_test.cc",
1737 "neteq/tools/neteq_quality_test.h",
1738 ]
1739
kjellandere40a7ee2016-10-16 23:56:12 -07001740 if (!build_with_chromium && is_clang) {
1741 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001742 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001743 }
1744
1745 deps = [
1746 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001747 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001748 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001749 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001750 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001751 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001752 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001753 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001754 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001755 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001756 ]
1757 }
1758
Henrik Lundin1391bd42017-11-24 09:28:57 +01001759 rtc_executable("rtp_encode") {
aleloi82667732016-08-02 01:45:50 -07001760 testonly = true
1761
Henrik Lundin1391bd42017-11-24 09:28:57 +01001762 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001763 "../..:typedefs",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001764 ":audio_coding",
1765 ":neteq_input_audio_tools",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001766 "../../api/audio:audio_frame_api",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001767 "../../api/audio_codecs/g711:audio_encoder_g711",
1768 "../../api/audio_codecs/L16:audio_encoder_L16",
1769 "../../api/audio_codecs/g722:audio_encoder_g722",
1770 "../../api/audio_codecs/ilbc:audio_encoder_ilbc",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001771 "../../system_wrappers:system_wrappers_default",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001772 "../../api/audio_codecs/isac:audio_encoder_isac",
1773 "../../api/audio_codecs/opus:audio_encoder_opus",
1774 "../../rtc_base:rtc_base_approved",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001775 ]
aleloi82667732016-08-02 01:45:50 -07001776
1777 sources = [
Henrik Lundin1391bd42017-11-24 09:28:57 +01001778 "neteq/tools/rtp_encode.cc",
aleloi82667732016-08-02 01:45:50 -07001779 ]
1780
Henrik Lundin1391bd42017-11-24 09:28:57 +01001781 defines = audio_coding_defines
aleloi82667732016-08-02 01:45:50 -07001782 }
1783
Henrik Lundin81af4142017-11-24 13:39:39 +01001784 rtc_executable("rtp_jitter") {
aleloi76cbe192016-08-02 02:05:03 -07001785 testonly = true
1786
Henrik Lundin81af4142017-11-24 13:39:39 +01001787 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001788 "../..:typedefs",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001789 "../../system_wrappers:system_wrappers_default",
Henrik Lundin81af4142017-11-24 13:39:39 +01001790 "../rtp_rtcp:rtp_rtcp_format",
1791 "../../api:array_view",
1792 "../../rtc_base:rtc_base_approved",
Henrik Lundin81af4142017-11-24 13:39:39 +01001793 ]
1794
aleloi76cbe192016-08-02 02:05:03 -07001795 sources = [
Henrik Lundin81af4142017-11-24 13:39:39 +01001796 "neteq/tools/rtp_jitter.cc",
aleloi76cbe192016-08-02 02:05:03 -07001797 ]
1798
Henrik Lundin81af4142017-11-24 13:39:39 +01001799 defines = audio_coding_defines
aleloi76cbe192016-08-02 02:05:03 -07001800 }
1801
ehmaldonado38a21322016-09-02 04:10:34 -07001802 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001803 testonly = true
1804
1805 sources = [
1806 "neteq/tools/rtpcat.cc",
1807 ]
1808
1809 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001810 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001811 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001812 "../../system_wrappers:system_wrappers_default",
1813 "../../test:rtp_test_utils",
1814 "//testing/gtest",
1815 ]
1816 }
1817
ehmaldonado38a21322016-09-02 04:10:34 -07001818 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001819 testonly = true
1820
1821 sources = [
1822 "neteq/tools/rtp_analyze.cc",
1823 ]
1824
1825 deps = [
1826 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001827 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001828 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001829 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001830 "../../system_wrappers:system_wrappers_default",
1831 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001832 ]
1833
kjellandere40a7ee2016-10-16 23:56:12 -07001834 if (!build_with_chromium && is_clang) {
1835 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001836 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001837 }
1838 }
aleloi630c6d52016-08-10 02:11:30 -07001839
ehmaldonado38a21322016-09-02 04:10:34 -07001840 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001841 testonly = true
1842
1843 sources = [
1844 "neteq/test/neteq_opus_quality_test.cc",
1845 ]
1846
1847 deps = [
1848 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001849 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001850 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001851 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001852 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001853 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001854 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001855 ]
aleloi630c6d52016-08-10 02:11:30 -07001856 }
aleloi116fd612016-08-10 04:16:36 -07001857
ehmaldonado38a21322016-09-02 04:10:34 -07001858 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001859 testonly = true
1860
1861 sources = [
1862 "neteq/test/neteq_speed_test.cc",
1863 ]
1864
1865 deps = [
1866 ":neteq",
1867 ":neteq_test_support",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001868 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001869 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001870 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001871 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001872 "../../test:fileutils",
aleloi116fd612016-08-10 04:16:36 -07001873 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001874 ]
1875 }
aleloi63910122016-08-10 04:41:14 -07001876
ehmaldonado38a21322016-09-02 04:10:34 -07001877 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001878 testonly = true
1879
1880 sources = [
1881 "neteq/test/neteq_ilbc_quality_test.cc",
1882 ]
1883
1884 deps = [
1885 ":ilbc",
1886 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001887 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001888 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001889 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001890 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001891 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001892 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001893 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001894 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001895 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001896 ]
1897 }
aleloi6df36dc2016-08-10 05:04:47 -07001898
ehmaldonado38a21322016-09-02 04:10:34 -07001899 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001900 testonly = true
1901
1902 sources = [
1903 "neteq/test/neteq_isac_quality_test.cc",
1904 ]
1905
1906 deps = [
1907 ":isac_fix",
1908 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001909 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001910 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001911 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001912 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001913 ]
1914 }
aleloic4ac7002016-08-10 05:06:27 -07001915
ehmaldonado38a21322016-09-02 04:10:34 -07001916 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001917 testonly = true
1918
1919 sources = [
1920 "neteq/test/neteq_pcmu_quality_test.cc",
1921 ]
1922
1923 deps = [
1924 ":g711",
1925 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001926 ":neteq_quality_test_support",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001927 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001928 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001929 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001930 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001931 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001932 ]
1933 }
aleloib7186d02016-08-16 01:47:16 -07001934
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001935 rtc_executable("neteq_pcm16b_quality_test") {
1936 testonly = true
1937
1938 sources = [
1939 "neteq/test/neteq_pcm16b_quality_test.cc",
1940 ]
1941
1942 deps = [
1943 ":neteq",
1944 ":neteq_quality_test_support",
1945 ":pcm16b",
1946 "../../rtc_base:checks",
1947 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001948 "../../test:fileutils",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001949 "../../test:test_main",
1950 "//testing/gtest",
1951 ]
1952 }
1953
ehmaldonado38a21322016-09-02 04:10:34 -07001954 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001955 testonly = true
1956
1957 sources = [
1958 "codecs/isac/fix/test/kenny.cc",
1959 ]
1960
1961 deps = [
1962 ":isac_fix",
Edward Lemure66572b2018-01-05 15:34:09 +01001963 "../../test:perf_test",
aleloib7186d02016-08-16 01:47:16 -07001964 "../../test:test_support",
1965 ]
1966
ehmaldonado25586ce2017-09-07 23:18:35 -07001967 data = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001968 "../../resources/speech_and_misc_wb.pcm",
ehmaldonado25586ce2017-09-07 23:18:35 -07001969 ]
aleloib7186d02016-08-16 01:47:16 -07001970 }
aleloi16f55a12016-08-23 08:08:23 -07001971
kjellander7439f972016-12-05 22:47:46 -08001972 rtc_source_set("isac_test_util") {
1973 testonly = true
1974 sources = [
1975 "codecs/isac/main/util/utility.c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001976 "codecs/isac/main/util/utility.h",
kjellander7439f972016-12-05 22:47:46 -08001977 ]
1978 }
1979
ehmaldonado38a21322016-09-02 04:10:34 -07001980 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001981 testonly = true
1982
1983 sources = [
1984 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001985 ]
1986
1987 include_dirs = [
1988 "codecs/isac/main/include",
1989 "codecs/isac/main/test",
1990 "codecs/isac/main/util",
1991 ]
1992
1993 deps = [
1994 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001995 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001996 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001997 ]
ivoce51b41a2016-08-24 02:25:57 -07001998 }
1999
ehmaldonado38a21322016-09-02 04:10:34 -07002000 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07002001 testonly = true
2002
2003 sources = [
2004 "codecs/g711/test/testG711.cc",
2005 ]
2006
aleloi16f55a12016-08-23 08:08:23 -07002007 deps = [
2008 ":g711",
2009 ]
2010 }
aleloi9a117842016-08-23 08:36:10 -07002011
ehmaldonado38a21322016-09-02 04:10:34 -07002012 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07002013 testonly = true
2014
2015 sources = [
2016 "codecs/g722/test/testG722.cc",
2017 ]
2018
aleloi9a117842016-08-23 08:36:10 -07002019 deps = [
2020 ":g722",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002021 "../..:typedefs",
aleloi9a117842016-08-23 08:36:10 -07002022 "../..:webrtc_common",
2023 ]
2024 }
ivoc2c670db2016-08-24 06:11:18 -07002025
ehmaldonado38a21322016-09-02 04:10:34 -07002026 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07002027 testonly = true
2028
2029 sources = [
2030 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07002031 ]
2032
aleloicfee2152016-08-29 04:09:19 -07002033 deps = [
2034 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002035 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002036 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07002037 ]
2038
2039 include_dirs = [
2040 "codecs/isac/main/include",
2041 "codecs/isac/main/test",
2042 "codecs/isac/main/util",
2043 ]
2044 }
2045
ehmaldonado38a21322016-09-02 04:10:34 -07002046 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002047 testonly = true
2048
2049 sources = [
2050 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002051 ]
2052
aleloicfee2152016-08-29 04:09:19 -07002053 deps = [
2054 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002055 ":isac_test_util",
Mirko Bonadei08973ee2018-02-01 14:12:55 +01002056 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002057 "../../common_audio:common_audio_c",
aleloicfee2152016-08-29 04:09:19 -07002058 ]
2059
2060 include_dirs = [
2061 "codecs/isac/main/include",
2062 "codecs/isac/main/test",
2063 "codecs/isac/main/util",
2064 "../../common_audio/signal_processing/include",
2065 ]
2066 }
2067
ehmaldonado38a21322016-09-02 04:10:34 -07002068 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002069 testonly = true
2070
2071 sources = [
2072 "codecs/ilbc/test/iLBC_test.c",
2073 ]
2074
aleloicfee2152016-08-29 04:09:19 -07002075 deps = [
2076 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002077 ]
2078 }
2079
ehmaldonado38a21322016-09-02 04:10:34 -07002080 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002081 testonly = true
2082
2083 sources = [
2084 "codecs/opus/opus_fec_test.cc",
2085 ]
2086
2087 deps = [
2088 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002089 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002090 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002091 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08002092 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002093 "//testing/gtest",
2094 ]
2095
kjellandere40a7ee2016-10-16 23:56:12 -07002096 if (!build_with_chromium && is_clang) {
2097 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002098 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002099 }
2100 }
ehmaldonado36268652017-01-19 08:27:11 -08002101
2102 rtc_source_set("audio_coding_unittests") {
2103 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00002104 visibility += webrtc_default_visibility
ehmaldonado36268652017-01-19 08:27:11 -08002105
2106 sources = [
2107 "acm2/acm_receiver_unittest.cc",
2108 "acm2/audio_coding_module_unittest.cc",
2109 "acm2/call_statistics_unittest.cc",
2110 "acm2/codec_manager_unittest.cc",
2111 "acm2/rent_a_codec_unittest.cc",
2112 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2113 "audio_network_adaptor/bitrate_controller_unittest.cc",
2114 "audio_network_adaptor/channel_controller_unittest.cc",
2115 "audio_network_adaptor/controller_manager_unittest.cc",
2116 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002117 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002118 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2119 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002120 "audio_network_adaptor/frame_length_controller_unittest.cc",
elad.alon326263a2017-03-29 03:16:58 -07002121 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002122 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002123 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002124 "codecs/cng/audio_encoder_cng_unittest.cc",
2125 "codecs/cng/cng_unittest.cc",
2126 "codecs/ilbc/ilbc_unittest.cc",
2127 "codecs/isac/fix/source/filterbanks_unittest.cc",
2128 "codecs/isac/fix/source/filters_unittest.cc",
2129 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2130 "codecs/isac/fix/source/transform_unittest.cc",
2131 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2132 "codecs/isac/main/source/isac_unittest.cc",
2133 "codecs/isac/unittest.cc",
2134 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002135 "codecs/opus/audio_encoder_opus_unittest.cc",
Alex Luebseeb27652017-11-20 11:13:56 -08002136 "codecs/opus/opus_bandwidth_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002137 "codecs/opus/opus_unittest.cc",
2138 "codecs/red/audio_encoder_copy_red_unittest.cc",
2139 "neteq/audio_multi_vector_unittest.cc",
2140 "neteq/audio_vector_unittest.cc",
2141 "neteq/background_noise_unittest.cc",
2142 "neteq/buffer_level_filter_unittest.cc",
2143 "neteq/comfort_noise_unittest.cc",
2144 "neteq/decision_logic_unittest.cc",
2145 "neteq/decoder_database_unittest.cc",
2146 "neteq/delay_manager_unittest.cc",
2147 "neteq/delay_peak_detector_unittest.cc",
2148 "neteq/dsp_helper_unittest.cc",
2149 "neteq/dtmf_buffer_unittest.cc",
2150 "neteq/dtmf_tone_generator_unittest.cc",
2151 "neteq/expand_unittest.cc",
2152 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002153 "neteq/mock/mock_buffer_level_filter.h",
2154 "neteq/mock/mock_decoder_database.h",
2155 "neteq/mock/mock_delay_manager.h",
2156 "neteq/mock/mock_delay_peak_detector.h",
2157 "neteq/mock/mock_dtmf_buffer.h",
2158 "neteq/mock/mock_dtmf_tone_generator.h",
2159 "neteq/mock/mock_expand.h",
2160 "neteq/mock/mock_external_decoder_pcm16b.h",
2161 "neteq/mock/mock_packet_buffer.h",
2162 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002163 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002164 "neteq/nack_tracker_unittest.cc",
2165 "neteq/neteq_external_decoder_unittest.cc",
2166 "neteq/neteq_impl_unittest.cc",
2167 "neteq/neteq_network_stats_unittest.cc",
2168 "neteq/neteq_stereo_unittest.cc",
2169 "neteq/neteq_unittest.cc",
2170 "neteq/normal_unittest.cc",
2171 "neteq/packet_buffer_unittest.cc",
2172 "neteq/post_decode_vad_unittest.cc",
2173 "neteq/random_vector_unittest.cc",
2174 "neteq/red_payload_splitter_unittest.cc",
Henrik Lundinac0a5032017-09-25 12:22:46 +02002175 "neteq/statistics_calculator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002176 "neteq/sync_buffer_unittest.cc",
2177 "neteq/tick_timer_unittest.cc",
2178 "neteq/time_stretch_unittest.cc",
2179 "neteq/timestamp_scaler_unittest.cc",
2180 "neteq/tools/input_audio_file_unittest.cc",
2181 "neteq/tools/packet_unittest.cc",
2182 ]
2183
2184 deps = [
2185 ":acm_receive_test",
2186 ":acm_send_test",
2187 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002188 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002189 ":audio_format_conversion",
2190 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002191 ":cng",
2192 ":g711",
2193 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002194 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002195 ":isac_c",
2196 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002197 ":legacy_encoded_audio_frame",
Patrik Höglundb960e412018-01-05 11:46:26 +01002198 ":mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002199 ":neteq",
2200 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002201 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002202 ":pcm16b",
2203 ":red",
2204 ":rent_a_codec",
2205 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002206 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002207 "../..:typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002208 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02002209 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08002210 "../../api/audio_codecs:audio_codecs_api",
2211 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002212 "../../api/audio_codecs:builtin_audio_encoder_factory",
Alex Luebseeb27652017-11-20 11:13:56 -08002213 "../../api/audio_codecs/opus:audio_decoder_opus",
Karl Wiberg7275e182017-10-25 09:57:40 +02002214 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonado36268652017-01-19 08:27:11 -08002215 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002216 "../../common_audio:common_audio_c",
charujain9a451162017-09-15 03:51:34 -07002217 "../../common_audio:mock_common_audio",
Patrik Höglund731082c2018-01-03 09:08:20 +01002218 "../../logging:mocks",
Qingsi Wang970b0882018-02-01 11:04:46 -08002219 "../../logging:rtc_event_audio",
Elad Alon4a87e1c2017-10-03 16:11:34 +02002220 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002221 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002222 "../../rtc_base:protobuf_utils",
2223 "../../rtc_base:rtc_base",
2224 "../../rtc_base:rtc_base_approved",
2225 "../../rtc_base:rtc_base_tests_utils",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002226 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01002227 "../../system_wrappers",
2228 "../../system_wrappers:cpu_features_api",
kwiberg37e99fd2017-04-10 05:15:48 -07002229 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002230 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002231 "../../test:fileutils",
ehmaldonado36268652017-01-19 08:27:11 -08002232 "../../test:rtp_test_utils",
2233 "../../test:test_common",
2234 "../../test:test_support",
ehmaldonado36268652017-01-19 08:27:11 -08002235 "//testing/gtest",
ehmaldonado36268652017-01-19 08:27:11 -08002236 ]
2237
2238 defines = audio_coding_defines
2239
2240 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002241 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002242 deps += [
2243 ":ana_config_proto",
2244 ":neteq_unittest_proto",
2245 ]
2246 }
2247
2248 if (!build_with_chromium && is_clang) {
2249 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2250 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2251 }
2252 }
kjellanderfb114242016-06-13 00:19:48 -07002253}
kwiberg087bd342017-02-10 08:15:44 -08002254
2255# For backwards compatibility only! Use
2256# webrtc/api/audio_codecs:audio_codecs_api instead.
2257# TODO(kwiberg): Remove this.
2258rtc_source_set("audio_decoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002259 visibility += [ "*" ]
kwiberg087bd342017-02-10 08:15:44 -08002260 sources = [
2261 "codecs/audio_decoder.h",
2262 ]
2263 deps = [
2264 "../../api/audio_codecs:audio_codecs_api",
2265 ]
2266}
2267
2268# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002269# webrtc/api/audio_codecs:audio_codecs_api instead.
2270# TODO(ossu): Remove this.
2271rtc_source_set("audio_encoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002272 visibility += [ "*" ]
ossueb1fde42017-05-02 06:46:30 -07002273 sources = [
2274 "codecs/audio_encoder.h",
2275 ]
2276 deps = [
2277 "../../api/audio_codecs:audio_codecs_api",
2278 ]
2279}