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 | |
| 9 | import("//build/config/arm.gni") |
| 10 | import("../../../webrtc.gni") |
| 11 | |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 12 | rtc_static_library("aec3") { |
| 13 | visibility = [ "*" ] |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 14 | configs += [ "..:apm_debug_dump" ] |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 15 | sources = [ |
| 16 | "adaptive_fir_filter.cc", |
| 17 | "adaptive_fir_filter.h", |
| 18 | "aec3_common.cc", |
| 19 | "aec3_common.h", |
| 20 | "aec3_fft.cc", |
| 21 | "aec3_fft.h", |
| 22 | "aec_state.cc", |
| 23 | "aec_state.h", |
| 24 | "block_framer.cc", |
| 25 | "block_framer.h", |
| 26 | "block_processor.cc", |
| 27 | "block_processor.h", |
| 28 | "block_processor_metrics.cc", |
| 29 | "block_processor_metrics.h", |
| 30 | "cascaded_biquad_filter.cc", |
| 31 | "cascaded_biquad_filter.h", |
| 32 | "comfort_noise_generator.cc", |
| 33 | "comfort_noise_generator.h", |
| 34 | "decimator.cc", |
| 35 | "decimator.h", |
| 36 | "delay_estimate.h", |
| 37 | "downsampled_render_buffer.cc", |
| 38 | "downsampled_render_buffer.h", |
| 39 | "echo_canceller3.cc", |
| 40 | "echo_canceller3.h", |
| 41 | "echo_path_delay_estimator.cc", |
| 42 | "echo_path_delay_estimator.h", |
| 43 | "echo_path_variability.cc", |
| 44 | "echo_path_variability.h", |
| 45 | "echo_remover.cc", |
| 46 | "echo_remover.h", |
| 47 | "echo_remover_metrics.cc", |
| 48 | "echo_remover_metrics.h", |
| 49 | "erl_estimator.cc", |
| 50 | "erl_estimator.h", |
| 51 | "erle_estimator.cc", |
| 52 | "erle_estimator.h", |
| 53 | "fft_buffer.cc", |
| 54 | "fft_buffer.h", |
| 55 | "fft_data.h", |
| 56 | "frame_blocker.cc", |
| 57 | "frame_blocker.h", |
| 58 | "main_filter_update_gain.cc", |
| 59 | "main_filter_update_gain.h", |
| 60 | "matched_filter.cc", |
| 61 | "matched_filter.h", |
| 62 | "matched_filter_lag_aggregator.cc", |
| 63 | "matched_filter_lag_aggregator.h", |
| 64 | "matrix_buffer.cc", |
| 65 | "matrix_buffer.h", |
| 66 | "output_selector.cc", |
| 67 | "output_selector.h", |
| 68 | "render_buffer.cc", |
| 69 | "render_buffer.h", |
| 70 | "render_delay_buffer.cc", |
| 71 | "render_delay_buffer.h", |
| 72 | "render_delay_controller.cc", |
| 73 | "render_delay_controller.h", |
| 74 | "render_delay_controller_metrics.cc", |
| 75 | "render_delay_controller_metrics.h", |
| 76 | "render_signal_analyzer.cc", |
| 77 | "render_signal_analyzer.h", |
| 78 | "residual_echo_estimator.cc", |
| 79 | "residual_echo_estimator.h", |
| 80 | "shadow_filter_update_gain.cc", |
| 81 | "shadow_filter_update_gain.h", |
| 82 | "skew_estimator.cc", |
| 83 | "skew_estimator.h", |
| 84 | "subtractor.cc", |
| 85 | "subtractor.h", |
| 86 | "subtractor_output.h", |
| 87 | "suppression_filter.cc", |
| 88 | "suppression_filter.h", |
| 89 | "suppression_gain.cc", |
| 90 | "suppression_gain.h", |
Per Ã…hgren | 12eb858 | 2018-03-06 10:40:51 +0100 | [diff] [blame^] | 91 | "suppression_gain_limiter.cc", |
| 92 | "suppression_gain_limiter.h", |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 93 | "vector_buffer.cc", |
| 94 | "vector_buffer.h", |
| 95 | "vector_math.h", |
| 96 | ] |
| 97 | |
| 98 | defines = [] |
| 99 | deps = [ |
| 100 | "..:aec_core", |
| 101 | "..:apm_logging", |
| 102 | "..:audio_processing", |
| 103 | "../../..:typedefs", |
| 104 | "../../../api:array_view", |
| 105 | "../../../api:optional", |
| 106 | "../../../api/audio:aec3_config", |
| 107 | "../../../api/audio:echo_control", |
| 108 | "../../../common_audio:common_audio_c", |
| 109 | "../../../rtc_base:checks", |
| 110 | "../../../rtc_base:rtc_base_approved", |
| 111 | "../../../system_wrappers:cpu_features_api", |
| 112 | "../../../system_wrappers:metrics_api", |
| 113 | ] |
| 114 | |
| 115 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 116 | } |
| 117 | |
| 118 | if (rtc_include_tests) { |
| 119 | rtc_source_set("aec3_unittests") { |
| 120 | testonly = true |
| 121 | |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 122 | configs += [ "..:apm_debug_dump" ] |
Gustaf Ullberg | f35c666 | 2018-02-23 13:18:29 +0100 | [diff] [blame] | 123 | sources = [ |
| 124 | "mock/mock_block_processor.h", |
| 125 | "mock/mock_echo_remover.h", |
| 126 | "mock/mock_render_delay_buffer.h", |
| 127 | "mock/mock_render_delay_controller.h", |
| 128 | ] |
| 129 | |
| 130 | deps = [ |
| 131 | ":aec3", |
| 132 | "..:apm_logging", |
| 133 | "..:audio_processing", |
| 134 | "..:audio_processing_unittests", |
| 135 | "../../..:typedefs", |
| 136 | "../../../api:array_view", |
| 137 | "../../../api:optional", |
| 138 | "../../../api/audio:aec3_config", |
| 139 | "../../../rtc_base:checks", |
| 140 | "../../../rtc_base:rtc_base_approved", |
| 141 | "../../../system_wrappers:cpu_features_api", |
| 142 | "../../../test:test_support", |
| 143 | ] |
| 144 | |
| 145 | defines = [] |
| 146 | |
| 147 | if (rtc_enable_protobuf) { |
| 148 | sources += [ |
| 149 | "adaptive_fir_filter_unittest.cc", |
| 150 | "aec3_fft_unittest.cc", |
| 151 | "aec_state_unittest.cc", |
| 152 | "block_framer_unittest.cc", |
| 153 | "block_processor_metrics_unittest.cc", |
| 154 | "block_processor_unittest.cc", |
| 155 | "cascaded_biquad_filter_unittest.cc", |
| 156 | "comfort_noise_generator_unittest.cc", |
| 157 | "decimator_unittest.cc", |
| 158 | "echo_canceller3_unittest.cc", |
| 159 | "echo_path_delay_estimator_unittest.cc", |
| 160 | "echo_path_variability_unittest.cc", |
| 161 | "echo_remover_metrics_unittest.cc", |
| 162 | "echo_remover_unittest.cc", |
| 163 | "erl_estimator_unittest.cc", |
| 164 | "erle_estimator_unittest.cc", |
| 165 | "fft_data_unittest.cc", |
| 166 | "frame_blocker_unittest.cc", |
| 167 | "main_filter_update_gain_unittest.cc", |
| 168 | "matched_filter_lag_aggregator_unittest.cc", |
| 169 | "matched_filter_unittest.cc", |
| 170 | "output_selector_unittest.cc", |
| 171 | "render_buffer_unittest.cc", |
| 172 | "render_delay_buffer_unittest.cc", |
| 173 | "render_delay_controller_metrics_unittest.cc", |
| 174 | "render_delay_controller_unittest.cc", |
| 175 | "render_signal_analyzer_unittest.cc", |
| 176 | "residual_echo_estimator_unittest.cc", |
| 177 | "shadow_filter_update_gain_unittest.cc", |
| 178 | "skew_estimator_unittest.cc", |
| 179 | "subtractor_unittest.cc", |
| 180 | "suppression_filter_unittest.cc", |
| 181 | "suppression_gain_unittest.cc", |
| 182 | "vector_math_unittest.cc", |
| 183 | ] |
| 184 | } |
| 185 | |
| 186 | if ((!build_with_chromium || is_win) && is_clang) { |
| 187 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 188 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 189 | } |
| 190 | |
| 191 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 192 | } |
| 193 | } |