blob: 38cce73f6b71f8d4739ffa4dbb9418aff5cd5a7d [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 = [
242 "codecs/g711/g711.c",
243 "codecs/g711/g711.h",
244 "codecs/g711/g711_interface.c",
245 "codecs/g711/g711_interface.h",
246 ]
kjellander676e08f2016-12-07 08:23:27 -0800247 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100248 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800249 "../..:webrtc_common",
250 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000251}
252
253config("g722_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200254 include_dirs = [ "codecs/g722/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000255}
256
kjellanderb62dbbe2016-09-23 00:38:52 -0700257rtc_static_library("g722") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100258 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200259 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000260 sources = [
kwibergada4c132015-09-17 03:12:35 -0700261 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100262 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000263 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100264 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000265 ]
266
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700267 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000268
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200269 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800270 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800271 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800272 "../../api/audio_codecs:audio_codecs_api",
kwibergb8727ae2017-06-17 17:41:59 -0700273 "../../api/audio_codecs/g722:audio_encoder_g722_config",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100274 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700275 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200276 ]
kjellander7439f972016-12-05 22:47:46 -0800277 public_deps = [
278 ":g722_c",
279 ]
280}
281
282rtc_source_set("g722_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200283 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800284 sources = [
285 "codecs/g722/g722_decode.c",
286 "codecs/g722/g722_enc_dec.h",
287 "codecs/g722/g722_encode.c",
288 "codecs/g722/g722_interface.c",
289 "codecs/g722/g722_interface.h",
290 ]
kjellander676e08f2016-12-07 08:23:27 -0800291 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100292 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800293 "../..:webrtc_common",
294 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000295}
296
297config("ilbc_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200298 include_dirs = [ "codecs/ilbc/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000299}
300
kjellanderb62dbbe2016-09-23 00:38:52 -0700301rtc_static_library("ilbc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000302 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200303 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000304 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700305 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100306 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200307 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100308 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800309 ]
310
311 public_configs = [ ":ilbc_config" ]
312
313 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800314 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800315 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800316 "../../api/audio_codecs:audio_codecs_api",
solenbergdb3c9b02017-06-28 02:05:04 -0700317 "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
kjellander7439f972016-12-05 22:47:46 -0800318 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100319 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700320 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800321 ]
322 public_deps = [
323 ":ilbc_c",
324 ]
325}
326
327rtc_source_set("ilbc_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200328 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800329 sources = [
330 "codecs/ilbc/abs_quant.c",
331 "codecs/ilbc/abs_quant.h",
332 "codecs/ilbc/abs_quant_loop.c",
333 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000334 "codecs/ilbc/augmented_cb_corr.c",
335 "codecs/ilbc/augmented_cb_corr.h",
336 "codecs/ilbc/bw_expand.c",
337 "codecs/ilbc/bw_expand.h",
338 "codecs/ilbc/cb_construct.c",
339 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200340 "codecs/ilbc/cb_mem_energy.c",
341 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000342 "codecs/ilbc/cb_mem_energy_augmentation.c",
343 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000344 "codecs/ilbc/cb_mem_energy_calc.c",
345 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000346 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200347 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000348 "codecs/ilbc/cb_search_core.c",
349 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000350 "codecs/ilbc/cb_update_best_index.c",
351 "codecs/ilbc/cb_update_best_index.h",
352 "codecs/ilbc/chebyshev.c",
353 "codecs/ilbc/chebyshev.h",
354 "codecs/ilbc/comp_corr.c",
355 "codecs/ilbc/comp_corr.h",
356 "codecs/ilbc/constants.c",
357 "codecs/ilbc/constants.h",
358 "codecs/ilbc/create_augmented_vec.c",
359 "codecs/ilbc/create_augmented_vec.h",
360 "codecs/ilbc/decode.c",
361 "codecs/ilbc/decode.h",
362 "codecs/ilbc/decode_residual.c",
363 "codecs/ilbc/decode_residual.h",
364 "codecs/ilbc/decoder_interpolate_lsf.c",
365 "codecs/ilbc/decoder_interpolate_lsf.h",
366 "codecs/ilbc/defines.h",
367 "codecs/ilbc/do_plc.c",
368 "codecs/ilbc/do_plc.h",
369 "codecs/ilbc/encode.c",
370 "codecs/ilbc/encode.h",
371 "codecs/ilbc/energy_inverse.c",
372 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200373 "codecs/ilbc/enh_upsample.c",
374 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000375 "codecs/ilbc/enhancer.c",
376 "codecs/ilbc/enhancer.h",
377 "codecs/ilbc/enhancer_interface.c",
378 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000379 "codecs/ilbc/filtered_cb_vecs.c",
380 "codecs/ilbc/filtered_cb_vecs.h",
381 "codecs/ilbc/frame_classify.c",
382 "codecs/ilbc/frame_classify.h",
383 "codecs/ilbc/gain_dequant.c",
384 "codecs/ilbc/gain_dequant.h",
385 "codecs/ilbc/gain_quant.c",
386 "codecs/ilbc/gain_quant.h",
387 "codecs/ilbc/get_cd_vec.c",
388 "codecs/ilbc/get_cd_vec.h",
389 "codecs/ilbc/get_lsp_poly.c",
390 "codecs/ilbc/get_lsp_poly.h",
391 "codecs/ilbc/get_sync_seq.c",
392 "codecs/ilbc/get_sync_seq.h",
393 "codecs/ilbc/hp_input.c",
394 "codecs/ilbc/hp_input.h",
395 "codecs/ilbc/hp_output.c",
396 "codecs/ilbc/hp_output.h",
397 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100398 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000399 "codecs/ilbc/index_conv_dec.c",
400 "codecs/ilbc/index_conv_dec.h",
401 "codecs/ilbc/index_conv_enc.c",
402 "codecs/ilbc/index_conv_enc.h",
403 "codecs/ilbc/init_decode.c",
404 "codecs/ilbc/init_decode.h",
405 "codecs/ilbc/init_encode.c",
406 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000407 "codecs/ilbc/interpolate.c",
408 "codecs/ilbc/interpolate.h",
409 "codecs/ilbc/interpolate_samples.c",
410 "codecs/ilbc/interpolate_samples.h",
411 "codecs/ilbc/lpc_encode.c",
412 "codecs/ilbc/lpc_encode.h",
413 "codecs/ilbc/lsf_check.c",
414 "codecs/ilbc/lsf_check.h",
415 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
416 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
417 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
418 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
419 "codecs/ilbc/lsf_to_lsp.c",
420 "codecs/ilbc/lsf_to_lsp.h",
421 "codecs/ilbc/lsf_to_poly.c",
422 "codecs/ilbc/lsf_to_poly.h",
423 "codecs/ilbc/lsp_to_lsf.c",
424 "codecs/ilbc/lsp_to_lsf.h",
425 "codecs/ilbc/my_corr.c",
426 "codecs/ilbc/my_corr.h",
427 "codecs/ilbc/nearest_neighbor.c",
428 "codecs/ilbc/nearest_neighbor.h",
429 "codecs/ilbc/pack_bits.c",
430 "codecs/ilbc/pack_bits.h",
431 "codecs/ilbc/poly_to_lsf.c",
432 "codecs/ilbc/poly_to_lsf.h",
433 "codecs/ilbc/poly_to_lsp.c",
434 "codecs/ilbc/poly_to_lsp.h",
435 "codecs/ilbc/refiner.c",
436 "codecs/ilbc/refiner.h",
437 "codecs/ilbc/simple_interpolate_lsf.c",
438 "codecs/ilbc/simple_interpolate_lsf.h",
439 "codecs/ilbc/simple_lpc_analysis.c",
440 "codecs/ilbc/simple_lpc_analysis.h",
441 "codecs/ilbc/simple_lsf_dequant.c",
442 "codecs/ilbc/simple_lsf_dequant.h",
443 "codecs/ilbc/simple_lsf_quant.c",
444 "codecs/ilbc/simple_lsf_quant.h",
445 "codecs/ilbc/smooth.c",
446 "codecs/ilbc/smooth.h",
447 "codecs/ilbc/smooth_out_data.c",
448 "codecs/ilbc/smooth_out_data.h",
449 "codecs/ilbc/sort_sq.c",
450 "codecs/ilbc/sort_sq.h",
451 "codecs/ilbc/split_vq.c",
452 "codecs/ilbc/split_vq.h",
453 "codecs/ilbc/state_construct.c",
454 "codecs/ilbc/state_construct.h",
455 "codecs/ilbc/state_search.c",
456 "codecs/ilbc/state_search.h",
457 "codecs/ilbc/swap_bytes.c",
458 "codecs/ilbc/swap_bytes.h",
459 "codecs/ilbc/unpack_bits.c",
460 "codecs/ilbc/unpack_bits.h",
461 "codecs/ilbc/vq3.c",
462 "codecs/ilbc/vq3.h",
463 "codecs/ilbc/vq4.c",
464 "codecs/ilbc/vq4.h",
465 "codecs/ilbc/window32_w32.c",
466 "codecs/ilbc/window32_w32.h",
467 "codecs/ilbc/xcorr_coef.c",
468 "codecs/ilbc/xcorr_coef.h",
469 ]
470
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700471 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000472
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000473 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100474 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800475 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800476 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100477 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100478 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100479 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700480 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100481 "../../rtc_base:sanitizer",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000482 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000483}
484
kjellanderb62dbbe2016-09-23 00:38:52 -0700485rtc_static_library("isac_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200486 poisonous = [ "audio_codecs" ]
kwiberg608c3cf2015-08-24 02:03:23 -0700487 sources = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100488 "codecs/isac/audio_decoder_isac_t.h",
489 "codecs/isac/audio_decoder_isac_t_impl.h",
kwiberg608c3cf2015-08-24 02:03:23 -0700490 "codecs/isac/audio_encoder_isac_t.h",
491 "codecs/isac/audio_encoder_isac_t_impl.h",
492 "codecs/isac/locked_bandwidth_info.cc",
493 "codecs/isac/locked_bandwidth_info.h",
494 ]
kjellander676e08f2016-12-07 08:23:27 -0800495 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200496 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100497 "../..:typedefs",
kwiberga6ca5182017-01-30 05:28:54 -0800498 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700499 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100500 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700501 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200502 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -0800503 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700504}
505
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000506config("isac_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200507 include_dirs = [ "codecs/isac/main/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000508}
509
kjellanderb62dbbe2016-09-23 00:38:52 -0700510rtc_static_library("isac") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100511 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200512 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000513 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800514 "codecs/isac/main/include/audio_decoder_isac.h",
515 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800516 "codecs/isac/main/source/audio_decoder_isac.cc",
517 "codecs/isac/main/source/audio_encoder_isac.cc",
518 ]
519
520 deps = [
kjellander7439f972016-12-05 22:47:46 -0800521 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800522 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800523 ]
524 public_deps = [
525 ":isac_c",
526 ]
527}
528
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200529rtc_source_set("isac_bwinfo") {
530 sources = [
531 "codecs/isac/bandwidth_info.h",
532 ]
533 deps = [
534 "../..:typedefs",
535 ]
536}
537
538rtc_source_set("isac_vad") {
539 visibility += webrtc_default_visibility
540 sources = [
541 "codecs/isac/main/source/filter_functions.c",
542 "codecs/isac/main/source/filter_functions.h",
543 "codecs/isac/main/source/isac_vad.c",
544 "codecs/isac/main/source/isac_vad.h",
545 "codecs/isac/main/source/os_specific_inline.h",
546 "codecs/isac/main/source/pitch_estimator.c",
547 "codecs/isac/main/source/pitch_estimator.h",
548 "codecs/isac/main/source/pitch_filter.c",
549 "codecs/isac/main/source/pitch_filter.h",
550 "codecs/isac/main/source/settings.h",
551 "codecs/isac/main/source/structs.h",
552 ]
553 deps = [
554 ":isac_bwinfo",
555 "../..:typedefs",
556 "../../rtc_base:compile_assert_c",
557 "../../rtc_base/system:ignore_warnings",
558 ]
559}
560
kjellander7439f972016-12-05 22:47:46 -0800561rtc_static_library("isac_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200562 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800563 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100564 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000565 "codecs/isac/main/source/arith_routines.c",
566 "codecs/isac/main/source/arith_routines.h",
567 "codecs/isac/main/source/arith_routines_hist.c",
568 "codecs/isac/main/source/arith_routines_logist.c",
569 "codecs/isac/main/source/bandwidth_estimator.c",
570 "codecs/isac/main/source/bandwidth_estimator.h",
571 "codecs/isac/main/source/codec.h",
572 "codecs/isac/main/source/crc.c",
573 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000574 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200575 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000576 "codecs/isac/main/source/encode.c",
577 "codecs/isac/main/source/encode_lpc_swb.c",
578 "codecs/isac/main/source/encode_lpc_swb.h",
579 "codecs/isac/main/source/entropy_coding.c",
580 "codecs/isac/main/source/entropy_coding.h",
581 "codecs/isac/main/source/fft.c",
582 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200583 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000584 "codecs/isac/main/source/intialize.c",
585 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200586 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000587 "codecs/isac/main/source/lattice.c",
588 "codecs/isac/main/source/lpc_analysis.c",
589 "codecs/isac/main/source/lpc_analysis.h",
590 "codecs/isac/main/source/lpc_gain_swb_tables.c",
591 "codecs/isac/main/source/lpc_gain_swb_tables.h",
592 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
593 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
594 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
595 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
596 "codecs/isac/main/source/lpc_tables.c",
597 "codecs/isac/main/source/lpc_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000598 "codecs/isac/main/source/pitch_gain_tables.c",
599 "codecs/isac/main/source/pitch_gain_tables.h",
600 "codecs/isac/main/source/pitch_lag_tables.c",
601 "codecs/isac/main/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000602 "codecs/isac/main/source/spectrum_ar_model_tables.c",
603 "codecs/isac/main/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000604 "codecs/isac/main/source/transform.c",
605 ]
606
607 if (is_linux) {
608 libs = [ "m" ]
609 }
610
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700611 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000612
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000613 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200614 ":isac_bwinfo",
615 ":isac_vad",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100616 "../..:typedefs",
aleloicfee2152016-08-29 04:09:19 -0700617 "../..:webrtc_common",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000618 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100619 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100620 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700621 "../../rtc_base:compile_assert_c",
622 "../../rtc_base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000623 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000624}
625
626config("isac_fix_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200627 include_dirs = [ "codecs/isac/fix/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000628}
629
kjellanderb62dbbe2016-09-23 00:38:52 -0700630rtc_static_library("isac_fix") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100631 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200632 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000633 sources = [
kjellander7439f972016-12-05 22:47:46 -0800634 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
635 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
636 ]
637
638 public_configs = [ ":isac_fix_config" ]
639
640 deps = [
kjellander7439f972016-12-05 22:47:46 -0800641 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800642 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800643 "../../common_audio",
644 "../../system_wrappers",
645 ]
646 public_deps = [
647 ":isac_fix_c",
648 ]
649
650 if (rtc_build_with_neon) {
651 deps += [ ":isac_neon" ]
652 }
653}
654
kwiberga6ca5182017-01-30 05:28:54 -0800655rtc_source_set("isac_fix_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200656 poisonous = [ "audio_codecs" ]
kwiberga6ca5182017-01-30 05:28:54 -0800657 sources = [
658 "codecs/isac/fix/source/codec.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100659 "codecs/isac/fix/source/entropy_coding.h",
kwiberga6ca5182017-01-30 05:28:54 -0800660 "codecs/isac/fix/source/fft.c",
661 "codecs/isac/fix/source/fft.h",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100662 "codecs/isac/fix/source/filterbank_internal.h",
kwiberga6ca5182017-01-30 05:28:54 -0800663 "codecs/isac/fix/source/settings.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100664 "codecs/isac/fix/source/structs.h",
Mirko Bonadei6e396b02018-04-20 13:54:53 -0700665 "codecs/isac/fix/source/transform_tables.c",
kwiberga6ca5182017-01-30 05:28:54 -0800666 ]
667 public_configs = [ ":isac_fix_config" ]
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100668 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200669 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100670 "../..:typedefs",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100671 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100672 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100673 ]
kwiberga6ca5182017-01-30 05:28:54 -0800674}
kjellander676e08f2016-12-07 08:23:27 -0800675
mbonadei5c0d7032017-07-06 03:48:55 -0700676rtc_source_set("isac_fix_c_arm_asm") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200677 poisonous = [ "audio_codecs" ]
mbonadei5c0d7032017-07-06 03:48:55 -0700678 sources = []
679 if (current_cpu == "arm" && arm_version >= 7) {
680 sources += [
681 "codecs/isac/fix/source/lattice_armv7.S",
682 "codecs/isac/fix/source/pitch_filter_armv6.S",
683 ]
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100684 deps = [
Mirko Bonadei6ce03592018-02-22 15:10:27 +0100685 ":isac_fix_common",
Karl Wiberg7aabd392018-03-22 02:59:49 +0100686 "../../rtc_base/system:asm_defines",
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100687 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700688 }
689}
690
kwiberga6ca5182017-01-30 05:28:54 -0800691rtc_source_set("isac_fix_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200692 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800693 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100694 "codecs/isac/fix/include/audio_decoder_isacfix.h",
695 "codecs/isac/fix/include/audio_encoder_isacfix.h",
696 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000697 "codecs/isac/fix/source/arith_routines.c",
698 "codecs/isac/fix/source/arith_routines_hist.c",
699 "codecs/isac/fix/source/arith_routines_logist.c",
700 "codecs/isac/fix/source/arith_routins.h",
701 "codecs/isac/fix/source/bandwidth_estimator.c",
702 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000703 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200704 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000705 "codecs/isac/fix/source/decode_plc.c",
706 "codecs/isac/fix/source/encode.c",
707 "codecs/isac/fix/source/entropy_coding.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000708 "codecs/isac/fix/source/filterbank_tables.c",
709 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200710 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000711 "codecs/isac/fix/source/filters.c",
712 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200713 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000714 "codecs/isac/fix/source/isacfix.c",
715 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700716 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000717 "codecs/isac/fix/source/lpc_masking_model.c",
718 "codecs/isac/fix/source/lpc_masking_model.h",
719 "codecs/isac/fix/source/lpc_tables.c",
720 "codecs/isac/fix/source/lpc_tables.h",
721 "codecs/isac/fix/source/pitch_estimator.c",
722 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700723 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000724 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700725 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000726 "codecs/isac/fix/source/pitch_gain_tables.c",
727 "codecs/isac/fix/source/pitch_gain_tables.h",
728 "codecs/isac/fix/source/pitch_lag_tables.c",
729 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000730 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
731 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000732 "codecs/isac/fix/source/transform.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000733 ]
734
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700735 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000736
kjellander676e08f2016-12-07 08:23:27 -0800737 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200738 ":isac_bwinfo",
kjellander676e08f2016-12-07 08:23:27 -0800739 ":isac_common",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100740 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800741 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800742 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800743 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100744 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100745 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700746 "../../rtc_base:compile_assert_c",
747 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100748 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100749 "../../system_wrappers:cpu_features_api",
kjellander676e08f2016-12-07 08:23:27 -0800750 ]
751
kwiberga6ca5182017-01-30 05:28:54 -0800752 public_deps = [
753 ":isac_fix_common",
754 ]
755
mbonadeie5dc3ce2017-01-25 05:34:46 -0800756 if (rtc_build_with_neon) {
757 deps += [ ":isac_neon" ]
758 }
759
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700760 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700761 sources -= [
762 "codecs/isac/fix/source/lattice_c.c",
763 "codecs/isac/fix/source/pitch_filter_c.c",
764 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700765 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000766 }
767
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000768 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000769 sources += [
770 "codecs/isac/fix/source/entropy_coding_mips.c",
771 "codecs/isac/fix/source/filters_mips.c",
772 "codecs/isac/fix/source/lattice_mips.c",
773 "codecs/isac/fix/source/pitch_estimator_mips.c",
774 "codecs/isac/fix/source/transform_mips.c",
775 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700776 sources -= [
777 "codecs/isac/fix/source/lattice_c.c",
778 "codecs/isac/fix/source/pitch_estimator_c.c",
779 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000780 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200781 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000782 }
783 if (mips_dsp_rev > 1) {
784 sources += [
785 "codecs/isac/fix/source/lpc_masking_model_mips.c",
786 "codecs/isac/fix/source/pitch_filter_mips.c",
787 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200788 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000789 }
790 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000791}
792
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700793if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700794 rtc_static_library("isac_neon") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200795 poisonous = [ "audio_codecs" ]
Zhongwei Yaof242e662015-05-06 16:39:17 +0800796 sources = [
797 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800798 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800799 "codecs/isac/fix/source/filters_neon.c",
800 "codecs/isac/fix/source/lattice_neon.c",
801 "codecs/isac/fix/source/transform_neon.c",
802 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000803
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700804 if (current_cpu != "arm64") {
805 # Enable compilation for the NEON instruction set. This is needed
806 # since //build/config/arm.gni only enables NEON for iOS, not Android.
807 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700808 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700809 cflags = [ "-mfpu=neon" ]
810 }
811
812 # Disable LTO on NEON targets due to compiler bug.
813 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000814 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000815 cflags -= [
816 "-flto",
817 "-ffat-lto-objects",
818 ]
819 }
820
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200821 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800822 ":isac_fix_common",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200823 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100824 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100825 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700826 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200827 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000828 }
829}
830
831config("pcm16b_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200832 include_dirs = [ "codecs/pcm16b/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000833}
834
kjellanderb62dbbe2016-09-23 00:38:52 -0700835rtc_static_library("pcm16b") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100836 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200837 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000838 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200839 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100840 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200841 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100842 "codecs/pcm16b/audio_encoder_pcm16b.h",
kwiberg7ea6e592017-08-16 06:12:57 -0700843 "codecs/pcm16b/pcm16b_common.cc",
844 "codecs/pcm16b/pcm16b_common.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000845 ]
846
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000847 deps = [
848 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800849 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800850 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800851 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100852 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700853 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000854 ]
kjellander7439f972016-12-05 22:47:46 -0800855 public_deps = [
856 ":pcm16b_c",
857 ]
858 public_configs = [ ":pcm16b_config" ]
859}
860
861rtc_source_set("pcm16b_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200862 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800863 sources = [
864 "codecs/pcm16b/pcm16b.c",
865 "codecs/pcm16b/pcm16b.h",
866 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000867
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700868 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800869 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100870 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800871 "../..:webrtc_common",
872 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000873}
874
kjellanderb62dbbe2016-09-23 00:38:52 -0700875rtc_static_library("webrtc_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000876 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200877 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000878 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200879 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100880 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000881 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100882 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000883 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000884
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200885 deps = [
minyue41b9c802016-10-06 07:13:54 -0700886 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800887 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800888 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700889 "../../api/audio_codecs/opus:audio_encoder_opus_config",
michaelt566d8202017-01-12 10:17:38 -0800890 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100891 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700892 "../../rtc_base:rtc_base_approved",
893 "../../rtc_base:rtc_numerics",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100894 "../../rtc_base:safe_minmax",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100895 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200896 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200897 ]
kjellander7439f972016-12-05 22:47:46 -0800898 public_deps = [
899 ":webrtc_opus_c",
kwiberge5eb7242017-08-25 03:10:50 -0700900 "../../rtc_base:protobuf_utils",
kjellander7439f972016-12-05 22:47:46 -0800901 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000902
michaelta55f0212017-02-02 07:47:19 -0800903 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800904
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000905 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800906 public_deps += [ rtc_opus_dir ]
907 } else if (build_with_mozilla) {
Dan Minor9c686132018-01-15 10:20:00 -0500908 include_dirs = [ "/media/libopus/include" ]
kjellander7439f972016-12-05 22:47:46 -0800909 }
910}
911
912rtc_source_set("webrtc_opus_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200913 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800914 sources = [
915 "codecs/opus/opus_inst.h",
916 "codecs/opus/opus_interface.c",
917 "codecs/opus/opus_interface.h",
918 ]
919
minyue2e03c662017-02-01 17:31:11 -0800920 defines = audio_coding_defines
921
kjellander7439f972016-12-05 22:47:46 -0800922 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700923 public_deps = [
924 rtc_opus_dir,
925 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000926 } else if (build_with_mozilla) {
927 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000928 }
kjellander7439f972016-12-05 22:47:46 -0800929
930 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100931 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800932 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100933 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700934 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800935 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000936}
937
minyue25f6a392016-09-22 22:23:20 -0700938if (rtc_enable_protobuf) {
939 proto_library("ana_debug_dump_proto") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000940 visibility += webrtc_default_visibility
minyue25f6a392016-09-22 22:23:20 -0700941 sources = [
942 "audio_network_adaptor/debug_dump.proto",
943 ]
jbudorick58f17252017-07-26 14:49:20 -0700944 deps = [
945 ":ana_config_proto",
946 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200947 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700948 }
minyuea1d9ad02016-10-02 14:53:37 -0700949 proto_library("ana_config_proto") {
950 sources = [
951 "audio_network_adaptor/config.proto",
952 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200953 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyuea1d9ad02016-10-02 14:53:37 -0700954 }
minyue25f6a392016-09-22 22:23:20 -0700955}
956
eladalon1e7dd312017-09-12 04:38:25 -0700957rtc_static_library("audio_network_adaptor_config") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000958 visibility += webrtc_default_visibility
eladalon1e7dd312017-09-12 04:38:25 -0700959 sources = [
960 "audio_network_adaptor/audio_network_adaptor_config.cc",
961 "audio_network_adaptor/include/audio_network_adaptor_config.h",
962 ]
963 deps = [
Danil Chapovalovb6021232018-06-19 13:26:36 +0200964 "//third_party/abseil-cpp/absl/types:optional",
eladalon1e7dd312017-09-12 04:38:25 -0700965 ]
966}
967
minyue0d382ef2016-10-07 07:59:28 -0700968rtc_static_library("audio_network_adaptor") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000969 visibility += webrtc_default_visibility
minyue7610f852016-09-07 13:51:51 -0700970 sources = [
minyuecaa9cb22016-09-13 13:34:15 -0700971 "audio_network_adaptor/audio_network_adaptor_impl.cc",
972 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700973 "audio_network_adaptor/bitrate_controller.cc",
974 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700975 "audio_network_adaptor/channel_controller.cc",
976 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700977 "audio_network_adaptor/controller.cc",
978 "audio_network_adaptor/controller.h",
979 "audio_network_adaptor/controller_manager.cc",
980 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700981 "audio_network_adaptor/debug_dump_writer.cc",
982 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700983 "audio_network_adaptor/dtx_controller.cc",
984 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800985 "audio_network_adaptor/event_log_writer.cc",
986 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700987 "audio_network_adaptor/fec_controller_plr_based.cc",
988 "audio_network_adaptor/fec_controller_plr_based.h",
989 "audio_network_adaptor/fec_controller_rplr_based.cc",
990 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700991 "audio_network_adaptor/frame_length_controller.cc",
992 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700993 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700994 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700995 ]
minyue25f6a392016-09-22 22:23:20 -0700996
eladalon1e7dd312017-09-12 04:38:25 -0700997 public_deps = [
998 ":audio_network_adaptor_config",
999 ]
1000
minyue41b9c802016-10-06 07:13:54 -07001001 deps = [
1002 "../..:webrtc_common",
ivoce1198e02017-09-08 08:13:19 -07001003 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001004 "../../common_audio",
Qingsi Wang970b0882018-02-01 11:04:46 -08001005 "../../logging:rtc_event_audio",
minyue4b7c9522017-01-24 04:54:59 -08001006 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001007 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001008 "../../rtc_base:protobuf_utils",
1009 "../../rtc_base:rtc_base_approved",
Karl Wiberg6a4d4112018-03-23 10:39:34 +01001010 "../../rtc_base/system:file_wrapper",
minyue41b9c802016-10-06 07:13:54 -07001011 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001012 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001013 "//third_party/abseil-cpp/absl/types:optional",
minyue41b9c802016-10-06 07:13:54 -07001014 ]
1015
minyue25f6a392016-09-22 22:23:20 -07001016 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -07001017 deps += [
minyuea1d9ad02016-10-02 14:53:37 -07001018 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -07001019 ":ana_debug_dump_proto",
1020 ]
minyue25f6a392016-09-22 22:23:20 -07001021 }
minyue4b7c9522017-01-24 04:54:59 -08001022
1023 if (!build_with_chromium && is_clang) {
1024 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1025 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1026 }
minyue7610f852016-09-07 13:51:51 -07001027}
1028
kwiberg65cb70d2017-03-03 06:16:28 -08001029rtc_source_set("neteq_decoder_enum") {
1030 sources = [
1031 "neteq/neteq_decoder_enum.cc",
1032 "neteq/neteq_decoder_enum.h",
1033 ]
1034 deps = [
1035 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001036 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001037 "//third_party/abseil-cpp/absl/types:optional",
kwiberg65cb70d2017-03-03 06:16:28 -08001038 ]
1039}
kjellander676e08f2016-12-07 08:23:27 -08001040
kwiberg65cb70d2017-03-03 06:16:28 -08001041rtc_static_library("neteq") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001042 visibility += webrtc_default_visibility
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001043 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001044 "neteq/accelerate.cc",
1045 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001046 "neteq/audio_multi_vector.cc",
1047 "neteq/audio_multi_vector.h",
1048 "neteq/audio_vector.cc",
1049 "neteq/audio_vector.h",
1050 "neteq/background_noise.cc",
1051 "neteq/background_noise.h",
1052 "neteq/buffer_level_filter.cc",
1053 "neteq/buffer_level_filter.h",
1054 "neteq/comfort_noise.cc",
1055 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -07001056 "neteq/cross_correlation.cc",
1057 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001058 "neteq/decision_logic.cc",
1059 "neteq/decision_logic.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001060 "neteq/decoder_database.cc",
1061 "neteq/decoder_database.h",
1062 "neteq/defines.h",
1063 "neteq/delay_manager.cc",
1064 "neteq/delay_manager.h",
1065 "neteq/delay_peak_detector.cc",
1066 "neteq/delay_peak_detector.h",
1067 "neteq/dsp_helper.cc",
1068 "neteq/dsp_helper.h",
1069 "neteq/dtmf_buffer.cc",
1070 "neteq/dtmf_buffer.h",
1071 "neteq/dtmf_tone_generator.cc",
1072 "neteq/dtmf_tone_generator.h",
1073 "neteq/expand.cc",
1074 "neteq/expand.h",
Henrik Lundin3ef3bfc2018-04-10 15:10:26 +02001075 "neteq/expand_uma_logger.cc",
1076 "neteq/expand_uma_logger.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001077 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001078 "neteq/merge.cc",
1079 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001080 "neteq/nack_tracker.cc",
1081 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001082 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001083 "neteq/neteq_impl.cc",
1084 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001085 "neteq/normal.cc",
1086 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001087 "neteq/packet.cc",
1088 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001089 "neteq/packet_buffer.cc",
1090 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001091 "neteq/post_decode_vad.cc",
1092 "neteq/post_decode_vad.h",
1093 "neteq/preemptive_expand.cc",
1094 "neteq/preemptive_expand.h",
1095 "neteq/random_vector.cc",
1096 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001097 "neteq/red_payload_splitter.cc",
1098 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001099 "neteq/rtcp.cc",
1100 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001101 "neteq/statistics_calculator.cc",
1102 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001103 "neteq/sync_buffer.cc",
1104 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001105 "neteq/tick_timer.cc",
1106 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001107 "neteq/time_stretch.cc",
1108 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001109 "neteq/timestamp_scaler.cc",
1110 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001111 ]
1112
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001113 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001114 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001115 ":cng",
kwiberg65cb70d2017-03-03 06:16:28 -08001116 ":neteq_decoder_enum",
mbonadei1140f972017-04-26 03:38:35 -07001117 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001118 "../..:typedefs",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001119 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001120 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001121 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001122 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001123 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01001124 "../../common_audio:common_audio_c",
Jonas Olssonabbe8412018-04-03 13:40:05 +02001125 "../../rtc_base:audio_format_to_string",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001126 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001127 "../../rtc_base:gtest_prod",
1128 "../../rtc_base:rtc_base_approved",
Karl Wiberg12edf4c2018-03-07 14:18:56 +01001129 "../../rtc_base:safe_minmax",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001130 "../../rtc_base:sanitizer",
Karl Wiberg80ba3332018-02-05 10:33:35 +01001131 "../../rtc_base/system:fallthrough",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001132 "../../system_wrappers:field_trial_api",
1133 "../../system_wrappers:metrics_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001134 "//third_party/abseil-cpp/absl/types:optional",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001135 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001136}
kjellanderfb114242016-06-13 00:19:48 -07001137
henrik.lundin58466f62016-10-05 02:27:42 -07001138# Although providing only test support, this target must be outside of the
1139# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1140# that ultimately are built and run as a part of the Chromium ecosystem, which
1141# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001142rtc_source_set("neteq_tools_minimal") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001143 visibility += webrtc_default_visibility
henrik.lundin58466f62016-10-05 02:27:42 -07001144 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001145 "neteq/tools/audio_sink.cc",
1146 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001147 "neteq/tools/encode_neteq_input.cc",
1148 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001149 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001150 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001151 "neteq/tools/neteq_test.cc",
1152 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001153 "neteq/tools/packet.cc",
1154 "neteq/tools/packet.h",
1155 "neteq/tools/packet_source.cc",
1156 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001157 ]
1158
kjellandere40a7ee2016-10-16 23:56:12 -07001159 if (!build_with_chromium && is_clang) {
1160 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001161 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1162 }
kjellander676e08f2016-12-07 08:23:27 -08001163
1164 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001165 ":neteq",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001166 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001167 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001168 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001169 "../../api/audio:audio_frame_api",
ossueb1fde42017-05-02 06:46:30 -07001170 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001171 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001172 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001173 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001174 "../rtp_rtcp",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001175 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -08001176 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001177}
1178
mbonadei3edccb92017-06-01 04:47:20 -07001179rtc_source_set("neteq_test_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001180 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001181 testonly = true
1182 sources = [
1183 "neteq/tools/audio_checksum.h",
1184 "neteq/tools/audio_loop.cc",
1185 "neteq/tools/audio_loop.h",
1186 "neteq/tools/constant_pcm_packet_source.cc",
1187 "neteq/tools/constant_pcm_packet_source.h",
1188 "neteq/tools/output_audio_file.h",
1189 "neteq/tools/output_wav_file.h",
1190 "neteq/tools/rtp_file_source.cc",
1191 "neteq/tools/rtp_file_source.h",
1192 "neteq/tools/rtp_generator.cc",
1193 "neteq/tools/rtp_generator.h",
1194 ]
1195
1196 public_configs = [ ":neteq_tools_config" ]
1197
1198 if (!build_with_chromium && is_clang) {
1199 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1200 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1201 }
1202
1203 deps = [
1204 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001205 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001206 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001207 "../../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +01001208 "../../api:libjingle_peerconnection_api",
mbonadei3edccb92017-06-01 04:47:20 -07001209 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001210 "../../rtc_base:checks",
Joachim Bauch4e909192017-12-19 22:27:51 +01001211 "../../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001212 "../../rtc_base:rtc_base_approved",
1213 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001214 "../../test:rtp_test_utils",
1215 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001216 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001217 ]
1218
1219 public_deps = [
1220 ":neteq_tools",
1221 ":neteq_tools_minimal",
1222 ]
1223
1224 if (rtc_enable_protobuf) {
1225 sources += [
1226 "neteq/tools/neteq_packet_source_input.cc",
1227 "neteq/tools/neteq_packet_source_input.h",
1228 ]
1229 deps += [ ":rtc_event_log_source" ]
1230 }
1231}
1232
1233config("neteq_tools_config") {
1234 include_dirs = [ "tools" ]
1235}
1236
1237rtc_source_set("neteq_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001238 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001239 sources = [
1240 "neteq/tools/fake_decode_from_file.cc",
1241 "neteq/tools/fake_decode_from_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001242 "neteq/tools/neteq_delay_analyzer.cc",
1243 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001244 "neteq/tools/neteq_replacement_input.cc",
1245 "neteq/tools/neteq_replacement_input.h",
Minyue Li2b415da2018-04-16 14:33:53 +02001246 "neteq/tools/neteq_stats_getter.cc",
1247 "neteq/tools/neteq_stats_getter.h",
mbonadei3edccb92017-06-01 04:47:20 -07001248 ]
1249
1250 public_configs = [ ":neteq_tools_config" ]
1251
1252 if (!build_with_chromium && is_clang) {
1253 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1254 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1255 }
1256
1257 deps = [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001258 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001259 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001260 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001261 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001262 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001263 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001264 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001265 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001266 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001267 "//third_party/abseil-cpp/absl/types:optional",
mbonadei3edccb92017-06-01 04:47:20 -07001268 ]
1269
1270 public_deps = [
Ivo Creusen385b10b2017-10-13 12:37:27 +02001271 ":neteq_input_audio_tools",
mbonadei3edccb92017-06-01 04:47:20 -07001272 ":neteq_tools_minimal",
1273 ]
1274}
1275
Ivo Creusen385b10b2017-10-13 12:37:27 +02001276rtc_source_set("neteq_input_audio_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001277 visibility += webrtc_default_visibility
Ivo Creusen385b10b2017-10-13 12:37:27 +02001278 sources = [
1279 "neteq/tools/input_audio_file.cc",
1280 "neteq/tools/input_audio_file.h",
1281 "neteq/tools/resample_input_audio_file.cc",
1282 "neteq/tools/resample_input_audio_file.h",
1283 ]
1284
1285 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001286 "../..:typedefs",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001287 "../..:webrtc_common",
1288 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001289 "../../rtc_base:checks",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001290 "../../rtc_base:rtc_base_approved",
1291 ]
1292}
1293
mbonadei3edccb92017-06-01 04:47:20 -07001294if (rtc_enable_protobuf) {
1295 rtc_static_library("rtc_event_log_source") {
1296 testonly = true
1297
mbonadei3edccb92017-06-01 04:47:20 -07001298 sources = [
1299 "neteq/tools/rtc_event_log_source.cc",
1300 "neteq/tools/rtc_event_log_source.h",
1301 ]
1302
1303 if (!build_with_chromium && is_clang) {
1304 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1305 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1306 }
1307
1308 deps = [
Patrik Höglundebe62402017-11-24 13:51:52 +01001309 ":neteq_tools_minimal",
mbonadei3edccb92017-06-01 04:47:20 -07001310 "../../logging:rtc_event_log_parser",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001311 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001312 "../../rtc_base:rtc_base_approved",
Mirko Bonadei818d9102017-12-12 12:46:13 +01001313 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001314 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001315 ]
1316 public_deps = [
1317 "../../logging:rtc_event_log_proto",
1318 ]
1319 }
1320}
1321
kjellanderfb114242016-06-13 00:19:48 -07001322if (rtc_include_tests) {
Patrik Höglundb960e412018-01-05 11:46:26 +01001323 rtc_source_set("mocks") {
1324 testonly = true
1325 sources = [
1326 "audio_network_adaptor/mock/mock_audio_network_adaptor.h",
1327 "audio_network_adaptor/mock/mock_controller.h",
1328 "audio_network_adaptor/mock/mock_controller_manager.h",
1329 "audio_network_adaptor/mock/mock_debug_dump_writer.h",
1330 ]
1331 deps = [
1332 ":audio_network_adaptor",
1333 "../../test:test_support",
1334 ]
1335 }
1336
kjellander6ceab082016-10-28 05:44:03 -07001337 group("audio_coding_tests") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001338 visibility += webrtc_default_visibility
kjellander6ceab082016-10-28 05:44:03 -07001339 testonly = true
1340 public_deps = [
kjellander6ceab082016-10-28 05:44:03 -07001341 ":acm_receive_test",
1342 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001343 ":audio_codec_speed_tests",
1344 ":audio_decoder_unittests",
1345 ":audio_decoder_unittests",
1346 ":delay_test",
1347 ":g711_test",
1348 ":g722_test",
1349 ":ilbc_test",
kjellander6ceab082016-10-28 05:44:03 -07001350 ":isac_api_test",
1351 ":isac_fix_test",
1352 ":isac_switch_samprate_test",
1353 ":isac_test",
1354 ":neteq_ilbc_quality_test",
1355 ":neteq_isac_quality_test",
1356 ":neteq_opus_quality_test",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001357 ":neteq_pcm16b_quality_test",
kjellander6ceab082016-10-28 05:44:03 -07001358 ":neteq_pcmu_quality_test",
1359 ":neteq_speed_test",
1360 ":rtp_analyze",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001361 ":rtp_encode",
Henrik Lundin81af4142017-11-24 13:39:39 +01001362 ":rtp_jitter",
kjellander6ceab082016-10-28 05:44:03 -07001363 ":rtpcat",
1364 ":webrtc_opus_fec_test",
1365 ]
1366 if (rtc_enable_protobuf) {
1367 public_deps += [ ":neteq_rtpplay" ]
1368 }
1369 }
1370
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001371 rtc_source_set("audio_coding_modules_tests") {
1372 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001373 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001374
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001375 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001376 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001377 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001378 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001379 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001380 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001381 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001382 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001383 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001384 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001385 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001386 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001387 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001388 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001389 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001390 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001391 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001392 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001393 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001394 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001395 "test/Tester.cc",
1396 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001397 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001398 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001399 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001400 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001401 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001402 "test/target_delay_unittest.cc",
1403 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001404 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001405 ]
1406 deps = [
1407 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001408 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001409 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001410 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001411 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001412 "../..:typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001413 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001414 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001415 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001416 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001417 "../../rtc_base:rtc_base_approved",
Karl Wiberg2b857922018-03-23 14:53:54 +01001418 "../../rtc_base/synchronization:rw_lock_wrapper",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001419 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001420 "../../test:fileutils",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001421 "../../test:test_support",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001422 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001423 ]
1424 defines = audio_coding_defines
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001425 if (!build_with_chromium && is_clang) {
1426 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1427 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1428 }
1429 }
1430
ehmaldonado021eef32017-01-05 07:09:50 -08001431 rtc_source_set("audio_coding_perf_tests") {
1432 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001433 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001434
ehmaldonado021eef32017-01-05 07:09:50 -08001435 sources = [
1436 "codecs/opus/opus_complexity_unittest.cc",
1437 "neteq/test/neteq_performance_unittest.cc",
1438 ]
1439 deps = [
1440 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001441 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001442 "../..:typedefs",
ehmaldonado021eef32017-01-05 07:09:50 -08001443 "../..:webrtc_common",
Karl Wiberg7275e182017-10-25 09:57:40 +02001444 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001445 "../../rtc_base:protobuf_utils",
1446 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001447 "../../system_wrappers",
1448 "../../system_wrappers:field_trial_api",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001449 "../../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +01001450 "../../test:perf_test",
ehmaldonado021eef32017-01-05 07:09:50 -08001451 "../../test:test_support",
1452 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001453
ehmaldonado021eef32017-01-05 07:09:50 -08001454 if (!build_with_chromium && is_clang) {
1455 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1456 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1457 }
1458 }
1459
ehmaldonado38a21322016-09-02 04:10:34 -07001460 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001461 testonly = true
1462 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001463 "acm2/acm_receive_test.cc",
1464 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001465 ]
1466
kjellanderfb114242016-06-13 00:19:48 -07001467 defines = audio_coding_defines
1468
1469 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001470 "..:module_api",
kjellanderfb114242016-06-13 00:19:48 -07001471 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001472 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001473 "../../api/audio_codecs:audio_codecs_api",
1474 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001475 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001476 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001477 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001478 "//testing/gtest",
1479 ]
1480 }
1481
ehmaldonado38a21322016-09-02 04:10:34 -07001482 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001483 testonly = true
1484 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001485 "acm2/acm_send_test.cc",
1486 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001487 ]
1488
kjellanderfb114242016-06-13 00:19:48 -07001489 defines = audio_coding_defines
1490
1491 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001492 "../../api/audio:audio_frame_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001493 "../../rtc_base:checks",
kjellanderfb114242016-06-13 00:19:48 -07001494 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001495 ":neteq_tools",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001496 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07001497 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001498 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001499 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001500 "//testing/gtest",
1501 ]
1502 }
1503
ehmaldonado38a21322016-09-02 04:10:34 -07001504 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001505 testonly = true
1506 sources = [
1507 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001508 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001509 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001510 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001511 "test/delay_test.cc",
1512 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001513 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001514 ]
1515
aleloi333f2062016-07-28 01:21:29 -07001516 deps = [
1517 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001518 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001519 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001520 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001521 "../..:typedefs",
aleloi333f2062016-07-28 01:21:29 -07001522 "../../:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001523 "../../api/audio:audio_frame_api",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001524 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001525 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001526 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001527 "../../system_wrappers",
1528 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001529 "../../test:fileutils",
aleloi333f2062016-07-28 01:21:29 -07001530 "../../test:test_support",
1531 "../rtp_rtcp",
1532 "//testing/gtest",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001533 "//third_party/abseil-cpp/absl/types:optional",
aleloi333f2062016-07-28 01:21:29 -07001534 ]
1535 } # delay_test
1536
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001537 audio_decoder_unittests_resources =
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001538 [ "../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001539
1540 if (is_ios) {
1541 bundle_data("audio_decoder_unittests_bundle_data") {
1542 testonly = true
1543 sources = audio_decoder_unittests_resources
1544 outputs = [
1545 "{{bundle_resources_dir}}/{{source_file_part}}",
1546 ]
1547 }
1548 }
1549
ehmaldonado38a21322016-09-02 04:10:34 -07001550 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001551 testonly = true
1552 sources = [
1553 "neteq/audio_decoder_unittest.cc",
1554 ]
1555
kjellandere40a7ee2016-10-16 23:56:12 -07001556 if (!build_with_chromium && is_clang) {
1557 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001558 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001559 }
1560
Patrik Höglund7696bef2018-03-15 15:05:39 +01001561 deps = [
1562 "../../test:fileutils",
1563 ]
charujainddf3e4a2016-08-01 07:49:42 -07001564
1565 defines = neteq_defines
1566
1567 deps += audio_coding_deps
1568 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001569 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001570 ":isac",
1571 ":isac_fix",
1572 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001573 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001574 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001575 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001576 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001577 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001578 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001579 "//testing/gtest",
1580 ]
1581
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001582 data = audio_decoder_unittests_resources
1583
charujainddf3e4a2016-08-01 07:49:42 -07001584 if (is_android) {
1585 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001586 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001587 }
kjellander32c4a202016-08-30 02:53:49 -07001588 if (is_ios) {
1589 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001590 }
1591 } # audio_decoder_unittests
1592
kjellanderfb114242016-06-13 00:19:48 -07001593 if (rtc_enable_protobuf) {
1594 proto_library("neteq_unittest_proto") {
1595 sources = [
1596 "neteq/neteq_unittest.proto",
1597 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001598 proto_out_dir = "modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001599 }
henrik.lundin03153f12016-06-21 05:38:42 -07001600
ehmaldonado38a21322016-09-02 04:10:34 -07001601 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001602 testonly = true
1603 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001604 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001605 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001606 "../../rtc_base:checks",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001607 "../../test:fileutils",
mbonadei1140f972017-04-26 03:38:35 -07001608 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001609 sources = [
1610 "neteq/tools/neteq_rtpplay.cc",
1611 ]
1612
kjellandere40a7ee2016-10-16 23:56:12 -07001613 if (!build_with_chromium && is_clang) {
1614 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001615 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001616 }
1617
henrik.lundin03153f12016-06-21 05:38:42 -07001618 deps += [
1619 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001620 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001621 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001622 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001623 "../../system_wrappers:system_wrappers_default",
1624 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001625 ]
1626 }
kjellanderfb114242016-06-13 00:19:48 -07001627 }
1628
minyue81f1da32017-07-27 05:49:57 -07001629 audio_codec_speed_tests_resources = [
1630 "//resources/audio_coding/music_stereo_48kHz.pcm",
1631 "//resources/audio_coding/speech_mono_16kHz.pcm",
1632 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1633 ]
1634
1635 if (is_ios) {
1636 bundle_data("audio_codec_speed_tests_data") {
1637 testonly = true
1638 sources = audio_codec_speed_tests_resources
1639 outputs = [
1640 "{{bundle_resources_dir}}/{{source_file_part}}",
1641 ]
1642 }
1643 }
1644
ehmaldonado38a21322016-09-02 04:10:34 -07001645 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001646 testonly = true
1647 defines = []
Patrik Höglund3e113432017-12-15 14:40:10 +01001648 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001649 "../..:typedefs",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001650 "../../test:fileutils",
Patrik Höglund3e113432017-12-15 14:40:10 +01001651 ]
aleloie6b60a42016-07-28 02:34:30 -07001652 sources = [
1653 "codecs/isac/fix/test/isac_speed_test.cc",
1654 "codecs/opus/opus_speed_test.cc",
1655 "codecs/tools/audio_codec_speed_test.cc",
1656 "codecs/tools/audio_codec_speed_test.h",
1657 ]
1658
kjellandere40a7ee2016-10-16 23:56:12 -07001659 if (!build_with_chromium && is_clang) {
1660 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001661 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001662 }
1663
minyue81f1da32017-07-27 05:49:57 -07001664 data = audio_codec_speed_tests_resources
1665
aleloie6b60a42016-07-28 02:34:30 -07001666 if (is_android) {
1667 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001668 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001669 }
1670
minyue81f1da32017-07-27 05:49:57 -07001671 if (is_ios) {
1672 deps += [ ":audio_codec_speed_tests_data" ]
1673 }
1674
aleloie6b60a42016-07-28 02:34:30 -07001675 deps += [
1676 ":isac_fix",
1677 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001678 "../..:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001679 "../../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001680 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001681 "../../system_wrappers:metrics_default",
aleloie6b60a42016-07-28 02:34:30 -07001682 "../../system_wrappers:system_wrappers_default",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001683 "../../test:field_trial",
ehmaldonado26bddb92016-11-30 06:12:01 -08001684 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001685 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001686 "//testing/gtest",
1687 ]
1688 }
1689
ehmaldonado38a21322016-09-02 04:10:34 -07001690 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001691 testonly = true
1692 sources = [
1693 "neteq/tools/neteq_external_decoder_test.cc",
1694 "neteq/tools/neteq_external_decoder_test.h",
1695 "neteq/tools/neteq_performance_test.cc",
1696 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001697 ]
1698
kjellandere40a7ee2016-10-16 23:56:12 -07001699 if (!build_with_chromium && is_clang) {
1700 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001701 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001702 }
1703
1704 deps = [
1705 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001706 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001707 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001708 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001709 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001710 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001711 "../../api/audio_codecs:audio_codecs_api",
1712 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001713 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001714 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001715 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001716 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001717 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001718 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001719 ]
1720 }
1721
ehmaldonado38a21322016-09-02 04:10:34 -07001722 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001723 testonly = true
1724 sources = [
1725 "neteq/tools/neteq_quality_test.cc",
1726 "neteq/tools/neteq_quality_test.h",
1727 ]
1728
kjellandere40a7ee2016-10-16 23:56:12 -07001729 if (!build_with_chromium && is_clang) {
1730 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001731 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001732 }
1733
1734 deps = [
1735 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001736 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001737 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001738 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001739 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001740 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001741 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001742 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001743 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001744 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001745 ]
1746 }
1747
Henrik Lundin1391bd42017-11-24 09:28:57 +01001748 rtc_executable("rtp_encode") {
aleloi82667732016-08-02 01:45:50 -07001749 testonly = true
1750
Henrik Lundin1391bd42017-11-24 09:28:57 +01001751 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001752 "../..:typedefs",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001753 ":audio_coding",
1754 ":neteq_input_audio_tools",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001755 "../../api/audio:audio_frame_api",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001756 "../../api/audio_codecs/g711:audio_encoder_g711",
1757 "../../api/audio_codecs/L16:audio_encoder_L16",
1758 "../../api/audio_codecs/g722:audio_encoder_g722",
1759 "../../api/audio_codecs/ilbc:audio_encoder_ilbc",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001760 "../../system_wrappers:system_wrappers_default",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001761 "../../api/audio_codecs/isac:audio_encoder_isac",
1762 "../../api/audio_codecs/opus:audio_encoder_opus",
1763 "../../rtc_base:rtc_base_approved",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001764 ]
aleloi82667732016-08-02 01:45:50 -07001765
1766 sources = [
Henrik Lundin1391bd42017-11-24 09:28:57 +01001767 "neteq/tools/rtp_encode.cc",
aleloi82667732016-08-02 01:45:50 -07001768 ]
1769
Henrik Lundin1391bd42017-11-24 09:28:57 +01001770 defines = audio_coding_defines
aleloi82667732016-08-02 01:45:50 -07001771 }
1772
Henrik Lundin81af4142017-11-24 13:39:39 +01001773 rtc_executable("rtp_jitter") {
aleloi76cbe192016-08-02 02:05:03 -07001774 testonly = true
1775
Henrik Lundin81af4142017-11-24 13:39:39 +01001776 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001777 "../..:typedefs",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001778 "../../system_wrappers:system_wrappers_default",
Henrik Lundin81af4142017-11-24 13:39:39 +01001779 "../rtp_rtcp:rtp_rtcp_format",
1780 "../../api:array_view",
1781 "../../rtc_base:rtc_base_approved",
Henrik Lundin81af4142017-11-24 13:39:39 +01001782 ]
1783
aleloi76cbe192016-08-02 02:05:03 -07001784 sources = [
Henrik Lundin81af4142017-11-24 13:39:39 +01001785 "neteq/tools/rtp_jitter.cc",
aleloi76cbe192016-08-02 02:05:03 -07001786 ]
1787
Henrik Lundin81af4142017-11-24 13:39:39 +01001788 defines = audio_coding_defines
aleloi76cbe192016-08-02 02:05:03 -07001789 }
1790
ehmaldonado38a21322016-09-02 04:10:34 -07001791 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001792 testonly = true
1793
1794 sources = [
1795 "neteq/tools/rtpcat.cc",
1796 ]
1797
1798 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001799 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001800 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001801 "../../system_wrappers:system_wrappers_default",
1802 "../../test:rtp_test_utils",
1803 "//testing/gtest",
1804 ]
1805 }
1806
ehmaldonado38a21322016-09-02 04:10:34 -07001807 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001808 testonly = true
1809
1810 sources = [
1811 "neteq/tools/rtp_analyze.cc",
1812 ]
1813
1814 deps = [
1815 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001816 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001817 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001818 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001819 "../../system_wrappers:system_wrappers_default",
1820 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001821 ]
1822
kjellandere40a7ee2016-10-16 23:56:12 -07001823 if (!build_with_chromium && is_clang) {
1824 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001825 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001826 }
1827 }
aleloi630c6d52016-08-10 02:11:30 -07001828
ehmaldonado38a21322016-09-02 04:10:34 -07001829 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001830 testonly = true
1831
1832 sources = [
1833 "neteq/test/neteq_opus_quality_test.cc",
1834 ]
1835
1836 deps = [
1837 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001838 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001839 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001840 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001841 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001842 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001843 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001844 ]
aleloi630c6d52016-08-10 02:11:30 -07001845 }
aleloi116fd612016-08-10 04:16:36 -07001846
ehmaldonado38a21322016-09-02 04:10:34 -07001847 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001848 testonly = true
1849
1850 sources = [
1851 "neteq/test/neteq_speed_test.cc",
1852 ]
1853
1854 deps = [
1855 ":neteq",
1856 ":neteq_test_support",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001857 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001858 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001859 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001860 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001861 "../../test:fileutils",
aleloi116fd612016-08-10 04:16:36 -07001862 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001863 ]
1864 }
aleloi63910122016-08-10 04:41:14 -07001865
ehmaldonado38a21322016-09-02 04:10:34 -07001866 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001867 testonly = true
1868
1869 sources = [
1870 "neteq/test/neteq_ilbc_quality_test.cc",
1871 ]
1872
1873 deps = [
1874 ":ilbc",
1875 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001876 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001877 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001878 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001879 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001880 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001881 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001882 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001883 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001884 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001885 ]
1886 }
aleloi6df36dc2016-08-10 05:04:47 -07001887
ehmaldonado38a21322016-09-02 04:10:34 -07001888 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001889 testonly = true
1890
1891 sources = [
1892 "neteq/test/neteq_isac_quality_test.cc",
1893 ]
1894
1895 deps = [
1896 ":isac_fix",
1897 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001898 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001899 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001900 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001901 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001902 ]
1903 }
aleloic4ac7002016-08-10 05:06:27 -07001904
ehmaldonado38a21322016-09-02 04:10:34 -07001905 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001906 testonly = true
1907
1908 sources = [
1909 "neteq/test/neteq_pcmu_quality_test.cc",
1910 ]
1911
1912 deps = [
1913 ":g711",
1914 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001915 ":neteq_quality_test_support",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001916 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001917 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001918 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001919 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001920 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001921 ]
1922 }
aleloib7186d02016-08-16 01:47:16 -07001923
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001924 rtc_executable("neteq_pcm16b_quality_test") {
1925 testonly = true
1926
1927 sources = [
1928 "neteq/test/neteq_pcm16b_quality_test.cc",
1929 ]
1930
1931 deps = [
1932 ":neteq",
1933 ":neteq_quality_test_support",
1934 ":pcm16b",
1935 "../../rtc_base:checks",
1936 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001937 "../../test:fileutils",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001938 "../../test:test_main",
1939 "//testing/gtest",
1940 ]
1941 }
1942
ehmaldonado38a21322016-09-02 04:10:34 -07001943 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001944 testonly = true
1945
1946 sources = [
1947 "codecs/isac/fix/test/kenny.cc",
1948 ]
1949
1950 deps = [
1951 ":isac_fix",
Edward Lemure66572b2018-01-05 15:34:09 +01001952 "../../test:perf_test",
aleloib7186d02016-08-16 01:47:16 -07001953 "../../test:test_support",
1954 ]
1955
ehmaldonado25586ce2017-09-07 23:18:35 -07001956 data = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001957 "../../resources/speech_and_misc_wb.pcm",
ehmaldonado25586ce2017-09-07 23:18:35 -07001958 ]
aleloib7186d02016-08-16 01:47:16 -07001959 }
aleloi16f55a12016-08-23 08:08:23 -07001960
kjellander7439f972016-12-05 22:47:46 -08001961 rtc_source_set("isac_test_util") {
1962 testonly = true
1963 sources = [
1964 "codecs/isac/main/util/utility.c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001965 "codecs/isac/main/util/utility.h",
kjellander7439f972016-12-05 22:47:46 -08001966 ]
1967 }
1968
ehmaldonado38a21322016-09-02 04:10:34 -07001969 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001970 testonly = true
1971
1972 sources = [
1973 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001974 ]
1975
1976 include_dirs = [
1977 "codecs/isac/main/include",
1978 "codecs/isac/main/test",
1979 "codecs/isac/main/util",
1980 ]
1981
1982 deps = [
1983 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001984 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001985 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001986 ]
ivoce51b41a2016-08-24 02:25:57 -07001987 }
1988
ehmaldonado38a21322016-09-02 04:10:34 -07001989 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001990 testonly = true
1991
1992 sources = [
1993 "codecs/g711/test/testG711.cc",
1994 ]
1995
aleloi16f55a12016-08-23 08:08:23 -07001996 deps = [
1997 ":g711",
1998 ]
1999 }
aleloi9a117842016-08-23 08:36:10 -07002000
ehmaldonado38a21322016-09-02 04:10:34 -07002001 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07002002 testonly = true
2003
2004 sources = [
2005 "codecs/g722/test/testG722.cc",
2006 ]
2007
aleloi9a117842016-08-23 08:36:10 -07002008 deps = [
2009 ":g722",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002010 "../..:typedefs",
aleloi9a117842016-08-23 08:36:10 -07002011 "../..:webrtc_common",
2012 ]
2013 }
ivoc2c670db2016-08-24 06:11:18 -07002014
ehmaldonado38a21322016-09-02 04:10:34 -07002015 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07002016 testonly = true
2017
2018 sources = [
2019 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07002020 ]
2021
aleloicfee2152016-08-29 04:09:19 -07002022 deps = [
2023 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002024 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002025 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07002026 ]
2027
2028 include_dirs = [
2029 "codecs/isac/main/include",
2030 "codecs/isac/main/test",
2031 "codecs/isac/main/util",
2032 ]
2033 }
2034
ehmaldonado38a21322016-09-02 04:10:34 -07002035 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002036 testonly = true
2037
2038 sources = [
2039 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002040 ]
2041
aleloicfee2152016-08-29 04:09:19 -07002042 deps = [
2043 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002044 ":isac_test_util",
Mirko Bonadei08973ee2018-02-01 14:12:55 +01002045 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002046 "../../common_audio:common_audio_c",
aleloicfee2152016-08-29 04:09:19 -07002047 ]
2048
2049 include_dirs = [
2050 "codecs/isac/main/include",
2051 "codecs/isac/main/test",
2052 "codecs/isac/main/util",
2053 "../../common_audio/signal_processing/include",
2054 ]
2055 }
2056
ehmaldonado38a21322016-09-02 04:10:34 -07002057 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002058 testonly = true
2059
2060 sources = [
2061 "codecs/ilbc/test/iLBC_test.c",
2062 ]
2063
aleloicfee2152016-08-29 04:09:19 -07002064 deps = [
2065 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002066 ]
2067 }
2068
ehmaldonado38a21322016-09-02 04:10:34 -07002069 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002070 testonly = true
2071
2072 sources = [
2073 "codecs/opus/opus_fec_test.cc",
2074 ]
2075
2076 deps = [
2077 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002078 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002079 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002080 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08002081 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002082 "//testing/gtest",
2083 ]
2084
kjellandere40a7ee2016-10-16 23:56:12 -07002085 if (!build_with_chromium && is_clang) {
2086 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002087 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002088 }
2089 }
ehmaldonado36268652017-01-19 08:27:11 -08002090
2091 rtc_source_set("audio_coding_unittests") {
2092 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00002093 visibility += webrtc_default_visibility
ehmaldonado36268652017-01-19 08:27:11 -08002094
2095 sources = [
2096 "acm2/acm_receiver_unittest.cc",
2097 "acm2/audio_coding_module_unittest.cc",
2098 "acm2/call_statistics_unittest.cc",
2099 "acm2/codec_manager_unittest.cc",
2100 "acm2/rent_a_codec_unittest.cc",
2101 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2102 "audio_network_adaptor/bitrate_controller_unittest.cc",
2103 "audio_network_adaptor/channel_controller_unittest.cc",
2104 "audio_network_adaptor/controller_manager_unittest.cc",
2105 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002106 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002107 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2108 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002109 "audio_network_adaptor/frame_length_controller_unittest.cc",
elad.alon326263a2017-03-29 03:16:58 -07002110 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002111 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002112 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002113 "codecs/cng/audio_encoder_cng_unittest.cc",
2114 "codecs/cng/cng_unittest.cc",
2115 "codecs/ilbc/ilbc_unittest.cc",
2116 "codecs/isac/fix/source/filterbanks_unittest.cc",
2117 "codecs/isac/fix/source/filters_unittest.cc",
2118 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2119 "codecs/isac/fix/source/transform_unittest.cc",
2120 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2121 "codecs/isac/main/source/isac_unittest.cc",
2122 "codecs/isac/unittest.cc",
2123 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002124 "codecs/opus/audio_encoder_opus_unittest.cc",
Alex Luebseeb27652017-11-20 11:13:56 -08002125 "codecs/opus/opus_bandwidth_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002126 "codecs/opus/opus_unittest.cc",
2127 "codecs/red/audio_encoder_copy_red_unittest.cc",
2128 "neteq/audio_multi_vector_unittest.cc",
2129 "neteq/audio_vector_unittest.cc",
2130 "neteq/background_noise_unittest.cc",
2131 "neteq/buffer_level_filter_unittest.cc",
2132 "neteq/comfort_noise_unittest.cc",
2133 "neteq/decision_logic_unittest.cc",
2134 "neteq/decoder_database_unittest.cc",
2135 "neteq/delay_manager_unittest.cc",
2136 "neteq/delay_peak_detector_unittest.cc",
2137 "neteq/dsp_helper_unittest.cc",
2138 "neteq/dtmf_buffer_unittest.cc",
2139 "neteq/dtmf_tone_generator_unittest.cc",
2140 "neteq/expand_unittest.cc",
2141 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002142 "neteq/mock/mock_buffer_level_filter.h",
2143 "neteq/mock/mock_decoder_database.h",
2144 "neteq/mock/mock_delay_manager.h",
2145 "neteq/mock/mock_delay_peak_detector.h",
2146 "neteq/mock/mock_dtmf_buffer.h",
2147 "neteq/mock/mock_dtmf_tone_generator.h",
2148 "neteq/mock/mock_expand.h",
2149 "neteq/mock/mock_external_decoder_pcm16b.h",
2150 "neteq/mock/mock_packet_buffer.h",
2151 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002152 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002153 "neteq/nack_tracker_unittest.cc",
2154 "neteq/neteq_external_decoder_unittest.cc",
2155 "neteq/neteq_impl_unittest.cc",
2156 "neteq/neteq_network_stats_unittest.cc",
2157 "neteq/neteq_stereo_unittest.cc",
2158 "neteq/neteq_unittest.cc",
2159 "neteq/normal_unittest.cc",
2160 "neteq/packet_buffer_unittest.cc",
2161 "neteq/post_decode_vad_unittest.cc",
2162 "neteq/random_vector_unittest.cc",
2163 "neteq/red_payload_splitter_unittest.cc",
Henrik Lundinac0a5032017-09-25 12:22:46 +02002164 "neteq/statistics_calculator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002165 "neteq/sync_buffer_unittest.cc",
2166 "neteq/tick_timer_unittest.cc",
2167 "neteq/time_stretch_unittest.cc",
2168 "neteq/timestamp_scaler_unittest.cc",
2169 "neteq/tools/input_audio_file_unittest.cc",
2170 "neteq/tools/packet_unittest.cc",
2171 ]
2172
2173 deps = [
2174 ":acm_receive_test",
2175 ":acm_send_test",
2176 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002177 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002178 ":audio_format_conversion",
2179 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002180 ":cng",
2181 ":g711",
2182 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002183 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002184 ":isac_c",
2185 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002186 ":legacy_encoded_audio_frame",
Patrik Höglundb960e412018-01-05 11:46:26 +01002187 ":mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002188 ":neteq",
2189 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002190 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002191 ":pcm16b",
2192 ":red",
2193 ":rent_a_codec",
2194 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002195 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002196 "../..:typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002197 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02002198 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08002199 "../../api/audio_codecs:audio_codecs_api",
2200 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002201 "../../api/audio_codecs:builtin_audio_encoder_factory",
Alex Luebseeb27652017-11-20 11:13:56 -08002202 "../../api/audio_codecs/opus:audio_decoder_opus",
Karl Wiberg7275e182017-10-25 09:57:40 +02002203 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonado36268652017-01-19 08:27:11 -08002204 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002205 "../../common_audio:common_audio_c",
charujain9a451162017-09-15 03:51:34 -07002206 "../../common_audio:mock_common_audio",
Patrik Höglund731082c2018-01-03 09:08:20 +01002207 "../../logging:mocks",
Qingsi Wang970b0882018-02-01 11:04:46 -08002208 "../../logging:rtc_event_audio",
Elad Alon4a87e1c2017-10-03 16:11:34 +02002209 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002210 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002211 "../../rtc_base:protobuf_utils",
2212 "../../rtc_base:rtc_base",
2213 "../../rtc_base:rtc_base_approved",
2214 "../../rtc_base:rtc_base_tests_utils",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002215 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01002216 "../../system_wrappers",
2217 "../../system_wrappers:cpu_features_api",
kwiberg37e99fd2017-04-10 05:15:48 -07002218 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002219 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002220 "../../test:fileutils",
ehmaldonado36268652017-01-19 08:27:11 -08002221 "../../test:rtp_test_utils",
2222 "../../test:test_common",
2223 "../../test:test_support",
ehmaldonado36268652017-01-19 08:27:11 -08002224 "//testing/gtest",
ehmaldonado36268652017-01-19 08:27:11 -08002225 ]
2226
2227 defines = audio_coding_defines
2228
2229 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002230 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002231 deps += [
2232 ":ana_config_proto",
2233 ":neteq_unittest_proto",
2234 ]
2235 }
2236
2237 if (!build_with_chromium && is_clang) {
2238 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2239 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2240 }
2241 }
kjellanderfb114242016-06-13 00:19:48 -07002242}
kwiberg087bd342017-02-10 08:15:44 -08002243
2244# For backwards compatibility only! Use
2245# webrtc/api/audio_codecs:audio_codecs_api instead.
2246# TODO(kwiberg): Remove this.
2247rtc_source_set("audio_decoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002248 visibility += [ "*" ]
kwiberg087bd342017-02-10 08:15:44 -08002249 sources = [
2250 "codecs/audio_decoder.h",
2251 ]
2252 deps = [
2253 "../../api/audio_codecs:audio_codecs_api",
2254 ]
2255}
2256
2257# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002258# webrtc/api/audio_codecs:audio_codecs_api instead.
2259# TODO(ossu): Remove this.
2260rtc_source_set("audio_encoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002261 visibility += [ "*" ]
ossueb1fde42017-05-02 06:46:30 -07002262 sources = [
2263 "codecs/audio_encoder.h",
2264 ]
2265 deps = [
2266 "../../api/audio_codecs:audio_codecs_api",
2267 ]
2268}