blob: fb587c598d19c2f69f6b46263c505884f0d7abe5 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellanderfb114242016-06-13 00:19:48 -070010import("audio_coding.gni")
11import("//build/config/arm.gni")
Dan Minor9c686132018-01-15 10:20:00 -050012if (!build_with_mozilla) {
13 import("//third_party/protobuf/proto_library.gni")
14}
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000015
Karl Wiberg1a8fffb2017-12-12 10:41:29 +010016visibility = [ ":*" ]
17
kwiberg0edb05b2016-01-19 05:54:28 -080018audio_codec_deps = [
19 ":cng",
20 ":g711",
21 ":pcm16b",
22]
kwiberg0edb05b2016-01-19 05:54:28 -080023if (rtc_include_ilbc) {
kwiberg0edb05b2016-01-19 05:54:28 -080024 audio_codec_deps += [ ":ilbc" ]
25}
26if (rtc_include_opus) {
kwiberg0edb05b2016-01-19 05:54:28 -080027 audio_codec_deps += [ ":webrtc_opus" ]
28}
Karl Wibergeb254b42017-11-01 15:08:12 +010029if (current_cpu == "arm") {
30 audio_codec_deps += [ ":isac_fix" ]
31} else {
32 audio_codec_deps += [ ":isac" ]
kwiberg0edb05b2016-01-19 05:54:28 -080033}
Karl Wibergeb254b42017-11-01 15:08:12 +010034audio_codec_deps += [ ":g722" ]
kwiberg0edb05b2016-01-19 05:54:28 -080035if (!build_with_mozilla && !build_with_chromium) {
kwiberg0edb05b2016-01-19 05:54:28 -080036 audio_codec_deps += [ ":red" ]
37}
kjellanderfb114242016-06-13 00:19:48 -070038audio_coding_deps = audio_codec_deps + [
39 "../..:webrtc_common",
40 "../../common_audio",
41 "../../system_wrappers",
42 ]
kwiberg0edb05b2016-01-19 05:54:28 -080043
kwibergda2bf4e2016-10-24 13:47:09 -070044rtc_static_library("audio_format_conversion") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000045 visibility += webrtc_default_visibility
kwibergda2bf4e2016-10-24 13:47:09 -070046 sources = [
47 "codecs/audio_format_conversion.cc",
48 "codecs/audio_format_conversion.h",
49 ]
50 deps = [
kwiberga6b82982016-10-24 16:31:17 -070051 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -070052 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -080053 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010054 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070055 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010056 "../../rtc_base:sanitizer",
Danil Chapovalovb6021232018-06-19 13:26:36 +020057 "//third_party/abseil-cpp/absl/types:optional",
kwibergda2bf4e2016-10-24 13:47:09 -070058 ]
59}
60
kjellanderb62dbbe2016-09-23 00:38:52 -070061rtc_static_library("rent_a_codec") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000062 visibility += webrtc_default_visibility
kwibergfce4a942015-10-27 11:40:24 -070063 sources = [
kjellander3e6db232015-11-26 04:44:54 -080064 "acm2/acm_codec_database.cc",
65 "acm2/acm_codec_database.h",
66 "acm2/rent_a_codec.cc",
67 "acm2/rent_a_codec.h",
kwibergfce4a942015-10-27 11:40:24 -070068 ]
kjellander676e08f2016-12-07 08:23:27 -080069 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +010070 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010071 "../../rtc_base:checks",
kwiberg529662a2017-09-04 05:43:17 -070072 "../../api:array_view",
Danil Chapovalovb6021232018-06-19 13:26:36 +020073 "//third_party/abseil-cpp/absl/types:optional",
kwiberg087bd342017-02-10 08:15:44 -080074 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -080075 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -070076 "../../rtc_base:protobuf_utils",
77 "../../rtc_base:rtc_base_approved",
kwiberg65cb70d2017-03-03 06:16:28 -080078 "../../system_wrappers",
79 ":audio_coding_module_typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -080080 ":isac_common",
81 ":isac_fix_c",
82 ":neteq_decoder_enum",
kjellander676e08f2016-12-07 08:23:27 -080083 ] + audio_codec_deps
mbonadei7c2c8432017-04-07 00:59:12 -070084
kwiberg0edb05b2016-01-19 05:54:28 -080085 defines = audio_codec_defines
kwibergfce4a942015-10-27 11:40:24 -070086}
87
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000088config("audio_coding_config") {
89 include_dirs = [
kjellander3e6db232015-11-26 04:44:54 -080090 "include",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010091 "../include",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000092 ]
93}
94
kwiberg65cb70d2017-03-03 06:16:28 -080095rtc_source_set("audio_coding_module_typedefs") {
96 sources = [
97 "include/audio_coding_module_typedefs.h",
98 ]
99 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100100 "../..:typedefs",
kwiberg65cb70d2017-03-03 06:16:28 -0800101 "../..:webrtc_common",
102 ]
103}
104
kjellanderb62dbbe2016-09-23 00:38:52 -0700105rtc_static_library("audio_coding") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100106 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200107 allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000108 sources = [
kjellander3e6db232015-11-26 04:44:54 -0800109 "acm2/acm_receiver.cc",
110 "acm2/acm_receiver.h",
111 "acm2/acm_resampler.cc",
112 "acm2/acm_resampler.h",
113 "acm2/audio_coding_module.cc",
kjellander3e6db232015-11-26 04:44:54 -0800114 "acm2/call_statistics.cc",
115 "acm2/call_statistics.h",
116 "acm2/codec_manager.cc",
117 "acm2/codec_manager.h",
kjellander3e6db232015-11-26 04:44:54 -0800118 "include/audio_coding_module.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000119 ]
120
121 defines = []
122
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700123 public_configs = [ ":audio_coding_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000124
kjellanderfb114242016-06-13 00:19:48 -0700125 if (rtc_include_opus) {
126 public_deps = [
127 ":webrtc_opus",
128 ]
129 }
130
kjellanderfb114242016-06-13 00:19:48 -0700131 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +0200132 "../../api/audio:audio_frame_api",
133 "..:module_api",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100134 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100135 "../..:typedefs",
Patrik Höglund3e113432017-12-15 14:40:10 +0100136 "../../rtc_base:deprecation",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100137 "../../rtc_base:checks",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100138 "../../system_wrappers:metrics_api",
kwiberg529662a2017-09-04 05:43:17 -0700139 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800140 "../../api/audio_codecs:audio_codecs_api",
kwiberg65cb70d2017-03-03 06:16:28 -0800141 ":audio_coding_module_typedefs",
kwiberg0edb05b2016-01-19 05:54:28 -0800142 ":neteq",
143 ":rent_a_codec",
Jonas Olssonabbe8412018-04-03 13:40:05 +0200144 "../../rtc_base:audio_format_to_string",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700145 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200146 "//third_party/abseil-cpp/absl/types:optional",
skvladcc91d282016-10-03 18:31:22 -0700147 "../../logging:rtc_event_log_api",
kwiberg0edb05b2016-01-19 05:54:28 -0800148 ]
kjellanderfb114242016-06-13 00:19:48 -0700149 defines = audio_coding_defines
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000150}
151
kwiberg087bd342017-02-10 08:15:44 -0800152rtc_static_library("legacy_encoded_audio_frame") {
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000153 sources = [
ossu7f40ba42016-09-21 05:50:37 -0700154 "codecs/legacy_encoded_audio_frame.cc",
155 "codecs/legacy_encoded_audio_frame.h",
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000156 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200157 deps = [
kwiberg529662a2017-09-04 05:43:17 -0700158 "../../api:array_view",
kwiberg087bd342017-02-10 08:15:44 -0800159 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700160 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200161 ]
kwiberg@webrtc.orge04a93b2014-12-09 10:12:53 +0000162}
163
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000164config("cng_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200165 include_dirs = [ "codecs/cng/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000166}
167
kjellanderb62dbbe2016-09-23 00:38:52 -0700168rtc_static_library("cng") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100169 visibility += [ "*" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000170 sources = [
henrik.lundin@webrtc.orgff1a3e32014-12-10 07:29:08 +0000171 "codecs/cng/audio_encoder_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100172 "codecs/cng/audio_encoder_cng.h",
ossu97ba30e2016-04-25 07:55:58 -0700173 "codecs/cng/webrtc_cng.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100174 "codecs/cng/webrtc_cng.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000175 ]
176
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700177 public_configs = [ ":cng_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000178
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000179 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100180 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800181 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700182 "../../api:array_view",
ossueb1fde42017-05-02 06:46:30 -0700183 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100184 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100185 "../../common_audio:common_audio_c",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700186 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000187 ]
188}
189
190config("red_config") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200191 include_dirs = [ "codecs/red" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000192}
193
kjellanderb62dbbe2016-09-23 00:38:52 -0700194rtc_static_library("red") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100195 visibility += [ "*" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000196 sources = [
197 "codecs/red/audio_encoder_copy_red.cc",
198 "codecs/red/audio_encoder_copy_red.h",
199 ]
200
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700201 public_configs = [ ":red_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000202
203 deps = [
ossueb1fde42017-05-02 06:46:30 -0700204 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100205 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100206 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700207 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000208 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000209}
210
211config("g711_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200212 include_dirs = [ "codecs/g711/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000213}
214
kjellanderb62dbbe2016-09-23 00:38:52 -0700215rtc_static_library("g711") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100216 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200217 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000218 sources = [
kwiberg6faf5be2015-09-22 06:16:51 -0700219 "codecs/g711/audio_decoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100220 "codecs/g711/audio_decoder_pcm.h",
henrik.lundin@webrtc.orgdef1e972014-10-21 12:48:29 +0000221 "codecs/g711/audio_encoder_pcm.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100222 "codecs/g711/audio_encoder_pcm.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000223 ]
224
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700225 public_configs = [ ":g711_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000226
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200227 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800228 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800229 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800230 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100231 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700232 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200233 ]
kjellander7439f972016-12-05 22:47:46 -0800234 public_deps = [
235 ":g711_c",
236 ]
237}
238
239rtc_source_set("g711_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200240 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800241 sources = [
242 "codecs/g711/g711.c",
243 "codecs/g711/g711.h",
244 "codecs/g711/g711_interface.c",
245 "codecs/g711/g711_interface.h",
246 ]
kjellander676e08f2016-12-07 08:23:27 -0800247 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100248 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800249 "../..:webrtc_common",
250 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000251}
252
253config("g722_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200254 include_dirs = [ "codecs/g722/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000255}
256
kjellanderb62dbbe2016-09-23 00:38:52 -0700257rtc_static_library("g722") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100258 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200259 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000260 sources = [
kwibergada4c132015-09-17 03:12:35 -0700261 "codecs/g722/audio_decoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100262 "codecs/g722/audio_decoder_g722.h",
kwiberg@webrtc.org0cd55582014-12-02 11:45:51 +0000263 "codecs/g722/audio_encoder_g722.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100264 "codecs/g722/audio_encoder_g722.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000265 ]
266
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700267 public_configs = [ ":g722_config" ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000268
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200269 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800270 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800271 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800272 "../../api/audio_codecs:audio_codecs_api",
kwibergb8727ae2017-06-17 17:41:59 -0700273 "../../api/audio_codecs/g722:audio_encoder_g722_config",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100274 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700275 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200276 ]
kjellander7439f972016-12-05 22:47:46 -0800277 public_deps = [
278 ":g722_c",
279 ]
280}
281
282rtc_source_set("g722_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200283 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800284 sources = [
285 "codecs/g722/g722_decode.c",
286 "codecs/g722/g722_enc_dec.h",
287 "codecs/g722/g722_encode.c",
288 "codecs/g722/g722_interface.c",
289 "codecs/g722/g722_interface.h",
290 ]
kjellander676e08f2016-12-07 08:23:27 -0800291 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100292 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800293 "../..:webrtc_common",
294 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000295}
296
297config("ilbc_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200298 include_dirs = [ "codecs/ilbc/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000299}
300
kjellanderb62dbbe2016-09-23 00:38:52 -0700301rtc_static_library("ilbc") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000302 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200303 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000304 sources = [
kwibergfff9f172015-09-16 21:26:32 -0700305 "codecs/ilbc/audio_decoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100306 "codecs/ilbc/audio_decoder_ilbc.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200307 "codecs/ilbc/audio_encoder_ilbc.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100308 "codecs/ilbc/audio_encoder_ilbc.h",
kjellander7439f972016-12-05 22:47:46 -0800309 ]
310
311 public_configs = [ ":ilbc_config" ]
312
313 deps = [
kwiberg087bd342017-02-10 08:15:44 -0800314 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800315 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800316 "../../api/audio_codecs:audio_codecs_api",
solenbergdb3c9b02017-06-28 02:05:04 -0700317 "../../api/audio_codecs/ilbc:audio_encoder_ilbc_config",
kjellander7439f972016-12-05 22:47:46 -0800318 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100319 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700320 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800321 ]
322 public_deps = [
323 ":ilbc_c",
324 ]
325}
326
327rtc_source_set("ilbc_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200328 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800329 sources = [
330 "codecs/ilbc/abs_quant.c",
331 "codecs/ilbc/abs_quant.h",
332 "codecs/ilbc/abs_quant_loop.c",
333 "codecs/ilbc/abs_quant_loop.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000334 "codecs/ilbc/augmented_cb_corr.c",
335 "codecs/ilbc/augmented_cb_corr.h",
336 "codecs/ilbc/bw_expand.c",
337 "codecs/ilbc/bw_expand.h",
338 "codecs/ilbc/cb_construct.c",
339 "codecs/ilbc/cb_construct.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200340 "codecs/ilbc/cb_mem_energy.c",
341 "codecs/ilbc/cb_mem_energy.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000342 "codecs/ilbc/cb_mem_energy_augmentation.c",
343 "codecs/ilbc/cb_mem_energy_augmentation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000344 "codecs/ilbc/cb_mem_energy_calc.c",
345 "codecs/ilbc/cb_mem_energy_calc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000346 "codecs/ilbc/cb_search.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200347 "codecs/ilbc/cb_search.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000348 "codecs/ilbc/cb_search_core.c",
349 "codecs/ilbc/cb_search_core.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000350 "codecs/ilbc/cb_update_best_index.c",
351 "codecs/ilbc/cb_update_best_index.h",
352 "codecs/ilbc/chebyshev.c",
353 "codecs/ilbc/chebyshev.h",
354 "codecs/ilbc/comp_corr.c",
355 "codecs/ilbc/comp_corr.h",
356 "codecs/ilbc/constants.c",
357 "codecs/ilbc/constants.h",
358 "codecs/ilbc/create_augmented_vec.c",
359 "codecs/ilbc/create_augmented_vec.h",
360 "codecs/ilbc/decode.c",
361 "codecs/ilbc/decode.h",
362 "codecs/ilbc/decode_residual.c",
363 "codecs/ilbc/decode_residual.h",
364 "codecs/ilbc/decoder_interpolate_lsf.c",
365 "codecs/ilbc/decoder_interpolate_lsf.h",
366 "codecs/ilbc/defines.h",
367 "codecs/ilbc/do_plc.c",
368 "codecs/ilbc/do_plc.h",
369 "codecs/ilbc/encode.c",
370 "codecs/ilbc/encode.h",
371 "codecs/ilbc/energy_inverse.c",
372 "codecs/ilbc/energy_inverse.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200373 "codecs/ilbc/enh_upsample.c",
374 "codecs/ilbc/enh_upsample.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000375 "codecs/ilbc/enhancer.c",
376 "codecs/ilbc/enhancer.h",
377 "codecs/ilbc/enhancer_interface.c",
378 "codecs/ilbc/enhancer_interface.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000379 "codecs/ilbc/filtered_cb_vecs.c",
380 "codecs/ilbc/filtered_cb_vecs.h",
381 "codecs/ilbc/frame_classify.c",
382 "codecs/ilbc/frame_classify.h",
383 "codecs/ilbc/gain_dequant.c",
384 "codecs/ilbc/gain_dequant.h",
385 "codecs/ilbc/gain_quant.c",
386 "codecs/ilbc/gain_quant.h",
387 "codecs/ilbc/get_cd_vec.c",
388 "codecs/ilbc/get_cd_vec.h",
389 "codecs/ilbc/get_lsp_poly.c",
390 "codecs/ilbc/get_lsp_poly.h",
391 "codecs/ilbc/get_sync_seq.c",
392 "codecs/ilbc/get_sync_seq.h",
393 "codecs/ilbc/hp_input.c",
394 "codecs/ilbc/hp_input.h",
395 "codecs/ilbc/hp_output.c",
396 "codecs/ilbc/hp_output.h",
397 "codecs/ilbc/ilbc.c",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100398 "codecs/ilbc/ilbc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000399 "codecs/ilbc/index_conv_dec.c",
400 "codecs/ilbc/index_conv_dec.h",
401 "codecs/ilbc/index_conv_enc.c",
402 "codecs/ilbc/index_conv_enc.h",
403 "codecs/ilbc/init_decode.c",
404 "codecs/ilbc/init_decode.h",
405 "codecs/ilbc/init_encode.c",
406 "codecs/ilbc/init_encode.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000407 "codecs/ilbc/interpolate.c",
408 "codecs/ilbc/interpolate.h",
409 "codecs/ilbc/interpolate_samples.c",
410 "codecs/ilbc/interpolate_samples.h",
411 "codecs/ilbc/lpc_encode.c",
412 "codecs/ilbc/lpc_encode.h",
413 "codecs/ilbc/lsf_check.c",
414 "codecs/ilbc/lsf_check.h",
415 "codecs/ilbc/lsf_interpolate_to_poly_dec.c",
416 "codecs/ilbc/lsf_interpolate_to_poly_dec.h",
417 "codecs/ilbc/lsf_interpolate_to_poly_enc.c",
418 "codecs/ilbc/lsf_interpolate_to_poly_enc.h",
419 "codecs/ilbc/lsf_to_lsp.c",
420 "codecs/ilbc/lsf_to_lsp.h",
421 "codecs/ilbc/lsf_to_poly.c",
422 "codecs/ilbc/lsf_to_poly.h",
423 "codecs/ilbc/lsp_to_lsf.c",
424 "codecs/ilbc/lsp_to_lsf.h",
425 "codecs/ilbc/my_corr.c",
426 "codecs/ilbc/my_corr.h",
427 "codecs/ilbc/nearest_neighbor.c",
428 "codecs/ilbc/nearest_neighbor.h",
429 "codecs/ilbc/pack_bits.c",
430 "codecs/ilbc/pack_bits.h",
431 "codecs/ilbc/poly_to_lsf.c",
432 "codecs/ilbc/poly_to_lsf.h",
433 "codecs/ilbc/poly_to_lsp.c",
434 "codecs/ilbc/poly_to_lsp.h",
435 "codecs/ilbc/refiner.c",
436 "codecs/ilbc/refiner.h",
437 "codecs/ilbc/simple_interpolate_lsf.c",
438 "codecs/ilbc/simple_interpolate_lsf.h",
439 "codecs/ilbc/simple_lpc_analysis.c",
440 "codecs/ilbc/simple_lpc_analysis.h",
441 "codecs/ilbc/simple_lsf_dequant.c",
442 "codecs/ilbc/simple_lsf_dequant.h",
443 "codecs/ilbc/simple_lsf_quant.c",
444 "codecs/ilbc/simple_lsf_quant.h",
445 "codecs/ilbc/smooth.c",
446 "codecs/ilbc/smooth.h",
447 "codecs/ilbc/smooth_out_data.c",
448 "codecs/ilbc/smooth_out_data.h",
449 "codecs/ilbc/sort_sq.c",
450 "codecs/ilbc/sort_sq.h",
451 "codecs/ilbc/split_vq.c",
452 "codecs/ilbc/split_vq.h",
453 "codecs/ilbc/state_construct.c",
454 "codecs/ilbc/state_construct.h",
455 "codecs/ilbc/state_search.c",
456 "codecs/ilbc/state_search.h",
457 "codecs/ilbc/swap_bytes.c",
458 "codecs/ilbc/swap_bytes.h",
459 "codecs/ilbc/unpack_bits.c",
460 "codecs/ilbc/unpack_bits.h",
461 "codecs/ilbc/vq3.c",
462 "codecs/ilbc/vq3.h",
463 "codecs/ilbc/vq4.c",
464 "codecs/ilbc/vq4.h",
465 "codecs/ilbc/window32_w32.c",
466 "codecs/ilbc/window32_w32.h",
467 "codecs/ilbc/xcorr_coef.c",
468 "codecs/ilbc/xcorr_coef.h",
469 ]
470
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700471 public_configs = [ ":ilbc_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000472
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000473 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100474 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800475 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800476 "../../api/audio_codecs:audio_codecs_api",
Henrik Lundind048aa02015-12-03 17:47:21 +0100477 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100478 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100479 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700480 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100481 "../../rtc_base:sanitizer",
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000482 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000483}
484
kjellanderb62dbbe2016-09-23 00:38:52 -0700485rtc_static_library("isac_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200486 poisonous = [ "audio_codecs" ]
kwiberg608c3cf2015-08-24 02:03:23 -0700487 sources = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100488 "codecs/isac/audio_decoder_isac_t.h",
489 "codecs/isac/audio_decoder_isac_t_impl.h",
kwiberg608c3cf2015-08-24 02:03:23 -0700490 "codecs/isac/audio_encoder_isac_t.h",
491 "codecs/isac/audio_encoder_isac_t_impl.h",
492 "codecs/isac/locked_bandwidth_info.cc",
493 "codecs/isac/locked_bandwidth_info.h",
494 ]
kjellander676e08f2016-12-07 08:23:27 -0800495 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200496 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100497 "../..:typedefs",
kwiberga6ca5182017-01-30 05:28:54 -0800498 "../..:webrtc_common",
ossua1a040a2017-04-06 10:03:21 -0700499 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100500 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700501 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200502 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -0800503 ]
kwiberg608c3cf2015-08-24 02:03:23 -0700504}
505
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000506config("isac_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200507 include_dirs = [ "codecs/isac/main/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000508}
509
kjellanderb62dbbe2016-09-23 00:38:52 -0700510rtc_static_library("isac") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100511 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200512 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000513 sources = [
kwiberga6ca5182017-01-30 05:28:54 -0800514 "codecs/isac/main/include/audio_decoder_isac.h",
515 "codecs/isac/main/include/audio_encoder_isac.h",
kjellander7439f972016-12-05 22:47:46 -0800516 "codecs/isac/main/source/audio_decoder_isac.cc",
517 "codecs/isac/main/source/audio_encoder_isac.cc",
518 ]
519
520 deps = [
kjellander7439f972016-12-05 22:47:46 -0800521 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800522 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800523 ]
524 public_deps = [
525 ":isac_c",
526 ]
527}
528
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200529rtc_source_set("isac_bwinfo") {
530 sources = [
531 "codecs/isac/bandwidth_info.h",
532 ]
533 deps = [
534 "../..:typedefs",
535 ]
536}
537
538rtc_source_set("isac_vad") {
539 visibility += webrtc_default_visibility
540 sources = [
541 "codecs/isac/main/source/filter_functions.c",
542 "codecs/isac/main/source/filter_functions.h",
543 "codecs/isac/main/source/isac_vad.c",
544 "codecs/isac/main/source/isac_vad.h",
545 "codecs/isac/main/source/os_specific_inline.h",
546 "codecs/isac/main/source/pitch_estimator.c",
547 "codecs/isac/main/source/pitch_estimator.h",
548 "codecs/isac/main/source/pitch_filter.c",
549 "codecs/isac/main/source/pitch_filter.h",
550 "codecs/isac/main/source/settings.h",
551 "codecs/isac/main/source/structs.h",
552 ]
553 deps = [
554 ":isac_bwinfo",
555 "../..:typedefs",
556 "../../rtc_base:compile_assert_c",
557 "../../rtc_base/system:ignore_warnings",
558 ]
559}
560
kjellander7439f972016-12-05 22:47:46 -0800561rtc_static_library("isac_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200562 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800563 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100564 "codecs/isac/main/include/isac.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000565 "codecs/isac/main/source/arith_routines.c",
566 "codecs/isac/main/source/arith_routines.h",
567 "codecs/isac/main/source/arith_routines_hist.c",
568 "codecs/isac/main/source/arith_routines_logist.c",
569 "codecs/isac/main/source/bandwidth_estimator.c",
570 "codecs/isac/main/source/bandwidth_estimator.h",
571 "codecs/isac/main/source/codec.h",
572 "codecs/isac/main/source/crc.c",
573 "codecs/isac/main/source/crc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000574 "codecs/isac/main/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200575 "codecs/isac/main/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000576 "codecs/isac/main/source/encode.c",
577 "codecs/isac/main/source/encode_lpc_swb.c",
578 "codecs/isac/main/source/encode_lpc_swb.h",
579 "codecs/isac/main/source/entropy_coding.c",
580 "codecs/isac/main/source/entropy_coding.h",
581 "codecs/isac/main/source/fft.c",
582 "codecs/isac/main/source/fft.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200583 "codecs/isac/main/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000584 "codecs/isac/main/source/intialize.c",
585 "codecs/isac/main/source/isac.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200586 "codecs/isac/main/source/isac_float_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000587 "codecs/isac/main/source/lattice.c",
588 "codecs/isac/main/source/lpc_analysis.c",
589 "codecs/isac/main/source/lpc_analysis.h",
590 "codecs/isac/main/source/lpc_gain_swb_tables.c",
591 "codecs/isac/main/source/lpc_gain_swb_tables.h",
592 "codecs/isac/main/source/lpc_shape_swb12_tables.c",
593 "codecs/isac/main/source/lpc_shape_swb12_tables.h",
594 "codecs/isac/main/source/lpc_shape_swb16_tables.c",
595 "codecs/isac/main/source/lpc_shape_swb16_tables.h",
596 "codecs/isac/main/source/lpc_tables.c",
597 "codecs/isac/main/source/lpc_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000598 "codecs/isac/main/source/pitch_gain_tables.c",
599 "codecs/isac/main/source/pitch_gain_tables.h",
600 "codecs/isac/main/source/pitch_lag_tables.c",
601 "codecs/isac/main/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000602 "codecs/isac/main/source/spectrum_ar_model_tables.c",
603 "codecs/isac/main/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000604 "codecs/isac/main/source/transform.c",
605 ]
606
607 if (is_linux) {
608 libs = [ "m" ]
609 }
610
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700611 public_configs = [ ":isac_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000612
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000613 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200614 ":isac_bwinfo",
615 ":isac_vad",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100616 "../..:typedefs",
aleloicfee2152016-08-29 04:09:19 -0700617 "../..:webrtc_common",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000618 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100619 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100620 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700621 "../../rtc_base:compile_assert_c",
622 "../../rtc_base:rtc_base_approved",
kwiberg@webrtc.orgb3ad8cf2014-12-11 10:08:19 +0000623 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000624}
625
626config("isac_fix_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200627 include_dirs = [ "codecs/isac/fix/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000628}
629
kjellanderb62dbbe2016-09-23 00:38:52 -0700630rtc_static_library("isac_fix") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100631 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200632 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000633 sources = [
kjellander7439f972016-12-05 22:47:46 -0800634 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
635 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
636 ]
637
638 public_configs = [ ":isac_fix_config" ]
639
640 deps = [
kjellander7439f972016-12-05 22:47:46 -0800641 ":isac_common",
kwiberg087bd342017-02-10 08:15:44 -0800642 "../../api/audio_codecs:audio_codecs_api",
kjellander7439f972016-12-05 22:47:46 -0800643 "../../common_audio",
644 "../../system_wrappers",
645 ]
646 public_deps = [
647 ":isac_fix_c",
648 ]
649
650 if (rtc_build_with_neon) {
651 deps += [ ":isac_neon" ]
652 }
653}
654
kwiberga6ca5182017-01-30 05:28:54 -0800655rtc_source_set("isac_fix_common") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200656 poisonous = [ "audio_codecs" ]
kwiberga6ca5182017-01-30 05:28:54 -0800657 sources = [
658 "codecs/isac/fix/source/codec.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100659 "codecs/isac/fix/source/entropy_coding.h",
kwiberga6ca5182017-01-30 05:28:54 -0800660 "codecs/isac/fix/source/fft.c",
661 "codecs/isac/fix/source/fft.h",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100662 "codecs/isac/fix/source/filterbank_internal.h",
kwiberga6ca5182017-01-30 05:28:54 -0800663 "codecs/isac/fix/source/settings.h",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100664 "codecs/isac/fix/source/structs.h",
Mirko Bonadei6e396b02018-04-20 13:54:53 -0700665 "codecs/isac/fix/source/transform_tables.c",
kwiberga6ca5182017-01-30 05:28:54 -0800666 ]
667 public_configs = [ ":isac_fix_config" ]
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100668 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200669 ":isac_bwinfo",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100670 "../..:typedefs",
Mirko Bonadei08973ee2018-02-01 14:12:55 +0100671 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100672 "../../common_audio:common_audio_c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100673 ]
kwiberga6ca5182017-01-30 05:28:54 -0800674}
kjellander676e08f2016-12-07 08:23:27 -0800675
mbonadei5c0d7032017-07-06 03:48:55 -0700676rtc_source_set("isac_fix_c_arm_asm") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200677 poisonous = [ "audio_codecs" ]
mbonadei5c0d7032017-07-06 03:48:55 -0700678 sources = []
679 if (current_cpu == "arm" && arm_version >= 7) {
680 sources += [
681 "codecs/isac/fix/source/lattice_armv7.S",
682 "codecs/isac/fix/source/pitch_filter_armv6.S",
683 ]
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100684 deps = [
Mirko Bonadei6ce03592018-02-22 15:10:27 +0100685 ":isac_fix_common",
Karl Wiberg7aabd392018-03-22 02:59:49 +0100686 "../../rtc_base/system:asm_defines",
Mirko Bonadeicf30d8b2018-01-30 13:36:55 +0100687 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700688 }
689}
690
kwiberga6ca5182017-01-30 05:28:54 -0800691rtc_source_set("isac_fix_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200692 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800693 sources = [
Henrik Kjellander74640892015-10-29 11:31:02 +0100694 "codecs/isac/fix/include/audio_decoder_isacfix.h",
695 "codecs/isac/fix/include/audio_encoder_isacfix.h",
696 "codecs/isac/fix/include/isacfix.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000697 "codecs/isac/fix/source/arith_routines.c",
698 "codecs/isac/fix/source/arith_routines_hist.c",
699 "codecs/isac/fix/source/arith_routines_logist.c",
700 "codecs/isac/fix/source/arith_routins.h",
701 "codecs/isac/fix/source/bandwidth_estimator.c",
702 "codecs/isac/fix/source/bandwidth_estimator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000703 "codecs/isac/fix/source/decode.c",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200704 "codecs/isac/fix/source/decode_bwe.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000705 "codecs/isac/fix/source/decode_plc.c",
706 "codecs/isac/fix/source/encode.c",
707 "codecs/isac/fix/source/entropy_coding.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000708 "codecs/isac/fix/source/filterbank_tables.c",
709 "codecs/isac/fix/source/filterbank_tables.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200710 "codecs/isac/fix/source/filterbanks.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000711 "codecs/isac/fix/source/filters.c",
712 "codecs/isac/fix/source/initialize.c",
Karl Wiberg74043682015-09-22 19:31:40 +0200713 "codecs/isac/fix/source/isac_fix_type.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000714 "codecs/isac/fix/source/isacfix.c",
715 "codecs/isac/fix/source/lattice.c",
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700716 "codecs/isac/fix/source/lattice_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000717 "codecs/isac/fix/source/lpc_masking_model.c",
718 "codecs/isac/fix/source/lpc_masking_model.h",
719 "codecs/isac/fix/source/lpc_tables.c",
720 "codecs/isac/fix/source/lpc_tables.h",
721 "codecs/isac/fix/source/pitch_estimator.c",
722 "codecs/isac/fix/source/pitch_estimator.h",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700723 "codecs/isac/fix/source/pitch_estimator_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000724 "codecs/isac/fix/source/pitch_filter.c",
Ljubomir Papuga8f85dbc2015-04-21 16:52:45 -0700725 "codecs/isac/fix/source/pitch_filter_c.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000726 "codecs/isac/fix/source/pitch_gain_tables.c",
727 "codecs/isac/fix/source/pitch_gain_tables.h",
728 "codecs/isac/fix/source/pitch_lag_tables.c",
729 "codecs/isac/fix/source/pitch_lag_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000730 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
731 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000732 "codecs/isac/fix/source/transform.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000733 ]
734
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700735 public_configs = [ ":isac_fix_config" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000736
kjellander676e08f2016-12-07 08:23:27 -0800737 deps = [
Karl Wiberg7ba22b82018-04-27 04:31:53 +0200738 ":isac_bwinfo",
kjellander676e08f2016-12-07 08:23:27 -0800739 ":isac_common",
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100740 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800741 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800742 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -0800743 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100744 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100745 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700746 "../../rtc_base:compile_assert_c",
747 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100748 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100749 "../../system_wrappers:cpu_features_api",
kjellander676e08f2016-12-07 08:23:27 -0800750 ]
751
kwiberga6ca5182017-01-30 05:28:54 -0800752 public_deps = [
753 ":isac_fix_common",
754 ]
755
mbonadeie5dc3ce2017-01-25 05:34:46 -0800756 if (rtc_build_with_neon) {
757 deps += [ ":isac_neon" ]
758 }
759
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700760 if (current_cpu == "arm" && arm_version >= 7) {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700761 sources -= [
762 "codecs/isac/fix/source/lattice_c.c",
763 "codecs/isac/fix/source/pitch_filter_c.c",
764 ]
mbonadei5c0d7032017-07-06 03:48:55 -0700765 deps += [ ":isac_fix_c_arm_asm" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000766 }
767
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000768 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000769 sources += [
770 "codecs/isac/fix/source/entropy_coding_mips.c",
771 "codecs/isac/fix/source/filters_mips.c",
772 "codecs/isac/fix/source/lattice_mips.c",
773 "codecs/isac/fix/source/pitch_estimator_mips.c",
774 "codecs/isac/fix/source/transform_mips.c",
775 ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700776 sources -= [
777 "codecs/isac/fix/source/lattice_c.c",
778 "codecs/isac/fix/source/pitch_estimator_c.c",
779 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000780 if (mips_dsp_rev > 0) {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200781 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000782 }
783 if (mips_dsp_rev > 1) {
784 sources += [
785 "codecs/isac/fix/source/lpc_masking_model_mips.c",
786 "codecs/isac/fix/source/pitch_filter_mips.c",
787 ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200788 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000789 }
790 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000791}
792
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700793if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700794 rtc_static_library("isac_neon") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200795 poisonous = [ "audio_codecs" ]
Zhongwei Yaof242e662015-05-06 16:39:17 +0800796 sources = [
797 "codecs/isac/fix/source/entropy_coding_neon.c",
Zhongwei Yaob3cc77f2015-07-28 11:17:40 +0800798 "codecs/isac/fix/source/filterbanks_neon.c",
Zhongwei Yaof242e662015-05-06 16:39:17 +0800799 "codecs/isac/fix/source/filters_neon.c",
800 "codecs/isac/fix/source/lattice_neon.c",
801 "codecs/isac/fix/source/transform_neon.c",
802 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000803
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700804 if (current_cpu != "arm64") {
805 # Enable compilation for the NEON instruction set. This is needed
806 # since //build/config/arm.gni only enables NEON for iOS, not Android.
807 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700808 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700809 cflags = [ "-mfpu=neon" ]
810 }
811
812 # Disable LTO on NEON targets due to compiler bug.
813 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000814 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000815 cflags -= [
816 "-flto",
817 "-ffat-lto-objects",
818 ]
819 }
820
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200821 deps = [
kwiberga6ca5182017-01-30 05:28:54 -0800822 ":isac_fix_common",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200823 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100824 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100825 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700826 "../../rtc_base:rtc_base_approved",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200827 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000828 }
829}
830
831config("pcm16b_config") {
Mirko Bonadei25724042017-09-18 13:09:16 +0200832 include_dirs = [ "codecs/pcm16b/include" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000833}
834
kjellanderb62dbbe2016-09-23 00:38:52 -0700835rtc_static_library("pcm16b") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +0100836 visibility += [ "*" ]
Karl Wibergbb23c832018-04-22 19:55:00 +0200837 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000838 sources = [
Karl Wibergc0ac6ca2015-09-17 07:47:34 +0200839 "codecs/pcm16b/audio_decoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100840 "codecs/pcm16b/audio_decoder_pcm16b.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200841 "codecs/pcm16b/audio_encoder_pcm16b.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100842 "codecs/pcm16b/audio_encoder_pcm16b.h",
kwiberg7ea6e592017-08-16 06:12:57 -0700843 "codecs/pcm16b/pcm16b_common.cc",
844 "codecs/pcm16b/pcm16b_common.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000845 ]
846
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000847 deps = [
848 ":g711",
kwiberg087bd342017-02-10 08:15:44 -0800849 ":legacy_encoded_audio_frame",
kjellander676e08f2016-12-07 08:23:27 -0800850 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800851 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100852 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700853 "../../rtc_base:rtc_base_approved",
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000854 ]
kjellander7439f972016-12-05 22:47:46 -0800855 public_deps = [
856 ":pcm16b_c",
857 ]
858 public_configs = [ ":pcm16b_config" ]
859}
860
861rtc_source_set("pcm16b_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200862 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800863 sources = [
864 "codecs/pcm16b/pcm16b.c",
865 "codecs/pcm16b/pcm16b.h",
866 ]
henrik.lundin@webrtc.org817e50d2014-12-11 10:47:19 +0000867
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700868 public_configs = [ ":pcm16b_config" ]
kjellander676e08f2016-12-07 08:23:27 -0800869 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100870 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800871 "../..:webrtc_common",
872 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000873}
874
kjellanderb62dbbe2016-09-23 00:38:52 -0700875rtc_static_library("webrtc_opus") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000876 visibility += webrtc_default_visibility
Karl Wibergbb23c832018-04-22 19:55:00 +0200877 poisonous = [ "audio_codecs" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000878 sources = [
Karl Wiberg0b058792015-09-15 17:28:18 +0200879 "codecs/opus/audio_decoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100880 "codecs/opus/audio_decoder_opus.h",
kwiberg@webrtc.org663fdd02014-10-29 07:28:36 +0000881 "codecs/opus/audio_encoder_opus.cc",
kjellander@webrtc.org3c652b62015-11-18 23:07:57 +0100882 "codecs/opus/audio_encoder_opus.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000883 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000884
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200885 deps = [
minyue41b9c802016-10-06 07:13:54 -0700886 ":audio_network_adaptor",
kjellander676e08f2016-12-07 08:23:27 -0800887 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -0800888 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -0700889 "../../api/audio_codecs/opus:audio_encoder_opus_config",
michaelt566d8202017-01-12 10:17:38 -0800890 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100891 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700892 "../../rtc_base:rtc_base_approved",
893 "../../rtc_base:rtc_numerics",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100894 "../../rtc_base:safe_minmax",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100895 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +0200896 "//third_party/abseil-cpp/absl/types:optional",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200897 ]
kjellander7439f972016-12-05 22:47:46 -0800898 public_deps = [
899 ":webrtc_opus_c",
kwiberge5eb7242017-08-25 03:10:50 -0700900 "../../rtc_base:protobuf_utils",
kjellander7439f972016-12-05 22:47:46 -0800901 ]
henrik.lundin@webrtc.orgc1c92912014-12-16 13:41:36 +0000902
michaelta55f0212017-02-02 07:47:19 -0800903 defines = audio_codec_defines
henrik.lundin875862c2016-11-22 02:07:54 -0800904
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000905 if (rtc_build_opus) {
kjellander7439f972016-12-05 22:47:46 -0800906 public_deps += [ rtc_opus_dir ]
907 } else if (build_with_mozilla) {
Dan Minor9c686132018-01-15 10:20:00 -0500908 include_dirs = [ "/media/libopus/include" ]
kjellander7439f972016-12-05 22:47:46 -0800909 }
910}
911
912rtc_source_set("webrtc_opus_c") {
Karl Wibergbb23c832018-04-22 19:55:00 +0200913 poisonous = [ "audio_codecs" ]
kjellander7439f972016-12-05 22:47:46 -0800914 sources = [
915 "codecs/opus/opus_inst.h",
916 "codecs/opus/opus_interface.c",
917 "codecs/opus/opus_interface.h",
918 ]
919
minyue2e03c662017-02-01 17:31:11 -0800920 defines = audio_coding_defines
921
kjellander7439f972016-12-05 22:47:46 -0800922 if (rtc_build_opus) {
tfarina702f3972015-09-25 05:57:37 -0700923 public_deps = [
924 rtc_opus_dir,
925 ]
minyue@webrtc.org7c112f32015-03-17 14:04:56 +0000926 } else if (build_with_mozilla) {
927 include_dirs = [ getenv("DIST") + "/include/opus" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000928 }
kjellander7439f972016-12-05 22:47:46 -0800929
930 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +0100931 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -0800932 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100933 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700934 "../../rtc_base:rtc_base_approved",
kjellander7439f972016-12-05 22:47:46 -0800935 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000936}
937
minyue25f6a392016-09-22 22:23:20 -0700938if (rtc_enable_protobuf) {
939 proto_library("ana_debug_dump_proto") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000940 visibility += webrtc_default_visibility
minyue25f6a392016-09-22 22:23:20 -0700941 sources = [
942 "audio_network_adaptor/debug_dump.proto",
943 ]
jbudorick58f17252017-07-26 14:49:20 -0700944 deps = [
945 ":ana_config_proto",
946 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200947 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyue25f6a392016-09-22 22:23:20 -0700948 }
minyuea1d9ad02016-10-02 14:53:37 -0700949 proto_library("ana_config_proto") {
950 sources = [
951 "audio_network_adaptor/config.proto",
952 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200953 proto_out_dir = "modules/audio_coding/audio_network_adaptor"
minyuea1d9ad02016-10-02 14:53:37 -0700954 }
minyue25f6a392016-09-22 22:23:20 -0700955}
956
eladalon1e7dd312017-09-12 04:38:25 -0700957rtc_static_library("audio_network_adaptor_config") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000958 visibility += webrtc_default_visibility
eladalon1e7dd312017-09-12 04:38:25 -0700959 sources = [
960 "audio_network_adaptor/audio_network_adaptor_config.cc",
961 "audio_network_adaptor/include/audio_network_adaptor_config.h",
962 ]
963 deps = [
Danil Chapovalovb6021232018-06-19 13:26:36 +0200964 "//third_party/abseil-cpp/absl/types:optional",
eladalon1e7dd312017-09-12 04:38:25 -0700965 ]
966}
967
minyue0d382ef2016-10-07 07:59:28 -0700968rtc_static_library("audio_network_adaptor") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000969 visibility += webrtc_default_visibility
minyue7610f852016-09-07 13:51:51 -0700970 sources = [
minyuecaa9cb22016-09-13 13:34:15 -0700971 "audio_network_adaptor/audio_network_adaptor_impl.cc",
972 "audio_network_adaptor/audio_network_adaptor_impl.h",
minyue4aec1d42016-09-21 23:01:26 -0700973 "audio_network_adaptor/bitrate_controller.cc",
974 "audio_network_adaptor/bitrate_controller.h",
minyue2e164c62016-09-14 06:47:36 -0700975 "audio_network_adaptor/channel_controller.cc",
976 "audio_network_adaptor/channel_controller.h",
minyuecaa9cb22016-09-13 13:34:15 -0700977 "audio_network_adaptor/controller.cc",
978 "audio_network_adaptor/controller.h",
979 "audio_network_adaptor/controller_manager.cc",
980 "audio_network_adaptor/controller_manager.h",
minyue25f6a392016-09-22 22:23:20 -0700981 "audio_network_adaptor/debug_dump_writer.cc",
982 "audio_network_adaptor/debug_dump_writer.h",
minyue186cd062016-09-16 05:54:39 -0700983 "audio_network_adaptor/dtx_controller.cc",
984 "audio_network_adaptor/dtx_controller.h",
minyue4b7c9522017-01-24 04:54:59 -0800985 "audio_network_adaptor/event_log_writer.cc",
986 "audio_network_adaptor/event_log_writer.h",
elad.alon6d7900d2017-03-24 04:12:56 -0700987 "audio_network_adaptor/fec_controller_plr_based.cc",
988 "audio_network_adaptor/fec_controller_plr_based.h",
989 "audio_network_adaptor/fec_controller_rplr_based.cc",
990 "audio_network_adaptor/fec_controller_rplr_based.h",
minyuee35d3292016-09-21 16:00:31 -0700991 "audio_network_adaptor/frame_length_controller.cc",
992 "audio_network_adaptor/frame_length_controller.h",
minyue7610f852016-09-07 13:51:51 -0700993 "audio_network_adaptor/include/audio_network_adaptor.h",
elad.alon326263a2017-03-29 03:16:58 -0700994 "audio_network_adaptor/util/threshold_curve.h",
minyue7610f852016-09-07 13:51:51 -0700995 ]
minyue25f6a392016-09-22 22:23:20 -0700996
eladalon1e7dd312017-09-12 04:38:25 -0700997 public_deps = [
998 ":audio_network_adaptor_config",
999 ]
1000
minyue41b9c802016-10-06 07:13:54 -07001001 deps = [
1002 "../..:webrtc_common",
ivoce1198e02017-09-08 08:13:19 -07001003 "../../api/audio_codecs:audio_codecs_api",
kjellander676e08f2016-12-07 08:23:27 -08001004 "../../common_audio",
Qingsi Wang970b0882018-02-01 11:04:46 -08001005 "../../logging:rtc_event_audio",
minyue4b7c9522017-01-24 04:54:59 -08001006 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001007 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001008 "../../rtc_base:protobuf_utils",
1009 "../../rtc_base:rtc_base_approved",
Karl Wiberg6a4d4112018-03-23 10:39:34 +01001010 "../../rtc_base/system:file_wrapper",
minyue41b9c802016-10-06 07:13:54 -07001011 "../../system_wrappers",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001012 "../../system_wrappers:field_trial_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001013 "//third_party/abseil-cpp/absl/types:optional",
minyue41b9c802016-10-06 07:13:54 -07001014 ]
1015
minyue25f6a392016-09-22 22:23:20 -07001016 if (rtc_enable_protobuf) {
minyue41b9c802016-10-06 07:13:54 -07001017 deps += [
minyuea1d9ad02016-10-02 14:53:37 -07001018 ":ana_config_proto",
minyue25f6a392016-09-22 22:23:20 -07001019 ":ana_debug_dump_proto",
1020 ]
minyue25f6a392016-09-22 22:23:20 -07001021 }
minyue4b7c9522017-01-24 04:54:59 -08001022
1023 if (!build_with_chromium && is_clang) {
1024 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1025 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1026 }
minyue7610f852016-09-07 13:51:51 -07001027}
1028
kwiberg65cb70d2017-03-03 06:16:28 -08001029rtc_source_set("neteq_decoder_enum") {
1030 sources = [
1031 "neteq/neteq_decoder_enum.cc",
1032 "neteq/neteq_decoder_enum.h",
1033 ]
1034 deps = [
1035 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001036 "../../rtc_base:rtc_base_approved",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001037 "//third_party/abseil-cpp/absl/types:optional",
kwiberg65cb70d2017-03-03 06:16:28 -08001038 ]
1039}
kjellander676e08f2016-12-07 08:23:27 -08001040
kwiberg65cb70d2017-03-03 06:16:28 -08001041rtc_static_library("neteq") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001042 visibility += webrtc_default_visibility
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001043 sources = [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001044 "neteq/accelerate.cc",
1045 "neteq/accelerate.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001046 "neteq/audio_multi_vector.cc",
1047 "neteq/audio_multi_vector.h",
1048 "neteq/audio_vector.cc",
1049 "neteq/audio_vector.h",
1050 "neteq/background_noise.cc",
1051 "neteq/background_noise.h",
1052 "neteq/buffer_level_filter.cc",
1053 "neteq/buffer_level_filter.h",
1054 "neteq/comfort_noise.cc",
1055 "neteq/comfort_noise.h",
minyue53ff70f2016-05-02 01:50:30 -07001056 "neteq/cross_correlation.cc",
1057 "neteq/cross_correlation.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001058 "neteq/decision_logic.cc",
1059 "neteq/decision_logic.h",
Henrik Lundin1ff41eb2018-06-21 12:36:28 +00001060 "neteq/decision_logic_fax.cc",
1061 "neteq/decision_logic_fax.h",
1062 "neteq/decision_logic_normal.cc",
1063 "neteq/decision_logic_normal.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001064 "neteq/decoder_database.cc",
1065 "neteq/decoder_database.h",
1066 "neteq/defines.h",
1067 "neteq/delay_manager.cc",
1068 "neteq/delay_manager.h",
1069 "neteq/delay_peak_detector.cc",
1070 "neteq/delay_peak_detector.h",
1071 "neteq/dsp_helper.cc",
1072 "neteq/dsp_helper.h",
1073 "neteq/dtmf_buffer.cc",
1074 "neteq/dtmf_buffer.h",
1075 "neteq/dtmf_tone_generator.cc",
1076 "neteq/dtmf_tone_generator.h",
1077 "neteq/expand.cc",
1078 "neteq/expand.h",
Henrik Lundin3ef3bfc2018-04-10 15:10:26 +02001079 "neteq/expand_uma_logger.cc",
1080 "neteq/expand_uma_logger.h",
Henrik Kjellander74640892015-10-29 11:31:02 +01001081 "neteq/include/neteq.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001082 "neteq/merge.cc",
1083 "neteq/merge.h",
henrik.lundin91951862016-06-08 06:43:41 -07001084 "neteq/nack_tracker.cc",
1085 "neteq/nack_tracker.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001086 "neteq/neteq.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001087 "neteq/neteq_impl.cc",
1088 "neteq/neteq_impl.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001089 "neteq/normal.cc",
1090 "neteq/normal.h",
henrik.lundin84f8cd62016-04-26 07:45:16 -07001091 "neteq/packet.cc",
1092 "neteq/packet.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001093 "neteq/packet_buffer.cc",
1094 "neteq/packet_buffer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001095 "neteq/post_decode_vad.cc",
1096 "neteq/post_decode_vad.h",
1097 "neteq/preemptive_expand.cc",
1098 "neteq/preemptive_expand.h",
1099 "neteq/random_vector.cc",
1100 "neteq/random_vector.h",
ossua70695a2016-09-22 02:06:28 -07001101 "neteq/red_payload_splitter.cc",
1102 "neteq/red_payload_splitter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001103 "neteq/rtcp.cc",
1104 "neteq/rtcp.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001105 "neteq/statistics_calculator.cc",
1106 "neteq/statistics_calculator.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001107 "neteq/sync_buffer.cc",
1108 "neteq/sync_buffer.h",
henrik.lundin8053f792016-04-22 13:21:43 -07001109 "neteq/tick_timer.cc",
1110 "neteq/tick_timer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001111 "neteq/time_stretch.cc",
1112 "neteq/time_stretch.h",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +02001113 "neteq/timestamp_scaler.cc",
1114 "neteq/timestamp_scaler.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001115 ]
1116
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001117 deps = [
kwiberg65cb70d2017-03-03 06:16:28 -08001118 ":audio_coding_module_typedefs",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001119 ":cng",
kwiberg65cb70d2017-03-03 06:16:28 -08001120 ":neteq_decoder_enum",
mbonadei1140f972017-04-26 03:38:35 -07001121 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001122 "../..:typedefs",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +00001123 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001124 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001125 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001126 "../../api/audio_codecs:audio_codecs_api",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001127 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01001128 "../../common_audio:common_audio_c",
Jonas Olssonabbe8412018-04-03 13:40:05 +02001129 "../../rtc_base:audio_format_to_string",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001130 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001131 "../../rtc_base:gtest_prod",
1132 "../../rtc_base:rtc_base_approved",
Karl Wiberg12edf4c2018-03-07 14:18:56 +01001133 "../../rtc_base:safe_minmax",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001134 "../../rtc_base:sanitizer",
Karl Wiberg80ba3332018-02-05 10:33:35 +01001135 "../../rtc_base/system:fallthrough",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001136 "../../system_wrappers:field_trial_api",
1137 "../../system_wrappers:metrics_api",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001138 "//third_party/abseil-cpp/absl/types:optional",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +00001139 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001140}
kjellanderfb114242016-06-13 00:19:48 -07001141
henrik.lundin58466f62016-10-05 02:27:42 -07001142# Although providing only test support, this target must be outside of the
1143# rtc_include_tests conditional. The reason is that it supports fuzzer tests
1144# that ultimately are built and run as a part of the Chromium ecosystem, which
1145# does not set the rtc_include_tests flag.
henrik.lundinb637a942017-04-28 00:59:45 -07001146rtc_source_set("neteq_tools_minimal") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001147 visibility += webrtc_default_visibility
henrik.lundin58466f62016-10-05 02:27:42 -07001148 sources = [
henrik.lundinb637a942017-04-28 00:59:45 -07001149 "neteq/tools/audio_sink.cc",
1150 "neteq/tools/audio_sink.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001151 "neteq/tools/encode_neteq_input.cc",
1152 "neteq/tools/encode_neteq_input.h",
henrik.lundin7a38fd22017-04-28 01:35:53 -07001153 "neteq/tools/neteq_input.cc",
henrik.lundinb637a942017-04-28 00:59:45 -07001154 "neteq/tools/neteq_input.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001155 "neteq/tools/neteq_test.cc",
1156 "neteq/tools/neteq_test.h",
henrik.lundinb637a942017-04-28 00:59:45 -07001157 "neteq/tools/packet.cc",
1158 "neteq/tools/packet.h",
1159 "neteq/tools/packet_source.cc",
1160 "neteq/tools/packet_source.h",
henrik.lundin58466f62016-10-05 02:27:42 -07001161 ]
1162
kjellandere40a7ee2016-10-16 23:56:12 -07001163 if (!build_with_chromium && is_clang) {
1164 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
henrik.lundin58466f62016-10-05 02:27:42 -07001165 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1166 }
kjellander676e08f2016-12-07 08:23:27 -08001167
1168 deps = [
kjellander676e08f2016-12-07 08:23:27 -08001169 ":neteq",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001170 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001171 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +01001172 "../../api:libjingle_peerconnection_api",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001173 "../../api/audio:audio_frame_api",
ossueb1fde42017-05-02 06:46:30 -07001174 "../../api/audio_codecs:audio_codecs_api",
kwiberg087bd342017-02-10 08:15:44 -08001175 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001176 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001177 "../../rtc_base:rtc_base_approved",
henrik.lundinb637a942017-04-28 00:59:45 -07001178 "../rtp_rtcp",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001179 "//third_party/abseil-cpp/absl/types:optional",
kjellander676e08f2016-12-07 08:23:27 -08001180 ]
henrik.lundin58466f62016-10-05 02:27:42 -07001181}
1182
mbonadei3edccb92017-06-01 04:47:20 -07001183rtc_source_set("neteq_test_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001184 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001185 testonly = true
1186 sources = [
1187 "neteq/tools/audio_checksum.h",
1188 "neteq/tools/audio_loop.cc",
1189 "neteq/tools/audio_loop.h",
1190 "neteq/tools/constant_pcm_packet_source.cc",
1191 "neteq/tools/constant_pcm_packet_source.h",
1192 "neteq/tools/output_audio_file.h",
1193 "neteq/tools/output_wav_file.h",
1194 "neteq/tools/rtp_file_source.cc",
1195 "neteq/tools/rtp_file_source.h",
1196 "neteq/tools/rtp_generator.cc",
1197 "neteq/tools/rtp_generator.h",
1198 ]
1199
1200 public_configs = [ ":neteq_tools_config" ]
1201
1202 if (!build_with_chromium && is_clang) {
1203 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1204 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1205 }
1206
1207 deps = [
1208 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001209 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001210 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001211 "../../api:array_view",
Patrik Höglund3e113432017-12-15 14:40:10 +01001212 "../../api:libjingle_peerconnection_api",
mbonadei3edccb92017-06-01 04:47:20 -07001213 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001214 "../../rtc_base:checks",
Joachim Bauch4e909192017-12-19 22:27:51 +01001215 "../../rtc_base:rtc_base",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001216 "../../rtc_base:rtc_base_approved",
1217 "../../rtc_base:rtc_base_tests_utils",
mbonadei3edccb92017-06-01 04:47:20 -07001218 "../../test:rtp_test_utils",
1219 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001220 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001221 ]
1222
1223 public_deps = [
1224 ":neteq_tools",
1225 ":neteq_tools_minimal",
1226 ]
1227
1228 if (rtc_enable_protobuf) {
1229 sources += [
1230 "neteq/tools/neteq_packet_source_input.cc",
1231 "neteq/tools/neteq_packet_source_input.h",
1232 ]
1233 deps += [ ":rtc_event_log_source" ]
1234 }
1235}
1236
1237config("neteq_tools_config") {
1238 include_dirs = [ "tools" ]
1239}
1240
1241rtc_source_set("neteq_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001242 visibility += webrtc_default_visibility
mbonadei3edccb92017-06-01 04:47:20 -07001243 sources = [
1244 "neteq/tools/fake_decode_from_file.cc",
1245 "neteq/tools/fake_decode_from_file.h",
henrik.lundin3c938fc2017-06-14 06:09:58 -07001246 "neteq/tools/neteq_delay_analyzer.cc",
1247 "neteq/tools/neteq_delay_analyzer.h",
mbonadei3edccb92017-06-01 04:47:20 -07001248 "neteq/tools/neteq_replacement_input.cc",
1249 "neteq/tools/neteq_replacement_input.h",
Minyue Li2b415da2018-04-16 14:33:53 +02001250 "neteq/tools/neteq_stats_getter.cc",
1251 "neteq/tools/neteq_stats_getter.h",
mbonadei3edccb92017-06-01 04:47:20 -07001252 ]
1253
1254 public_configs = [ ":neteq_tools_config" ]
1255
1256 if (!build_with_chromium && is_clang) {
1257 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1258 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1259 }
1260
1261 deps = [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001262 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001263 "../..:typedefs",
mbonadei3edccb92017-06-01 04:47:20 -07001264 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -07001265 "../../api:array_view",
mbonadei3edccb92017-06-01 04:47:20 -07001266 "../../api/audio_codecs:audio_codecs_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001267 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001268 "../../rtc_base:rtc_base_approved",
mbonadei3edccb92017-06-01 04:47:20 -07001269 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001270 "../rtp_rtcp:rtp_rtcp_format",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001271 "//third_party/abseil-cpp/absl/types:optional",
mbonadei3edccb92017-06-01 04:47:20 -07001272 ]
1273
1274 public_deps = [
Ivo Creusen385b10b2017-10-13 12:37:27 +02001275 ":neteq_input_audio_tools",
mbonadei3edccb92017-06-01 04:47:20 -07001276 ":neteq_tools_minimal",
1277 ]
1278}
1279
Ivo Creusen385b10b2017-10-13 12:37:27 +02001280rtc_source_set("neteq_input_audio_tools") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001281 visibility += webrtc_default_visibility
Ivo Creusen385b10b2017-10-13 12:37:27 +02001282 sources = [
1283 "neteq/tools/input_audio_file.cc",
1284 "neteq/tools/input_audio_file.h",
1285 "neteq/tools/resample_input_audio_file.cc",
1286 "neteq/tools/resample_input_audio_file.h",
1287 ]
1288
1289 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001290 "../..:typedefs",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001291 "../..:webrtc_common",
1292 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001293 "../../rtc_base:checks",
Ivo Creusen385b10b2017-10-13 12:37:27 +02001294 "../../rtc_base:rtc_base_approved",
1295 ]
1296}
1297
mbonadei3edccb92017-06-01 04:47:20 -07001298if (rtc_enable_protobuf) {
1299 rtc_static_library("rtc_event_log_source") {
1300 testonly = true
1301
mbonadei3edccb92017-06-01 04:47:20 -07001302 sources = [
1303 "neteq/tools/rtc_event_log_source.cc",
1304 "neteq/tools/rtc_event_log_source.h",
1305 ]
1306
1307 if (!build_with_chromium && is_clang) {
1308 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1309 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1310 }
1311
1312 deps = [
Patrik Höglundebe62402017-11-24 13:51:52 +01001313 ":neteq_tools_minimal",
mbonadei3edccb92017-06-01 04:47:20 -07001314 "../../logging:rtc_event_log_parser",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001315 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001316 "../../rtc_base:rtc_base_approved",
Mirko Bonadei818d9102017-12-12 12:46:13 +01001317 "../rtp_rtcp",
Mirko Bonadeib5728d92017-12-06 07:51:33 +01001318 "../rtp_rtcp:rtp_rtcp_format",
mbonadei3edccb92017-06-01 04:47:20 -07001319 ]
1320 public_deps = [
1321 "../../logging:rtc_event_log_proto",
1322 ]
1323 }
1324}
1325
kjellanderfb114242016-06-13 00:19:48 -07001326if (rtc_include_tests) {
Patrik Höglundb960e412018-01-05 11:46:26 +01001327 rtc_source_set("mocks") {
1328 testonly = true
1329 sources = [
1330 "audio_network_adaptor/mock/mock_audio_network_adaptor.h",
1331 "audio_network_adaptor/mock/mock_controller.h",
1332 "audio_network_adaptor/mock/mock_controller_manager.h",
1333 "audio_network_adaptor/mock/mock_debug_dump_writer.h",
1334 ]
1335 deps = [
1336 ":audio_network_adaptor",
1337 "../../test:test_support",
1338 ]
1339 }
1340
kjellander6ceab082016-10-28 05:44:03 -07001341 group("audio_coding_tests") {
Per Kjellandera7f2d842018-01-10 15:54:53 +00001342 visibility += webrtc_default_visibility
kjellander6ceab082016-10-28 05:44:03 -07001343 testonly = true
1344 public_deps = [
kjellander6ceab082016-10-28 05:44:03 -07001345 ":acm_receive_test",
1346 ":acm_send_test",
kjellander6ceab082016-10-28 05:44:03 -07001347 ":audio_codec_speed_tests",
1348 ":audio_decoder_unittests",
1349 ":audio_decoder_unittests",
1350 ":delay_test",
1351 ":g711_test",
1352 ":g722_test",
1353 ":ilbc_test",
kjellander6ceab082016-10-28 05:44:03 -07001354 ":isac_api_test",
1355 ":isac_fix_test",
1356 ":isac_switch_samprate_test",
1357 ":isac_test",
1358 ":neteq_ilbc_quality_test",
1359 ":neteq_isac_quality_test",
1360 ":neteq_opus_quality_test",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001361 ":neteq_pcm16b_quality_test",
kjellander6ceab082016-10-28 05:44:03 -07001362 ":neteq_pcmu_quality_test",
1363 ":neteq_speed_test",
1364 ":rtp_analyze",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001365 ":rtp_encode",
Henrik Lundin81af4142017-11-24 13:39:39 +01001366 ":rtp_jitter",
kjellander6ceab082016-10-28 05:44:03 -07001367 ":rtpcat",
1368 ":webrtc_opus_fec_test",
1369 ]
1370 if (rtc_enable_protobuf) {
1371 public_deps += [ ":neteq_rtpplay" ]
1372 }
1373 }
1374
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001375 rtc_source_set("audio_coding_modules_tests") {
1376 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001377 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001378
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001379 sources = [
henrik.lundina8e2c632017-05-11 07:18:06 -07001380 "test/ACMTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001381 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001382 "test/Channel.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001383 "test/EncodeDecodeTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001384 "test/EncodeDecodeTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001385 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001386 "test/PCMFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001387 "test/PacketLossTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001388 "test/PacketLossTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001389 "test/RTPFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001390 "test/RTPFile.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001391 "test/TestAllCodecs.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001392 "test/TestAllCodecs.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001393 "test/TestRedFec.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001394 "test/TestRedFec.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001395 "test/TestStereo.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001396 "test/TestStereo.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001397 "test/TestVADDTX.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001398 "test/TestVADDTX.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001399 "test/Tester.cc",
1400 "test/TwoWayCommunication.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001401 "test/TwoWayCommunication.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001402 "test/iSACTest.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001403 "test/iSACTest.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001404 "test/opus_test.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001405 "test/opus_test.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001406 "test/target_delay_unittest.cc",
1407 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001408 "test/utility.h",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001409 ]
1410 deps = [
1411 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001412 ":audio_coding_module_typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001413 ":audio_format_conversion",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001414 ":pcm16b_c",
mbonadei1140f972017-04-26 03:38:35 -07001415 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001416 "../..:typedefs",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001417 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001418 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001419 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001420 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001421 "../../rtc_base:rtc_base_approved",
Karl Wiberg2b857922018-03-23 14:53:54 +01001422 "../../rtc_base/synchronization:rw_lock_wrapper",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001423 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001424 "../../test:fileutils",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001425 "../../test:test_support",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001426 "//third_party/abseil-cpp/absl/types:optional",
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001427 ]
1428 defines = audio_coding_defines
ehmaldonado9cbb0a12017-01-30 03:07:03 -08001429 if (!build_with_chromium && is_clang) {
1430 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1431 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1432 }
1433 }
1434
ehmaldonado021eef32017-01-05 07:09:50 -08001435 rtc_source_set("audio_coding_perf_tests") {
1436 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00001437 visibility += webrtc_default_visibility
kjellandere0629c02017-04-25 04:04:50 -07001438
ehmaldonado021eef32017-01-05 07:09:50 -08001439 sources = [
1440 "codecs/opus/opus_complexity_unittest.cc",
1441 "neteq/test/neteq_performance_unittest.cc",
1442 ]
1443 deps = [
1444 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001445 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001446 "../..:typedefs",
ehmaldonado021eef32017-01-05 07:09:50 -08001447 "../..:webrtc_common",
Karl Wiberg7275e182017-10-25 09:57:40 +02001448 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001449 "../../rtc_base:protobuf_utils",
1450 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001451 "../../system_wrappers",
1452 "../../system_wrappers:field_trial_api",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001453 "../../test:fileutils",
Edward Lemure66572b2018-01-05 15:34:09 +01001454 "../../test:perf_test",
ehmaldonado021eef32017-01-05 07:09:50 -08001455 "../../test:test_support",
1456 ]
mbonadei7c2c8432017-04-07 00:59:12 -07001457
ehmaldonado021eef32017-01-05 07:09:50 -08001458 if (!build_with_chromium && is_clang) {
1459 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1460 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1461 }
1462 }
1463
ehmaldonado38a21322016-09-02 04:10:34 -07001464 rtc_source_set("acm_receive_test") {
kjellanderfb114242016-06-13 00:19:48 -07001465 testonly = true
1466 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001467 "acm2/acm_receive_test.cc",
1468 "acm2/acm_receive_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001469 ]
1470
kjellanderfb114242016-06-13 00:19:48 -07001471 defines = audio_coding_defines
1472
1473 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001474 "..:module_api",
kjellanderfb114242016-06-13 00:19:48 -07001475 ":audio_coding",
kjellander676e08f2016-12-07 08:23:27 -08001476 ":audio_format_conversion",
kwiberg087bd342017-02-10 08:15:44 -08001477 "../../api/audio_codecs:audio_codecs_api",
1478 "../../api/audio_codecs:builtin_audio_decoder_factory",
henrik.lundinb637a942017-04-28 00:59:45 -07001479 ":neteq_tools",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001480 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001481 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001482 "//testing/gtest",
1483 ]
1484 }
1485
ehmaldonado38a21322016-09-02 04:10:34 -07001486 rtc_source_set("acm_send_test") {
kjellanderfb114242016-06-13 00:19:48 -07001487 testonly = true
1488 sources = [
henrik.lundin2504c0a2016-10-06 01:31:32 -07001489 "acm2/acm_send_test.cc",
1490 "acm2/acm_send_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001491 ]
1492
kjellanderfb114242016-06-13 00:19:48 -07001493 defines = audio_coding_defines
1494
1495 deps = audio_coding_deps + [
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001496 "../../api/audio:audio_frame_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001497 "../../rtc_base:checks",
kjellanderfb114242016-06-13 00:19:48 -07001498 ":audio_coding",
henrik.lundinb637a942017-04-28 00:59:45 -07001499 ":neteq_tools",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001500 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07001501 "../../api/audio_codecs:audio_codecs_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001502 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001503 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001504 "//testing/gtest",
1505 ]
1506 }
1507
ehmaldonado38a21322016-09-02 04:10:34 -07001508 rtc_executable("delay_test") {
aleloi333f2062016-07-28 01:21:29 -07001509 testonly = true
1510 sources = [
1511 "test/Channel.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001512 "test/Channel.h",
aleloi333f2062016-07-28 01:21:29 -07001513 "test/PCMFile.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001514 "test/PCMFile.h",
aleloi333f2062016-07-28 01:21:29 -07001515 "test/delay_test.cc",
1516 "test/utility.cc",
henrik.lundina8e2c632017-05-11 07:18:06 -07001517 "test/utility.h",
aleloi333f2062016-07-28 01:21:29 -07001518 ]
1519
aleloi333f2062016-07-28 01:21:29 -07001520 deps = [
1521 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08001522 ":audio_coding_module_typedefs",
kwibergda2bf4e2016-10-24 13:47:09 -07001523 ":audio_format_conversion",
mbonadei1140f972017-04-26 03:38:35 -07001524 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001525 "../..:typedefs",
aleloi333f2062016-07-28 01:21:29 -07001526 "../../:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001527 "../../api/audio:audio_frame_api",
Karl Wiberg5817d3d2018-04-06 10:06:42 +02001528 "../../api/audio_codecs:builtin_audio_decoder_factory",
Danil Chapovalov8aba6b42018-04-17 10:10:57 +02001529 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001530 "../../rtc_base:rtc_base_approved",
aleloi333f2062016-07-28 01:21:29 -07001531 "../../system_wrappers",
1532 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001533 "../../test:fileutils",
aleloi333f2062016-07-28 01:21:29 -07001534 "../../test:test_support",
1535 "../rtp_rtcp",
1536 "//testing/gtest",
Danil Chapovalovb6021232018-06-19 13:26:36 +02001537 "//third_party/abseil-cpp/absl/types:optional",
aleloi333f2062016-07-28 01:21:29 -07001538 ]
1539 } # delay_test
1540
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001541 audio_decoder_unittests_resources =
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001542 [ "../../resources/audio_coding/testfile32kHz.pcm" ]
kjellander32c4a202016-08-30 02:53:49 -07001543
1544 if (is_ios) {
1545 bundle_data("audio_decoder_unittests_bundle_data") {
1546 testonly = true
1547 sources = audio_decoder_unittests_resources
1548 outputs = [
1549 "{{bundle_resources_dir}}/{{source_file_part}}",
1550 ]
1551 }
1552 }
1553
ehmaldonado38a21322016-09-02 04:10:34 -07001554 rtc_test("audio_decoder_unittests") {
charujainddf3e4a2016-08-01 07:49:42 -07001555 testonly = true
1556 sources = [
1557 "neteq/audio_decoder_unittest.cc",
1558 ]
1559
kjellandere40a7ee2016-10-16 23:56:12 -07001560 if (!build_with_chromium && is_clang) {
1561 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001562 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
charujainddf3e4a2016-08-01 07:49:42 -07001563 }
1564
Patrik Höglund7696bef2018-03-15 15:05:39 +01001565 deps = [
1566 "../../test:fileutils",
1567 ]
charujainddf3e4a2016-08-01 07:49:42 -07001568
1569 defines = neteq_defines
1570
1571 deps += audio_coding_deps
1572 deps += [
ehmaldonado87b8e9f2017-02-07 06:26:29 -08001573 ":ilbc",
charujainddf3e4a2016-08-01 07:49:42 -07001574 ":isac",
1575 ":isac_fix",
1576 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001577 ":neteq_tools",
kwiberg087bd342017-02-10 08:15:44 -08001578 "../../api/audio_codecs:audio_codecs_api",
kwiberg96da0112017-06-30 04:23:22 -07001579 "../../api/audio_codecs/opus:audio_encoder_opus",
kjellander6ceab082016-10-28 05:44:03 -07001580 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001581 "../../rtc_base:protobuf_utils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001582 "../../test:test_main",
charujainddf3e4a2016-08-01 07:49:42 -07001583 "//testing/gtest",
1584 ]
1585
ehmaldonado3a7f35b2016-09-14 05:10:01 -07001586 data = audio_decoder_unittests_resources
1587
charujainddf3e4a2016-08-01 07:49:42 -07001588 if (is_android) {
1589 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001590 shard_timeout = 900
charujainddf3e4a2016-08-01 07:49:42 -07001591 }
kjellander32c4a202016-08-30 02:53:49 -07001592 if (is_ios) {
1593 deps += [ ":audio_decoder_unittests_bundle_data" ]
charujainddf3e4a2016-08-01 07:49:42 -07001594 }
1595 } # audio_decoder_unittests
1596
kjellanderfb114242016-06-13 00:19:48 -07001597 if (rtc_enable_protobuf) {
1598 proto_library("neteq_unittest_proto") {
1599 sources = [
1600 "neteq/neteq_unittest.proto",
1601 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001602 proto_out_dir = "modules/audio_coding/neteq"
kjellanderfb114242016-06-13 00:19:48 -07001603 }
henrik.lundin03153f12016-06-21 05:38:42 -07001604
ehmaldonado38a21322016-09-02 04:10:34 -07001605 rtc_test("neteq_rtpplay") {
henrik.lundin03153f12016-06-21 05:38:42 -07001606 testonly = true
1607 defines = []
mbonadei1140f972017-04-26 03:38:35 -07001608 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001609 "../..:typedefs",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001610 "../../rtc_base:checks",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001611 "../../test:fileutils",
mbonadei1140f972017-04-26 03:38:35 -07001612 ]
henrik.lundin03153f12016-06-21 05:38:42 -07001613 sources = [
1614 "neteq/tools/neteq_rtpplay.cc",
1615 ]
1616
kjellandere40a7ee2016-10-16 23:56:12 -07001617 if (!build_with_chromium && is_clang) {
1618 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001619 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
henrik.lundin03153f12016-06-21 05:38:42 -07001620 }
1621
henrik.lundin03153f12016-06-21 05:38:42 -07001622 deps += [
1623 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001624 ":neteq_test_tools",
kjellander676e08f2016-12-07 08:23:27 -08001625 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001626 "../../rtc_base:rtc_base_approved",
henrik.lundin03153f12016-06-21 05:38:42 -07001627 "../../system_wrappers:system_wrappers_default",
1628 "../../test:test_support",
henrik.lundin03153f12016-06-21 05:38:42 -07001629 ]
1630 }
kjellanderfb114242016-06-13 00:19:48 -07001631 }
1632
minyue81f1da32017-07-27 05:49:57 -07001633 audio_codec_speed_tests_resources = [
1634 "//resources/audio_coding/music_stereo_48kHz.pcm",
1635 "//resources/audio_coding/speech_mono_16kHz.pcm",
1636 "//resources/audio_coding/speech_mono_32_48kHz.pcm",
1637 ]
1638
1639 if (is_ios) {
1640 bundle_data("audio_codec_speed_tests_data") {
1641 testonly = true
1642 sources = audio_codec_speed_tests_resources
1643 outputs = [
1644 "{{bundle_resources_dir}}/{{source_file_part}}",
1645 ]
1646 }
1647 }
1648
ehmaldonado38a21322016-09-02 04:10:34 -07001649 rtc_test("audio_codec_speed_tests") {
aleloie6b60a42016-07-28 02:34:30 -07001650 testonly = true
1651 defines = []
Patrik Höglund3e113432017-12-15 14:40:10 +01001652 deps = [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001653 "../..:typedefs",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001654 "../../test:fileutils",
Patrik Höglund3e113432017-12-15 14:40:10 +01001655 ]
aleloie6b60a42016-07-28 02:34:30 -07001656 sources = [
1657 "codecs/isac/fix/test/isac_speed_test.cc",
1658 "codecs/opus/opus_speed_test.cc",
1659 "codecs/tools/audio_codec_speed_test.cc",
1660 "codecs/tools/audio_codec_speed_test.h",
1661 ]
1662
kjellandere40a7ee2016-10-16 23:56:12 -07001663 if (!build_with_chromium && is_clang) {
1664 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001665 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloie6b60a42016-07-28 02:34:30 -07001666 }
1667
minyue81f1da32017-07-27 05:49:57 -07001668 data = audio_codec_speed_tests_resources
1669
aleloie6b60a42016-07-28 02:34:30 -07001670 if (is_android) {
1671 deps += [ "//testing/android/native_test:native_test_native_code" ]
sakal714dd4e2016-08-15 02:29:11 -07001672 shard_timeout = 900
aleloie6b60a42016-07-28 02:34:30 -07001673 }
1674
minyue81f1da32017-07-27 05:49:57 -07001675 if (is_ios) {
1676 deps += [ ":audio_codec_speed_tests_data" ]
1677 }
1678
aleloie6b60a42016-07-28 02:34:30 -07001679 deps += [
1680 ":isac_fix",
1681 ":webrtc_opus",
kjellander676e08f2016-12-07 08:23:27 -08001682 "../..:webrtc_common",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001683 "../../api:libjingle_peerconnection_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001684 "../../rtc_base:rtc_base_approved",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001685 "../../system_wrappers:metrics_default",
aleloie6b60a42016-07-28 02:34:30 -07001686 "../../system_wrappers:system_wrappers_default",
Stefan Holmer1acbd682017-09-01 15:29:28 +02001687 "../../test:field_trial",
ehmaldonado26bddb92016-11-30 06:12:01 -08001688 "../../test:test_main",
kjellander6ceab082016-10-28 05:44:03 -07001689 "../audio_processing",
aleloie6b60a42016-07-28 02:34:30 -07001690 "//testing/gtest",
1691 ]
1692 }
1693
ehmaldonado38a21322016-09-02 04:10:34 -07001694 rtc_source_set("neteq_test_support") {
kjellanderfb114242016-06-13 00:19:48 -07001695 testonly = true
1696 sources = [
1697 "neteq/tools/neteq_external_decoder_test.cc",
1698 "neteq/tools/neteq_external_decoder_test.h",
1699 "neteq/tools/neteq_performance_test.cc",
1700 "neteq/tools/neteq_performance_test.h",
kjellanderfb114242016-06-13 00:19:48 -07001701 ]
1702
kjellandere40a7ee2016-10-16 23:56:12 -07001703 if (!build_with_chromium && is_clang) {
1704 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001705 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellanderfb114242016-06-13 00:19:48 -07001706 }
1707
1708 deps = [
1709 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001710 ":neteq_test_tools",
kjellanderfb114242016-06-13 00:19:48 -07001711 ":pcm16b",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001712 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001713 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001714 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08001715 "../../api/audio_codecs:audio_codecs_api",
1716 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001717 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001718 "../../rtc_base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -08001719 "../../system_wrappers",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001720 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001721 "../../test:test_support",
kjellanderfb114242016-06-13 00:19:48 -07001722 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -07001723 ]
1724 }
1725
ehmaldonado38a21322016-09-02 04:10:34 -07001726 rtc_source_set("neteq_quality_test_support") {
ehmaldonado861da3c2016-08-19 07:02:24 -07001727 testonly = true
1728 sources = [
1729 "neteq/tools/neteq_quality_test.cc",
1730 "neteq/tools/neteq_quality_test.h",
1731 ]
1732
kjellandere40a7ee2016-10-16 23:56:12 -07001733 if (!build_with_chromium && is_clang) {
1734 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001735 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ehmaldonado861da3c2016-08-19 07:02:24 -07001736 }
1737
1738 deps = [
1739 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001740 ":neteq_test_tools",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001741 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001742 "../..:webrtc_common",
kwiberg087bd342017-02-10 08:15:44 -08001743 "../../api/audio_codecs:builtin_audio_decoder_factory",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001744 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001745 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001746 "../../test:fileutils",
kjellander676e08f2016-12-07 08:23:27 -08001747 "../../test:test_support",
ehmaldonado6c46eaa2016-08-22 09:48:02 -07001748 "//testing/gtest",
ehmaldonado861da3c2016-08-19 07:02:24 -07001749 ]
1750 }
1751
Henrik Lundin1391bd42017-11-24 09:28:57 +01001752 rtc_executable("rtp_encode") {
aleloi82667732016-08-02 01:45:50 -07001753 testonly = true
1754
Henrik Lundin1391bd42017-11-24 09:28:57 +01001755 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001756 "../..:typedefs",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001757 ":audio_coding",
1758 ":neteq_input_audio_tools",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02001759 "../../api/audio:audio_frame_api",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001760 "../../api/audio_codecs/g711:audio_encoder_g711",
1761 "../../api/audio_codecs/L16:audio_encoder_L16",
1762 "../../api/audio_codecs/g722:audio_encoder_g722",
1763 "../../api/audio_codecs/ilbc:audio_encoder_ilbc",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001764 "../../system_wrappers:system_wrappers_default",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001765 "../../api/audio_codecs/isac:audio_encoder_isac",
1766 "../../api/audio_codecs/opus:audio_encoder_opus",
1767 "../../rtc_base:rtc_base_approved",
Henrik Lundin1391bd42017-11-24 09:28:57 +01001768 ]
aleloi82667732016-08-02 01:45:50 -07001769
1770 sources = [
Henrik Lundin1391bd42017-11-24 09:28:57 +01001771 "neteq/tools/rtp_encode.cc",
aleloi82667732016-08-02 01:45:50 -07001772 ]
1773
Henrik Lundin1391bd42017-11-24 09:28:57 +01001774 defines = audio_coding_defines
aleloi82667732016-08-02 01:45:50 -07001775 }
1776
Henrik Lundin81af4142017-11-24 13:39:39 +01001777 rtc_executable("rtp_jitter") {
aleloi76cbe192016-08-02 02:05:03 -07001778 testonly = true
1779
Henrik Lundin81af4142017-11-24 13:39:39 +01001780 deps = audio_coding_deps + [
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001781 "../..:typedefs",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01001782 "../../system_wrappers:system_wrappers_default",
Henrik Lundin81af4142017-11-24 13:39:39 +01001783 "../rtp_rtcp:rtp_rtcp_format",
1784 "../../api:array_view",
1785 "../../rtc_base:rtc_base_approved",
Henrik Lundin81af4142017-11-24 13:39:39 +01001786 ]
1787
aleloi76cbe192016-08-02 02:05:03 -07001788 sources = [
Henrik Lundin81af4142017-11-24 13:39:39 +01001789 "neteq/tools/rtp_jitter.cc",
aleloi76cbe192016-08-02 02:05:03 -07001790 ]
1791
Henrik Lundin81af4142017-11-24 13:39:39 +01001792 defines = audio_coding_defines
aleloi76cbe192016-08-02 02:05:03 -07001793 }
1794
ehmaldonado38a21322016-09-02 04:10:34 -07001795 rtc_executable("rtpcat") {
aleloi5556dcb2016-08-02 04:27:25 -07001796 testonly = true
1797
1798 sources = [
1799 "neteq/tools/rtpcat.cc",
1800 ]
1801
1802 deps = [
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001803 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001804 "../../rtc_base:rtc_base_approved",
aleloi5556dcb2016-08-02 04:27:25 -07001805 "../../system_wrappers:system_wrappers_default",
1806 "../../test:rtp_test_utils",
1807 "//testing/gtest",
1808 ]
1809 }
1810
ehmaldonado38a21322016-09-02 04:10:34 -07001811 rtc_executable("rtp_analyze") {
aleloi47bded42016-07-26 06:46:19 -07001812 testonly = true
1813
1814 sources = [
1815 "neteq/tools/rtp_analyze.cc",
1816 ]
1817
1818 deps = [
1819 ":neteq",
henrik.lundinb637a942017-04-28 00:59:45 -07001820 ":neteq_test_tools",
aleloi47bded42016-07-26 06:46:19 -07001821 ":pcm16b",
oprypin6e09d872017-08-31 03:21:39 -07001822 "../../rtc_base:rtc_base_approved",
aleloi47bded42016-07-26 06:46:19 -07001823 "../../system_wrappers:system_wrappers_default",
1824 "//testing/gtest",
aleloi47bded42016-07-26 06:46:19 -07001825 ]
1826
kjellandere40a7ee2016-10-16 23:56:12 -07001827 if (!build_with_chromium && is_clang) {
1828 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07001829 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
aleloi47bded42016-07-26 06:46:19 -07001830 }
1831 }
aleloi630c6d52016-08-10 02:11:30 -07001832
ehmaldonado38a21322016-09-02 04:10:34 -07001833 rtc_executable("neteq_opus_quality_test") {
aleloi630c6d52016-08-10 02:11:30 -07001834 testonly = true
1835
1836 sources = [
1837 "neteq/test/neteq_opus_quality_test.cc",
1838 ]
1839
1840 deps = [
1841 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001842 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001843 ":neteq_tools",
aleloi630c6d52016-08-10 02:11:30 -07001844 ":webrtc_opus",
oprypin9b2f20c2017-08-29 05:51:57 -07001845 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001846 "../../test:test_main",
aleloi630c6d52016-08-10 02:11:30 -07001847 "//testing/gtest",
aleloi630c6d52016-08-10 02:11:30 -07001848 ]
aleloi630c6d52016-08-10 02:11:30 -07001849 }
aleloi116fd612016-08-10 04:16:36 -07001850
ehmaldonado38a21322016-09-02 04:10:34 -07001851 rtc_executable("neteq_speed_test") {
aleloi116fd612016-08-10 04:16:36 -07001852 testonly = true
1853
1854 sources = [
1855 "neteq/test/neteq_speed_test.cc",
1856 ]
1857
1858 deps = [
1859 ":neteq",
1860 ":neteq_test_support",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001861 "../..:typedefs",
kjellander676e08f2016-12-07 08:23:27 -08001862 "../..:webrtc_common",
oprypin6e09d872017-08-31 03:21:39 -07001863 "../../rtc_base:rtc_base_approved",
aleloi116fd612016-08-10 04:16:36 -07001864 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001865 "../../test:fileutils",
aleloi116fd612016-08-10 04:16:36 -07001866 "../../test:test_support",
aleloi116fd612016-08-10 04:16:36 -07001867 ]
1868 }
aleloi63910122016-08-10 04:41:14 -07001869
ehmaldonado38a21322016-09-02 04:10:34 -07001870 rtc_executable("neteq_ilbc_quality_test") {
aleloi0e0be0a2016-08-10 04:55:20 -07001871 testonly = true
1872
1873 sources = [
1874 "neteq/test/neteq_ilbc_quality_test.cc",
1875 ]
1876
1877 deps = [
1878 ":ilbc",
1879 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001880 ":neteq_quality_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07001881 ":neteq_tools",
kjellander676e08f2016-12-07 08:23:27 -08001882 "../..:webrtc_common",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001883 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001884 "../../rtc_base:rtc_base_approved",
aleloi0e0be0a2016-08-10 04:55:20 -07001885 "../../system_wrappers:system_wrappers_default",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001886 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001887 "../../test:test_main",
aleloi0e0be0a2016-08-10 04:55:20 -07001888 "//testing/gtest",
aleloi0e0be0a2016-08-10 04:55:20 -07001889 ]
1890 }
aleloi6df36dc2016-08-10 05:04:47 -07001891
ehmaldonado38a21322016-09-02 04:10:34 -07001892 rtc_executable("neteq_isac_quality_test") {
aleloi6df36dc2016-08-10 05:04:47 -07001893 testonly = true
1894
1895 sources = [
1896 "neteq/test/neteq_isac_quality_test.cc",
1897 ]
1898
1899 deps = [
1900 ":isac_fix",
1901 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001902 ":neteq_quality_test_support",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001903 "../../rtc_base:rtc_base_approved",
ehmaldonado26bddb92016-11-30 06:12:01 -08001904 "../../test:test_main",
aleloi6df36dc2016-08-10 05:04:47 -07001905 "//testing/gtest",
aleloi6df36dc2016-08-10 05:04:47 -07001906 ]
1907 }
aleloic4ac7002016-08-10 05:06:27 -07001908
ehmaldonado38a21322016-09-02 04:10:34 -07001909 rtc_executable("neteq_pcmu_quality_test") {
aleloic4ac7002016-08-10 05:06:27 -07001910 testonly = true
1911
1912 sources = [
1913 "neteq/test/neteq_pcmu_quality_test.cc",
1914 ]
1915
1916 deps = [
1917 ":g711",
1918 ":neteq",
ehmaldonado861da3c2016-08-19 07:02:24 -07001919 ":neteq_quality_test_support",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01001920 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001921 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001922 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08001923 "../../test:test_main",
aleloic4ac7002016-08-10 05:06:27 -07001924 "//testing/gtest",
aleloic4ac7002016-08-10 05:06:27 -07001925 ]
1926 }
aleloib7186d02016-08-16 01:47:16 -07001927
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001928 rtc_executable("neteq_pcm16b_quality_test") {
1929 testonly = true
1930
1931 sources = [
1932 "neteq/test/neteq_pcm16b_quality_test.cc",
1933 ]
1934
1935 deps = [
1936 ":neteq",
1937 ":neteq_quality_test_support",
1938 ":pcm16b",
1939 "../../rtc_base:checks",
1940 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01001941 "../../test:fileutils",
Alex Narest7ef9a0b2018-02-02 17:21:46 +01001942 "../../test:test_main",
1943 "//testing/gtest",
1944 ]
1945 }
1946
ehmaldonado38a21322016-09-02 04:10:34 -07001947 rtc_executable("isac_fix_test") {
aleloib7186d02016-08-16 01:47:16 -07001948 testonly = true
1949
1950 sources = [
1951 "codecs/isac/fix/test/kenny.cc",
1952 ]
1953
1954 deps = [
1955 ":isac_fix",
Edward Lemure66572b2018-01-05 15:34:09 +01001956 "../../test:perf_test",
aleloib7186d02016-08-16 01:47:16 -07001957 "../../test:test_support",
1958 ]
1959
ehmaldonado25586ce2017-09-07 23:18:35 -07001960 data = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +02001961 "../../resources/speech_and_misc_wb.pcm",
ehmaldonado25586ce2017-09-07 23:18:35 -07001962 ]
aleloib7186d02016-08-16 01:47:16 -07001963 }
aleloi16f55a12016-08-23 08:08:23 -07001964
kjellander7439f972016-12-05 22:47:46 -08001965 rtc_source_set("isac_test_util") {
1966 testonly = true
1967 sources = [
1968 "codecs/isac/main/util/utility.c",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01001969 "codecs/isac/main/util/utility.h",
kjellander7439f972016-12-05 22:47:46 -08001970 ]
1971 }
1972
ehmaldonado38a21322016-09-02 04:10:34 -07001973 rtc_executable("isac_test") {
ivoce51b41a2016-08-24 02:25:57 -07001974 testonly = true
1975
1976 sources = [
1977 "codecs/isac/main/test/simpleKenny.c",
ivoce51b41a2016-08-24 02:25:57 -07001978 ]
1979
1980 include_dirs = [
1981 "codecs/isac/main/include",
1982 "codecs/isac/main/test",
1983 "codecs/isac/main/util",
1984 ]
1985
1986 deps = [
1987 ":isac",
kjellander7439f972016-12-05 22:47:46 -08001988 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07001989 "../../rtc_base:rtc_base_approved",
ivoce51b41a2016-08-24 02:25:57 -07001990 ]
ivoce51b41a2016-08-24 02:25:57 -07001991 }
1992
ehmaldonado38a21322016-09-02 04:10:34 -07001993 rtc_executable("g711_test") {
aleloi16f55a12016-08-23 08:08:23 -07001994 testonly = true
1995
1996 sources = [
1997 "codecs/g711/test/testG711.cc",
1998 ]
1999
aleloi16f55a12016-08-23 08:08:23 -07002000 deps = [
2001 ":g711",
2002 ]
2003 }
aleloi9a117842016-08-23 08:36:10 -07002004
ehmaldonado38a21322016-09-02 04:10:34 -07002005 rtc_executable("g722_test") {
aleloi9a117842016-08-23 08:36:10 -07002006 testonly = true
2007
2008 sources = [
2009 "codecs/g722/test/testG722.cc",
2010 ]
2011
aleloi9a117842016-08-23 08:36:10 -07002012 deps = [
2013 ":g722",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002014 "../..:typedefs",
aleloi9a117842016-08-23 08:36:10 -07002015 "../..:webrtc_common",
2016 ]
2017 }
ivoc2c670db2016-08-24 06:11:18 -07002018
ehmaldonado38a21322016-09-02 04:10:34 -07002019 rtc_executable("isac_api_test") {
aleloicfee2152016-08-29 04:09:19 -07002020 testonly = true
2021
2022 sources = [
2023 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
aleloicfee2152016-08-29 04:09:19 -07002024 ]
2025
aleloicfee2152016-08-29 04:09:19 -07002026 deps = [
2027 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002028 ":isac_test_util",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002029 "../../rtc_base:rtc_base_approved",
aleloicfee2152016-08-29 04:09:19 -07002030 ]
2031
2032 include_dirs = [
2033 "codecs/isac/main/include",
2034 "codecs/isac/main/test",
2035 "codecs/isac/main/util",
2036 ]
2037 }
2038
ehmaldonado38a21322016-09-02 04:10:34 -07002039 rtc_executable("isac_switch_samprate_test") {
aleloicfee2152016-08-29 04:09:19 -07002040 testonly = true
2041
2042 sources = [
2043 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
aleloicfee2152016-08-29 04:09:19 -07002044 ]
2045
aleloicfee2152016-08-29 04:09:19 -07002046 deps = [
2047 ":isac",
kjellander7439f972016-12-05 22:47:46 -08002048 ":isac_test_util",
Mirko Bonadei08973ee2018-02-01 14:12:55 +01002049 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002050 "../../common_audio:common_audio_c",
aleloicfee2152016-08-29 04:09:19 -07002051 ]
2052
2053 include_dirs = [
2054 "codecs/isac/main/include",
2055 "codecs/isac/main/test",
2056 "codecs/isac/main/util",
2057 "../../common_audio/signal_processing/include",
2058 ]
2059 }
2060
ehmaldonado38a21322016-09-02 04:10:34 -07002061 rtc_executable("ilbc_test") {
aleloicfee2152016-08-29 04:09:19 -07002062 testonly = true
2063
2064 sources = [
2065 "codecs/ilbc/test/iLBC_test.c",
2066 ]
2067
aleloicfee2152016-08-29 04:09:19 -07002068 deps = [
2069 ":ilbc",
aleloicfee2152016-08-29 04:09:19 -07002070 ]
2071 }
2072
ehmaldonado38a21322016-09-02 04:10:34 -07002073 rtc_executable("webrtc_opus_fec_test") {
ivoc2c670db2016-08-24 06:11:18 -07002074 testonly = true
2075
2076 sources = [
2077 "codecs/opus/opus_fec_test.cc",
2078 ]
2079
2080 deps = [
2081 ":webrtc_opus",
ivoc2c670db2016-08-24 06:11:18 -07002082 "../../common_audio",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002083 "../../rtc_base:rtc_base_approved",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002084 "../../test:fileutils",
ehmaldonado26bddb92016-11-30 06:12:01 -08002085 "../../test:test_main",
ivoc2c670db2016-08-24 06:11:18 -07002086 "//testing/gtest",
2087 ]
2088
kjellandere40a7ee2016-10-16 23:56:12 -07002089 if (!build_with_chromium && is_clang) {
2090 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -07002091 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
ivoc2c670db2016-08-24 06:11:18 -07002092 }
2093 }
ehmaldonado36268652017-01-19 08:27:11 -08002094
2095 rtc_source_set("audio_coding_unittests") {
2096 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +00002097 visibility += webrtc_default_visibility
ehmaldonado36268652017-01-19 08:27:11 -08002098
2099 sources = [
2100 "acm2/acm_receiver_unittest.cc",
2101 "acm2/audio_coding_module_unittest.cc",
2102 "acm2/call_statistics_unittest.cc",
2103 "acm2/codec_manager_unittest.cc",
2104 "acm2/rent_a_codec_unittest.cc",
2105 "audio_network_adaptor/audio_network_adaptor_impl_unittest.cc",
2106 "audio_network_adaptor/bitrate_controller_unittest.cc",
2107 "audio_network_adaptor/channel_controller_unittest.cc",
2108 "audio_network_adaptor/controller_manager_unittest.cc",
2109 "audio_network_adaptor/dtx_controller_unittest.cc",
minyue4b7c9522017-01-24 04:54:59 -08002110 "audio_network_adaptor/event_log_writer_unittest.cc",
elad.alon6d7900d2017-03-24 04:12:56 -07002111 "audio_network_adaptor/fec_controller_plr_based_unittest.cc",
2112 "audio_network_adaptor/fec_controller_rplr_based_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002113 "audio_network_adaptor/frame_length_controller_unittest.cc",
elad.alon326263a2017-03-29 03:16:58 -07002114 "audio_network_adaptor/util/threshold_curve_unittest.cc",
kwiberg087bd342017-02-10 08:15:44 -08002115 "codecs/builtin_audio_decoder_factory_unittest.cc",
ossua1a040a2017-04-06 10:03:21 -07002116 "codecs/builtin_audio_encoder_factory_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002117 "codecs/cng/audio_encoder_cng_unittest.cc",
2118 "codecs/cng/cng_unittest.cc",
2119 "codecs/ilbc/ilbc_unittest.cc",
2120 "codecs/isac/fix/source/filterbanks_unittest.cc",
2121 "codecs/isac/fix/source/filters_unittest.cc",
2122 "codecs/isac/fix/source/lpc_masking_model_unittest.cc",
2123 "codecs/isac/fix/source/transform_unittest.cc",
2124 "codecs/isac/main/source/audio_encoder_isac_unittest.cc",
2125 "codecs/isac/main/source/isac_unittest.cc",
2126 "codecs/isac/unittest.cc",
2127 "codecs/legacy_encoded_audio_frame_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002128 "codecs/opus/audio_encoder_opus_unittest.cc",
Alex Luebseeb27652017-11-20 11:13:56 -08002129 "codecs/opus/opus_bandwidth_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002130 "codecs/opus/opus_unittest.cc",
2131 "codecs/red/audio_encoder_copy_red_unittest.cc",
2132 "neteq/audio_multi_vector_unittest.cc",
2133 "neteq/audio_vector_unittest.cc",
2134 "neteq/background_noise_unittest.cc",
2135 "neteq/buffer_level_filter_unittest.cc",
2136 "neteq/comfort_noise_unittest.cc",
2137 "neteq/decision_logic_unittest.cc",
2138 "neteq/decoder_database_unittest.cc",
2139 "neteq/delay_manager_unittest.cc",
2140 "neteq/delay_peak_detector_unittest.cc",
2141 "neteq/dsp_helper_unittest.cc",
2142 "neteq/dtmf_buffer_unittest.cc",
2143 "neteq/dtmf_tone_generator_unittest.cc",
2144 "neteq/expand_unittest.cc",
2145 "neteq/merge_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002146 "neteq/mock/mock_buffer_level_filter.h",
2147 "neteq/mock/mock_decoder_database.h",
2148 "neteq/mock/mock_delay_manager.h",
2149 "neteq/mock/mock_delay_peak_detector.h",
2150 "neteq/mock/mock_dtmf_buffer.h",
2151 "neteq/mock/mock_dtmf_tone_generator.h",
2152 "neteq/mock/mock_expand.h",
2153 "neteq/mock/mock_external_decoder_pcm16b.h",
2154 "neteq/mock/mock_packet_buffer.h",
2155 "neteq/mock/mock_red_payload_splitter.h",
minyue-webrtcfae474c2017-07-05 11:17:40 +02002156 "neteq/mock/mock_statistics_calculator.h",
ehmaldonado36268652017-01-19 08:27:11 -08002157 "neteq/nack_tracker_unittest.cc",
2158 "neteq/neteq_external_decoder_unittest.cc",
2159 "neteq/neteq_impl_unittest.cc",
2160 "neteq/neteq_network_stats_unittest.cc",
2161 "neteq/neteq_stereo_unittest.cc",
2162 "neteq/neteq_unittest.cc",
2163 "neteq/normal_unittest.cc",
2164 "neteq/packet_buffer_unittest.cc",
2165 "neteq/post_decode_vad_unittest.cc",
2166 "neteq/random_vector_unittest.cc",
2167 "neteq/red_payload_splitter_unittest.cc",
Henrik Lundinac0a5032017-09-25 12:22:46 +02002168 "neteq/statistics_calculator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -08002169 "neteq/sync_buffer_unittest.cc",
2170 "neteq/tick_timer_unittest.cc",
2171 "neteq/time_stretch_unittest.cc",
2172 "neteq/timestamp_scaler_unittest.cc",
2173 "neteq/tools/input_audio_file_unittest.cc",
2174 "neteq/tools/packet_unittest.cc",
2175 ]
2176
2177 deps = [
2178 ":acm_receive_test",
2179 ":acm_send_test",
2180 ":audio_coding",
kwiberg65cb70d2017-03-03 06:16:28 -08002181 ":audio_coding_module_typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002182 ":audio_format_conversion",
2183 ":audio_network_adaptor",
ehmaldonado36268652017-01-19 08:27:11 -08002184 ":cng",
2185 ":g711",
2186 ":ilbc",
kwiberga6ca5182017-01-30 05:28:54 -08002187 ":isac",
ehmaldonado36268652017-01-19 08:27:11 -08002188 ":isac_c",
2189 ":isac_fix",
kwiberg087bd342017-02-10 08:15:44 -08002190 ":legacy_encoded_audio_frame",
Patrik Höglundb960e412018-01-05 11:46:26 +01002191 ":mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002192 ":neteq",
2193 ":neteq_test_support",
henrik.lundinb637a942017-04-28 00:59:45 -07002194 ":neteq_test_tools",
ehmaldonado36268652017-01-19 08:27:11 -08002195 ":pcm16b",
2196 ":red",
2197 ":rent_a_codec",
2198 ":webrtc_opus",
mbonadei1140f972017-04-26 03:38:35 -07002199 "..:module_api",
Patrik Höglund91fedfb2018-01-02 11:49:48 +01002200 "../..:typedefs",
ehmaldonado36268652017-01-19 08:27:11 -08002201 "../..:webrtc_common",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +02002202 "../../api/audio:audio_frame_api",
kwiberg087bd342017-02-10 08:15:44 -08002203 "../../api/audio_codecs:audio_codecs_api",
2204 "../../api/audio_codecs:builtin_audio_decoder_factory",
ossueb1fde42017-05-02 06:46:30 -07002205 "../../api/audio_codecs:builtin_audio_encoder_factory",
Alex Luebseeb27652017-11-20 11:13:56 -08002206 "../../api/audio_codecs/opus:audio_decoder_opus",
Karl Wiberg7275e182017-10-25 09:57:40 +02002207 "../../api/audio_codecs/opus:audio_encoder_opus",
ehmaldonado36268652017-01-19 08:27:11 -08002208 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +01002209 "../../common_audio:common_audio_c",
charujain9a451162017-09-15 03:51:34 -07002210 "../../common_audio:mock_common_audio",
Patrik Höglund731082c2018-01-03 09:08:20 +01002211 "../../logging:mocks",
Qingsi Wang970b0882018-02-01 11:04:46 -08002212 "../../logging:rtc_event_audio",
Elad Alon4a87e1c2017-10-03 16:11:34 +02002213 "../../logging:rtc_event_log_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002214 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -07002215 "../../rtc_base:protobuf_utils",
2216 "../../rtc_base:rtc_base",
2217 "../../rtc_base:rtc_base_approved",
2218 "../../rtc_base:rtc_base_tests_utils",
Patrik Höglunda8005cf2017-12-13 16:05:42 +01002219 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +01002220 "../../system_wrappers",
2221 "../../system_wrappers:cpu_features_api",
kwiberg37e99fd2017-04-10 05:15:48 -07002222 "../../test:audio_codec_mocks",
ehmaldonado36268652017-01-19 08:27:11 -08002223 "../../test:field_trial",
Patrik Höglund7696bef2018-03-15 15:05:39 +01002224 "../../test:fileutils",
ehmaldonado36268652017-01-19 08:27:11 -08002225 "../../test:rtp_test_utils",
2226 "../../test:test_common",
2227 "../../test:test_support",
ehmaldonado36268652017-01-19 08:27:11 -08002228 "//testing/gtest",
ehmaldonado36268652017-01-19 08:27:11 -08002229 ]
2230
2231 defines = audio_coding_defines
2232
2233 if (rtc_enable_protobuf) {
minyue-webrtc7ed35f42017-06-13 11:49:29 +02002234 defines += [ "WEBRTC_NETEQ_UNITTEST_BITEXACT" ]
ehmaldonado36268652017-01-19 08:27:11 -08002235 deps += [
2236 ":ana_config_proto",
2237 ":neteq_unittest_proto",
2238 ]
2239 }
2240
2241 if (!build_with_chromium && is_clang) {
2242 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
2243 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
2244 }
2245 }
kjellanderfb114242016-06-13 00:19:48 -07002246}
kwiberg087bd342017-02-10 08:15:44 -08002247
2248# For backwards compatibility only! Use
2249# webrtc/api/audio_codecs:audio_codecs_api instead.
2250# TODO(kwiberg): Remove this.
2251rtc_source_set("audio_decoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002252 visibility += [ "*" ]
kwiberg087bd342017-02-10 08:15:44 -08002253 sources = [
2254 "codecs/audio_decoder.h",
2255 ]
2256 deps = [
2257 "../../api/audio_codecs:audio_codecs_api",
2258 ]
2259}
2260
2261# For backwards compatibility only! Use
ossueb1fde42017-05-02 06:46:30 -07002262# webrtc/api/audio_codecs:audio_codecs_api instead.
2263# TODO(ossu): Remove this.
2264rtc_source_set("audio_encoder_interface") {
Karl Wiberg1a8fffb2017-12-12 10:41:29 +01002265 visibility += [ "*" ]
ossueb1fde42017-05-02 06:46:30 -07002266 sources = [
2267 "codecs/audio_encoder.h",
2268 ]
2269 deps = [
2270 "../../api/audio_codecs:audio_codecs_api",
2271 ]
2272}