Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 1 | # Copyright (c) 2018 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 | |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 9 | import("../../../webrtc.gni") |
| 10 | |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 11 | rtc_static_library("aec3") { |
| 12 | visibility = [ "*" ] |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 13 | configs += [ "..:apm_debug_dump" ] |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 14 | sources = [ |
| 15 | "adaptive_fir_filter.cc", |
| 16 | "adaptive_fir_filter.h", |
| 17 | "aec3_common.cc", |
| 18 | "aec3_common.h", |
| 19 | "aec3_fft.cc", |
| 20 | "aec3_fft.h", |
| 21 | "aec_state.cc", |
| 22 | "aec_state.h", |
Per Åhgren | 398689f | 2018-08-23 11:38:27 +0200 | [diff] [blame] | 23 | "block_delay_buffer.cc", |
| 24 | "block_delay_buffer.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 25 | "block_framer.cc", |
| 26 | "block_framer.h", |
| 27 | "block_processor.cc", |
| 28 | "block_processor.h", |
| 29 | "block_processor_metrics.cc", |
| 30 | "block_processor_metrics.h", |
| 31 | "cascaded_biquad_filter.cc", |
| 32 | "cascaded_biquad_filter.h", |
| 33 | "comfort_noise_generator.cc", |
| 34 | "comfort_noise_generator.h", |
| 35 | "decimator.cc", |
| 36 | "decimator.h", |
| 37 | "delay_estimate.h", |
| 38 | "downsampled_render_buffer.cc", |
| 39 | "downsampled_render_buffer.h", |
Jesús de Vicente Peña | d5cb477 | 2018-04-25 13:58:45 +0200 | [diff] [blame] | 40 | "echo_audibility.cc", |
| 41 | "echo_audibility.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 42 | "echo_canceller3.cc", |
| 43 | "echo_canceller3.h", |
| 44 | "echo_path_delay_estimator.cc", |
| 45 | "echo_path_delay_estimator.h", |
| 46 | "echo_path_variability.cc", |
| 47 | "echo_path_variability.h", |
| 48 | "echo_remover.cc", |
| 49 | "echo_remover.h", |
| 50 | "echo_remover_metrics.cc", |
| 51 | "echo_remover_metrics.h", |
| 52 | "erl_estimator.cc", |
| 53 | "erl_estimator.h", |
| 54 | "erle_estimator.cc", |
| 55 | "erle_estimator.h", |
| 56 | "fft_buffer.cc", |
| 57 | "fft_buffer.h", |
| 58 | "fft_data.h", |
Per Åhgren | 5c532d3 | 2018-03-22 00:29:25 +0100 | [diff] [blame] | 59 | "filter_analyzer.cc", |
| 60 | "filter_analyzer.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 61 | "frame_blocker.cc", |
| 62 | "frame_blocker.h", |
| 63 | "main_filter_update_gain.cc", |
| 64 | "main_filter_update_gain.h", |
| 65 | "matched_filter.cc", |
| 66 | "matched_filter.h", |
| 67 | "matched_filter_lag_aggregator.cc", |
| 68 | "matched_filter_lag_aggregator.h", |
| 69 | "matrix_buffer.cc", |
| 70 | "matrix_buffer.h", |
Gustaf Ullberg | 8406c43 | 2018-06-19 12:31:33 +0200 | [diff] [blame] | 71 | "moving_average.cc", |
| 72 | "moving_average.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 73 | "render_buffer.cc", |
| 74 | "render_buffer.h", |
| 75 | "render_delay_buffer.cc", |
| 76 | "render_delay_buffer.h", |
| 77 | "render_delay_controller.cc", |
| 78 | "render_delay_controller.h", |
| 79 | "render_delay_controller_metrics.cc", |
| 80 | "render_delay_controller_metrics.h", |
| 81 | "render_signal_analyzer.cc", |
| 82 | "render_signal_analyzer.h", |
| 83 | "residual_echo_estimator.cc", |
| 84 | "residual_echo_estimator.h", |
Per Åhgren | ef5d5af | 2018-07-31 00:03:46 +0200 | [diff] [blame] | 85 | "reverb_decay_estimator.cc", |
| 86 | "reverb_decay_estimator.h", |
| 87 | "reverb_frequency_response.cc", |
| 88 | "reverb_frequency_response.h", |
Jesús de Vicente Peña | 075cb2b | 2018-06-13 15:13:55 +0200 | [diff] [blame] | 89 | "reverb_model.cc", |
| 90 | "reverb_model.h", |
Jesús de Vicente Peña | 496cedf | 2018-07-04 11:02:09 +0200 | [diff] [blame] | 91 | "reverb_model_estimator.cc", |
| 92 | "reverb_model_estimator.h", |
Jesús de Vicente Peña | 075cb2b | 2018-06-13 15:13:55 +0200 | [diff] [blame] | 93 | "reverb_model_fallback.cc", |
| 94 | "reverb_model_fallback.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 95 | "shadow_filter_update_gain.cc", |
| 96 | "shadow_filter_update_gain.h", |
| 97 | "skew_estimator.cc", |
| 98 | "skew_estimator.h", |
Jesús de Vicente Peña | d5cb477 | 2018-04-25 13:58:45 +0200 | [diff] [blame] | 99 | "stationarity_estimator.cc", |
| 100 | "stationarity_estimator.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 101 | "subtractor.cc", |
| 102 | "subtractor.h", |
Per Åhgren | e4db6a1 | 2018-07-26 15:32:24 +0200 | [diff] [blame] | 103 | "subtractor_output.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 104 | "subtractor_output.h", |
Per Åhgren | b20b937 | 2018-07-13 00:22:54 +0200 | [diff] [blame] | 105 | "subtractor_output_analyzer.cc", |
| 106 | "subtractor_output_analyzer.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 107 | "suppression_filter.cc", |
| 108 | "suppression_filter.h", |
| 109 | "suppression_gain.cc", |
| 110 | "suppression_gain.h", |
Per Åhgren | 12eb858 | 2018-03-06 10:40:51 +0100 | [diff] [blame] | 111 | "suppression_gain_limiter.cc", |
| 112 | "suppression_gain_limiter.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 113 | "vector_buffer.cc", |
| 114 | "vector_buffer.h", |
| 115 | "vector_math.h", |
| 116 | ] |
| 117 | |
| 118 | defines = [] |
Oleh Prypin | d2f4e8b | 2018-08-01 12:18:05 +0200 | [diff] [blame] | 119 | if (rtc_build_with_neon && current_cpu != "arm64") { |
| 120 | suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ] |
| 121 | cflags = [ "-mfpu=neon" ] |
| 122 | } |
| 123 | |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 124 | deps = [ |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 125 | "..:apm_logging", |
| 126 | "..:audio_processing", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 127 | "../../../api:array_view", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 128 | "../../../api/audio:aec3_config", |
| 129 | "../../../api/audio:echo_control", |
| 130 | "../../../common_audio:common_audio_c", |
| 131 | "../../../rtc_base:checks", |
| 132 | "../../../rtc_base:rtc_base_approved", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 133 | "../../../rtc_base:safe_minmax", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 134 | "../../../rtc_base/system:arch", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 135 | "../../../system_wrappers:cpu_features_api", |
Gustaf Ullberg | 0e6375e | 2018-05-04 11:29:02 +0200 | [diff] [blame] | 136 | "../../../system_wrappers:field_trial_api", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 137 | "../../../system_wrappers:metrics_api", |
Sam Zackrisson | b2e1765 | 2018-07-05 16:41:55 +0200 | [diff] [blame] | 138 | "../utility:ooura_fft", |
Danil Chapovalov | db9f7ab | 2018-06-19 10:50:11 +0200 | [diff] [blame] | 139 | "//third_party/abseil-cpp/absl/types:optional", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 140 | ] |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | if (rtc_include_tests) { |
| 144 | rtc_source_set("aec3_unittests") { |
| 145 | testonly = true |
| 146 | |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 147 | configs += [ "..:apm_debug_dump" ] |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 148 | sources = [ |
Mirko Bonadei | a6c544d | 2018-07-17 09:56:46 +0200 | [diff] [blame] | 149 | "mock/mock_block_processor.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 150 | "mock/mock_block_processor.h", |
Mirko Bonadei | a6c544d | 2018-07-17 09:56:46 +0200 | [diff] [blame] | 151 | "mock/mock_echo_remover.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 152 | "mock/mock_echo_remover.h", |
Mirko Bonadei | a6c544d | 2018-07-17 09:56:46 +0200 | [diff] [blame] | 153 | "mock/mock_render_delay_buffer.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 154 | "mock/mock_render_delay_buffer.h", |
Mirko Bonadei | a6c544d | 2018-07-17 09:56:46 +0200 | [diff] [blame] | 155 | "mock/mock_render_delay_controller.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 156 | "mock/mock_render_delay_controller.h", |
| 157 | ] |
| 158 | |
| 159 | deps = [ |
| 160 | ":aec3", |
| 161 | "..:apm_logging", |
| 162 | "..:audio_processing", |
| 163 | "..:audio_processing_unittests", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 164 | "../../../api:array_view", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 165 | "../../../api/audio:aec3_config", |
| 166 | "../../../rtc_base:checks", |
| 167 | "../../../rtc_base:rtc_base_approved", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 168 | "../../../rtc_base:safe_minmax", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame] | 169 | "../../../rtc_base/system:arch", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 170 | "../../../system_wrappers:cpu_features_api", |
| 171 | "../../../test:test_support", |
Danil Chapovalov | db9f7ab | 2018-06-19 10:50:11 +0200 | [diff] [blame] | 172 | "//third_party/abseil-cpp/absl/types:optional", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 173 | ] |
| 174 | |
| 175 | defines = [] |
| 176 | |
| 177 | if (rtc_enable_protobuf) { |
| 178 | sources += [ |
| 179 | "adaptive_fir_filter_unittest.cc", |
| 180 | "aec3_fft_unittest.cc", |
| 181 | "aec_state_unittest.cc", |
Per Åhgren | 398689f | 2018-08-23 11:38:27 +0200 | [diff] [blame] | 182 | "block_delay_buffer_unittest.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 183 | "block_framer_unittest.cc", |
| 184 | "block_processor_metrics_unittest.cc", |
| 185 | "block_processor_unittest.cc", |
| 186 | "cascaded_biquad_filter_unittest.cc", |
| 187 | "comfort_noise_generator_unittest.cc", |
| 188 | "decimator_unittest.cc", |
| 189 | "echo_canceller3_unittest.cc", |
| 190 | "echo_path_delay_estimator_unittest.cc", |
| 191 | "echo_path_variability_unittest.cc", |
| 192 | "echo_remover_metrics_unittest.cc", |
| 193 | "echo_remover_unittest.cc", |
| 194 | "erl_estimator_unittest.cc", |
| 195 | "erle_estimator_unittest.cc", |
| 196 | "fft_data_unittest.cc", |
| 197 | "frame_blocker_unittest.cc", |
| 198 | "main_filter_update_gain_unittest.cc", |
| 199 | "matched_filter_lag_aggregator_unittest.cc", |
| 200 | "matched_filter_unittest.cc", |
Gustaf Ullberg | bbfcc70 | 2018-06-19 12:33:36 +0200 | [diff] [blame] | 201 | "moving_average_unittest.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 202 | "render_buffer_unittest.cc", |
| 203 | "render_delay_buffer_unittest.cc", |
| 204 | "render_delay_controller_metrics_unittest.cc", |
| 205 | "render_delay_controller_unittest.cc", |
| 206 | "render_signal_analyzer_unittest.cc", |
| 207 | "residual_echo_estimator_unittest.cc", |
Jesús de Vicente Peña | 496cedf | 2018-07-04 11:02:09 +0200 | [diff] [blame] | 208 | "reverb_model_estimator_unittest.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 209 | "shadow_filter_update_gain_unittest.cc", |
| 210 | "skew_estimator_unittest.cc", |
| 211 | "subtractor_unittest.cc", |
| 212 | "suppression_filter_unittest.cc", |
| 213 | "suppression_gain_unittest.cc", |
| 214 | "vector_math_unittest.cc", |
| 215 | ] |
| 216 | } |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 217 | } |
| 218 | } |