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 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 9 | import("//build/config/arm.gni") |
| 10 | import("//third_party/protobuf/proto_library.gni") |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 11 | import("../../webrtc.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 12 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 13 | declare_args() { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 14 | # Disables the usual mode where we trust the reported system delay |
| 15 | # values the AEC receives. The corresponding define is set appropriately |
| 16 | # in the code, but it can be force-enabled here for testing. |
| 17 | aec_untrusted_delay_for_testing = false |
| 18 | } |
| 19 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 20 | rtc_static_library("audio_processing") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 21 | sources = [ |
peah | 8df5d4f | 2016-02-23 14:34:59 -0800 | [diff] [blame] | 22 | "aec/aec_core.cc", |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 23 | "aec/aec_core.h", |
peah | e687f78 | 2016-05-09 03:57:33 -0700 | [diff] [blame] | 24 | "aec/aec_core_optimized_methods.h", |
peah | 88950cf | 2016-03-04 00:12:40 -0800 | [diff] [blame] | 25 | "aec/aec_resampler.cc", |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 26 | "aec/aec_resampler.h", |
peah | 8df5d4f | 2016-02-23 14:34:59 -0800 | [diff] [blame] | 27 | "aec/echo_cancellation.cc", |
Henrik Kjellander | 9b72af9 | 2015-11-11 20:16:11 +0100 | [diff] [blame] | 28 | "aec/echo_cancellation.h", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 29 | "aec3/adaptive_fir_filter.cc", |
| 30 | "aec3/adaptive_fir_filter.h", |
| 31 | "aec3/aec3_common.cc", |
| 32 | "aec3/aec3_common.h", |
| 33 | "aec3/aec3_fft.cc", |
| 34 | "aec3/aec3_fft.h", |
| 35 | "aec3/aec_state.cc", |
| 36 | "aec3/aec_state.h", |
peah | d026354 | 2017-01-03 04:20:34 -0800 | [diff] [blame] | 37 | "aec3/block_framer.cc", |
| 38 | "aec3/block_framer.h", |
| 39 | "aec3/block_processor.cc", |
| 40 | "aec3/block_processor.h", |
peah | e985b3f | 2017-02-28 22:08:53 -0800 | [diff] [blame] | 41 | "aec3/block_processor_metrics.cc", |
| 42 | "aec3/block_processor_metrics.h", |
peah | d026354 | 2017-01-03 04:20:34 -0800 | [diff] [blame] | 43 | "aec3/cascaded_biquad_filter.cc", |
| 44 | "aec3/cascaded_biquad_filter.h", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 45 | "aec3/comfort_noise_generator.cc", |
| 46 | "aec3/comfort_noise_generator.h", |
peah | 2192089 | 2017-02-08 05:08:56 -0800 | [diff] [blame] | 47 | "aec3/decimator_by_4.cc", |
| 48 | "aec3/decimator_by_4.h", |
peah | cf02cf1 | 2017-04-05 14:18:07 -0700 | [diff] [blame] | 49 | "aec3/downsampled_render_buffer.cc", |
| 50 | "aec3/downsampled_render_buffer.h", |
peah | e0eae3c | 2016-12-14 01:16:23 -0800 | [diff] [blame] | 51 | "aec3/echo_canceller3.cc", |
| 52 | "aec3/echo_canceller3.h", |
peah | 69221db | 2017-01-27 03:28:19 -0800 | [diff] [blame] | 53 | "aec3/echo_path_delay_estimator.cc", |
| 54 | "aec3/echo_path_delay_estimator.h", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 55 | "aec3/echo_path_variability.cc", |
peah | 69221db | 2017-01-27 03:28:19 -0800 | [diff] [blame] | 56 | "aec3/echo_path_variability.h", |
| 57 | "aec3/echo_remover.cc", |
| 58 | "aec3/echo_remover.h", |
peah | e985b3f | 2017-02-28 22:08:53 -0800 | [diff] [blame] | 59 | "aec3/echo_remover_metrics.cc", |
| 60 | "aec3/echo_remover_metrics.h", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 61 | "aec3/erl_estimator.cc", |
| 62 | "aec3/erl_estimator.h", |
| 63 | "aec3/erle_estimator.cc", |
| 64 | "aec3/erle_estimator.h", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 65 | "aec3/fft_data.h", |
peah | d026354 | 2017-01-03 04:20:34 -0800 | [diff] [blame] | 66 | "aec3/frame_blocker.cc", |
| 67 | "aec3/frame_blocker.h", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 68 | "aec3/main_filter_update_gain.cc", |
| 69 | "aec3/main_filter_update_gain.h", |
peah | 2192089 | 2017-02-08 05:08:56 -0800 | [diff] [blame] | 70 | "aec3/matched_filter.cc", |
| 71 | "aec3/matched_filter.h", |
| 72 | "aec3/matched_filter_lag_aggregator.cc", |
| 73 | "aec3/matched_filter_lag_aggregator.h", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 74 | "aec3/output_selector.cc", |
| 75 | "aec3/output_selector.h", |
peah | cf02cf1 | 2017-04-05 14:18:07 -0700 | [diff] [blame] | 76 | "aec3/render_buffer.cc", |
| 77 | "aec3/render_buffer.h", |
peah | 69221db | 2017-01-27 03:28:19 -0800 | [diff] [blame] | 78 | "aec3/render_delay_buffer.cc", |
| 79 | "aec3/render_delay_buffer.h", |
| 80 | "aec3/render_delay_controller.cc", |
| 81 | "aec3/render_delay_controller.h", |
peah | e985b3f | 2017-02-28 22:08:53 -0800 | [diff] [blame] | 82 | "aec3/render_delay_controller_metrics.cc", |
| 83 | "aec3/render_delay_controller_metrics.h", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 84 | "aec3/render_signal_analyzer.cc", |
| 85 | "aec3/render_signal_analyzer.h", |
| 86 | "aec3/residual_echo_estimator.cc", |
| 87 | "aec3/residual_echo_estimator.h", |
| 88 | "aec3/shadow_filter_update_gain.cc", |
| 89 | "aec3/shadow_filter_update_gain.h", |
| 90 | "aec3/subtractor.cc", |
| 91 | "aec3/subtractor.h", |
| 92 | "aec3/subtractor_output.h", |
| 93 | "aec3/suppression_filter.cc", |
| 94 | "aec3/suppression_filter.h", |
| 95 | "aec3/suppression_gain.cc", |
| 96 | "aec3/suppression_gain.h", |
peah | 5e79b29 | 2017-04-12 01:20:45 -0700 | [diff] [blame] | 97 | "aec3/vector_math.h", |
peah | 2704512 | 2016-04-10 22:38:14 -0700 | [diff] [blame] | 98 | "aecm/aecm_core.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 99 | "aecm/aecm_core.h", |
peah | 2704512 | 2016-04-10 22:38:14 -0700 | [diff] [blame] | 100 | "aecm/echo_control_mobile.cc", |
Henrik Kjellander | 9b72af9 | 2015-11-11 20:16:11 +0100 | [diff] [blame] | 101 | "aecm/echo_control_mobile.h", |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 102 | "agc/agc.cc", |
| 103 | "agc/agc.h", |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 104 | "agc/agc_manager_direct.cc", |
| 105 | "agc/agc_manager_direct.h", |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 106 | "agc/gain_map_internal.h", |
peah | bbe4233 | 2016-06-08 06:42:02 -0700 | [diff] [blame] | 107 | "agc/loudness_histogram.cc", |
| 108 | "agc/loudness_histogram.h", |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 109 | "agc/utility.cc", |
| 110 | "agc/utility.h", |
alessiob | 3ec96df | 2017-05-22 06:57:06 -0700 | [diff] [blame] | 111 | "agc2/gain_controller2.cc", |
| 112 | "agc2/gain_controller2.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 113 | "audio_buffer.cc", |
| 114 | "audio_buffer.h", |
| 115 | "audio_processing_impl.cc", |
| 116 | "audio_processing_impl.h", |
aluebs | 4a66e4a | 2015-10-19 18:02:39 -0700 | [diff] [blame] | 117 | "beamformer/array_util.cc", |
| 118 | "beamformer/array_util.h", |
aluebs@webrtc.org | 0c39e91 | 2014-12-18 22:22:04 +0000 | [diff] [blame] | 119 | "beamformer/complex_matrix.h", |
| 120 | "beamformer/covariance_matrix_generator.cc", |
| 121 | "beamformer/covariance_matrix_generator.h", |
| 122 | "beamformer/matrix.h", |
andrew@webrtc.org | bd8c865 | 2015-03-20 00:28:22 +0000 | [diff] [blame] | 123 | "beamformer/nonlinear_beamformer.cc", |
| 124 | "beamformer/nonlinear_beamformer.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 125 | "common.h", |
| 126 | "echo_cancellation_impl.cc", |
| 127 | "echo_cancellation_impl.h", |
| 128 | "echo_control_mobile_impl.cc", |
| 129 | "echo_control_mobile_impl.h", |
ivoc | af27ed0 | 2016-10-28 07:04:03 -0700 | [diff] [blame] | 130 | "echo_detector/circular_buffer.cc", |
| 131 | "echo_detector/circular_buffer.h", |
| 132 | "echo_detector/mean_variance_estimator.cc", |
| 133 | "echo_detector/mean_variance_estimator.h", |
ivoc | 4e477a1 | 2017-01-15 08:29:46 -0800 | [diff] [blame] | 134 | "echo_detector/moving_max.cc", |
| 135 | "echo_detector/moving_max.h", |
ivoc | af27ed0 | 2016-10-28 07:04:03 -0700 | [diff] [blame] | 136 | "echo_detector/normalized_covariance_estimator.cc", |
| 137 | "echo_detector/normalized_covariance_estimator.h", |
peah | be61562 | 2016-02-13 16:40:47 -0800 | [diff] [blame] | 138 | "gain_control_for_experimental_agc.cc", |
| 139 | "gain_control_for_experimental_agc.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 140 | "gain_control_impl.cc", |
| 141 | "gain_control_impl.h", |
peah | c19f312 | 2016-10-07 14:54:10 -0700 | [diff] [blame] | 142 | "include/audio_processing.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 143 | "include/audio_processing.h", |
solenberg | 88499ec | 2016-09-07 07:34:41 -0700 | [diff] [blame] | 144 | "include/config.cc", |
| 145 | "include/config.h", |
peah | ca4cac7 | 2016-06-29 15:26:12 -0700 | [diff] [blame] | 146 | "level_controller/biquad_filter.cc", |
| 147 | "level_controller/biquad_filter.h", |
| 148 | "level_controller/down_sampler.cc", |
| 149 | "level_controller/down_sampler.h", |
| 150 | "level_controller/gain_applier.cc", |
| 151 | "level_controller/gain_applier.h", |
| 152 | "level_controller/gain_selector.cc", |
| 153 | "level_controller/gain_selector.h", |
peah | ca4cac7 | 2016-06-29 15:26:12 -0700 | [diff] [blame] | 154 | "level_controller/level_controller.cc", |
| 155 | "level_controller/level_controller.h", |
peah | c19f312 | 2016-10-07 14:54:10 -0700 | [diff] [blame] | 156 | "level_controller/level_controller_constants.h", |
peah | ca4cac7 | 2016-06-29 15:26:12 -0700 | [diff] [blame] | 157 | "level_controller/noise_level_estimator.cc", |
| 158 | "level_controller/noise_level_estimator.h", |
| 159 | "level_controller/noise_spectrum_estimator.cc", |
| 160 | "level_controller/noise_spectrum_estimator.h", |
| 161 | "level_controller/peak_level_estimator.cc", |
| 162 | "level_controller/peak_level_estimator.h", |
| 163 | "level_controller/saturating_gain_estimator.cc", |
| 164 | "level_controller/saturating_gain_estimator.h", |
| 165 | "level_controller/signal_classifier.cc", |
| 166 | "level_controller/signal_classifier.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 167 | "level_estimator_impl.cc", |
| 168 | "level_estimator_impl.h", |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 169 | "logging/apm_data_dumper.cc", |
| 170 | "logging/apm_data_dumper.h", |
peah | 8271d04 | 2016-11-22 07:24:52 -0800 | [diff] [blame] | 171 | "low_cut_filter.cc", |
| 172 | "low_cut_filter.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 173 | "noise_suppression_impl.cc", |
| 174 | "noise_suppression_impl.h", |
peah | 737f4b8 | 2016-03-10 23:05:28 -0800 | [diff] [blame] | 175 | "render_queue_item_verifier.h", |
ivoc | 9f4a4a0 | 2016-10-28 05:39:16 -0700 | [diff] [blame] | 176 | "residual_echo_detector.cc", |
| 177 | "residual_echo_detector.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 178 | "rms_level.cc", |
| 179 | "rms_level.h", |
aluebs@webrtc.org | be05c74 | 2014-11-14 22:18:10 +0000 | [diff] [blame] | 180 | "splitting_filter.cc", |
| 181 | "splitting_filter.h", |
Alejandro Luebs | 5a92aa8 | 2015-04-27 11:34:45 -0700 | [diff] [blame] | 182 | "three_band_filter_bank.cc", |
| 183 | "three_band_filter_bank.h", |
pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 184 | "transient/common.h", |
| 185 | "transient/daubechies_8_wavelet_coeffs.h", |
| 186 | "transient/dyadic_decimator.h", |
| 187 | "transient/moving_moments.cc", |
| 188 | "transient/moving_moments.h", |
| 189 | "transient/transient_detector.cc", |
| 190 | "transient/transient_detector.h", |
| 191 | "transient/transient_suppressor.cc", |
| 192 | "transient/transient_suppressor.h", |
| 193 | "transient/wpd_node.cc", |
| 194 | "transient/wpd_node.h", |
| 195 | "transient/wpd_tree.cc", |
| 196 | "transient/wpd_tree.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 197 | "typing_detection.cc", |
| 198 | "typing_detection.h", |
minyue | 84db6fa | 2016-03-24 14:36:25 -0700 | [diff] [blame] | 199 | "utility/block_mean_calculator.cc", |
| 200 | "utility/block_mean_calculator.h", |
peah | bdb7af6 | 2016-04-12 14:47:40 -0700 | [diff] [blame] | 201 | "utility/delay_estimator.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 202 | "utility/delay_estimator.h", |
| 203 | "utility/delay_estimator_internal.h", |
peah | bdb7af6 | 2016-04-12 14:47:40 -0700 | [diff] [blame] | 204 | "utility/delay_estimator_wrapper.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 205 | "utility/delay_estimator_wrapper.h", |
peah | 81b9291 | 2016-10-06 06:46:20 -0700 | [diff] [blame] | 206 | "utility/ooura_fft.cc", |
| 207 | "utility/ooura_fft.h", |
| 208 | "utility/ooura_fft_tables_common.h", |
aluebs | ecf6b81 | 2015-06-25 12:28:48 -0700 | [diff] [blame] | 209 | "vad/common.h", |
| 210 | "vad/gmm.cc", |
| 211 | "vad/gmm.h", |
| 212 | "vad/noise_gmm_tables.h", |
| 213 | "vad/pitch_based_vad.cc", |
| 214 | "vad/pitch_based_vad.h", |
| 215 | "vad/pitch_internal.cc", |
| 216 | "vad/pitch_internal.h", |
| 217 | "vad/pole_zero_filter.cc", |
| 218 | "vad/pole_zero_filter.h", |
| 219 | "vad/standalone_vad.cc", |
| 220 | "vad/standalone_vad.h", |
| 221 | "vad/vad_audio_proc.cc", |
| 222 | "vad/vad_audio_proc.h", |
| 223 | "vad/vad_audio_proc_internal.h", |
| 224 | "vad/vad_circular_buffer.cc", |
| 225 | "vad/vad_circular_buffer.h", |
| 226 | "vad/voice_activity_detector.cc", |
| 227 | "vad/voice_activity_detector.h", |
| 228 | "vad/voice_gmm_tables.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 229 | "voice_detection_impl.cc", |
| 230 | "voice_detection_impl.h", |
| 231 | ] |
| 232 | |
| 233 | defines = [] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 234 | deps = [ |
aleloi | 868f32f | 2017-05-23 07:20:05 -0700 | [diff] [blame] | 235 | ":aec_dump_interface", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 236 | "..:module_api", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 237 | "../..:webrtc_common", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 238 | "../../api:array_view", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 239 | "../../api:optional", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 240 | "../../audio/utility:audio_frame_operations", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 241 | "../../rtc_base:gtest_prod", |
| 242 | "../../rtc_base:protobuf_utils", |
kwiberg | 98ab3a4 | 2015-09-30 21:54:21 -0700 | [diff] [blame] | 243 | "../audio_coding:isac", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 244 | ] |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 245 | public_deps = [ |
| 246 | ":audio_processing_c", |
| 247 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 248 | |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 249 | if (apm_debug_dump) { |
| 250 | defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 251 | } else { |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 252 | defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 253 | } |
| 254 | |
| 255 | if (aec_untrusted_delay_for_testing) { |
| 256 | defines += [ "WEBRTC_UNTRUSTED_DELAY" ] |
| 257 | } |
| 258 | |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 259 | if (rtc_enable_protobuf) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 260 | defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] |
| 261 | deps += [ ":audioproc_debug_proto" ] |
| 262 | } |
| 263 | |
peah | 1bcfce5 | 2016-08-26 07:16:04 -0700 | [diff] [blame] | 264 | if (rtc_enable_intelligibility_enhancer) { |
| 265 | defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ] |
| 266 | sources += [ |
| 267 | "intelligibility/intelligibility_enhancer.cc", |
| 268 | "intelligibility/intelligibility_enhancer.h", |
| 269 | "intelligibility/intelligibility_utils.cc", |
| 270 | "intelligibility/intelligibility_utils.h", |
| 271 | ] |
| 272 | } else { |
| 273 | defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ] |
| 274 | } |
| 275 | |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 276 | if (rtc_prefer_fixed_point) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 277 | defines += [ "WEBRTC_NS_FIXED" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 278 | } else { |
| 279 | defines += [ "WEBRTC_NS_FLOAT" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 280 | } |
| 281 | |
kjellander@webrtc.org | 7227391 | 2015-02-23 19:08:31 +0000 | [diff] [blame] | 282 | if (current_cpu == "x86" || current_cpu == "x64") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 283 | deps += [ ":audio_processing_sse2" ] |
| 284 | } |
| 285 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 286 | if (rtc_build_with_neon) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 287 | deps += [ ":audio_processing_neon" ] |
| 288 | } |
| 289 | |
kjellander@webrtc.org | 7227391 | 2015-02-23 19:08:31 +0000 | [diff] [blame] | 290 | if (current_cpu == "mipsel") { |
peah | 2704512 | 2016-04-10 22:38:14 -0700 | [diff] [blame] | 291 | sources += [ "aecm/aecm_core_mips.cc" ] |
kjellander@webrtc.org | 6dab6d7 | 2015-03-04 09:50:31 +0000 | [diff] [blame] | 292 | if (mips_float_abi == "hard") { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 293 | sources += [ |
peah | 8df5d4f | 2016-02-23 14:34:59 -0800 | [diff] [blame] | 294 | "aec/aec_core_mips.cc", |
peah | 81b9291 | 2016-10-06 06:46:20 -0700 | [diff] [blame] | 295 | "utility/ooura_fft_mips.cc", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 296 | ] |
| 297 | } |
| 298 | } else { |
peah | 2704512 | 2016-04-10 22:38:14 -0700 | [diff] [blame] | 299 | sources += [ "aecm/aecm_core_c.cc" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 300 | } |
| 301 | |
kjellander | 8f4419b | 2016-06-02 02:09:52 -0700 | [diff] [blame] | 302 | # TODO(jschuh): Bug 1348: fix this warning. |
| 303 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 304 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 305 | deps += [ |
| 306 | "../../common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 307 | "../../rtc_base:rtc_base_approved", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 308 | "../../system_wrappers", |
| 309 | ] |
| 310 | } |
| 311 | |
aleloi | 868f32f | 2017-05-23 07:20:05 -0700 | [diff] [blame] | 312 | rtc_source_set("aec_dump_interface") { |
| 313 | sources = [ |
| 314 | "include/aec_dump.cc", |
| 315 | "include/aec_dump.h", |
| 316 | ] |
| 317 | |
| 318 | deps = [ |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 319 | "../../api:array_view", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 320 | "../../rtc_base:rtc_base_approved", |
aleloi | 868f32f | 2017-05-23 07:20:05 -0700 | [diff] [blame] | 321 | ] |
| 322 | } |
| 323 | |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 324 | rtc_source_set("audio_processing_c") { |
| 325 | visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 326 | sources = [ |
| 327 | "agc/legacy/analog_agc.c", |
| 328 | "agc/legacy/analog_agc.h", |
| 329 | "agc/legacy/digital_agc.c", |
| 330 | "agc/legacy/digital_agc.h", |
| 331 | "agc/legacy/gain_control.h", |
| 332 | ] |
| 333 | |
| 334 | if (rtc_prefer_fixed_point) { |
| 335 | sources += [ |
| 336 | "ns/noise_suppression_x.c", |
| 337 | "ns/noise_suppression_x.h", |
| 338 | "ns/nsx_core.c", |
| 339 | "ns/nsx_core.h", |
| 340 | "ns/nsx_defines.h", |
| 341 | ] |
| 342 | if (current_cpu == "mipsel") { |
| 343 | sources += [ "ns/nsx_core_mips.c" ] |
| 344 | } else { |
| 345 | sources += [ "ns/nsx_core_c.c" ] |
| 346 | } |
| 347 | } else { |
| 348 | sources += [ |
| 349 | "ns/defines.h", |
| 350 | "ns/noise_suppression.c", |
| 351 | "ns/noise_suppression.h", |
| 352 | "ns/ns_core.c", |
| 353 | "ns/ns_core.h", |
| 354 | "ns/windows_private.h", |
| 355 | ] |
| 356 | } |
| 357 | |
| 358 | deps = [ |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 359 | "../..:webrtc_common", |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 360 | "../../common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 361 | "../../rtc_base:rtc_base_approved", |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 362 | "../../system_wrappers", |
| 363 | ] |
mbonadei | e5dc3ce | 2017-01-25 05:34:46 -0800 | [diff] [blame] | 364 | |
| 365 | if (rtc_build_with_neon) { |
| 366 | deps += [ ":audio_processing_neon_c" ] |
| 367 | } |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 368 | } |
| 369 | |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 370 | if (rtc_enable_protobuf) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 371 | proto_library("audioproc_debug_proto") { |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 372 | sources = [ |
| 373 | "debug.proto", |
| 374 | ] |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 375 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 376 | proto_out_dir = "modules/audio_processing" |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 377 | } |
| 378 | } |
| 379 | |
kjellander@webrtc.org | 7227391 | 2015-02-23 19:08:31 +0000 | [diff] [blame] | 380 | if (current_cpu == "x86" || current_cpu == "x64") { |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 381 | rtc_static_library("audio_processing_sse2") { |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 382 | # TODO(ehmaldonado): Remove (bugs.webrtc.org/6828) |
| 383 | # Errors on cyclic dependency with :audio_processing if enabled. |
| 384 | check_includes = false |
| 385 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 386 | sources = [ |
peah | 8df5d4f | 2016-02-23 14:34:59 -0800 | [diff] [blame] | 387 | "aec/aec_core_sse2.cc", |
peah | 81b9291 | 2016-10-06 06:46:20 -0700 | [diff] [blame] | 388 | "utility/ooura_fft_sse2.cc", |
| 389 | "utility/ooura_fft_tables_neon_sse2.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 390 | ] |
| 391 | |
Henrik Kjellander | f2497cf | 2015-04-16 08:57:16 +0200 | [diff] [blame] | 392 | if (is_posix) { |
| 393 | cflags = [ "-msse2" ] |
| 394 | } |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 395 | |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 396 | if (apm_debug_dump) { |
| 397 | defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 398 | } else { |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 399 | defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 400 | } |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 401 | } |
| 402 | } |
| 403 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 404 | if (rtc_build_with_neon) { |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 405 | rtc_static_library("audio_processing_neon") { |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 406 | # TODO(ehmaldonado): Remove (bugs.webrtc.org/6828) |
| 407 | # Errors on cyclic dependency with :audio_processing if enabled. |
| 408 | check_includes = false |
| 409 | |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 410 | sources = [ |
peah | 8df5d4f | 2016-02-23 14:34:59 -0800 | [diff] [blame] | 411 | "aec/aec_core_neon.cc", |
peah | 2704512 | 2016-04-10 22:38:14 -0700 | [diff] [blame] | 412 | "aecm/aecm_core_neon.cc", |
peah | 81b9291 | 2016-10-06 06:46:20 -0700 | [diff] [blame] | 413 | "utility/ooura_fft_neon.cc", |
| 414 | "utility/ooura_fft_tables_neon_sse2.h", |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 415 | ] |
| 416 | |
kjellander@webrtc.org | 7227391 | 2015-02-23 19:08:31 +0000 | [diff] [blame] | 417 | if (current_cpu != "arm64") { |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 418 | # Enable compilation for the NEON instruction set. This is needed |
| 419 | # since //build/config/arm.gni only enables NEON for iOS, not Android. |
| 420 | # This provides the same functionality as webrtc/build/arm_neon.gypi. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 421 | suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 422 | cflags = [ "-mfpu=neon" ] |
andrew@webrtc.org | a56a2c5 | 2014-11-26 17:01:40 +0000 | [diff] [blame] | 423 | } |
| 424 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 425 | # Disable LTO on NEON targets due to compiler bug. |
| 426 | # TODO(fdegans): Enable this. See crbug.com/408997. |
kjellander@webrtc.org | 6d08ca6 | 2014-09-07 17:36:10 +0000 | [diff] [blame] | 427 | if (rtc_use_lto) { |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 428 | cflags -= [ |
| 429 | "-flto", |
| 430 | "-ffat-lto-objects", |
| 431 | ] |
| 432 | } |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 433 | |
Andrew MacDonald | ac4234c | 2015-06-24 18:25:54 -0700 | [diff] [blame] | 434 | deps = [ |
| 435 | "../../common_audio", |
| 436 | ] |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 437 | public_deps = [ |
| 438 | ":audio_processing_neon_c", |
| 439 | ] |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 440 | |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 441 | if (apm_debug_dump) { |
| 442 | defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 443 | } else { |
peah | f28a389 | 2016-09-01 08:58:21 -0700 | [diff] [blame] | 444 | defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
peah | b46083e | 2016-05-03 07:01:18 -0700 | [diff] [blame] | 445 | } |
kjellander@webrtc.org | 524b8f7 | 2014-08-31 20:32:53 +0000 | [diff] [blame] | 446 | } |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 447 | |
| 448 | rtc_static_library("audio_processing_neon_c") { |
mbonadei | e5dc3ce | 2017-01-25 05:34:46 -0800 | [diff] [blame] | 449 | # TODO(mbonadei): Remove (bugs.webrtc.org/6828) |
| 450 | # Errors on cyclic dependency with :audio_processing_c if enabled. |
| 451 | check_includes = false |
| 452 | |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 453 | sources = [ |
| 454 | "ns/nsx_core_neon.c", |
| 455 | ] |
| 456 | |
| 457 | if (current_cpu != "arm64") { |
| 458 | # Enable compilation for the NEON instruction set. This is needed |
| 459 | # since //build/config/arm.gni only enables NEON for iOS, not Android. |
| 460 | # This provides the same functionality as webrtc/build/arm_neon.gypi. |
| 461 | suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ] |
| 462 | cflags = [ "-mfpu=neon" ] |
| 463 | } |
| 464 | |
| 465 | # Disable LTO on NEON targets due to compiler bug. |
| 466 | # TODO(fdegans): Enable this. See crbug.com/408997. |
| 467 | if (rtc_use_lto) { |
| 468 | cflags -= [ |
| 469 | "-flto", |
| 470 | "-ffat-lto-objects", |
| 471 | ] |
| 472 | } |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 473 | deps = [ |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 474 | "../../rtc_base:rtc_base_approved", |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 475 | ] |
kjellander | 7439f97 | 2016-12-05 22:47:46 -0800 | [diff] [blame] | 476 | } |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 477 | } |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 478 | |
| 479 | if (rtc_include_tests) { |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 480 | group("audio_processing_tests") { |
| 481 | testonly = true |
| 482 | public_deps = [ |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 483 | ":audioproc_test_utils", |
| 484 | ":click_annotate", |
| 485 | ":nonlinear_beamformer_test", |
| 486 | ":transient_suppression_test", |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 487 | ] |
| 488 | |
| 489 | if (rtc_enable_intelligibility_enhancer) { |
| 490 | public_deps += [ ":intelligibility_proc" ] |
| 491 | } |
| 492 | |
| 493 | if (rtc_enable_protobuf) { |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 494 | public_deps += [ |
| 495 | ":audioproc_f", |
| 496 | ":audioproc_unittest_proto", |
| 497 | ":unpack_aecdump", |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 498 | "aec_dump:aec_dump_unittests", |
alessiob | 5f32aca | 2017-03-18 02:29:13 -0700 | [diff] [blame] | 499 | "test/conversational_speech", |
alessiob | 306d1bf | 2017-02-24 05:32:21 -0800 | [diff] [blame] | 500 | "test/py_quality_assessment", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 501 | ] |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 502 | } |
| 503 | } |
| 504 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 505 | rtc_source_set("audio_processing_unittests") { |
| 506 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 507 | |
| 508 | # Skip restricting visibility on mobile platforms since the tests on those |
| 509 | # gets additional generated targets which would require many lines here to |
| 510 | # cover (which would be confusing to read and hard to maintain). |
| 511 | if (!is_android && !is_ios) { |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 512 | visibility = [ "..:modules_unittests" ] |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 513 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 514 | sources = [ |
| 515 | "aec/echo_cancellation_unittest.cc", |
| 516 | "aec/system_delay_unittest.cc", |
| 517 | "agc/agc_manager_direct_unittest.cc", |
| 518 | "agc/loudness_histogram_unittest.cc", |
| 519 | "agc/mock_agc.h", |
| 520 | "audio_buffer_unittest.cc", |
| 521 | "beamformer/array_util_unittest.cc", |
| 522 | "beamformer/complex_matrix_unittest.cc", |
| 523 | "beamformer/covariance_matrix_generator_unittest.cc", |
| 524 | "beamformer/matrix_unittest.cc", |
| 525 | "beamformer/mock_nonlinear_beamformer.h", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 526 | "config_unittest.cc", |
| 527 | "echo_cancellation_impl_unittest.cc", |
| 528 | "splitting_filter_unittest.cc", |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 529 | "test/fake_recording_device_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 530 | "transient/dyadic_decimator_unittest.cc", |
| 531 | "transient/file_utils.cc", |
| 532 | "transient/file_utils.h", |
| 533 | "transient/file_utils_unittest.cc", |
| 534 | "transient/moving_moments_unittest.cc", |
| 535 | "transient/transient_detector_unittest.cc", |
| 536 | "transient/transient_suppressor_unittest.cc", |
| 537 | "transient/wpd_node_unittest.cc", |
| 538 | "transient/wpd_tree_unittest.cc", |
| 539 | "utility/block_mean_calculator_unittest.cc", |
| 540 | "utility/delay_estimator_unittest.cc", |
| 541 | "vad/gmm_unittest.cc", |
| 542 | "vad/pitch_based_vad_unittest.cc", |
| 543 | "vad/pitch_internal_unittest.cc", |
| 544 | "vad/pole_zero_filter_unittest.cc", |
| 545 | "vad/standalone_vad_unittest.cc", |
| 546 | "vad/vad_audio_proc_unittest.cc", |
| 547 | "vad/vad_circular_buffer_unittest.cc", |
| 548 | "vad/voice_activity_detector_unittest.cc", |
| 549 | ] |
| 550 | |
| 551 | deps = [ |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 552 | ":analog_mic_simulation", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 553 | ":audio_processing", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 554 | ":audioproc_test_utils", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 555 | "..:module_api", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 556 | "../..:webrtc_common", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 557 | "../../api:array_view", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 558 | "../../api:optional", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 559 | "../../common_audio:common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 560 | "../../rtc_base:gtest_prod", |
| 561 | "../../rtc_base:protobuf_utils", |
| 562 | "../../rtc_base:rtc_base", |
| 563 | "../../rtc_base:rtc_base_approved", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 564 | "../../system_wrappers:system_wrappers", |
| 565 | "../../test:test_support", |
Ivo Creusen | 385b10b | 2017-10-13 12:37:27 +0200 | [diff] [blame^] | 566 | "../audio_coding:neteq_input_audio_tools", |
aleloi | 20e4a73 | 2017-06-08 08:12:46 -0700 | [diff] [blame] | 567 | "aec_dump:mock_aec_dump_unittests", |
alessiob | 4b6463c | 2017-03-23 05:17:06 -0700 | [diff] [blame] | 568 | "test/conversational_speech:unittest", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 569 | "//testing/gmock", |
| 570 | "//testing/gtest", |
| 571 | ] |
| 572 | |
| 573 | defines = [] |
| 574 | |
| 575 | if (apm_debug_dump) { |
| 576 | defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
| 577 | } else { |
| 578 | defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
| 579 | } |
| 580 | |
| 581 | if (rtc_enable_intelligibility_enhancer) { |
| 582 | defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ] |
| 583 | sources += [ |
| 584 | "intelligibility/intelligibility_enhancer_unittest.cc", |
| 585 | "intelligibility/intelligibility_utils_unittest.cc", |
| 586 | ] |
| 587 | } else { |
| 588 | defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ] |
| 589 | } |
| 590 | |
| 591 | if (rtc_prefer_fixed_point) { |
| 592 | defines += [ "WEBRTC_AUDIOPROC_FIXED_PROFILE" ] |
| 593 | } else { |
| 594 | defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ] |
| 595 | } |
| 596 | |
| 597 | if (rtc_enable_protobuf) { |
| 598 | defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] |
| 599 | deps += [ |
ehmaldonado | f49ff26 | 2017-01-23 04:26:02 -0800 | [diff] [blame] | 600 | ":audioproc_debug_proto", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 601 | ":audioproc_protobuf_utils", |
Sam Zackrisson | d57f9dd | 2017-09-13 11:00:04 +0200 | [diff] [blame] | 602 | ":audioproc_test_utils", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 603 | ":audioproc_unittest_proto", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 604 | "../../rtc_base:rtc_task_queue", |
aleloi | f4dd191 | 2017-06-15 01:55:38 -0700 | [diff] [blame] | 605 | "aec_dump", |
| 606 | "aec_dump:aec_dump_unittests", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 607 | ] |
| 608 | sources += [ |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 609 | "aec3/adaptive_fir_filter_unittest.cc", |
| 610 | "aec3/aec3_fft_unittest.cc", |
| 611 | "aec3/aec_state_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 612 | "aec3/block_framer_unittest.cc", |
peah | e985b3f | 2017-02-28 22:08:53 -0800 | [diff] [blame] | 613 | "aec3/block_processor_metrics_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 614 | "aec3/block_processor_unittest.cc", |
| 615 | "aec3/cascaded_biquad_filter_unittest.cc", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 616 | "aec3/comfort_noise_generator_unittest.cc", |
peah | 2192089 | 2017-02-08 05:08:56 -0800 | [diff] [blame] | 617 | "aec3/decimator_by_4_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 618 | "aec3/echo_canceller3_unittest.cc", |
peah | 69221db | 2017-01-27 03:28:19 -0800 | [diff] [blame] | 619 | "aec3/echo_path_delay_estimator_unittest.cc", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 620 | "aec3/echo_path_variability_unittest.cc", |
peah | e985b3f | 2017-02-28 22:08:53 -0800 | [diff] [blame] | 621 | "aec3/echo_remover_metrics_unittest.cc", |
peah | 69221db | 2017-01-27 03:28:19 -0800 | [diff] [blame] | 622 | "aec3/echo_remover_unittest.cc", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 623 | "aec3/erl_estimator_unittest.cc", |
| 624 | "aec3/erle_estimator_unittest.cc", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 625 | "aec3/fft_data_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 626 | "aec3/frame_blocker_unittest.cc", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 627 | "aec3/main_filter_update_gain_unittest.cc", |
peah | 2192089 | 2017-02-08 05:08:56 -0800 | [diff] [blame] | 628 | "aec3/matched_filter_lag_aggregator_unittest.cc", |
| 629 | "aec3/matched_filter_unittest.cc", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 630 | "aec3/output_selector_unittest.cc", |
peah | cf02cf1 | 2017-04-05 14:18:07 -0700 | [diff] [blame] | 631 | "aec3/render_buffer_unittest.cc", |
peah | 69221db | 2017-01-27 03:28:19 -0800 | [diff] [blame] | 632 | "aec3/render_delay_buffer_unittest.cc", |
peah | e985b3f | 2017-02-28 22:08:53 -0800 | [diff] [blame] | 633 | "aec3/render_delay_controller_metrics_unittest.cc", |
peah | 69221db | 2017-01-27 03:28:19 -0800 | [diff] [blame] | 634 | "aec3/render_delay_controller_unittest.cc", |
peah | 522d71b | 2017-02-23 05:16:26 -0800 | [diff] [blame] | 635 | "aec3/render_signal_analyzer_unittest.cc", |
| 636 | "aec3/residual_echo_estimator_unittest.cc", |
| 637 | "aec3/shadow_filter_update_gain_unittest.cc", |
| 638 | "aec3/subtractor_unittest.cc", |
| 639 | "aec3/suppression_filter_unittest.cc", |
| 640 | "aec3/suppression_gain_unittest.cc", |
peah | 5e79b29 | 2017-04-12 01:20:45 -0700 | [diff] [blame] | 641 | "aec3/vector_math_unittest.cc", |
alessiob | 3ec96df | 2017-05-22 06:57:06 -0700 | [diff] [blame] | 642 | "agc2/gain_controller2_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 643 | "audio_processing_impl_locking_unittest.cc", |
| 644 | "audio_processing_impl_unittest.cc", |
| 645 | "audio_processing_unittest.cc", |
ehmaldonado | f49ff26 | 2017-01-23 04:26:02 -0800 | [diff] [blame] | 646 | "beamformer/nonlinear_beamformer_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 647 | "echo_cancellation_bit_exact_unittest.cc", |
| 648 | "echo_control_mobile_unittest.cc", |
| 649 | "echo_detector/circular_buffer_unittest.cc", |
| 650 | "echo_detector/mean_variance_estimator_unittest.cc", |
| 651 | "echo_detector/moving_max_unittest.cc", |
| 652 | "echo_detector/normalized_covariance_estimator_unittest.cc", |
| 653 | "gain_control_unittest.cc", |
| 654 | "level_controller/level_controller_unittest.cc", |
| 655 | "level_estimator_unittest.cc", |
| 656 | "low_cut_filter_unittest.cc", |
| 657 | "noise_suppression_unittest.cc", |
| 658 | "residual_echo_detector_unittest.cc", |
| 659 | "rms_level_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 660 | "test/debug_dump_replayer.cc", |
| 661 | "test/debug_dump_replayer.h", |
| 662 | "test/debug_dump_test.cc", |
peah | 69221db | 2017-01-27 03:28:19 -0800 | [diff] [blame] | 663 | "test/echo_canceller_test_tools.cc", |
| 664 | "test/echo_canceller_test_tools.h", |
| 665 | "test/echo_canceller_test_tools_unittest.cc", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 666 | "test/test_utils.h", |
| 667 | "voice_detection_unittest.cc", |
| 668 | ] |
| 669 | } |
| 670 | |
| 671 | if ((!build_with_chromium || is_win) && is_clang) { |
| 672 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 673 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 674 | } |
| 675 | } |
| 676 | |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 677 | rtc_source_set("audio_processing_perf_tests") { |
| 678 | # Has problems with autogenerated targets on Android and iOS |
| 679 | # Dependency chain (there may also be others): |
Jianjun Zhu | 037f3e4 | 2017-08-15 21:48:37 +0800 | [diff] [blame] | 680 | # :audio_processing_perf_tests --> |
| 681 | # ..:modules_unittests --[private]--> |
| 682 | # ..:modules_unittests_apk --> |
| 683 | # ..:modules_unittests_apk__create --> |
| 684 | # ..:modules_unittests_apk__create__finalize --> |
| 685 | # ..:modules_unittests_apk__create__package --[private]--> |
| 686 | # ..:_modules_unittests__library |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 687 | check_includes = false |
| 688 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 689 | |
| 690 | # Skip restricting visibility on mobile platforms since the tests on those |
| 691 | # gets additional generated targets which would require many lines here to |
| 692 | # cover (which would be confusing to read and hard to maintain). |
| 693 | if (!is_android && !is_ios) { |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 694 | visibility = [ "../..:webrtc_perf_tests" ] |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 695 | } |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 696 | sources = [ |
| 697 | "audio_processing_performance_unittest.cc", |
| 698 | "level_controller/level_controller_complexity_unittest.cc", |
| 699 | "residual_echo_detector_complexity_unittest.cc", |
| 700 | ] |
| 701 | deps = [ |
| 702 | ":audio_processing", |
| 703 | ":audioproc_test_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 704 | "../../rtc_base:protobuf_utils", |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 705 | "//testing/gtest", |
| 706 | ] |
mbonadei | 7c2c843 | 2017-04-07 00:59:12 -0700 | [diff] [blame] | 707 | |
ehmaldonado | 021eef3 | 2017-01-05 07:09:50 -0800 | [diff] [blame] | 708 | if (rtc_enable_intelligibility_enhancer) { |
| 709 | defines = [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ] |
| 710 | } else { |
| 711 | defines = [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ] |
| 712 | } |
| 713 | } |
| 714 | |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 715 | rtc_source_set("analog_mic_simulation") { |
| 716 | sources = [ |
| 717 | "test/fake_recording_device.cc", |
| 718 | "test/fake_recording_device.h", |
| 719 | ] |
| 720 | deps = [ |
| 721 | "../../api:array_view", |
| 722 | "../../common_audio:common_audio", |
| 723 | "../../modules:module_api", |
| 724 | "../../rtc_base:rtc_base_approved", |
| 725 | ] |
| 726 | } |
| 727 | |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 728 | if (rtc_enable_protobuf) { |
| 729 | rtc_executable("unpack_aecdump") { |
| 730 | testonly = true |
| 731 | sources = [ |
| 732 | "test/unpack.cc", |
| 733 | ] |
peah | c3ec1fd | 2016-08-07 23:19:30 -0700 | [diff] [blame] | 734 | |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 735 | deps = [ |
| 736 | ":audio_processing", |
| 737 | ":audioproc_debug_proto", |
| 738 | ":audioproc_protobuf_utils", |
| 739 | ":audioproc_test_utils", |
| 740 | "../..:webrtc_common", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 741 | "../../common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 742 | "../../rtc_base:protobuf_utils", |
| 743 | "../../rtc_base:rtc_base_approved", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 744 | "../../system_wrappers:system_wrappers_default", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 745 | ] |
| 746 | } # unpack_aecdump |
peah | c3ec1fd | 2016-08-07 23:19:30 -0700 | [diff] [blame] | 747 | |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 748 | rtc_executable("audioproc_f") { |
| 749 | testonly = true |
| 750 | sources = [ |
| 751 | "test/aec_dump_based_simulator.cc", |
| 752 | "test/aec_dump_based_simulator.h", |
| 753 | "test/audio_processing_simulator.cc", |
| 754 | "test/audio_processing_simulator.h", |
| 755 | "test/audioproc_float.cc", |
| 756 | "test/wav_based_simulator.cc", |
| 757 | "test/wav_based_simulator.h", |
| 758 | ] |
peah | c3ec1fd | 2016-08-07 23:19:30 -0700 | [diff] [blame] | 759 | |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 760 | deps = [ |
Alessio Bazzica | ca90a55 | 2017-09-27 11:51:10 +0200 | [diff] [blame] | 761 | ":analog_mic_simulation", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 762 | ":audio_processing", |
| 763 | ":audioproc_debug_proto", |
| 764 | ":audioproc_protobuf_utils", |
| 765 | ":audioproc_test_utils", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 766 | "../../api:optional", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 767 | "../../common_audio:common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 768 | "../../rtc_base:protobuf_utils", |
| 769 | "../../rtc_base:rtc_base_approved", |
| 770 | "../../rtc_base:rtc_task_queue", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 771 | "../../system_wrappers", |
| 772 | "../../system_wrappers:system_wrappers_default", |
| 773 | "../../test:test_support", |
aleloi | f4dd191 | 2017-06-15 01:55:38 -0700 | [diff] [blame] | 774 | "aec_dump", |
| 775 | "aec_dump:aec_dump_impl", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 776 | "//testing/gtest", |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 777 | ] |
| 778 | } # audioproc_f |
| 779 | } |
peah | c3ec1fd | 2016-08-07 23:19:30 -0700 | [diff] [blame] | 780 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 781 | rtc_source_set("audioproc_test_utils") { |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 782 | testonly = true |
| 783 | sources = [ |
ehmaldonado | 529f83c | 2016-07-27 08:14:32 -0700 | [diff] [blame] | 784 | "test/audio_buffer_tools.cc", |
| 785 | "test/audio_buffer_tools.h", |
Sam Zackrisson | d57f9dd | 2017-09-13 11:00:04 +0200 | [diff] [blame] | 786 | "test/bitexactness_tools.cc", |
| 787 | "test/bitexactness_tools.h", |
ivoc | 3cfb3ef | 2016-11-24 04:17:28 -0800 | [diff] [blame] | 788 | "test/performance_timer.cc", |
| 789 | "test/performance_timer.h", |
| 790 | "test/simulator_buffers.cc", |
| 791 | "test/simulator_buffers.h", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 792 | "test/test_utils.cc", |
| 793 | "test/test_utils.h", |
| 794 | ] |
| 795 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 796 | deps = [ |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 797 | ":audio_processing", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 798 | "..:module_api", |
kwiberg | 529662a | 2017-09-04 05:43:17 -0700 | [diff] [blame] | 799 | "../../api:array_view", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 800 | "../../api:optional", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 801 | "../../common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 802 | "../../rtc_base:rtc_base_approved", |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 803 | "../../system_wrappers:system_wrappers", |
Sam Zackrisson | d57f9dd | 2017-09-13 11:00:04 +0200 | [diff] [blame] | 804 | "../../test:test_support", |
Ivo Creusen | 385b10b | 2017-10-13 12:37:27 +0200 | [diff] [blame^] | 805 | "../audio_coding:neteq_input_audio_tools", |
Sam Zackrisson | d57f9dd | 2017-09-13 11:00:04 +0200 | [diff] [blame] | 806 | "//testing/gtest", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 807 | ] |
| 808 | } |
| 809 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 810 | rtc_executable("transient_suppression_test") { |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 811 | testonly = true |
| 812 | sources = [ |
| 813 | "transient/file_utils.cc", |
| 814 | "transient/file_utils.h", |
| 815 | "transient/transient_suppression_test.cc", |
| 816 | ] |
| 817 | deps = [ |
| 818 | ":audio_processing", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 819 | "..:module_api", |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 820 | "../..:webrtc_common", |
| 821 | "../../common_audio:common_audio", |
oprypin | 6e09d87 | 2017-08-31 03:21:39 -0700 | [diff] [blame] | 822 | "../../rtc_base:rtc_base_approved", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 823 | "../../system_wrappers:metrics_default", |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 824 | "../../system_wrappers:system_wrappers", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 825 | "../../test:test_support", |
| 826 | "//testing/gtest", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 827 | ] |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 828 | } |
| 829 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 830 | rtc_executable("click_annotate") { |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 831 | testonly = true |
| 832 | sources = [ |
| 833 | "transient/click_annotate.cc", |
| 834 | "transient/file_utils.cc", |
| 835 | "transient/file_utils.h", |
| 836 | ] |
| 837 | deps = [ |
| 838 | ":audio_processing", |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 839 | "../..:webrtc_common", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 840 | "../../system_wrappers:metrics_default", |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 841 | "../../system_wrappers:system_wrappers", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 842 | ] |
| 843 | } |
| 844 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 845 | rtc_executable("nonlinear_beamformer_test") { |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 846 | testonly = true |
| 847 | sources = [ |
| 848 | "beamformer/nonlinear_beamformer_test.cc", |
| 849 | ] |
| 850 | deps = [ |
| 851 | ":audio_processing", |
| 852 | ":audioproc_test_utils", |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 853 | "../../common_audio:common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 854 | "../../rtc_base:rtc_base_approved", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 855 | "../../system_wrappers:metrics_default", |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 856 | ] |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 857 | } |
| 858 | |
peah | 1bcfce5 | 2016-08-26 07:16:04 -0700 | [diff] [blame] | 859 | if (rtc_enable_intelligibility_enhancer) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 860 | rtc_executable("intelligibility_proc") { |
peah | 1bcfce5 | 2016-08-26 07:16:04 -0700 | [diff] [blame] | 861 | testonly = true |
| 862 | sources = [ |
| 863 | "intelligibility/test/intelligibility_proc.cc", |
| 864 | ] |
| 865 | deps = [ |
| 866 | ":audio_processing", |
| 867 | ":audioproc_test_utils", |
oprypin | 6e09d87 | 2017-08-31 03:21:39 -0700 | [diff] [blame] | 868 | "../../rtc_base:rtc_base_approved", |
peah | 1bcfce5 | 2016-08-26 07:16:04 -0700 | [diff] [blame] | 869 | "../../system_wrappers:metrics_default", |
| 870 | "../../test:test_support", |
| 871 | "//testing/gtest", |
peah | 1bcfce5 | 2016-08-26 07:16:04 -0700 | [diff] [blame] | 872 | ] |
kwiberg | 7a770e0 | 2016-08-25 02:32:43 -0700 | [diff] [blame] | 873 | } |
| 874 | } |
| 875 | |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 876 | if (rtc_enable_protobuf) { |
| 877 | proto_library("audioproc_unittest_proto") { |
| 878 | sources = [ |
| 879 | "test/unittest.proto", |
| 880 | ] |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 881 | proto_out_dir = "modules/audio_processing/test" |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 882 | } |
| 883 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 884 | rtc_static_library("audioproc_protobuf_utils") { |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 885 | sources = [ |
| 886 | "test/protobuf_utils.cc", |
| 887 | "test/protobuf_utils.h", |
| 888 | ] |
| 889 | |
| 890 | deps = [ |
ehmaldonado | bcba64a | 2016-08-19 02:11:07 -0700 | [diff] [blame] | 891 | ":audioproc_debug_proto", |
ehmaldonado | 64c4a7e | 2016-12-08 04:10:01 -0800 | [diff] [blame] | 892 | "../..:webrtc_common", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 893 | "../../rtc_base:protobuf_utils", |
| 894 | "../../rtc_base:rtc_base_approved", |
kjellander | fb11424 | 2016-06-13 00:19:48 -0700 | [diff] [blame] | 895 | ] |
| 896 | } |
| 897 | } |
| 898 | } |