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", |
| 23 | "block_framer.cc", |
| 24 | "block_framer.h", |
| 25 | "block_processor.cc", |
| 26 | "block_processor.h", |
| 27 | "block_processor_metrics.cc", |
| 28 | "block_processor_metrics.h", |
| 29 | "cascaded_biquad_filter.cc", |
| 30 | "cascaded_biquad_filter.h", |
Per Åhgren | 47d7fbd | 2018-04-24 12:44:29 +0200 | [diff] [blame] | 31 | "coherence_gain.cc", |
| 32 | "coherence_gain.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 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", |
Jesús de Vicente Peña | 075cb2b | 2018-06-13 15:13:55 +0200 | [diff] [blame] | 85 | "reverb_model.cc", |
| 86 | "reverb_model.h", |
Jesús de Vicente Peña | 496cedf | 2018-07-04 11:02:09 +0200 | [diff] [blame] | 87 | "reverb_model_estimator.cc", |
| 88 | "reverb_model_estimator.h", |
Jesús de Vicente Peña | 075cb2b | 2018-06-13 15:13:55 +0200 | [diff] [blame] | 89 | "reverb_model_fallback.cc", |
| 90 | "reverb_model_fallback.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 91 | "shadow_filter_update_gain.cc", |
| 92 | "shadow_filter_update_gain.h", |
| 93 | "skew_estimator.cc", |
| 94 | "skew_estimator.h", |
Jesús de Vicente Peña | d5cb477 | 2018-04-25 13:58:45 +0200 | [diff] [blame] | 95 | "stationarity_estimator.cc", |
| 96 | "stationarity_estimator.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 97 | "subtractor.cc", |
| 98 | "subtractor.h", |
| 99 | "subtractor_output.h", |
Per Åhgren | b20b937 | 2018-07-13 00:22:54 +0200 | [diff] [blame] | 100 | "subtractor_output_analyzer.cc", |
| 101 | "subtractor_output_analyzer.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 102 | "suppression_filter.cc", |
| 103 | "suppression_filter.h", |
| 104 | "suppression_gain.cc", |
| 105 | "suppression_gain.h", |
Per Åhgren | 12eb858 | 2018-03-06 10:40:51 +0100 | [diff] [blame] | 106 | "suppression_gain_limiter.cc", |
| 107 | "suppression_gain_limiter.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 108 | "vector_buffer.cc", |
| 109 | "vector_buffer.h", |
| 110 | "vector_math.h", |
| 111 | ] |
| 112 | |
| 113 | defines = [] |
| 114 | deps = [ |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 115 | "..:apm_logging", |
| 116 | "..:audio_processing", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 117 | "../../../api:array_view", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 118 | "../../../api/audio:aec3_config", |
| 119 | "../../../api/audio:echo_control", |
| 120 | "../../../common_audio:common_audio_c", |
| 121 | "../../../rtc_base:checks", |
| 122 | "../../../rtc_base:rtc_base_approved", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 123 | "../../../rtc_base:safe_minmax", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame^] | 124 | "../../../rtc_base/system:arch", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 125 | "../../../system_wrappers:cpu_features_api", |
Gustaf Ullberg | 0e6375e | 2018-05-04 11:29:02 +0200 | [diff] [blame] | 126 | "../../../system_wrappers:field_trial_api", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 127 | "../../../system_wrappers:metrics_api", |
Sam Zackrisson | b2e1765 | 2018-07-05 16:41:55 +0200 | [diff] [blame] | 128 | "../utility:ooura_fft", |
Danil Chapovalov | db9f7ab | 2018-06-19 10:50:11 +0200 | [diff] [blame] | 129 | "//third_party/abseil-cpp/absl/types:optional", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 130 | ] |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 131 | } |
| 132 | |
| 133 | if (rtc_include_tests) { |
| 134 | rtc_source_set("aec3_unittests") { |
| 135 | testonly = true |
| 136 | |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 137 | configs += [ "..:apm_debug_dump" ] |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 138 | sources = [ |
Mirko Bonadei | a6c544d | 2018-07-17 09:56:46 +0200 | [diff] [blame] | 139 | "mock/mock_block_processor.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 140 | "mock/mock_block_processor.h", |
Mirko Bonadei | a6c544d | 2018-07-17 09:56:46 +0200 | [diff] [blame] | 141 | "mock/mock_echo_remover.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 142 | "mock/mock_echo_remover.h", |
Mirko Bonadei | a6c544d | 2018-07-17 09:56:46 +0200 | [diff] [blame] | 143 | "mock/mock_render_delay_buffer.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 144 | "mock/mock_render_delay_buffer.h", |
Mirko Bonadei | a6c544d | 2018-07-17 09:56:46 +0200 | [diff] [blame] | 145 | "mock/mock_render_delay_controller.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 146 | "mock/mock_render_delay_controller.h", |
| 147 | ] |
| 148 | |
| 149 | deps = [ |
| 150 | ":aec3", |
| 151 | "..:apm_logging", |
| 152 | "..:audio_processing", |
| 153 | "..:audio_processing_unittests", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 154 | "../../../api:array_view", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 155 | "../../../api/audio:aec3_config", |
| 156 | "../../../rtc_base:checks", |
| 157 | "../../../rtc_base:rtc_base_approved", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 158 | "../../../rtc_base:safe_minmax", |
Niels Möller | a12c42a | 2018-07-25 16:05:48 +0200 | [diff] [blame^] | 159 | "../../../rtc_base/system:arch", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 160 | "../../../system_wrappers:cpu_features_api", |
| 161 | "../../../test:test_support", |
Danil Chapovalov | db9f7ab | 2018-06-19 10:50:11 +0200 | [diff] [blame] | 162 | "//third_party/abseil-cpp/absl/types:optional", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 163 | ] |
| 164 | |
| 165 | defines = [] |
| 166 | |
| 167 | if (rtc_enable_protobuf) { |
| 168 | sources += [ |
| 169 | "adaptive_fir_filter_unittest.cc", |
| 170 | "aec3_fft_unittest.cc", |
| 171 | "aec_state_unittest.cc", |
| 172 | "block_framer_unittest.cc", |
| 173 | "block_processor_metrics_unittest.cc", |
| 174 | "block_processor_unittest.cc", |
| 175 | "cascaded_biquad_filter_unittest.cc", |
| 176 | "comfort_noise_generator_unittest.cc", |
| 177 | "decimator_unittest.cc", |
| 178 | "echo_canceller3_unittest.cc", |
| 179 | "echo_path_delay_estimator_unittest.cc", |
| 180 | "echo_path_variability_unittest.cc", |
| 181 | "echo_remover_metrics_unittest.cc", |
| 182 | "echo_remover_unittest.cc", |
| 183 | "erl_estimator_unittest.cc", |
| 184 | "erle_estimator_unittest.cc", |
| 185 | "fft_data_unittest.cc", |
| 186 | "frame_blocker_unittest.cc", |
| 187 | "main_filter_update_gain_unittest.cc", |
| 188 | "matched_filter_lag_aggregator_unittest.cc", |
| 189 | "matched_filter_unittest.cc", |
Gustaf Ullberg | bbfcc70 | 2018-06-19 12:33:36 +0200 | [diff] [blame] | 190 | "moving_average_unittest.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 191 | "render_buffer_unittest.cc", |
| 192 | "render_delay_buffer_unittest.cc", |
| 193 | "render_delay_controller_metrics_unittest.cc", |
| 194 | "render_delay_controller_unittest.cc", |
| 195 | "render_signal_analyzer_unittest.cc", |
| 196 | "residual_echo_estimator_unittest.cc", |
Jesús de Vicente Peña | 496cedf | 2018-07-04 11:02:09 +0200 | [diff] [blame] | 197 | "reverb_model_estimator_unittest.cc", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 198 | "shadow_filter_update_gain_unittest.cc", |
| 199 | "skew_estimator_unittest.cc", |
| 200 | "subtractor_unittest.cc", |
| 201 | "suppression_filter_unittest.cc", |
| 202 | "suppression_gain_unittest.cc", |
| 203 | "vector_math_unittest.cc", |
| 204 | ] |
| 205 | } |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 206 | } |
| 207 | } |