blob: 1dd3939d20359ce04a6fb9f6a4c6e4c937c059df [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
kjellander@webrtc.org8649fed2015-01-08 21:22:01 +0000131 if (is_win) {
132 cflags = [
133 # TODO(kjellander): Bug 261: fix this warning.
134 "/wd4373", # virtual function override.
135 ]
136 }
137
kjellanderfb114242016-06-13 00:19:48 -0700138 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +0200139 "../../api/audio:audio_frame_api",
140 "..:module_api",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100141 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100142 "../..:typedefs",
Patrik Höglund3e113432017-12-15 14:40:10 +0100143 "../../rtc_base:deprecation",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100144 "../../rtc_base:checks",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100145 "../../system_wrappers:metrics_api",
kwiberg529662a2017-09-04 05:43:17 -0700146 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800147 "../../api/audio_codecs:audio_codecs_api",
kwiberg65cb70d2017-03-03 06:16:28 -0800148 ":audio_coding_module_typedefs",
kwiberg0edb05b2016-01-19 05:54:28 -0800149 ":neteq",
150 ":rent_a_codec",
Jonas Olssonabbe8412018-04-03 13:40:05 +0200151 "../../rtc_base:audio_format_to_string",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700152 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200153 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700154 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800155 ]
kjellanderfb114242016-06-13 00:19:48 -0700156 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000157}
158
kwiberg087bd342017-02-10 08:15:44 -0800159rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000160 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700161 "codecs/legacy_encoded_audio_frame.cc",
162 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000163 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200164 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700165 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800166 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700167 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200168 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000169}
170
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000171config("cng_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200172 include_dirs = [ "codecs/cng/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000173}
174
kjellanderb62dbbe2016-09-23 00:38:52 -0700175rtc_static_library("cng") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100176 visibility += [ "*" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000177 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000178 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100179 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700180 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100181 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000182 ]
183
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700184 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000185
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000186 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100187 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800188 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700189 "../../api:array_view",
ossueb1fde42017-05-02 06:46:30 -0700190 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100191 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100192 "../../common_audio:common_audio_c",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700193 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000194 ]
195}
196
197config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200198 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000199}
200
kjellanderb62dbbe2016-09-23 00:38:52 -0700201rtc_static_library("red") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100202 visibility += [ "*" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000203 sources = [
204 "codecs/red/audio_encoder_copy_red.cc",
205 "codecs/red/audio_encoder_copy_red.h",
206 ]
207
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700208 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000209
210 deps = [
ossueb1fde42017-05-02 06:46:30 -0700211 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100212 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100213 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700214 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000215 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000216}
217
218config("g711_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200219 include_dirs = [ "codecs/g711/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000220}
221
kjellanderb62dbbe2016-09-23 00:38:52 -0700222rtc_static_library("g711") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100223 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200224 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000225 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700226 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100227 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000228 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100229 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000230 ]
231
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700232 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000233
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200234 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800235 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800236 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800237 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100238 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700239 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200240 ]
kjellander7439f972016-12-05 22:47:46 -0800241 public_deps = [
242 ":g711_c",
243 ]
244}
245
246rtc_source_set("g711_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200247 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800248 sources = [
249 "codecs/g711/g711.c",
250 "codecs/g711/g711.h",
251 "codecs/g711/g711_interface.c",
252 "codecs/g711/g711_interface.h",
253 ]
kjellander676e08f2016-12-07 08:23:27 -0800254 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100255 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800256 "../..:webrtc_common",
257 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000258}
259
260config("g722_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200261 include_dirs = [ "codecs/g722/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000262}
263
kjellanderb62dbbe2016-09-23 00:38:52 -0700264rtc_static_library("g722") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100265 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200266 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000267 sources = [
kwibergada4c132015-09-17 03:12:35 -0700268 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100269 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000270 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100271 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000272 ]
273
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700274 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000275
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200276 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800277 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800278 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800279 "../../api/audio_codecs:audio_codecs_api",
kwibergb8727ae2017-06-17 17:41:59 -0700280 "../../api/audio_codecs/g722:audio_encoder_g722_config",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100281 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700282 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200283 ]
kjellander7439f972016-12-05 22:47:46 -0800284 public_deps = [
285 ":g722_c",
286 ]
287}
288
289rtc_source_set("g722_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200290 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800291 sources = [
292 "codecs/g722/g722_decode.c",
293 "codecs/g722/g722_enc_dec.h",
294 "codecs/g722/g722_encode.c",
295 "codecs/g722/g722_interface.c",
296 "codecs/g722/g722_interface.h",
297 ]
kjellander676e08f2016-12-07 08:23:27 -0800298 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100299 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800300 "../..:webrtc_common",
301 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000302}
303
304config("ilbc_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200305 include_dirs = [ "codecs/ilbc/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000306}
307
kjellanderb62dbbe2016-09-23 00:38:52 -0700308rtc_static_library("ilbc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000309 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200310 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000311 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700312 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100313 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200314 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100315 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800316 ]
317
318 public_configs = [ ":ilbc_config" ]
319
320 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800321 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800322 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800323 "../../api/audio_codecs:audio_codecs_api",
solenbergdb3c9b02017-06-28 02:05:04 -0700324 "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
kjellander7439f972016-12-05 22:47:46 -0800325 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100326 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700327 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800328 ]
329 public_deps = [
330 ":ilbc_c",
331 ]
332}
333
334rtc_source_set("ilbc_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200335 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800336 sources = [
337 "codecs/ilbc/abs_quant.c",
338 "codecs/ilbc/abs_quant.h",
339 "codecs/ilbc/abs_quant_loop.c",
340 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000341 "codecs/ilbc/augmented_cb_corr.c",
342 "codecs/ilbc/augmented_cb_corr.h",
343 "codecs/ilbc/bw_expand.c",
344 "codecs/ilbc/bw_expand.h",
345 "codecs/ilbc/cb_construct.c",
346 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200347 "codecs/ilbc/cb_mem_energy.c",
348 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000349 "codecs/ilbc/cb_mem_energy_augmentation.c",
350 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000351 "codecs/ilbc/cb_mem_energy_calc.c",
352 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000353 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200354 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000355 "codecs/ilbc/cb_search_core.c",
356 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000357 "codecs/ilbc/cb_update_best_index.c",
358 "codecs/ilbc/cb_update_best_index.h",
359 "codecs/ilbc/chebyshev.c",
360 "codecs/ilbc/chebyshev.h",
361 "codecs/ilbc/comp_corr.c",
362 "codecs/ilbc/comp_corr.h",
363 "codecs/ilbc/constants.c",
364 "codecs/ilbc/constants.h",
365 "codecs/ilbc/create_augmented_vec.c",
366 "codecs/ilbc/create_augmented_vec.h",
367 "codecs/ilbc/decode.c",
368 "codecs/ilbc/decode.h",
369 "codecs/ilbc/decode_residual.c",
370 "codecs/ilbc/decode_residual.h",
371 "codecs/ilbc/decoder_interpolate_lsf.c",
372 "codecs/ilbc/decoder_interpolate_lsf.h",
373 "codecs/ilbc/defines.h",
374 "codecs/ilbc/do_plc.c",
375 "codecs/ilbc/do_plc.h",
376 "codecs/ilbc/encode.c",
377 "codecs/ilbc/encode.h",
378 "codecs/ilbc/energy_inverse.c",
379 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200380 "codecs/ilbc/enh_upsample.c",
381 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000382 "codecs/ilbc/enhancer.c",
383 "codecs/ilbc/enhancer.h",
384 "codecs/ilbc/enhancer_interface.c",
385 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000386 "codecs/ilbc/filtered_cb_vecs.c",
387 "codecs/ilbc/filtered_cb_vecs.h",
388 "codecs/ilbc/frame_classify.c",
389 "codecs/ilbc/frame_classify.h",
390 "codecs/ilbc/gain_dequant.c",
391 "codecs/ilbc/gain_dequant.h",
392 "codecs/ilbc/gain_quant.c",
393 "codecs/ilbc/gain_quant.h",
394 "codecs/ilbc/get_cd_vec.c",
395 "codecs/ilbc/get_cd_vec.h",
396 "codecs/ilbc/get_lsp_poly.c",
397 "codecs/ilbc/get_lsp_poly.h",
398 "codecs/ilbc/get_sync_seq.c",
399 "codecs/ilbc/get_sync_seq.h",
400 "codecs/ilbc/hp_input.c",
401 "codecs/ilbc/hp_input.h",
402 "codecs/ilbc/hp_output.c",
403 "codecs/ilbc/hp_output.h",
404 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100405 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000406 "codecs/ilbc/index_conv_dec.c",
407 "codecs/ilbc/index_conv_dec.h",
408 "codecs/ilbc/index_conv_enc.c",
409 "codecs/ilbc/index_conv_enc.h",
410 "codecs/ilbc/init_decode.c",
411 "codecs/ilbc/init_decode.h",
412 "codecs/ilbc/init_encode.c",
413 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000414 "codecs/ilbc/interpolate.c",
415 "codecs/ilbc/interpolate.h",
416 "codecs/ilbc/interpolate_samples.c",
417 "codecs/ilbc/interpolate_samples.h",
418 "codecs/ilbc/lpc_encode.c",
419 "codecs/ilbc/lpc_encode.h",
420 "codecs/ilbc/lsf_check.c",
421 "codecs/ilbc/lsf_check.h",
422 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
423 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
424 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
425 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
426 "codecs/ilbc/lsf_to_lsp.c",
427 "codecs/ilbc/lsf_to_lsp.h",
428 "codecs/ilbc/lsf_to_poly.c",
429 "codecs/ilbc/lsf_to_poly.h",
430 "codecs/ilbc/lsp_to_lsf.c",
431 "codecs/ilbc/lsp_to_lsf.h",
432 "codecs/ilbc/my_corr.c",
433 "codecs/ilbc/my_corr.h",
434 "codecs/ilbc/nearest_neighbor.c",
435 "codecs/ilbc/nearest_neighbor.h",
436 "codecs/ilbc/pack_bits.c",
437 "codecs/ilbc/pack_bits.h",
438 "codecs/ilbc/poly_to_lsf.c",
439 "codecs/ilbc/poly_to_lsf.h",
440 "codecs/ilbc/poly_to_lsp.c",
441 "codecs/ilbc/poly_to_lsp.h",
442 "codecs/ilbc/refiner.c",
443 "codecs/ilbc/refiner.h",
444 "codecs/ilbc/simple_interpolate_lsf.c",
445 "codecs/ilbc/simple_interpolate_lsf.h",
446 "codecs/ilbc/simple_lpc_analysis.c",
447 "codecs/ilbc/simple_lpc_analysis.h",
448 "codecs/ilbc/simple_lsf_dequant.c",
449 "codecs/ilbc/simple_lsf_dequant.h",
450 "codecs/ilbc/simple_lsf_quant.c",
451 "codecs/ilbc/simple_lsf_quant.h",
452 "codecs/ilbc/smooth.c",
453 "codecs/ilbc/smooth.h",
454 "codecs/ilbc/smooth_out_data.c",
455 "codecs/ilbc/smooth_out_data.h",
456 "codecs/ilbc/sort_sq.c",
457 "codecs/ilbc/sort_sq.h",
458 "codecs/ilbc/split_vq.c",
459 "codecs/ilbc/split_vq.h",
460 "codecs/ilbc/state_construct.c",
461 "codecs/ilbc/state_construct.h",
462 "codecs/ilbc/state_search.c",
463 "codecs/ilbc/state_search.h",
464 "codecs/ilbc/swap_bytes.c",
465 "codecs/ilbc/swap_bytes.h",
466 "codecs/ilbc/unpack_bits.c",
467 "codecs/ilbc/unpack_bits.h",
468 "codecs/ilbc/vq3.c",
469 "codecs/ilbc/vq3.h",
470 "codecs/ilbc/vq4.c",
471 "codecs/ilbc/vq4.h",
472 "codecs/ilbc/window32_w32.c",
473 "codecs/ilbc/window32_w32.h",
474 "codecs/ilbc/xcorr_coef.c",
475 "codecs/ilbc/xcorr_coef.h",
476 ]
477
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700478 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000479
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000480 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100481 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800482 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800483 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100484 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100485 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100486 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700487 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100488 "../../rtc_base:sanitizer",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000489 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000490}
491
kjellanderb62dbbe2016-09-23 00:38:52 -0700492rtc_static_library("isac_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200493 poisonous = [ "audio_codecs" ]
kwiberg608c3cf2015-08-24 02:03:23 -0700494 sources = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100495 "codecs/isac/audio_decoder_isac_t.h",
496 "codecs/isac/audio_decoder_isac_t_impl.h",
kwiberg608c3cf2015-08-24 02:03:23 -0700497 "codecs/isac/audio_encoder_isac_t.h",
498 "codecs/isac/audio_encoder_isac_t_impl.h",
499 "codecs/isac/locked_bandwidth_info.cc",
500 "codecs/isac/locked_bandwidth_info.h",
501 ]
kjellander676e08f2016-12-07 08:23:27 -0800502 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200503 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100504 "../..:typedefs",
kwiberga6ca5182017-01-30 05:28:54 -0800505 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700506 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100507 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700508 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200509 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -0800510 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700511}
512
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000513config("isac_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200514 include_dirs = [ "codecs/isac/main/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000515}
516
kjellanderb62dbbe2016-09-23 00:38:52 -0700517rtc_static_library("isac") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100518 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200519 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000520 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800521 "codecs/isac/main/include/audio_decoder_isac.h",
522 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800523 "codecs/isac/main/source/audio_decoder_isac.cc",
524 "codecs/isac/main/source/audio_encoder_isac.cc",
525 ]
526
527 deps = [
kjellander7439f972016-12-05 22:47:46 -0800528 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800529 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800530 ]
531 public_deps = [
532 ":isac_c",
533 ]
534}
535
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200536rtc_source_set("isac_bwinfo") {
537 sources = [
538 "codecs/isac/bandwidth_info.h",
539 ]
540 deps = [
541 "../..:typedefs",
542 ]
543}
544
545rtc_source_set("isac_vad") {
546 visibility += webrtc_default_visibility
547 sources = [
548 "codecs/isac/main/source/filter_functions.c",
549 "codecs/isac/main/source/filter_functions.h",
550 "codecs/isac/main/source/isac_vad.c",
551 "codecs/isac/main/source/isac_vad.h",
552 "codecs/isac/main/source/os_specific_inline.h",
553 "codecs/isac/main/source/pitch_estimator.c",
554 "codecs/isac/main/source/pitch_estimator.h",
555 "codecs/isac/main/source/pitch_filter.c",
556 "codecs/isac/main/source/pitch_filter.h",
557 "codecs/isac/main/source/settings.h",
558 "codecs/isac/main/source/structs.h",
559 ]
560 deps = [
561 ":isac_bwinfo",
562 "../..:typedefs",
563 "../../rtc_base:compile_assert_c",
564 "../../rtc_base/system:ignore_warnings",
565 ]
566}
567
kjellander7439f972016-12-05 22:47:46 -0800568rtc_static_library("isac_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200569 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800570 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100571 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000572 "codecs/isac/main/source/arith_routines.c",
573 "codecs/isac/main/source/arith_routines.h",
574 "codecs/isac/main/source/arith_routines_hist.c",
575 "codecs/isac/main/source/arith_routines_logist.c",
576 "codecs/isac/main/source/bandwidth_estimator.c",
577 "codecs/isac/main/source/bandwidth_estimator.h",
578 "codecs/isac/main/source/codec.h",
579 "codecs/isac/main/source/crc.c",
580 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000581 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200582 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000583 "codecs/isac/main/source/encode.c",
584 "codecs/isac/main/source/encode_lpc_swb.c",
585 "codecs/isac/main/source/encode_lpc_swb.h",
586 "codecs/isac/main/source/entropy_coding.c",
587 "codecs/isac/main/source/entropy_coding.h",
588 "codecs/isac/main/source/fft.c",
589 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200590 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000591 "codecs/isac/main/source/intialize.c",
592 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200593 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000594 "codecs/isac/main/source/lattice.c",
595 "codecs/isac/main/source/lpc_analysis.c",
596 "codecs/isac/main/source/lpc_analysis.h",
597 "codecs/isac/main/source/lpc_gain_swb_tables.c",
598 "codecs/isac/main/source/lpc_gain_swb_tables.h",
599 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
600 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
601 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
602 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
603 "codecs/isac/main/source/lpc_tables.c",
604 "codecs/isac/main/source/lpc_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000605 "codecs/isac/main/source/pitch_gain_tables.c",
606 "codecs/isac/main/source/pitch_gain_tables.h",
607 "codecs/isac/main/source/pitch_lag_tables.c",
608 "codecs/isac/main/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000609 "codecs/isac/main/source/spectrum_ar_model_tables.c",
610 "codecs/isac/main/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000611 "codecs/isac/main/source/transform.c",
612 ]
613
614 if (is_linux) {
615 libs = [ "m" ]
616 }
617
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700618 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000619
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000620 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200621 ":isac_bwinfo",
622 ":isac_vad",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100623 "../..:typedefs",
aleloicfee2152016-08-29 04:09:19 -0700624 "../..:webrtc_common",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000625 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100626 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100627 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700628 "../../rtc_base:compile_assert_c",
629 "../../rtc_base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000630 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000631}
632
633config("isac_fix_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200634 include_dirs = [ "codecs/isac/fix/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000635}
636
kjellanderb62dbbe2016-09-23 00:38:52 -0700637rtc_static_library("isac_fix") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100638 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200639 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000640 sources = [
kjellander7439f972016-12-05 22:47:46 -0800641 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
642 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
643 ]
644
645 public_configs = [ ":isac_fix_config" ]
646
647 deps = [
kjellander7439f972016-12-05 22:47:46 -0800648 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800649 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800650 "../../common_audio",
651 "../../system_wrappers",
652 ]
653 public_deps = [
654 ":isac_fix_c",
655 ]
656
657 if (rtc_build_with_neon) {
658 deps += [ ":isac_neon" ]
659 }
660}
661
kwiberga6ca5182017-01-30 05:28:54 -0800662rtc_source_set("isac_fix_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200663 poisonous = [ "audio_codecs" ]
kwiberga6ca5182017-01-30 05:28:54 -0800664 sources = [
665 "codecs/isac/fix/source/codec.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100666 "codecs/isac/fix/source/entropy_coding.h",
kwiberga6ca5182017-01-30 05:28:54 -0800667 "codecs/isac/fix/source/fft.c",
668 "codecs/isac/fix/source/fft.h",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100669 "codecs/isac/fix/source/filterbank_internal.h",
kwiberga6ca5182017-01-30 05:28:54 -0800670 "codecs/isac/fix/source/settings.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100671 "codecs/isac/fix/source/structs.h",
Mirko Bonadei6e396b02018-04-20 13:54:53 -0700672 "codecs/isac/fix/source/transform_tables.c",
kwiberga6ca5182017-01-30 05:28:54 -0800673 ]
674 public_configs = [ ":isac_fix_config" ]
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100675 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200676 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100677 "../..:typedefs",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100678 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100679 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100680 ]
kwiberga6ca5182017-01-30 05:28:54 -0800681}
kjellander676e08f2016-12-07 08:23:27 -0800682
mbonadei5c0d7032017-07-06 03:48:55 -0700683rtc_source_set("isac_fix_c_arm_asm") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200684 poisonous = [ "audio_codecs" ]
mbonadei5c0d7032017-07-06 03:48:55 -0700685 sources = []
686 if (current_cpu == "arm" && arm_version >= 7) {
687 sources += [
688 "codecs/isac/fix/source/lattice_armv7.S",
689 "codecs/isac/fix/source/pitch_filter_armv6.S",
690 ]
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100691 deps = [
Mirko Bonadei6ce03592018-02-22 15:10:27 +0100692 ":isac_fix_common",
Karl Wiberg7aabd392018-03-22 02:59:49 +0100693 "../../rtc_base/system:asm_defines",
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100694 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700695 }
696}
697
kwiberga6ca5182017-01-30 05:28:54 -0800698rtc_source_set("isac_fix_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200699 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800700 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100701 "codecs/isac/fix/include/audio_decoder_isacfix.h",
702 "codecs/isac/fix/include/audio_encoder_isacfix.h",
703 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000704 "codecs/isac/fix/source/arith_routines.c",
705 "codecs/isac/fix/source/arith_routines_hist.c",
706 "codecs/isac/fix/source/arith_routines_logist.c",
707 "codecs/isac/fix/source/arith_routins.h",
708 "codecs/isac/fix/source/bandwidth_estimator.c",
709 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000710 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200711 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000712 "codecs/isac/fix/source/decode_plc.c",
713 "codecs/isac/fix/source/encode.c",
714 "codecs/isac/fix/source/entropy_coding.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000715 "codecs/isac/fix/source/filterbank_tables.c",
716 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200717 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000718 "codecs/isac/fix/source/filters.c",
719 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200720 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000721 "codecs/isac/fix/source/isacfix.c",
722 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700723 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000724 "codecs/isac/fix/source/lpc_masking_model.c",
725 "codecs/isac/fix/source/lpc_masking_model.h",
726 "codecs/isac/fix/source/lpc_tables.c",
727 "codecs/isac/fix/source/lpc_tables.h",
728 "codecs/isac/fix/source/pitch_estimator.c",
729 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700730 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000731 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700732 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000733 "codecs/isac/fix/source/pitch_gain_tables.c",
734 "codecs/isac/fix/source/pitch_gain_tables.h",
735 "codecs/isac/fix/source/pitch_lag_tables.c",
736 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000737 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
738 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000739 "codecs/isac/fix/source/transform.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000740 ]
741
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700742 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000743
kjellander676e08f2016-12-07 08:23:27 -0800744 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200745 ":isac_bwinfo",
kjellander676e08f2016-12-07 08:23:27 -0800746 ":isac_common",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100747 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800748 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800749 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800750 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100751 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100752 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700753 "../../rtc_base:compile_assert_c",
754 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100755 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100756 "../../system_wrappers:cpu_features_api",
kjellander676e08f2016-12-07 08:23:27 -0800757 ]
758
kwiberga6ca5182017-01-30 05:28:54 -0800759 public_deps = [
760 ":isac_fix_common",
761 ]
762
mbonadeie5dc3ce2017-01-25 05:34:46 -0800763 if (rtc_build_with_neon) {
764 deps += [ ":isac_neon" ]
765 }
766
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700767 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700768 sources -= [
769 "codecs/isac/fix/source/lattice_c.c",
770 "codecs/isac/fix/source/pitch_filter_c.c",
771 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700772 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000773 }
774
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000775 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000776 sources += [
777 "codecs/isac/fix/source/entropy_coding_mips.c",
778 "codecs/isac/fix/source/filters_mips.c",
779 "codecs/isac/fix/source/lattice_mips.c",
780 "codecs/isac/fix/source/pitch_estimator_mips.c",
781 "codecs/isac/fix/source/transform_mips.c",
782 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700783 sources -= [
784 "codecs/isac/fix/source/lattice_c.c",
785 "codecs/isac/fix/source/pitch_estimator_c.c",
786 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000787 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200788 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000789 }
790 if (mips_dsp_rev > 1) {
791 sources += [
792 "codecs/isac/fix/source/lpc_masking_model_mips.c",
793 "codecs/isac/fix/source/pitch_filter_mips.c",
794 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200795 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000796 }
797 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000798}
799
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700800if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700801 rtc_static_library("isac_neon") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200802 poisonous = [ "audio_codecs" ]
Zhongwei Yaof242e662015-05-06 16:39:17 +0800803 sources = [
804 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800805 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800806 "codecs/isac/fix/source/filters_neon.c",
807 "codecs/isac/fix/source/lattice_neon.c",
808 "codecs/isac/fix/source/transform_neon.c",
809 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000810
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700811 if (current_cpu != "arm64") {
812 # Enable compilation for the NEON instruction set. This is needed
813 # since //build/config/arm.gni only enables NEON for iOS, not Android.
814 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700815 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700816 cflags = [ "-mfpu=neon" ]
817 }
818
819 # Disable LTO on NEON targets due to compiler bug.
820 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000821 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000822 cflags -= [
823 "-flto",
824 "-ffat-lto-objects",
825 ]
826 }
827
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200828 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800829 ":isac_fix_common",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200830 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100831 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100832 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700833 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200834 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000835 }
836}
837
838config("pcm16b_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200839 include_dirs = [ "codecs/pcm16b/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000840}
841
kjellanderb62dbbe2016-09-23 00:38:52 -0700842rtc_static_library("pcm16b") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100843 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200844 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000845 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200846 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100847 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200848 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100849 "codecs/pcm16b/audio_encoder_pcm16b.h",
kwiberg7ea6e592017-08-16 06:12:57 -0700850 "codecs/pcm16b/pcm16b_common.cc",
851 "codecs/pcm16b/pcm16b_common.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000852 ]
853
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000854 deps = [
855 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800856 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800857 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800858 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100859 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700860 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000861 ]
kjellander7439f972016-12-05 22:47:46 -0800862 public_deps = [
863 ":pcm16b_c",
864 ]
865 public_configs = [ ":pcm16b_config" ]
866}
867
868rtc_source_set("pcm16b_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200869 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800870 sources = [
871 "codecs/pcm16b/pcm16b.c",
872 "codecs/pcm16b/pcm16b.h",
873 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000874
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700875 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800876 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100877 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800878 "../..:webrtc_common",
879 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000880}
881
kjellanderb62dbbe2016-09-23 00:38:52 -0700882rtc_static_library("webrtc_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000883 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200884 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000885 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200886 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100887 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000888 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100889 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000890 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000891
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200892 deps = [
minyue41b9c802016-10-06 07:13:54 -0700893 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800894 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800895 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700896 "../../api/audio_codecs/opus:audio_encoder_opus_config",
michaelt566d8202017-01-12 10:17:38 -0800897 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100898 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700899 "../../rtc_base:rtc_base_approved",
900 "../../rtc_base:rtc_numerics",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100901 "../../rtc_base:safe_minmax",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100902 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200903 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200904 ]
kjellander7439f972016-12-05 22:47:46 -0800905 public_deps = [
906 ":webrtc_opus_c",
kwiberge5eb7242017-08-25 03:10:50 -0700907 "../../rtc_base:protobuf_utils",
kjellander7439f972016-12-05 22:47:46 -0800908 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000909
michaelta55f0212017-02-02 07:47:19 -0800910 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800911
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000912 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800913 public_deps += [ rtc_opus_dir ]
914 } else if (build_with_mozilla) {
Dan Minor9c686132018-01-15 10:20:00 -0500915 include_dirs = [ "/media/libopus/include" ]
kjellander7439f972016-12-05 22:47:46 -0800916 }
917}
918
919rtc_source_set("webrtc_opus_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200920 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800921 sources = [
922 "codecs/opus/opus_inst.h",
923 "codecs/opus/opus_interface.c",
924 "codecs/opus/opus_interface.h",
925 ]
926
minyue2e03c662017-02-01 17:31:11 -0800927 defines = audio_coding_defines
928
kjellander7439f972016-12-05 22:47:46 -0800929 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700930 public_deps = [
931 rtc_opus_dir,
932 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000933 } else if (build_with_mozilla) {
934 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000935 }
kjellander7439f972016-12-05 22:47:46 -0800936
937 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100938 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800939 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100940 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700941 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800942 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000943}
944
minyue25f6a392016-09-22 22:23:20 -0700945if (rtc_enable_protobuf) {
946 proto_library("ana_debug_dump_proto") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000947 visibility += webrtc_default_visibility
minyue25f6a392016-09-22 22:23:20 -0700948 sources = [
949 "audio_network_adaptor/debug_dump.proto",
950 ]
jbudorick58f17252017-07-26 14:49:20 -0700951 deps = [
952 ":ana_config_proto",
953 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200954 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700955 }
minyuea1d9ad02016-10-02 14:53:37 -0700956 proto_library("ana_config_proto") {
957 sources = [
958 "audio_network_adaptor/config.proto",
959 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200960 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyuea1d9ad02016-10-02 14:53:37 -0700961 }
minyue25f6a392016-09-22 22:23:20 -0700962}
963
eladalon1e7dd312017-09-12 04:38:25 -0700964rtc_static_library("audio_network_adaptor_config") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000965 visibility += webrtc_default_visibility
eladalon1e7dd312017-09-12 04:38:25 -0700966 sources = [
967 "audio_network_adaptor/audio_network_adaptor_config.cc",
968 "audio_network_adaptor/include/audio_network_adaptor_config.h",
969 ]
970 deps = [
Danil Chapovalovb6021232018-06-19 13:26:36 +0200971 "//third_party/abseil-cpp/absl/types:optional",
eladalon1e7dd312017-09-12 04:38:25 -0700972 ]
973}
974
minyue0d382ef2016-10-07 07:59:28 -0700975rtc_static_library("audio_network_adaptor") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000976 visibility += webrtc_default_visibility
minyue7610f852016-09-07 13:51:51 -0700977 sources = [
minyuecaa9cb22016-09-13 13:34:15 -0700978 "audio_network_adaptor/audio_network_adaptor_impl.cc",
979 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700980 "audio_network_adaptor/bitrate_controller.cc",
981 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700982 "audio_network_adaptor/channel_controller.cc",
983 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700984 "audio_network_adaptor/controller.cc",
985 "audio_network_adaptor/controller.h",
986 "audio_network_adaptor/controller_manager.cc",
987 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700988 "audio_network_adaptor/debug_dump_writer.cc",
989 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700990 "audio_network_adaptor/dtx_controller.cc",
991 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800992 "audio_network_adaptor/event_log_writer.cc",
993 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700994 "audio_network_adaptor/fec_controller_plr_based.cc",
995 "audio_network_adaptor/fec_controller_plr_based.h",
996 "audio_network_adaptor/fec_controller_rplr_based.cc",
997 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700998 "audio_network_adaptor/frame_length_controller.cc",
999 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -07001000 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -07001001 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -07001002 ]
minyue25f6a392016-09-22 22:23:20 -07001003
eladalon1e7dd312017-09-12 04:38:25 -07001004 public_deps = [
1005 ":audio_network_adaptor_config",
1006 ]
1007
minyue41b9c802016-10-06 07:13:54 -07001008 deps = [
1009 "../..:webrtc_common",
ivoce1198e02017-09-08 08:13:19 -07001010 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001011 "../../common_audio",
Qingsi Wang970b0882018-02-01 11:04:46 -08001012 "../../logging:rtc_event_audio",
minyue4b7c9522017-01-24 04:54:59 -08001013 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001014 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001015 "../../rtc_base:protobuf_utils",
1016 "../../rtc_base:rtc_base_approved",
Karl Wiberg6a4d4112018-03-23 10:39:34 +01001017 "../../rtc_base/system:file_wrapper",
minyue41b9c802016-10-06 07:13:54 -07001018 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001019 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001020 "//third_party/abseil-cpp/absl/types:optional",
minyue41b9c802016-10-06 07:13:54 -07001021 ]
1022
minyue25f6a392016-09-22 22:23:20 -07001023 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -07001024 deps += [
minyuea1d9ad02016-10-02 14:53:37 -07001025 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -07001026 ":ana_debug_dump_proto",
1027 ]
minyue25f6a392016-09-22 22:23:20 -07001028 }
minyue4b7c9522017-01-24 04:54:59 -08001029
1030 if (!build_with_chromium && is_clang) {
1031 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1032 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1033 }
minyue7610f852016-09-07 13:51:51 -07001034}
1035
kwiberg65cb70d2017-03-03 06:16:28 -08001036rtc_source_set("neteq_decoder_enum") {
1037 sources = [
1038 "neteq/neteq_decoder_enum.cc",
1039 "neteq/neteq_decoder_enum.h",
1040 ]
1041 deps = [
1042 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001043 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001044 "//third_party/abseil-cpp/absl/types:optional",
kwiberg65cb70d2017-03-03 06:16:28 -08001045 ]
1046}
kjellander676e08f2016-12-07 08:23:27 -08001047
kwiberg65cb70d2017-03-03 06:16:28 -08001048rtc_static_library("neteq") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001049 visibility += webrtc_default_visibility
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001050 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001051 "neteq/accelerate.cc",
1052 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001053 "neteq/audio_multi_vector.cc",
1054 "neteq/audio_multi_vector.h",
1055 "neteq/audio_vector.cc",
1056 "neteq/audio_vector.h",
1057 "neteq/background_noise.cc",
1058 "neteq/background_noise.h",
1059 "neteq/buffer_level_filter.cc",
1060 "neteq/buffer_level_filter.h",
1061 "neteq/comfort_noise.cc",
1062 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -07001063 "neteq/cross_correlation.cc",
1064 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001065 "neteq/decision_logic.cc",
1066 "neteq/decision_logic.h",
1067 "neteq/decision_logic_fax.cc",
1068 "neteq/decision_logic_fax.h",
1069 "neteq/decision_logic_normal.cc",
1070 "neteq/decision_logic_normal.h",
1071 "neteq/decoder_database.cc",
1072 "neteq/decoder_database.h",
1073 "neteq/defines.h",
1074 "neteq/delay_manager.cc",
1075 "neteq/delay_manager.h",
1076 "neteq/delay_peak_detector.cc",
1077 "neteq/delay_peak_detector.h",
1078 "neteq/dsp_helper.cc",
1079 "neteq/dsp_helper.h",
1080 "neteq/dtmf_buffer.cc",
1081 "neteq/dtmf_buffer.h",
1082 "neteq/dtmf_tone_generator.cc",
1083 "neteq/dtmf_tone_generator.h",
1084 "neteq/expand.cc",
1085 "neteq/expand.h",
Henrik Lundin3ef3bfc2018-04-10 15:10:26 +02001086 "neteq/expand_uma_logger.cc",
1087 "neteq/expand_uma_logger.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001088 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001089 "neteq/merge.cc",
1090 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001091 "neteq/nack_tracker.cc",
1092 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001093 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001094 "neteq/neteq_impl.cc",
1095 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001096 "neteq/normal.cc",
1097 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001098 "neteq/packet.cc",
1099 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001100 "neteq/packet_buffer.cc",
1101 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001102 "neteq/post_decode_vad.cc",
1103 "neteq/post_decode_vad.h",
1104 "neteq/preemptive_expand.cc",
1105 "neteq/preemptive_expand.h",
1106 "neteq/random_vector.cc",
1107 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001108 "neteq/red_payload_splitter.cc",
1109 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001110 "neteq/rtcp.cc",
1111 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001112 "neteq/statistics_calculator.cc",
1113 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001114 "neteq/sync_buffer.cc",
1115 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001116 "neteq/tick_timer.cc",
1117 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001118 "neteq/time_stretch.cc",
1119 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001120 "neteq/timestamp_scaler.cc",
1121 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001122 ]
1123
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001124 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001125 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001126 ":cng",
kwiberg65cb70d2017-03-03 06:16:28 -08001127 ":neteq_decoder_enum",
mbonadei1140f972017-04-26 03:38:35 -07001128 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001129 "../..:typedefs",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001130 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001131 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001132 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001133 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001134 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01001135 "../../common_audio:common_audio_c",
Jonas Olssonabbe8412018-04-03 13:40:05 +02001136 "../../rtc_base:audio_format_to_string",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001137 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001138 "../../rtc_base:gtest_prod",
1139 "../../rtc_base:rtc_base_approved",
Karl Wiberg12edf4c2018-03-07 14:18:56 +01001140 "../../rtc_base:safe_minmax",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001141 "../../rtc_base:sanitizer",
Karl Wiberg80ba3332018-02-05 10:33:35 +01001142 "../../rtc_base/system:fallthrough",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001143 "../../system_wrappers:field_trial_api",
1144 "../../system_wrappers:metrics_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001145 "//third_party/abseil-cpp/absl/types:optional",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001146 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001147}
kjellanderfb114242016-06-13 00:19:48 -07001148
henrik.lundin58466f62016-10-05 02:27:42 -07001149# Although providing only test support, this target must be outside of the
1150# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1151# that ultimately are built and run as a part of the Chromium ecosystem, which
1152# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001153rtc_source_set("neteq_tools_minimal") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001154 visibility += webrtc_default_visibility
henrik.lundin58466f62016-10-05 02:27:42 -07001155 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001156 "neteq/tools/audio_sink.cc",
1157 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001158 "neteq/tools/encode_neteq_input.cc",
1159 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001160 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001161 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001162 "neteq/tools/neteq_test.cc",
1163 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001164 "neteq/tools/packet.cc",
1165 "neteq/tools/packet.h",
1166 "neteq/tools/packet_source.cc",
1167 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001168 ]
1169
kjellandere40a7ee2016-10-16 23:56:12 -07001170 if (!build_with_chromium && is_clang) {
1171 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001172 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1173 }
kjellander676e08f2016-12-07 08:23:27 -08001174
1175 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001176 ":neteq",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001177 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001178 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001179 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001180 "../../api/audio:audio_frame_api",
ossueb1fde42017-05-02 06:46:30 -07001181 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001182 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001183 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001184 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001185 "../rtp_rtcp",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001186 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -08001187 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001188}
1189
mbonadei3edccb92017-06-01 04:47:20 -07001190rtc_source_set("neteq_test_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001191 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001192 testonly = true
1193 sources = [
1194 "neteq/tools/audio_checksum.h",
1195 "neteq/tools/audio_loop.cc",
1196 "neteq/tools/audio_loop.h",
1197 "neteq/tools/constant_pcm_packet_source.cc",
1198 "neteq/tools/constant_pcm_packet_source.h",
1199 "neteq/tools/output_audio_file.h",
1200 "neteq/tools/output_wav_file.h",
1201 "neteq/tools/rtp_file_source.cc",
1202 "neteq/tools/rtp_file_source.h",
1203 "neteq/tools/rtp_generator.cc",
1204 "neteq/tools/rtp_generator.h",
1205 ]
1206
1207 public_configs = [ ":neteq_tools_config" ]
1208
1209 if (!build_with_chromium && is_clang) {
1210 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1211 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1212 }
1213
1214 deps = [
1215 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001216 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001217 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001218 "../../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +01001219 "../../api:libjingle_peerconnection_api",
mbonadei3edccb92017-06-01 04:47:20 -07001220 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001221 "../../rtc_base:checks",
Joachim Bauch4e909192017-12-19 22:27:51 +01001222 "../../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001223 "../../rtc_base:rtc_base_approved",
1224 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001225 "../../test:rtp_test_utils",
1226 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001227 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001228 ]
1229
1230 public_deps = [
1231 ":neteq_tools",
1232 ":neteq_tools_minimal",
1233 ]
1234
1235 if (rtc_enable_protobuf) {
1236 sources += [
1237 "neteq/tools/neteq_packet_source_input.cc",
1238 "neteq/tools/neteq_packet_source_input.h",
1239 ]
1240 deps += [ ":rtc_event_log_source" ]
1241 }
1242}
1243
1244config("neteq_tools_config") {
1245 include_dirs = [ "tools" ]
1246}
1247
1248rtc_source_set("neteq_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001249 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001250 sources = [
1251 "neteq/tools/fake_decode_from_file.cc",
1252 "neteq/tools/fake_decode_from_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001253 "neteq/tools/neteq_delay_analyzer.cc",
1254 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001255 "neteq/tools/neteq_replacement_input.cc",
1256 "neteq/tools/neteq_replacement_input.h",
Minyue Li2b415da2018-04-16 14:33:53 +02001257 "neteq/tools/neteq_stats_getter.cc",
1258 "neteq/tools/neteq_stats_getter.h",
mbonadei3edccb92017-06-01 04:47:20 -07001259 ]
1260
1261 public_configs = [ ":neteq_tools_config" ]
1262
1263 if (!build_with_chromium && is_clang) {
1264 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1265 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1266 }
1267
1268 deps = [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001269 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001270 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001271 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001272 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001273 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001274 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001275 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001276 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001277 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001278 "//third_party/abseil-cpp/absl/types:optional",
mbonadei3edccb92017-06-01 04:47:20 -07001279 ]
1280
1281 public_deps = [
Ivo Creusen385b10b2017-10-13 12:37:27 +02001282 ":neteq_input_audio_tools",
mbonadei3edccb92017-06-01 04:47:20 -07001283 ":neteq_tools_minimal",
1284 ]
1285}
1286
Ivo Creusen385b10b2017-10-13 12:37:27 +02001287rtc_source_set("neteq_input_audio_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001288 visibility += webrtc_default_visibility
Ivo Creusen385b10b2017-10-13 12:37:27 +02001289 sources = [
1290 "neteq/tools/input_audio_file.cc",
1291 "neteq/tools/input_audio_file.h",
1292 "neteq/tools/resample_input_audio_file.cc",
1293 "neteq/tools/resample_input_audio_file.h",
1294 ]
1295
1296 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001297 "../..:typedefs",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001298 "../..:webrtc_common",
1299 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001300 "../../rtc_base:checks",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001301 "../../rtc_base:rtc_base_approved",
1302 ]
1303}
1304
mbonadei3edccb92017-06-01 04:47:20 -07001305if (rtc_enable_protobuf) {
1306 rtc_static_library("rtc_event_log_source") {
1307 testonly = true
1308
mbonadei3edccb92017-06-01 04:47:20 -07001309 sources = [
1310 "neteq/tools/rtc_event_log_source.cc",
1311 "neteq/tools/rtc_event_log_source.h",
1312 ]
1313
1314 if (!build_with_chromium && is_clang) {
1315 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1316 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1317 }
1318
1319 deps = [
Patrik Höglundebe62402017-11-24 13:51:52 +01001320 ":neteq_tools_minimal",
mbonadei3edccb92017-06-01 04:47:20 -07001321 "../../logging:rtc_event_log_parser",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001322 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001323 "../../rtc_base:rtc_base_approved",
Mirko Bonadei818d9102017-12-12 12:46:13 +01001324 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001325 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001326 ]
1327 public_deps = [
1328 "../../logging:rtc_event_log_proto",
1329 ]
1330 }
1331}
1332
kjellanderfb114242016-06-13 00:19:48 -07001333if (rtc_include_tests) {
Patrik Höglundb960e412018-01-05 11:46:26 +01001334 rtc_source_set("mocks") {
1335 testonly = true
1336 sources = [
1337 "audio_network_adaptor/mock/mock_audio_network_adaptor.h",
1338 "audio_network_adaptor/mock/mock_controller.h",
1339 "audio_network_adaptor/mock/mock_controller_manager.h",
1340 "audio_network_adaptor/mock/mock_debug_dump_writer.h",
1341 ]
1342 deps = [
1343 ":audio_network_adaptor",
1344 "../../test:test_support",
1345 ]
1346 }
1347
kjellander6ceab082016-10-28 05:44:03 -07001348 group("audio_coding_tests") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001349 visibility += webrtc_default_visibility
kjellander6ceab082016-10-28 05:44:03 -07001350 testonly = true
1351 public_deps = [
kjellander6ceab082016-10-28 05:44:03 -07001352 ":acm_receive_test",
1353 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001354 ":audio_codec_speed_tests",
1355 ":audio_decoder_unittests",
1356 ":audio_decoder_unittests",
1357 ":delay_test",
1358 ":g711_test",
1359 ":g722_test",
1360 ":ilbc_test",
kjellander6ceab082016-10-28 05:44:03 -07001361 ":isac_api_test",
1362 ":isac_fix_test",
1363 ":isac_switch_samprate_test",
1364 ":isac_test",
1365 ":neteq_ilbc_quality_test",
1366 ":neteq_isac_quality_test",
1367 ":neteq_opus_quality_test",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001368 ":neteq_pcm16b_quality_test",
kjellander6ceab082016-10-28 05:44:03 -07001369 ":neteq_pcmu_quality_test",
1370 ":neteq_speed_test",
1371 ":rtp_analyze",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001372 ":rtp_encode",
Henrik Lundin81af4142017-11-24 13:39:39 +01001373 ":rtp_jitter",
kjellander6ceab082016-10-28 05:44:03 -07001374 ":rtpcat",
1375 ":webrtc_opus_fec_test",
1376 ]
1377 if (rtc_enable_protobuf) {
1378 public_deps += [ ":neteq_rtpplay" ]
1379 }
1380 }
1381
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001382 rtc_source_set("audio_coding_modules_tests") {
1383 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001384 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001385
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001386 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001387 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001388 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001389 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001390 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001391 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001392 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001393 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001394 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001395 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001396 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001397 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001398 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001399 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001400 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001401 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001402 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001403 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001404 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001405 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001406 "test/Tester.cc",
1407 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001408 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001409 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001410 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001411 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001412 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001413 "test/target_delay_unittest.cc",
1414 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001415 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001416 ]
1417 deps = [
1418 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001419 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001420 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001421 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001422 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001423 "../..:typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001424 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001425 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001426 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001427 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001428 "../../rtc_base:rtc_base_approved",
Karl Wiberg2b857922018-03-23 14:53:54 +01001429 "../../rtc_base/synchronization:rw_lock_wrapper",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001430 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001431 "../../test:fileutils",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001432 "../../test:test_support",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001433 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001434 ]
1435 defines = audio_coding_defines
1436 if (is_win) {
1437 cflags = [
1438 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1439 "/wd4373", # virtual function override.
1440 ]
1441 }
1442 if (!build_with_chromium && is_clang) {
1443 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1444 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1445 }
1446 }
1447
ehmaldonado021eef32017-01-05 07:09:50 -08001448 rtc_source_set("audio_coding_perf_tests") {
1449 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001450 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001451
ehmaldonado021eef32017-01-05 07:09:50 -08001452 sources = [
1453 "codecs/opus/opus_complexity_unittest.cc",
1454 "neteq/test/neteq_performance_unittest.cc",
1455 ]
1456 deps = [
1457 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001458 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001459 "../..:typedefs",
ehmaldonado021eef32017-01-05 07:09:50 -08001460 "../..:webrtc_common",
Karl Wiberg7275e182017-10-25 09:57:40 +02001461 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001462 "../../rtc_base:protobuf_utils",
1463 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001464 "../../system_wrappers",
1465 "../../system_wrappers:field_trial_api",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001466 "../../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +01001467 "../../test:perf_test",
ehmaldonado021eef32017-01-05 07:09:50 -08001468 "../../test:test_support",
1469 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001470
ehmaldonado021eef32017-01-05 07:09:50 -08001471 if (!build_with_chromium && is_clang) {
1472 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1473 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1474 }
1475 }
1476
ehmaldonado38a21322016-09-02 04:10:34 -07001477 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001478 testonly = true
1479 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001480 "acm2/acm_receive_test.cc",
1481 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001482 ]
1483
kjellanderfb114242016-06-13 00:19:48 -07001484 defines = audio_coding_defines
1485
1486 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001487 "..:module_api",
kjellanderfb114242016-06-13 00:19:48 -07001488 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001489 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001490 "../../api/audio_codecs:audio_codecs_api",
1491 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001492 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001493 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001494 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001495 "//testing/gtest",
1496 ]
1497 }
1498
ehmaldonado38a21322016-09-02 04:10:34 -07001499 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001500 testonly = true
1501 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001502 "acm2/acm_send_test.cc",
1503 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001504 ]
1505
kjellanderfb114242016-06-13 00:19:48 -07001506 defines = audio_coding_defines
1507
1508 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001509 "../../api/audio:audio_frame_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001510 "../../rtc_base:checks",
kjellanderfb114242016-06-13 00:19:48 -07001511 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001512 ":neteq_tools",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001513 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07001514 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001515 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001516 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001517 "//testing/gtest",
1518 ]
1519 }
1520
ehmaldonado38a21322016-09-02 04:10:34 -07001521 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001522 testonly = true
1523 sources = [
1524 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001525 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001526 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001527 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001528 "test/delay_test.cc",
1529 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001530 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001531 ]
1532
aleloi333f2062016-07-28 01:21:29 -07001533 deps = [
1534 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001535 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001536 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001537 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001538 "../..:typedefs",
aleloi333f2062016-07-28 01:21:29 -07001539 "../../:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001540 "../../api/audio:audio_frame_api",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001541 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001542 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001543 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001544 "../../system_wrappers",
1545 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001546 "../../test:fileutils",
aleloi333f2062016-07-28 01:21:29 -07001547 "../../test:test_support",
1548 "../rtp_rtcp",
1549 "//testing/gtest",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001550 "//third_party/abseil-cpp/absl/types:optional",
aleloi333f2062016-07-28 01:21:29 -07001551 ]
1552 } # delay_test
1553
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001554 audio_decoder_unittests_resources =
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001555 [ "../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001556
1557 if (is_ios) {
1558 bundle_data("audio_decoder_unittests_bundle_data") {
1559 testonly = true
1560 sources = audio_decoder_unittests_resources
1561 outputs = [
1562 "{{bundle_resources_dir}}/{{source_file_part}}",
1563 ]
1564 }
1565 }
1566
ehmaldonado38a21322016-09-02 04:10:34 -07001567 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001568 testonly = true
1569 sources = [
1570 "neteq/audio_decoder_unittest.cc",
1571 ]
1572
kjellandere40a7ee2016-10-16 23:56:12 -07001573 if (!build_with_chromium && is_clang) {
1574 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001575 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001576 }
1577
Patrik Höglund7696bef2018-03-15 15:05:39 +01001578 deps = [
1579 "../../test:fileutils",
1580 ]
charujainddf3e4a2016-08-01 07:49:42 -07001581
1582 defines = neteq_defines
1583
1584 deps += audio_coding_deps
1585 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001586 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001587 ":isac",
1588 ":isac_fix",
1589 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001590 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001591 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001592 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001593 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001594 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001595 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001596 "//testing/gtest",
1597 ]
1598
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001599 data = audio_decoder_unittests_resources
1600
charujainddf3e4a2016-08-01 07:49:42 -07001601 if (is_android) {
1602 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001603 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001604 }
kjellander32c4a202016-08-30 02:53:49 -07001605 if (is_ios) {
1606 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001607 }
1608 } # audio_decoder_unittests
1609
kjellanderfb114242016-06-13 00:19:48 -07001610 if (rtc_enable_protobuf) {
1611 proto_library("neteq_unittest_proto") {
1612 sources = [
1613 "neteq/neteq_unittest.proto",
1614 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001615 proto_out_dir = "modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001616 }
henrik.lundin03153f12016-06-21 05:38:42 -07001617
ehmaldonado38a21322016-09-02 04:10:34 -07001618 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001619 testonly = true
1620 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001621 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001622 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001623 "../../rtc_base:checks",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001624 "../../test:fileutils",
mbonadei1140f972017-04-26 03:38:35 -07001625 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001626 sources = [
1627 "neteq/tools/neteq_rtpplay.cc",
1628 ]
1629
kjellandere40a7ee2016-10-16 23:56:12 -07001630 if (!build_with_chromium && is_clang) {
1631 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001632 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001633 }
1634
1635 if (is_win) {
1636 cflags = [
1637 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
1638 "/wd4373", # virtual function override.
1639 ]
1640 }
1641
1642 deps += [
1643 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001644 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001645 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001646 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001647 "../../system_wrappers:system_wrappers_default",
1648 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001649 ]
1650 }
kjellanderfb114242016-06-13 00:19:48 -07001651 }
1652
minyue81f1da32017-07-27 05:49:57 -07001653 audio_codec_speed_tests_resources = [
1654 "//resources/audio_coding/music_stereo_48kHz.pcm",
1655 "//resources/audio_coding/speech_mono_16kHz.pcm",
1656 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1657 ]
1658
1659 if (is_ios) {
1660 bundle_data("audio_codec_speed_tests_data") {
1661 testonly = true
1662 sources = audio_codec_speed_tests_resources
1663 outputs = [
1664 "{{bundle_resources_dir}}/{{source_file_part}}",
1665 ]
1666 }
1667 }
1668
ehmaldonado38a21322016-09-02 04:10:34 -07001669 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001670 testonly = true
1671 defines = []
Patrik Höglund3e113432017-12-15 14:40:10 +01001672 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001673 "../..:typedefs",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001674 "../../test:fileutils",
Patrik Höglund3e113432017-12-15 14:40:10 +01001675 ]
aleloie6b60a42016-07-28 02:34:30 -07001676 sources = [
1677 "codecs/isac/fix/test/isac_speed_test.cc",
1678 "codecs/opus/opus_speed_test.cc",
1679 "codecs/tools/audio_codec_speed_test.cc",
1680 "codecs/tools/audio_codec_speed_test.h",
1681 ]
1682
kjellandere40a7ee2016-10-16 23:56:12 -07001683 if (!build_with_chromium && is_clang) {
1684 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001685 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001686 }
1687
minyue81f1da32017-07-27 05:49:57 -07001688 data = audio_codec_speed_tests_resources
1689
aleloie6b60a42016-07-28 02:34:30 -07001690 if (is_android) {
1691 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001692 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001693 }
1694
minyue81f1da32017-07-27 05:49:57 -07001695 if (is_ios) {
1696 deps += [ ":audio_codec_speed_tests_data" ]
1697 }
1698
aleloie6b60a42016-07-28 02:34:30 -07001699 deps += [
1700 ":isac_fix",
1701 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001702 "../..:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001703 "../../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001704 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001705 "../../system_wrappers:metrics_default",
aleloie6b60a42016-07-28 02:34:30 -07001706 "../../system_wrappers:system_wrappers_default",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001707 "../../test:field_trial",
ehmaldonado26bddb92016-11-30 06:12:01 -08001708 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001709 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001710 "//testing/gtest",
1711 ]
1712 }
1713
ehmaldonado38a21322016-09-02 04:10:34 -07001714 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001715 testonly = true
1716 sources = [
1717 "neteq/tools/neteq_external_decoder_test.cc",
1718 "neteq/tools/neteq_external_decoder_test.h",
1719 "neteq/tools/neteq_performance_test.cc",
1720 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001721 ]
1722
kjellandere40a7ee2016-10-16 23:56:12 -07001723 if (!build_with_chromium && is_clang) {
1724 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001725 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001726 }
1727
1728 deps = [
1729 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001730 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001731 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001732 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001733 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001734 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001735 "../../api/audio_codecs:audio_codecs_api",
1736 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001737 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001738 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001739 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001740 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001741 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001742 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001743 ]
1744 }
1745
ehmaldonado38a21322016-09-02 04:10:34 -07001746 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001747 testonly = true
1748 sources = [
1749 "neteq/tools/neteq_quality_test.cc",
1750 "neteq/tools/neteq_quality_test.h",
1751 ]
1752
kjellandere40a7ee2016-10-16 23:56:12 -07001753 if (!build_with_chromium && is_clang) {
1754 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001755 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001756 }
1757
1758 deps = [
1759 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001760 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001761 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001762 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001763 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001764 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001765 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001766 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001767 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001768 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001769 ]
1770 }
1771
Henrik Lundin1391bd42017-11-24 09:28:57 +01001772 rtc_executable("rtp_encode") {
aleloi82667732016-08-02 01:45:50 -07001773 testonly = true
1774
Henrik Lundin1391bd42017-11-24 09:28:57 +01001775 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001776 "../..:typedefs",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001777 ":audio_coding",
1778 ":neteq_input_audio_tools",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001779 "../../api/audio:audio_frame_api",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001780 "../../api/audio_codecs/g711:audio_encoder_g711",
1781 "../../api/audio_codecs/L16:audio_encoder_L16",
1782 "../../api/audio_codecs/g722:audio_encoder_g722",
1783 "../../api/audio_codecs/ilbc:audio_encoder_ilbc",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001784 "../../system_wrappers:system_wrappers_default",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001785 "../../api/audio_codecs/isac:audio_encoder_isac",
1786 "../../api/audio_codecs/opus:audio_encoder_opus",
1787 "../../rtc_base:rtc_base_approved",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001788 ]
aleloi82667732016-08-02 01:45:50 -07001789
1790 sources = [
Henrik Lundin1391bd42017-11-24 09:28:57 +01001791 "neteq/tools/rtp_encode.cc",
aleloi82667732016-08-02 01:45:50 -07001792 ]
1793
Henrik Lundin1391bd42017-11-24 09:28:57 +01001794 defines = audio_coding_defines
aleloi82667732016-08-02 01:45:50 -07001795 }
1796
Henrik Lundin81af4142017-11-24 13:39:39 +01001797 rtc_executable("rtp_jitter") {
aleloi76cbe192016-08-02 02:05:03 -07001798 testonly = true
1799
Henrik Lundin81af4142017-11-24 13:39:39 +01001800 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001801 "../..:typedefs",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001802 "../../system_wrappers:system_wrappers_default",
Henrik Lundin81af4142017-11-24 13:39:39 +01001803 "../rtp_rtcp:rtp_rtcp_format",
1804 "../../api:array_view",
1805 "../../rtc_base:rtc_base_approved",
Henrik Lundin81af4142017-11-24 13:39:39 +01001806 ]
1807
aleloi76cbe192016-08-02 02:05:03 -07001808 sources = [
Henrik Lundin81af4142017-11-24 13:39:39 +01001809 "neteq/tools/rtp_jitter.cc",
aleloi76cbe192016-08-02 02:05:03 -07001810 ]
1811
Henrik Lundin81af4142017-11-24 13:39:39 +01001812 defines = audio_coding_defines
aleloi76cbe192016-08-02 02:05:03 -07001813 }
1814
ehmaldonado38a21322016-09-02 04:10:34 -07001815 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001816 testonly = true
1817
1818 sources = [
1819 "neteq/tools/rtpcat.cc",
1820 ]
1821
1822 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001823 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001824 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001825 "../../system_wrappers:system_wrappers_default",
1826 "../../test:rtp_test_utils",
1827 "//testing/gtest",
1828 ]
1829 }
1830
ehmaldonado38a21322016-09-02 04:10:34 -07001831 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001832 testonly = true
1833
1834 sources = [
1835 "neteq/tools/rtp_analyze.cc",
1836 ]
1837
1838 deps = [
1839 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001840 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001841 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001842 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001843 "../../system_wrappers:system_wrappers_default",
1844 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001845 ]
1846
kjellandere40a7ee2016-10-16 23:56:12 -07001847 if (!build_with_chromium && is_clang) {
1848 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001849 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001850 }
1851 }
aleloi630c6d52016-08-10 02:11:30 -07001852
ehmaldonado38a21322016-09-02 04:10:34 -07001853 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001854 testonly = true
1855
1856 sources = [
1857 "neteq/test/neteq_opus_quality_test.cc",
1858 ]
1859
1860 deps = [
1861 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001862 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001863 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001864 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001865 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001866 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001867 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001868 ]
aleloi630c6d52016-08-10 02:11:30 -07001869 }
aleloi116fd612016-08-10 04:16:36 -07001870
ehmaldonado38a21322016-09-02 04:10:34 -07001871 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001872 testonly = true
1873
1874 sources = [
1875 "neteq/test/neteq_speed_test.cc",
1876 ]
1877
1878 deps = [
1879 ":neteq",
1880 ":neteq_test_support",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001881 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001882 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001883 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001884 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001885 "../../test:fileutils",
aleloi116fd612016-08-10 04:16:36 -07001886 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001887 ]
1888 }
aleloi63910122016-08-10 04:41:14 -07001889
ehmaldonado38a21322016-09-02 04:10:34 -07001890 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001891 testonly = true
1892
1893 sources = [
1894 "neteq/test/neteq_ilbc_quality_test.cc",
1895 ]
1896
1897 deps = [
1898 ":ilbc",
1899 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001900 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001901 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001902 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001903 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001904 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001905 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001906 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001907 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001908 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001909 ]
1910 }
aleloi6df36dc2016-08-10 05:04:47 -07001911
ehmaldonado38a21322016-09-02 04:10:34 -07001912 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001913 testonly = true
1914
1915 sources = [
1916 "neteq/test/neteq_isac_quality_test.cc",
1917 ]
1918
1919 deps = [
1920 ":isac_fix",
1921 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001922 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001923 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001924 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001925 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001926 ]
1927 }
aleloic4ac7002016-08-10 05:06:27 -07001928
ehmaldonado38a21322016-09-02 04:10:34 -07001929 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001930 testonly = true
1931
1932 sources = [
1933 "neteq/test/neteq_pcmu_quality_test.cc",
1934 ]
1935
1936 deps = [
1937 ":g711",
1938 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001939 ":neteq_quality_test_support",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001940 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001941 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001942 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001943 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001944 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001945 ]
1946 }
aleloib7186d02016-08-16 01:47:16 -07001947
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001948 rtc_executable("neteq_pcm16b_quality_test") {
1949 testonly = true
1950
1951 sources = [
1952 "neteq/test/neteq_pcm16b_quality_test.cc",
1953 ]
1954
1955 deps = [
1956 ":neteq",
1957 ":neteq_quality_test_support",
1958 ":pcm16b",
1959 "../../rtc_base:checks",
1960 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001961 "../../test:fileutils",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001962 "../../test:test_main",
1963 "//testing/gtest",
1964 ]
1965 }
1966
ehmaldonado38a21322016-09-02 04:10:34 -07001967 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001968 testonly = true
1969
1970 sources = [
1971 "codecs/isac/fix/test/kenny.cc",
1972 ]
1973
1974 deps = [
1975 ":isac_fix",
Edward Lemure66572b2018-01-05 15:34:09 +01001976 "../../test:perf_test",
aleloib7186d02016-08-16 01:47:16 -07001977 "../../test:test_support",
1978 ]
1979
ehmaldonado25586ce2017-09-07 23:18:35 -07001980 data = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001981 "../../resources/speech_and_misc_wb.pcm",
ehmaldonado25586ce2017-09-07 23:18:35 -07001982 ]
1983
aleloib7186d02016-08-16 01:47:16 -07001984 if (is_win) {
1985 cflags = [
1986 # Disable warnings to enable Win64 build, issue 1323.
1987 "/wd4267", # size_t to int truncation
1988 ]
1989 }
1990 }
aleloi16f55a12016-08-23 08:08:23 -07001991
kjellander7439f972016-12-05 22:47:46 -08001992 rtc_source_set("isac_test_util") {
1993 testonly = true
1994 sources = [
1995 "codecs/isac/main/util/utility.c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001996 "codecs/isac/main/util/utility.h",
kjellander7439f972016-12-05 22:47:46 -08001997 ]
1998 }
1999
ehmaldonado38a21322016-09-02 04:10:34 -07002000 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07002001 testonly = true
2002
2003 sources = [
2004 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07002005 ]
2006
2007 include_dirs = [
2008 "codecs/isac/main/include",
2009 "codecs/isac/main/test",
2010 "codecs/isac/main/util",
2011 ]
2012
2013 deps = [
2014 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002015 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002016 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07002017 ]
ivoce51b41a2016-08-24 02:25:57 -07002018 }
2019
ehmaldonado38a21322016-09-02 04:10:34 -07002020 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07002021 testonly = true
2022
2023 sources = [
2024 "codecs/g711/test/testG711.cc",
2025 ]
2026
aleloi16f55a12016-08-23 08:08:23 -07002027 deps = [
2028 ":g711",
2029 ]
2030 }
aleloi9a117842016-08-23 08:36:10 -07002031
ehmaldonado38a21322016-09-02 04:10:34 -07002032 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07002033 testonly = true
2034
2035 sources = [
2036 "codecs/g722/test/testG722.cc",
2037 ]
2038
aleloi9a117842016-08-23 08:36:10 -07002039 deps = [
2040 ":g722",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002041 "../..:typedefs",
aleloi9a117842016-08-23 08:36:10 -07002042 "../..:webrtc_common",
2043 ]
2044 }
ivoc2c670db2016-08-24 06:11:18 -07002045
ehmaldonado38a21322016-09-02 04:10:34 -07002046 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07002047 testonly = true
2048
2049 sources = [
2050 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07002051 ]
2052
aleloicfee2152016-08-29 04:09:19 -07002053 deps = [
2054 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002055 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002056 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07002057 ]
2058
2059 include_dirs = [
2060 "codecs/isac/main/include",
2061 "codecs/isac/main/test",
2062 "codecs/isac/main/util",
2063 ]
2064 }
2065
ehmaldonado38a21322016-09-02 04:10:34 -07002066 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002067 testonly = true
2068
2069 sources = [
2070 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002071 ]
2072
aleloicfee2152016-08-29 04:09:19 -07002073 deps = [
2074 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002075 ":isac_test_util",
Mirko Bonadei08973ee2018-02-01 14:12:55 +01002076 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002077 "../../common_audio:common_audio_c",
aleloicfee2152016-08-29 04:09:19 -07002078 ]
2079
2080 include_dirs = [
2081 "codecs/isac/main/include",
2082 "codecs/isac/main/test",
2083 "codecs/isac/main/util",
2084 "../../common_audio/signal_processing/include",
2085 ]
2086 }
2087
ehmaldonado38a21322016-09-02 04:10:34 -07002088 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002089 testonly = true
2090
2091 sources = [
2092 "codecs/ilbc/test/iLBC_test.c",
2093 ]
2094
aleloicfee2152016-08-29 04:09:19 -07002095 deps = [
2096 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002097 ]
2098 }
2099
ehmaldonado38a21322016-09-02 04:10:34 -07002100 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002101 testonly = true
2102
2103 sources = [
2104 "codecs/opus/opus_fec_test.cc",
2105 ]
2106
2107 deps = [
2108 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002109 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002110 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002111 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08002112 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002113 "//testing/gtest",
2114 ]
2115
kjellandere40a7ee2016-10-16 23:56:12 -07002116 if (!build_with_chromium && is_clang) {
2117 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002118 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002119 }
2120 }
ehmaldonado36268652017-01-19 08:27:11 -08002121
2122 rtc_source_set("audio_coding_unittests") {
2123 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00002124 visibility += webrtc_default_visibility
ehmaldonado36268652017-01-19 08:27:11 -08002125
2126 sources = [
2127 "acm2/acm_receiver_unittest.cc",
2128 "acm2/audio_coding_module_unittest.cc",
2129 "acm2/call_statistics_unittest.cc",
2130 "acm2/codec_manager_unittest.cc",
2131 "acm2/rent_a_codec_unittest.cc",
2132 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2133 "audio_network_adaptor/bitrate_controller_unittest.cc",
2134 "audio_network_adaptor/channel_controller_unittest.cc",
2135 "audio_network_adaptor/controller_manager_unittest.cc",
2136 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002137 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002138 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2139 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002140 "audio_network_adaptor/frame_length_controller_unittest.cc",
elad.alon326263a2017-03-29 03:16:58 -07002141 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002142 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002143 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002144 "codecs/cng/audio_encoder_cng_unittest.cc",
2145 "codecs/cng/cng_unittest.cc",
2146 "codecs/ilbc/ilbc_unittest.cc",
2147 "codecs/isac/fix/source/filterbanks_unittest.cc",
2148 "codecs/isac/fix/source/filters_unittest.cc",
2149 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2150 "codecs/isac/fix/source/transform_unittest.cc",
2151 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2152 "codecs/isac/main/source/isac_unittest.cc",
2153 "codecs/isac/unittest.cc",
2154 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002155 "codecs/opus/audio_encoder_opus_unittest.cc",
Alex Luebseeb27652017-11-20 11:13:56 -08002156 "codecs/opus/opus_bandwidth_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002157 "codecs/opus/opus_unittest.cc",
2158 "codecs/red/audio_encoder_copy_red_unittest.cc",
2159 "neteq/audio_multi_vector_unittest.cc",
2160 "neteq/audio_vector_unittest.cc",
2161 "neteq/background_noise_unittest.cc",
2162 "neteq/buffer_level_filter_unittest.cc",
2163 "neteq/comfort_noise_unittest.cc",
2164 "neteq/decision_logic_unittest.cc",
2165 "neteq/decoder_database_unittest.cc",
2166 "neteq/delay_manager_unittest.cc",
2167 "neteq/delay_peak_detector_unittest.cc",
2168 "neteq/dsp_helper_unittest.cc",
2169 "neteq/dtmf_buffer_unittest.cc",
2170 "neteq/dtmf_tone_generator_unittest.cc",
2171 "neteq/expand_unittest.cc",
2172 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002173 "neteq/mock/mock_buffer_level_filter.h",
2174 "neteq/mock/mock_decoder_database.h",
2175 "neteq/mock/mock_delay_manager.h",
2176 "neteq/mock/mock_delay_peak_detector.h",
2177 "neteq/mock/mock_dtmf_buffer.h",
2178 "neteq/mock/mock_dtmf_tone_generator.h",
2179 "neteq/mock/mock_expand.h",
2180 "neteq/mock/mock_external_decoder_pcm16b.h",
2181 "neteq/mock/mock_packet_buffer.h",
2182 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002183 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002184 "neteq/nack_tracker_unittest.cc",
2185 "neteq/neteq_external_decoder_unittest.cc",
2186 "neteq/neteq_impl_unittest.cc",
2187 "neteq/neteq_network_stats_unittest.cc",
2188 "neteq/neteq_stereo_unittest.cc",
2189 "neteq/neteq_unittest.cc",
2190 "neteq/normal_unittest.cc",
2191 "neteq/packet_buffer_unittest.cc",
2192 "neteq/post_decode_vad_unittest.cc",
2193 "neteq/random_vector_unittest.cc",
2194 "neteq/red_payload_splitter_unittest.cc",
Henrik Lundinac0a5032017-09-25 12:22:46 +02002195 "neteq/statistics_calculator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002196 "neteq/sync_buffer_unittest.cc",
2197 "neteq/tick_timer_unittest.cc",
2198 "neteq/time_stretch_unittest.cc",
2199 "neteq/timestamp_scaler_unittest.cc",
2200 "neteq/tools/input_audio_file_unittest.cc",
2201 "neteq/tools/packet_unittest.cc",
2202 ]
2203
2204 deps = [
2205 ":acm_receive_test",
2206 ":acm_send_test",
2207 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002208 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002209 ":audio_format_conversion",
2210 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002211 ":cng",
2212 ":g711",
2213 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002214 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002215 ":isac_c",
2216 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002217 ":legacy_encoded_audio_frame",
Patrik Höglundb960e412018-01-05 11:46:26 +01002218 ":mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002219 ":neteq",
2220 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002221 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002222 ":pcm16b",
2223 ":red",
2224 ":rent_a_codec",
2225 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002226 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002227 "../..:typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002228 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02002229 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08002230 "../../api/audio_codecs:audio_codecs_api",
2231 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002232 "../../api/audio_codecs:builtin_audio_encoder_factory",
Alex Luebseeb27652017-11-20 11:13:56 -08002233 "../../api/audio_codecs/opus:audio_decoder_opus",
Karl Wiberg7275e182017-10-25 09:57:40 +02002234 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonado36268652017-01-19 08:27:11 -08002235 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002236 "../../common_audio:common_audio_c",
charujain9a451162017-09-15 03:51:34 -07002237 "../../common_audio:mock_common_audio",
Patrik Höglund731082c2018-01-03 09:08:20 +01002238 "../../logging:mocks",
Qingsi Wang970b0882018-02-01 11:04:46 -08002239 "../../logging:rtc_event_audio",
Elad Alon4a87e1c2017-10-03 16:11:34 +02002240 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002241 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002242 "../../rtc_base:protobuf_utils",
2243 "../../rtc_base:rtc_base",
2244 "../../rtc_base:rtc_base_approved",
2245 "../../rtc_base:rtc_base_tests_utils",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002246 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01002247 "../../system_wrappers",
2248 "../../system_wrappers:cpu_features_api",
kwiberg37e99fd2017-04-10 05:15:48 -07002249 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002250 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002251 "../../test:fileutils",
ehmaldonado36268652017-01-19 08:27:11 -08002252 "../../test:rtp_test_utils",
2253 "../../test:test_common",
2254 "../../test:test_support",
ehmaldonado36268652017-01-19 08:27:11 -08002255 "//testing/gtest",
ehmaldonado36268652017-01-19 08:27:11 -08002256 ]
2257
2258 defines = audio_coding_defines
2259
2260 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002261 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002262 deps += [
2263 ":ana_config_proto",
2264 ":neteq_unittest_proto",
2265 ]
2266 }
2267
2268 if (!build_with_chromium && is_clang) {
2269 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2270 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2271 }
2272 }
kjellanderfb114242016-06-13 00:19:48 -07002273}
kwiberg087bd342017-02-10 08:15:44 -08002274
2275# For backwards compatibility only! Use
2276# webrtc/api/audio_codecs:audio_codecs_api instead.
2277# TODO(kwiberg): Remove this.
2278rtc_source_set("audio_decoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002279 visibility += [ "*" ]
kwiberg087bd342017-02-10 08:15:44 -08002280 sources = [
2281 "codecs/audio_decoder.h",
2282 ]
2283 deps = [
2284 "../../api/audio_codecs:audio_codecs_api",
2285 ]
2286}
2287
2288# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002289# webrtc/api/audio_codecs:audio_codecs_api instead.
2290# TODO(ossu): Remove this.
2291rtc_source_set("audio_encoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002292 visibility += [ "*" ]
ossueb1fde42017-05-02 06:46:30 -07002293 sources = [
2294 "codecs/audio_encoder.h",
2295 ]
2296 deps = [
2297 "../../api/audio_codecs:audio_codecs_api",
2298 ]
2299}