kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # 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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../../webrtc.gni") |
Kimmo Kinnunen | 08f6a6c | 2019-02-26 11:46:17 +0200 | [diff] [blame] | 10 | if (rtc_enable_protobuf) { |
Dan Minor | 9c68613 | 2018-01-15 10:20:00 -0500 | [diff] [blame] | 11 | import("//third_party/protobuf/proto_library.gni") |
| 12 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 13 | |
Patrik Höglund | d75c8dc | 2017-12-19 09:45:24 +0100 | [diff] [blame] | 14 | config("apm_debug_dump") { |
| 15 | if (apm_debug_dump) { |
| 16 | defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
| 17 | } else { |
| 18 | defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
| 19 | } |
| 20 | } |
| 21 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 22 | rtc_library("config") { |
Alessio Bazzica | 277b6ea | 2018-11-06 14:24:51 +0100 | [diff] [blame] | 23 | visibility = [ ":*" ] |
| 24 | sources = [ |
| 25 | "include/config.cc", |
| 26 | "include/config.h", |
| 27 | ] |
| 28 | deps = [ |
| 29 | "../../rtc_base:macromagic", |
| 30 | "../../rtc_base/system:rtc_export", |
| 31 | ] |
| 32 | } |
| 33 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 34 | rtc_library("api") { |
Alessio Bazzica | 277b6ea | 2018-11-06 14:24:51 +0100 | [diff] [blame] | 35 | visibility = [ "*" ] |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 36 | sources = [ |
| 37 | "include/audio_processing.cc", |
| 38 | "include/audio_processing.h", |
| 39 | ] |
| 40 | deps = [ |
| 41 | ":audio_frame_view", |
| 42 | ":audio_generator_interface", |
| 43 | ":audio_processing_statistics", |
| 44 | ":config", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 45 | "../../api:scoped_refptr", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 46 | "../../api/audio:aec3_config", |
| 47 | "../../api/audio:echo_control", |
| 48 | "../../rtc_base:deprecation", |
| 49 | "../../rtc_base:macromagic", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 50 | "../../rtc_base:rtc_base_approved", |
Per Åhgren | fcbe407 | 2019-09-15 00:27:58 +0200 | [diff] [blame] | 51 | "../../rtc_base/system:arch", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 52 | "../../rtc_base/system:rtc_export", |
Sam Zackrisson | 41478c7 | 2019-10-15 10:10:26 +0200 | [diff] [blame] | 53 | "agc:gain_control_interface", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 54 | "//third_party/abseil-cpp/absl/types:optional", |
| 55 | ] |
Alessio Bazzica | 277b6ea | 2018-11-06 14:24:51 +0100 | [diff] [blame] | 56 | } |
| 57 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 58 | rtc_library("audio_buffer") { |
Per Åhgren | 44ce4b4 | 2019-03-05 08:40:48 +0100 | [diff] [blame] | 59 | visibility = [ "*" ] |
Per Åhgren | 200feba | 2019-03-06 04:16:46 +0100 | [diff] [blame] | 60 | |
| 61 | configs += [ ":apm_debug_dump" ] |
| 62 | |
Per Åhgren | 44ce4b4 | 2019-03-05 08:40:48 +0100 | [diff] [blame] | 63 | sources = [ |
Per Åhgren | 200feba | 2019-03-06 04:16:46 +0100 | [diff] [blame] | 64 | "audio_buffer.cc", |
| 65 | "audio_buffer.h", |
| 66 | "splitting_filter.cc", |
| 67 | "splitting_filter.h", |
| 68 | "three_band_filter_bank.cc", |
| 69 | "three_band_filter_bank.h", |
| 70 | ] |
| 71 | |
| 72 | defines = [] |
| 73 | |
| 74 | deps = [ |
| 75 | ":api", |
| 76 | "../../api/audio:audio_frame_api", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 77 | "../../common_audio", |
Per Åhgren | 200feba | 2019-03-06 04:16:46 +0100 | [diff] [blame] | 78 | "../../common_audio:common_audio_c", |
| 79 | "../../rtc_base:checks", |
Per Åhgren | 44ce4b4 | 2019-03-05 08:40:48 +0100 | [diff] [blame] | 80 | ] |
| 81 | } |
| 82 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 83 | rtc_library("high_pass_filter") { |
Per Åhgren | 0aefbf0 | 2019-08-23 21:29:17 +0200 | [diff] [blame] | 84 | visibility = [ "*" ] |
| 85 | |
| 86 | sources = [ |
| 87 | "high_pass_filter.cc", |
| 88 | "high_pass_filter.h", |
| 89 | ] |
| 90 | |
| 91 | defines = [] |
| 92 | |
| 93 | deps = [ |
| 94 | ":audio_buffer", |
| 95 | "../../api:array_view", |
| 96 | "../../rtc_base:checks", |
| 97 | "utility:cascaded_biquad_filter", |
| 98 | ] |
| 99 | } |
| 100 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 101 | rtc_library("audio_processing") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 102 | visibility = [ "*" ] |
Patrik Höglund | d75c8dc | 2017-12-19 09:45:24 +0100 | [diff] [blame] | 103 | configs += [ ":apm_debug_dump" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 104 | sources = [ |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 105 | "audio_processing_impl.cc", |
| 106 | "audio_processing_impl.h", |
| 107 | "common.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 108 | "echo_control_mobile_impl.cc", |
| 109 | "echo_control_mobile_impl.h", |
ivoc | af27ed0 | 2016-10-28 07:04:03 -0700 | [diff] [blame] | 110 | "echo_detector/circular_buffer.cc", |
| 111 | "echo_detector/circular_buffer.h", |
| 112 | "echo_detector/mean_variance_estimator.cc", |
| 113 | "echo_detector/mean_variance_estimator.h", |
ivoc | 4e477a1 | 2017-01-15 08:29:46 -0800 | [diff] [blame] | 114 | "echo_detector/moving_max.cc", |
| 115 | "echo_detector/moving_max.h", |
ivoc | af27ed0 | 2016-10-28 07:04:03 -0700 | [diff] [blame] | 116 | "echo_detector/normalized_covariance_estimator.cc", |
| 117 | "echo_detector/normalized_covariance_estimator.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 118 | "gain_control_impl.cc", |
| 119 | "gain_control_impl.h", |
Alex Loiko | e36e8bb | 2018-02-16 11:54:07 +0100 | [diff] [blame] | 120 | "gain_controller2.cc", |
| 121 | "gain_controller2.h", |
Alex Loiko | 1aec594 | 2018-05-15 13:13:22 +0200 | [diff] [blame] | 122 | "include/aec_dump.cc", |
| 123 | "include/aec_dump.h", |
saza | 6787f23 | 2019-10-11 19:31:07 +0200 | [diff] [blame] | 124 | "level_estimator.cc", |
| 125 | "level_estimator.h", |
peah | 737f4b8 | 2016-03-10 23:05:28 -0800 | [diff] [blame] | 126 | "render_queue_item_verifier.h", |
ivoc | 9f4a4a0 | 2016-10-28 05:39:16 -0700 | [diff] [blame] | 127 | "residual_echo_detector.cc", |
| 128 | "residual_echo_detector.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 129 | "rms_level.cc", |
| 130 | "rms_level.h", |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 131 | "transient/common.h", |
| 132 | "transient/daubechies_8_wavelet_coeffs.h", |
| 133 | "transient/dyadic_decimator.h", |
| 134 | "transient/moving_moments.cc", |
| 135 | "transient/moving_moments.h", |
| 136 | "transient/transient_detector.cc", |
| 137 | "transient/transient_detector.h", |
| 138 | "transient/transient_suppressor.cc", |
| 139 | "transient/transient_suppressor.h", |
| 140 | "transient/wpd_node.cc", |
| 141 | "transient/wpd_node.h", |
| 142 | "transient/wpd_tree.cc", |
| 143 | "transient/wpd_tree.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 144 | "typing_detection.cc", |
| 145 | "typing_detection.h", |
Sam Zackrisson | 0824c6f | 2019-10-07 14:03:56 +0200 | [diff] [blame] | 146 | "voice_detection.cc", |
| 147 | "voice_detection.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 148 | ] |
| 149 | |
| 150 | defines = [] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 151 | deps = [ |
Alessio Bazzica | 277b6ea | 2018-11-06 14:24:51 +0100 | [diff] [blame] | 152 | ":api", |
Patrik Höglund | e6ffc42 | 2017-12-11 10:28:16 +0100 | [diff] [blame] | 153 | ":apm_logging", |
Per Åhgren | 44ce4b4 | 2019-03-05 08:40:48 +0100 | [diff] [blame] | 154 | ":audio_buffer", |
Alex Loiko | e36e8bb | 2018-02-16 11:54:07 +0100 | [diff] [blame] | 155 | ":audio_frame_view", |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 156 | ":audio_generator_interface", |
Ivo Creusen | 56d4609 | 2017-11-24 17:29:59 +0100 | [diff] [blame] | 157 | ":audio_processing_statistics", |
Alessio Bazzica | 277b6ea | 2018-11-06 14:24:51 +0100 | [diff] [blame] | 158 | ":config", |
Per Åhgren | 0aefbf0 | 2019-08-23 21:29:17 +0200 | [diff] [blame] | 159 | ":high_pass_filter", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 160 | "../../api:array_view", |
Artem Titov | 741daaf | 2019-03-21 14:37:36 +0100 | [diff] [blame] | 161 | "../../api:function_view", |
Gustaf Ullberg | 2ae140a | 2018-02-16 13:43:49 +0100 | [diff] [blame] | 162 | "../../api/audio:aec3_config", |
Fredrik Solenberg | bbf21a3 | 2018-04-12 22:44:09 +0200 | [diff] [blame] | 163 | "../../api/audio:audio_frame_api", |
Gustaf Ullberg | 2ae140a | 2018-02-16 13:43:49 +0100 | [diff] [blame] | 164 | "../../api/audio:echo_control", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 165 | "../../audio/utility:audio_frame_operations", |
Mirko Bonadei | dbbb33c | 2018-02-05 15:50:41 +0100 | [diff] [blame] | 166 | "../../common_audio:common_audio_c", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 167 | "../../common_audio/third_party/fft4g", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 168 | "../../rtc_base:checks", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 169 | "../../rtc_base:deprecation", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 170 | "../../rtc_base:gtest_prod", |
Mirko Bonadei | 3663ed3 | 2019-10-19 12:03:23 +0200 | [diff] [blame] | 171 | "../../rtc_base:ignore_wundef", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 172 | "../../rtc_base:safe_minmax", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 173 | "../../rtc_base:sanitizer", |
Mirko Bonadei | 3d25530 | 2018-10-11 10:50:45 +0200 | [diff] [blame] | 174 | "../../rtc_base/system:rtc_export", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 175 | "../../system_wrappers:cpu_features_api", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 176 | "../../system_wrappers:field_trial", |
| 177 | "../../system_wrappers:metrics", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 178 | "aec3", |
Sam Zackrisson | 7219d05 | 2018-07-09 14:28:15 +0200 | [diff] [blame] | 179 | "aecm:aecm_core", |
Alex Loiko | ed8ff64 | 2018-07-06 14:54:30 +0200 | [diff] [blame] | 180 | "agc", |
| 181 | "agc:agc_legacy_c", |
Sam Zackrisson | 41478c7 | 2019-10-15 10:10:26 +0200 | [diff] [blame] | 182 | "agc:gain_control_interface", |
Alex Loiko | 2bac896 | 2018-03-27 13:38:36 +0200 | [diff] [blame] | 183 | "agc2:adaptive_digital", |
| 184 | "agc2:fixed_digital", |
Alex Loiko | b5c9a79 | 2018-04-16 16:31:22 +0200 | [diff] [blame] | 185 | "agc2:gain_applier", |
Per Åhgren | 95059e0 | 2019-12-13 15:05:48 +0100 | [diff] [blame] | 186 | "legacy_ns:legacy_ns", |
| 187 | "legacy_ns:legacy_ns_c", |
Per Åhgren | 0cbb58e | 2019-10-29 22:59:44 +0100 | [diff] [blame] | 188 | "ns", |
Alex Loiko | 0488fcf | 2018-02-05 11:15:23 +0100 | [diff] [blame] | 189 | "vad", |
Danil Chapovalov | db9f7ab | 2018-06-19 10:50:11 +0200 | [diff] [blame] | 190 | "//third_party/abseil-cpp/absl/types:optional", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 191 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 192 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 193 | deps += [ |
| 194 | "../../common_audio", |
Patrik Höglund | f715c53 | 2017-11-17 11:04:15 +0100 | [diff] [blame] | 195 | "../../common_audio:fir_filter", |
| 196 | "../../common_audio:fir_filter_factory", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 197 | "../../rtc_base:rtc_base_approved", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 198 | "../../system_wrappers", |
| 199 | ] |
| 200 | } |
| 201 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 202 | rtc_library("audio_processing_statistics") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 203 | visibility = [ "*" ] |
Ivo Creusen | 56d4609 | 2017-11-24 17:29:59 +0100 | [diff] [blame] | 204 | sources = [ |
| 205 | "include/audio_processing_statistics.cc", |
| 206 | "include/audio_processing_statistics.h", |
| 207 | ] |
| 208 | deps = [ |
Mirko Bonadei | 3d25530 | 2018-10-11 10:50:45 +0200 | [diff] [blame] | 209 | "../../rtc_base/system:rtc_export", |
Danil Chapovalov | db9f7ab | 2018-06-19 10:50:11 +0200 | [diff] [blame] | 210 | "//third_party/abseil-cpp/absl/types:optional", |
Ivo Creusen | 56d4609 | 2017-11-24 17:29:59 +0100 | [diff] [blame] | 211 | ] |
| 212 | } |
| 213 | |
Alex Loiko | e36e8bb | 2018-02-16 11:54:07 +0100 | [diff] [blame] | 214 | rtc_source_set("audio_frame_view") { |
Mirko Bonadei | ccbe95f | 2020-01-21 12:10:10 +0100 | [diff] [blame] | 215 | sources = [ "include/audio_frame_view.h" ] |
| 216 | deps = [ "../../api:array_view" ] |
Alex Loiko | e36e8bb | 2018-02-16 11:54:07 +0100 | [diff] [blame] | 217 | } |
| 218 | |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 219 | rtc_source_set("audio_generator_interface") { |
| 220 | visibility = [ "*" ] |
Mirko Bonadei | ccbe95f | 2020-01-21 12:10:10 +0100 | [diff] [blame] | 221 | sources = [ "include/audio_generator.h" ] |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 222 | deps = [ |
| 223 | ":audio_frame_view", |
| 224 | "../../rtc_base:rtc_base_approved", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 225 | "../../system_wrappers", |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 226 | ] |
| 227 | } |
| 228 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 229 | rtc_library("audio_generator_factory") { |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 230 | visibility = [ "*" ] |
Niels Möller | 74cebb3 | 2019-07-30 11:55:36 +0200 | [diff] [blame] | 231 | testonly = true |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 232 | sources = [ |
| 233 | "include/audio_generator_factory.cc", |
| 234 | "include/audio_generator_factory.h", |
| 235 | ] |
| 236 | deps = [ |
| 237 | ":audio_generator_interface", |
| 238 | ":file_audio_generator", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 239 | "../../common_audio", |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 240 | "../../rtc_base:rtc_base_approved", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 241 | "../../system_wrappers", |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 242 | ] |
| 243 | } |
| 244 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 245 | rtc_library("file_audio_generator") { |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 246 | sources = [ |
| 247 | "audio_generator/file_audio_generator.cc", |
| 248 | "audio_generator/file_audio_generator.h", |
| 249 | ] |
| 250 | deps = [ |
| 251 | ":audio_generator_interface", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 252 | "../../common_audio", |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 253 | "../../rtc_base:rtc_base_approved", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 254 | "../../system_wrappers", |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 255 | ] |
| 256 | } |
| 257 | |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 258 | if (rtc_enable_protobuf) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 259 | proto_library("audioproc_debug_proto") { |
Mirko Bonadei | ccbe95f | 2020-01-21 12:10:10 +0100 | [diff] [blame] | 260 | sources = [ "debug.proto" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 261 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 262 | proto_out_dir = "modules/audio_processing" |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 263 | } |
| 264 | } |
| 265 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 266 | rtc_library("apm_logging") { |
Patrik Höglund | d75c8dc | 2017-12-19 09:45:24 +0100 | [diff] [blame] | 267 | configs += [ ":apm_debug_dump" ] |
Patrik Höglund | e6ffc42 | 2017-12-11 10:28:16 +0100 | [diff] [blame] | 268 | sources = [ |
| 269 | "logging/apm_data_dumper.cc", |
| 270 | "logging/apm_data_dumper.h", |
| 271 | ] |
| 272 | deps = [ |
| 273 | "../../api:array_view", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 274 | "../../common_audio", |
Alessio Bazzica | 4bc6045 | 2018-11-20 12:44:15 +0100 | [diff] [blame] | 275 | "../../rtc_base:checks", |
Patrik Höglund | e6ffc42 | 2017-12-11 10:28:16 +0100 | [diff] [blame] | 276 | "../../rtc_base:rtc_base_approved", |
| 277 | ] |
| 278 | defines = [] |
Patrik Höglund | e6ffc42 | 2017-12-11 10:28:16 +0100 | [diff] [blame] | 279 | } |
Patrik Höglund | a36d0e2 | 2017-12-04 10:11:11 +0000 | [diff] [blame] | 280 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 281 | if (rtc_include_tests) { |
Patrik Höglund | 6213929 | 2017-12-19 16:44:45 +0100 | [diff] [blame] | 282 | rtc_source_set("mocks") { |
| 283 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 12:10:10 +0100 | [diff] [blame] | 284 | sources = [ "include/mock_audio_processing.h" ] |
Patrik Höglund | 6213929 | 2017-12-19 16:44:45 +0100 | [diff] [blame] | 285 | deps = [ |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 286 | ":api", |
Per Åhgren | 0aefbf0 | 2019-08-23 21:29:17 +0200 | [diff] [blame] | 287 | ":audio_buffer", |
Patrik Höglund | 6213929 | 2017-12-19 16:44:45 +0100 | [diff] [blame] | 288 | ":audio_processing", |
| 289 | ":audio_processing_statistics", |
| 290 | "../../test:test_support", |
| 291 | ] |
| 292 | } |
| 293 | |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 294 | group("audio_processing_tests") { |
| 295 | testonly = true |
Mirko Bonadei | 1067993 | 2017-12-05 15:07:16 +0100 | [diff] [blame] | 296 | deps = [ |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 297 | ":audioproc_test_utils", |
| 298 | ":click_annotate", |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 299 | ":transient_suppression_test", |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 300 | ] |
| 301 | |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 302 | if (rtc_enable_protobuf) { |
Mirko Bonadei | 1067993 | 2017-12-05 15:07:16 +0100 | [diff] [blame] | 303 | deps += [ |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 304 | ":audioproc_unittest_proto", |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 305 | "aec_dump:aec_dump_unittests", |
alessiob | 5f32aca | 2017-03-18 02:29:13 -0700 | [diff] [blame] | 306 | "test/conversational_speech", |
alessiob | 306d1bf | 2017-02-24 05:32:21 -0800 | [diff] [blame] | 307 | "test/py_quality_assessment", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 308 | ] |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 309 | } |
| 310 | } |
| 311 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 312 | rtc_library("audio_processing_unittests") { |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 313 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 314 | |
Patrik Höglund | d75c8dc | 2017-12-19 09:45:24 +0100 | [diff] [blame] | 315 | configs += [ ":apm_debug_dump" ] |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 316 | sources = [ |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 317 | "audio_buffer_unittest.cc", |
Alex Loiko | 153f11e | 2018-02-16 12:39:00 +0100 | [diff] [blame] | 318 | "audio_frame_view_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 319 | "config_unittest.cc", |
Sam Zackrisson | 8c147b6 | 2018-09-28 12:40:47 +0200 | [diff] [blame] | 320 | "echo_control_mobile_unittest.cc", |
Alex Loiko | 153f11e | 2018-02-16 12:39:00 +0100 | [diff] [blame] | 321 | "gain_controller2_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 322 | "splitting_filter_unittest.cc", |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 323 | "test/fake_recording_device_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 324 | "transient/dyadic_decimator_unittest.cc", |
| 325 | "transient/file_utils.cc", |
| 326 | "transient/file_utils.h", |
| 327 | "transient/file_utils_unittest.cc", |
| 328 | "transient/moving_moments_unittest.cc", |
| 329 | "transient/transient_detector_unittest.cc", |
| 330 | "transient/transient_suppressor_unittest.cc", |
| 331 | "transient/wpd_node_unittest.cc", |
| 332 | "transient/wpd_tree_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 333 | ] |
| 334 | |
| 335 | deps = [ |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 336 | ":analog_mic_simulation", |
Alessio Bazzica | 277b6ea | 2018-11-06 14:24:51 +0100 | [diff] [blame] | 337 | ":api", |
Patrik Höglund | e6ffc42 | 2017-12-11 10:28:16 +0100 | [diff] [blame] | 338 | ":apm_logging", |
Per Åhgren | 44ce4b4 | 2019-03-05 08:40:48 +0100 | [diff] [blame] | 339 | ":audio_buffer", |
Alex Loiko | 153f11e | 2018-02-16 12:39:00 +0100 | [diff] [blame] | 340 | ":audio_frame_view", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 341 | ":audio_processing", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 342 | ":audioproc_test_utils", |
Alessio Bazzica | 277b6ea | 2018-11-06 14:24:51 +0100 | [diff] [blame] | 343 | ":config", |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 344 | ":file_audio_generator_unittests", |
Per Åhgren | 0aefbf0 | 2019-08-23 21:29:17 +0200 | [diff] [blame] | 345 | ":high_pass_filter", |
Patrik Höglund | 6213929 | 2017-12-19 16:44:45 +0100 | [diff] [blame] | 346 | ":mocks", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 347 | "../../api:array_view", |
Mirko Bonadei | d970807 | 2019-01-25 20:26:48 +0100 | [diff] [blame] | 348 | "../../api:scoped_refptr", |
Gustaf Ullberg | 2ae140a | 2018-02-16 13:43:49 +0100 | [diff] [blame] | 349 | "../../api/audio:aec3_config", |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 350 | "../../api/audio:aec3_factory", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 351 | "../../common_audio", |
Mirko Bonadei | dbbb33c | 2018-02-05 15:50:41 +0100 | [diff] [blame] | 352 | "../../common_audio:common_audio_c", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 353 | "../../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 354 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 355 | "../../rtc_base:gtest_prod", |
Mirko Bonadei | 3663ed3 | 2019-10-19 12:03:23 +0200 | [diff] [blame] | 356 | "../../rtc_base:ignore_wundef", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 357 | "../../rtc_base:protobuf_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 358 | "../../rtc_base:rtc_base_approved", |
Mirko Bonadei | e3abb81 | 2018-11-23 13:15:08 +0100 | [diff] [blame] | 359 | "../../rtc_base:rtc_base_tests_utils", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 360 | "../../rtc_base:safe_minmax", |
Danil Chapovalov | 07122bc | 2019-03-26 14:37:01 +0100 | [diff] [blame] | 361 | "../../rtc_base:task_queue_for_test", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 362 | "../../rtc_base/system:arch", |
Karl Wiberg | 6a4d411 | 2018-03-23 10:39:34 +0100 | [diff] [blame] | 363 | "../../rtc_base/system:file_wrapper", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 364 | "../../system_wrappers", |
| 365 | "../../system_wrappers:cpu_features_api", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 366 | "../../test:fileutils", |
Artem Titov | 9dc209a | 2019-11-28 17:09:30 +0100 | [diff] [blame] | 367 | "../../test:rtc_expect_death", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 368 | "../../test:test_support", |
Ivo Creusen | 385b10b | 2017-10-13 12:37:27 +0200 | [diff] [blame] | 369 | "../audio_coding:neteq_input_audio_tools", |
aleloi | 20e4a73 | 2017-06-08 08:12:46 -0700 | [diff] [blame] | 370 | "aec_dump:mock_aec_dump_unittests", |
Alex Loiko | ed8ff64 | 2018-07-06 14:54:30 +0200 | [diff] [blame] | 371 | "agc:agc_unittests", |
Alex Loiko | 1e48e80 | 2018-03-28 09:45:29 +0200 | [diff] [blame] | 372 | "agc2:adaptive_digital_unittests", |
Alessio Bazzica | d8d0214 | 2018-05-07 13:26:47 +0200 | [diff] [blame] | 373 | "agc2:biquad_filter_unittests", |
Alex Loiko | e36e8bb | 2018-02-16 11:54:07 +0100 | [diff] [blame] | 374 | "agc2:fixed_digital_unittests", |
Alex Loiko | 4ed47d0 | 2018-04-04 15:05:57 +0200 | [diff] [blame] | 375 | "agc2:noise_estimator_unittests", |
Alessio Bazzica | 1e2542f | 2018-11-13 14:44:15 +0100 | [diff] [blame] | 376 | "agc2:rnn_vad_with_level_unittests", |
Alessio Bazzica | 3e4c77f | 2018-11-01 21:31:38 +0100 | [diff] [blame] | 377 | "agc2:test_utils", |
Alessio Bazzica | 4736d4e | 2018-04-17 16:46:45 +0200 | [diff] [blame] | 378 | "agc2/rnn_vad:unittests", |
Per Åhgren | 95059e0 | 2019-12-13 15:05:48 +0100 | [diff] [blame] | 379 | "legacy_ns:legacy_ns", |
alessiob | 4b6463c | 2017-03-23 05:17:06 -0700 | [diff] [blame] | 380 | "test/conversational_speech:unittest", |
Sam Zackrisson | b2e1765 | 2018-07-05 16:41:55 +0200 | [diff] [blame] | 381 | "utility:legacy_delay_estimator_unittest", |
Alessio Bazzica | caa499b | 2019-02-21 17:35:43 +0100 | [diff] [blame] | 382 | "utility:pffft_wrapper_unittest", |
Alex Loiko | 0488fcf | 2018-02-05 11:15:23 +0100 | [diff] [blame] | 383 | "vad:vad_unittests", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 384 | "//testing/gtest", |
Danil Chapovalov | db9f7ab | 2018-06-19 10:50:11 +0200 | [diff] [blame] | 385 | "//third_party/abseil-cpp/absl/types:optional", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 386 | ] |
| 387 | |
| 388 | defines = [] |
| 389 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 390 | if (rtc_prefer_fixed_point) { |
| 391 | defines += [ "WEBRTC_AUDIOPROC_FIXED_PROFILE" ] |
| 392 | } else { |
| 393 | defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ] |
| 394 | } |
| 395 | |
| 396 | if (rtc_enable_protobuf) { |
| 397 | defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] |
| 398 | deps += [ |
ehmaldonado | f49ff26 | 2017-01-23 04:26:02 -0800 | [diff] [blame] | 399 | ":audioproc_debug_proto", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 400 | ":audioproc_protobuf_utils", |
Sam Zackrisson | d57f9dd | 2017-09-13 11:00:04 +0200 | [diff] [blame] | 401 | ":audioproc_test_utils", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 402 | ":audioproc_unittest_proto", |
Alex Loiko | 6234722 | 2018-09-10 10:18:07 +0200 | [diff] [blame] | 403 | ":runtime_settings_protobuf_utils", |
Fredrik Solenberg | bbf21a3 | 2018-04-12 22:44:09 +0200 | [diff] [blame] | 404 | "../../api/audio:audio_frame_api", |
Alessio Bazzica | e449805 | 2018-12-17 09:44:06 +0100 | [diff] [blame] | 405 | "../../api/audio:echo_control", |
| 406 | "../../rtc_base:rtc_base_tests_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 407 | "../../rtc_base:rtc_task_queue", |
aleloi | f4dd191 | 2017-06-15 01:55:38 -0700 | [diff] [blame] | 408 | "aec_dump", |
| 409 | "aec_dump:aec_dump_unittests", |
Sam Zackrisson | 6558fa5 | 2019-08-26 10:12:41 +0200 | [diff] [blame] | 410 | "//third_party/abseil-cpp/absl/flags:flag", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 411 | ] |
| 412 | sources += [ |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 413 | "audio_processing_impl_locking_unittest.cc", |
| 414 | "audio_processing_impl_unittest.cc", |
| 415 | "audio_processing_unittest.cc", |
Sam Zackrisson | 8c147b6 | 2018-09-28 12:40:47 +0200 | [diff] [blame] | 416 | "echo_control_mobile_bit_exact_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 417 | "echo_detector/circular_buffer_unittest.cc", |
| 418 | "echo_detector/mean_variance_estimator_unittest.cc", |
| 419 | "echo_detector/moving_max_unittest.cc", |
| 420 | "echo_detector/normalized_covariance_estimator_unittest.cc", |
| 421 | "gain_control_unittest.cc", |
Per Åhgren | 0aefbf0 | 2019-08-23 21:29:17 +0200 | [diff] [blame] | 422 | "high_pass_filter_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 423 | "level_estimator_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 424 | "residual_echo_detector_unittest.cc", |
| 425 | "rms_level_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 426 | "test/debug_dump_replayer.cc", |
| 427 | "test/debug_dump_replayer.h", |
| 428 | "test/debug_dump_test.cc", |
peah | 69221db | 2017-01-27 03:28:19 -0800 | [diff] [blame] | 429 | "test/echo_canceller_test_tools.cc", |
| 430 | "test/echo_canceller_test_tools.h", |
| 431 | "test/echo_canceller_test_tools_unittest.cc", |
Alessio Bazzica | e449805 | 2018-12-17 09:44:06 +0100 | [diff] [blame] | 432 | "test/echo_control_mock.h", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 433 | "test/test_utils.h", |
| 434 | "voice_detection_unittest.cc", |
| 435 | ] |
| 436 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 437 | } |
| 438 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 439 | rtc_library("audio_processing_perf_tests") { |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 440 | testonly = true |
saza | 1d60052 | 2019-10-18 13:29:43 +0200 | [diff] [blame] | 441 | configs += [ ":apm_debug_dump" ] |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 442 | |
Mirko Bonadei | ccbe95f | 2020-01-21 12:10:10 +0100 | [diff] [blame] | 443 | sources = [ "audio_processing_performance_unittest.cc" ] |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 444 | deps = [ |
| 445 | ":audio_processing", |
| 446 | ":audioproc_test_utils", |
Ivo Creusen | 69d276d | 2017-11-24 15:35:57 +0100 | [diff] [blame] | 447 | "../../api:array_view", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 448 | "../../rtc_base:protobuf_utils", |
Ivo Creusen | 69d276d | 2017-11-24 15:35:57 +0100 | [diff] [blame] | 449 | "../../rtc_base:rtc_base_approved", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 450 | "../../system_wrappers", |
Edward Lemur | e66572b | 2018-01-05 15:34:09 +0100 | [diff] [blame] | 451 | "../../test:perf_test", |
Ivo Creusen | 69d276d | 2017-11-24 15:35:57 +0100 | [diff] [blame] | 452 | "../../test:test_support", |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 453 | ] |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 454 | } |
| 455 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 456 | rtc_library("file_audio_generator_unittests") { |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 457 | testonly = true |
| 458 | |
Mirko Bonadei | ccbe95f | 2020-01-21 12:10:10 +0100 | [diff] [blame] | 459 | sources = [ "audio_generator/file_audio_generator_unittest.cc" ] |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 460 | |
| 461 | deps = [ |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 462 | ":api", |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 463 | ":audio_generator_factory", |
| 464 | ":audio_processing", |
| 465 | ":file_audio_generator", |
| 466 | "../../rtc_base:rtc_base_approved", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 467 | "../../test:fileutils", |
Sam Zackrisson | 4d36449 | 2018-03-02 16:03:21 +0100 | [diff] [blame] | 468 | "../../test:test_support", |
| 469 | ] |
| 470 | } |
| 471 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 472 | rtc_library("analog_mic_simulation") { |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 473 | sources = [ |
| 474 | "test/fake_recording_device.cc", |
| 475 | "test/fake_recording_device.h", |
| 476 | ] |
| 477 | deps = [ |
| 478 | "../../api:array_view", |
Fredrik Solenberg | bbf21a3 | 2018-04-12 22:44:09 +0200 | [diff] [blame] | 479 | "../../api/audio:audio_frame_api", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 480 | "../../common_audio", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 481 | "../../rtc_base:checks", |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 482 | "../../rtc_base:rtc_base_approved", |
Alex Loiko | 5c71e74 | 2018-07-02 11:37:47 +0200 | [diff] [blame] | 483 | "../../rtc_base:safe_minmax", |
Alex Loiko | ed8ff64 | 2018-07-06 14:54:30 +0200 | [diff] [blame] | 484 | "agc:gain_map", |
Danil Chapovalov | db9f7ab | 2018-06-19 10:50:11 +0200 | [diff] [blame] | 485 | "//third_party/abseil-cpp/absl/types:optional", |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 486 | ] |
| 487 | } |
| 488 | |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 489 | if (rtc_enable_protobuf) { |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 490 | rtc_library("audioproc_f_impl") { |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 491 | testonly = true |
Per Åhgren | 7a95e0f | 2018-10-25 09:56:49 +0200 | [diff] [blame] | 492 | configs += [ ":apm_debug_dump" ] |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 493 | sources = [ |
| 494 | "test/aec_dump_based_simulator.cc", |
| 495 | "test/aec_dump_based_simulator.h", |
Per Åhgren | ada9b89 | 2019-04-03 16:06:42 +0200 | [diff] [blame] | 496 | "test/api_call_statistics.cc", |
| 497 | "test/api_call_statistics.h", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 498 | "test/audio_processing_simulator.cc", |
| 499 | "test/audio_processing_simulator.h", |
Ivo Creusen | 2cb4105 | 2018-03-15 12:22:52 +0100 | [diff] [blame] | 500 | "test/audioproc_float_impl.cc", |
| 501 | "test/audioproc_float_impl.h", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 502 | "test/wav_based_simulator.cc", |
| 503 | "test/wav_based_simulator.h", |
| 504 | ] |
peah | c3ec1fd | 2016-08-07 23:19:30 -0700 | [diff] [blame] | 505 | |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 506 | deps = [ |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 507 | ":analog_mic_simulation", |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 508 | ":api", |
Per Åhgren | 7a95e0f | 2018-10-25 09:56:49 +0200 | [diff] [blame] | 509 | ":apm_logging", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 510 | ":audio_processing", |
| 511 | ":audioproc_debug_proto", |
| 512 | ":audioproc_protobuf_utils", |
| 513 | ":audioproc_test_utils", |
Alex Loiko | 6234722 | 2018-09-10 10:18:07 +0200 | [diff] [blame] | 514 | ":runtime_settings_protobuf_utils", |
Sam Zackrisson | a4c8514 | 2018-10-10 10:44:43 +0200 | [diff] [blame] | 515 | "../../api/audio:aec3_config_json", |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 516 | "../../api/audio:aec3_factory", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 517 | "../../common_audio", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 518 | "../../rtc_base:checks", |
Mirko Bonadei | 3663ed3 | 2019-10-19 12:03:23 +0200 | [diff] [blame] | 519 | "../../rtc_base:ignore_wundef", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 520 | "../../rtc_base:protobuf_utils", |
| 521 | "../../rtc_base:rtc_base_approved", |
Per Åhgren | ad09d74 | 2018-03-08 07:47:14 +0100 | [diff] [blame] | 522 | "../../rtc_base:rtc_json", |
Danil Chapovalov | 07122bc | 2019-03-26 14:37:01 +0100 | [diff] [blame] | 523 | "../../rtc_base:task_queue_for_test", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 524 | "../../system_wrappers", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 525 | "../../test:test_support", |
aleloi | f4dd191 | 2017-06-15 01:55:38 -0700 | [diff] [blame] | 526 | "aec_dump", |
| 527 | "aec_dump:aec_dump_impl", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 528 | "//testing/gtest", |
Mirko Bonadei | 2ab97f6 | 2019-07-18 13:44:12 +0200 | [diff] [blame] | 529 | "//third_party/abseil-cpp/absl/flags:flag", |
| 530 | "//third_party/abseil-cpp/absl/flags:parse", |
Alessio Bazzica | 6817038 | 2018-11-20 12:27:20 +0100 | [diff] [blame] | 531 | "//third_party/abseil-cpp/absl/strings", |
Danil Chapovalov | db9f7ab | 2018-06-19 10:50:11 +0200 | [diff] [blame] | 532 | "//third_party/abseil-cpp/absl/types:optional", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 533 | ] |
Ivo Creusen | 8c812f3 | 2018-03-09 17:33:04 +0100 | [diff] [blame] | 534 | } # audioproc_f_impl |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 535 | } |
peah | c3ec1fd | 2016-08-07 23:19:30 -0700 | [diff] [blame] | 536 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 537 | rtc_library("audioproc_test_utils") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 538 | visibility = [ "*" ] |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 539 | testonly = true |
| 540 | sources = [ |
ehmaldonado | 529f83c | 2016-07-27 08:14:32 -0700 | [diff] [blame] | 541 | "test/audio_buffer_tools.cc", |
| 542 | "test/audio_buffer_tools.h", |
Sam Zackrisson | d57f9dd | 2017-09-13 11:00:04 +0200 | [diff] [blame] | 543 | "test/bitexactness_tools.cc", |
| 544 | "test/bitexactness_tools.h", |
ivoc | 3cfb3ef | 2016-11-24 04:17:28 -0800 | [diff] [blame] | 545 | "test/performance_timer.cc", |
| 546 | "test/performance_timer.h", |
| 547 | "test/simulator_buffers.cc", |
| 548 | "test/simulator_buffers.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 549 | "test/test_utils.cc", |
| 550 | "test/test_utils.h", |
| 551 | ] |
| 552 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 553 | deps = [ |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 554 | ":api", |
Per Åhgren | 44ce4b4 | 2019-03-05 08:40:48 +0100 | [diff] [blame] | 555 | ":audio_buffer", |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 556 | ":audio_processing", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 557 | "../../api:array_view", |
Fredrik Solenberg | bbf21a3 | 2018-04-12 22:44:09 +0200 | [diff] [blame] | 558 | "../../api/audio:audio_frame_api", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 559 | "../../common_audio", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 560 | "../../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 561 | "../../rtc_base:rtc_base_approved", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 562 | "../../rtc_base/system:arch", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 563 | "../../system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 564 | "../../test:fileutils", |
Sam Zackrisson | d57f9dd | 2017-09-13 11:00:04 +0200 | [diff] [blame] | 565 | "../../test:test_support", |
Ivo Creusen | 385b10b | 2017-10-13 12:37:27 +0200 | [diff] [blame] | 566 | "../audio_coding:neteq_input_audio_tools", |
Sam Zackrisson | d57f9dd | 2017-09-13 11:00:04 +0200 | [diff] [blame] | 567 | "//testing/gtest", |
Danil Chapovalov | db9f7ab | 2018-06-19 10:50:11 +0200 | [diff] [blame] | 568 | "//third_party/abseil-cpp/absl/types:optional", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 569 | ] |
| 570 | } |
| 571 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 572 | rtc_executable("transient_suppression_test") { |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 573 | testonly = true |
| 574 | sources = [ |
| 575 | "transient/file_utils.cc", |
| 576 | "transient/file_utils.h", |
| 577 | "transient/transient_suppression_test.cc", |
| 578 | ] |
| 579 | deps = [ |
| 580 | ":audio_processing", |
Artem Titov | 94b57c0 | 2019-03-21 13:35:10 +0100 | [diff] [blame] | 581 | "../../common_audio", |
oprypin | 6e09d87 | 2017-08-31 03:21:39 -0700 | [diff] [blame] | 582 | "../../rtc_base:rtc_base_approved", |
Karl Wiberg | 6a4d411 | 2018-03-23 10:39:34 +0100 | [diff] [blame] | 583 | "../../rtc_base/system:file_wrapper", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 584 | "../../system_wrappers", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 585 | "../../test:fileutils", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 586 | "../../test:test_support", |
Alex Loiko | ed8ff64 | 2018-07-06 14:54:30 +0200 | [diff] [blame] | 587 | "agc:level_estimation", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 588 | "//testing/gtest", |
Mirko Bonadei | 2ab97f6 | 2019-07-18 13:44:12 +0200 | [diff] [blame] | 589 | "//third_party/abseil-cpp/absl/flags:flag", |
| 590 | "//third_party/abseil-cpp/absl/flags:parse", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 591 | ] |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 592 | } |
| 593 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 594 | rtc_executable("click_annotate") { |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 595 | testonly = true |
| 596 | sources = [ |
| 597 | "transient/click_annotate.cc", |
| 598 | "transient/file_utils.cc", |
| 599 | "transient/file_utils.h", |
| 600 | ] |
| 601 | deps = [ |
| 602 | ":audio_processing", |
Karl Wiberg | 6a4d411 | 2018-03-23 10:39:34 +0100 | [diff] [blame] | 603 | "../../rtc_base/system:file_wrapper", |
Mirko Bonadei | a498ae8 | 2017-12-06 09:17:14 +0100 | [diff] [blame] | 604 | "../../system_wrappers", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 605 | ] |
| 606 | } |
| 607 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 608 | if (rtc_enable_protobuf) { |
| 609 | proto_library("audioproc_unittest_proto") { |
Mirko Bonadei | ccbe95f | 2020-01-21 12:10:10 +0100 | [diff] [blame] | 610 | sources = [ "test/unittest.proto" ] |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 611 | proto_out_dir = "modules/audio_processing/test" |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 612 | } |
| 613 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 614 | rtc_library("audioproc_protobuf_utils") { |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 615 | sources = [ |
| 616 | "test/protobuf_utils.cc", |
| 617 | "test/protobuf_utils.h", |
| 618 | ] |
| 619 | |
| 620 | deps = [ |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 621 | ":audioproc_debug_proto", |
Alex Loiko | 6234722 | 2018-09-10 10:18:07 +0200 | [diff] [blame] | 622 | "../../rtc_base:checks", |
Mirko Bonadei | 3663ed3 | 2019-10-19 12:03:23 +0200 | [diff] [blame] | 623 | "../../rtc_base:ignore_wundef", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 624 | "../../rtc_base:protobuf_utils", |
| 625 | "../../rtc_base:rtc_base_approved", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 626 | "../../rtc_base/system:arch", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 627 | ] |
| 628 | } |
Alex Loiko | 6234722 | 2018-09-10 10:18:07 +0200 | [diff] [blame] | 629 | |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 630 | rtc_library("runtime_settings_protobuf_utils") { |
Alex Loiko | 6234722 | 2018-09-10 10:18:07 +0200 | [diff] [blame] | 631 | testonly = true |
| 632 | sources = [ |
| 633 | "test/runtime_setting_util.cc", |
| 634 | "test/runtime_setting_util.h", |
| 635 | ] |
| 636 | |
| 637 | deps = [ |
Alessio Bazzica | b768e88 | 2018-11-07 14:29:54 +0000 | [diff] [blame] | 638 | ":api", |
Alex Loiko | 6234722 | 2018-09-10 10:18:07 +0200 | [diff] [blame] | 639 | ":audio_processing", |
| 640 | ":audioproc_debug_proto", |
| 641 | ":audioproc_protobuf_utils", |
| 642 | "../../rtc_base:checks", |
| 643 | ] |
| 644 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 645 | } |
| 646 | } |