blob: b187db2ecd939bfc2587e5a39f3bf3ff4b3835f5 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# 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.org524b8f72014-08-31 20:32:53 +00009import("//build/config/arm.gni")
10import("//third_party/protobuf/proto_library.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000011import("../../build/webrtc.gni")
12
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000013declare_args() {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000014 # 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
kjellanderb62dbbe2016-09-23 00:38:52 -070020rtc_static_library("audio_processing") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000021 sources = [
peah8df5d4f2016-02-23 14:34:59 -080022 "aec/aec_core.cc",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000023 "aec/aec_core.h",
peahe687f782016-05-09 03:57:33 -070024 "aec/aec_core_optimized_methods.h",
peah88950cf2016-03-04 00:12:40 -080025 "aec/aec_resampler.cc",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000026 "aec/aec_resampler.h",
peah8df5d4f2016-02-23 14:34:59 -080027 "aec/echo_cancellation.cc",
Henrik Kjellander9b72af92015-11-11 20:16:11 +010028 "aec/echo_cancellation.h",
peah27045122016-04-10 22:38:14 -070029 "aecm/aecm_core.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000030 "aecm/aecm_core.h",
peah27045122016-04-10 22:38:14 -070031 "aecm/echo_control_mobile.cc",
Henrik Kjellander9b72af92015-11-11 20:16:11 +010032 "aecm/echo_control_mobile.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000033 "agc/agc.cc",
34 "agc/agc.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000035 "agc/agc_manager_direct.cc",
36 "agc/agc_manager_direct.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000037 "agc/gain_map_internal.h",
bjornv@webrtc.orgb395a5e2014-12-16 10:38:10 +000038 "agc/legacy/analog_agc.c",
39 "agc/legacy/analog_agc.h",
40 "agc/legacy/digital_agc.c",
41 "agc/legacy/digital_agc.h",
42 "agc/legacy/gain_control.h",
peahbbe42332016-06-08 06:42:02 -070043 "agc/loudness_histogram.cc",
44 "agc/loudness_histogram.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000045 "agc/utility.cc",
46 "agc/utility.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000047 "audio_buffer.cc",
48 "audio_buffer.h",
49 "audio_processing_impl.cc",
50 "audio_processing_impl.h",
aluebs4a66e4a2015-10-19 18:02:39 -070051 "beamformer/array_util.cc",
52 "beamformer/array_util.h",
aluebs@webrtc.org0c39e912014-12-18 22:22:04 +000053 "beamformer/complex_matrix.h",
54 "beamformer/covariance_matrix_generator.cc",
55 "beamformer/covariance_matrix_generator.h",
56 "beamformer/matrix.h",
andrew@webrtc.orgbd8c8652015-03-20 00:28:22 +000057 "beamformer/nonlinear_beamformer.cc",
58 "beamformer/nonlinear_beamformer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000059 "common.h",
60 "echo_cancellation_impl.cc",
61 "echo_cancellation_impl.h",
62 "echo_control_mobile_impl.cc",
63 "echo_control_mobile_impl.h",
ivocaf27ed02016-10-28 07:04:03 -070064 "echo_detector/circular_buffer.cc",
65 "echo_detector/circular_buffer.h",
66 "echo_detector/mean_variance_estimator.cc",
67 "echo_detector/mean_variance_estimator.h",
68 "echo_detector/normalized_covariance_estimator.cc",
69 "echo_detector/normalized_covariance_estimator.h",
peahbe615622016-02-13 16:40:47 -080070 "gain_control_for_experimental_agc.cc",
71 "gain_control_for_experimental_agc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000072 "gain_control_impl.cc",
73 "gain_control_impl.h",
74 "high_pass_filter_impl.cc",
75 "high_pass_filter_impl.h",
peahc19f3122016-10-07 14:54:10 -070076 "include/audio_processing.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000077 "include/audio_processing.h",
solenberg88499ec2016-09-07 07:34:41 -070078 "include/config.cc",
79 "include/config.h",
peahca4cac72016-06-29 15:26:12 -070080 "level_controller/biquad_filter.cc",
81 "level_controller/biquad_filter.h",
82 "level_controller/down_sampler.cc",
83 "level_controller/down_sampler.h",
84 "level_controller/gain_applier.cc",
85 "level_controller/gain_applier.h",
86 "level_controller/gain_selector.cc",
87 "level_controller/gain_selector.h",
peahca4cac72016-06-29 15:26:12 -070088 "level_controller/level_controller.cc",
89 "level_controller/level_controller.h",
peahc19f3122016-10-07 14:54:10 -070090 "level_controller/level_controller_constants.h",
peahca4cac72016-06-29 15:26:12 -070091 "level_controller/noise_level_estimator.cc",
92 "level_controller/noise_level_estimator.h",
93 "level_controller/noise_spectrum_estimator.cc",
94 "level_controller/noise_spectrum_estimator.h",
95 "level_controller/peak_level_estimator.cc",
96 "level_controller/peak_level_estimator.h",
97 "level_controller/saturating_gain_estimator.cc",
98 "level_controller/saturating_gain_estimator.h",
99 "level_controller/signal_classifier.cc",
100 "level_controller/signal_classifier.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000101 "level_estimator_impl.cc",
102 "level_estimator_impl.h",
peahb46083e2016-05-03 07:01:18 -0700103 "logging/apm_data_dumper.cc",
104 "logging/apm_data_dumper.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000105 "noise_suppression_impl.cc",
106 "noise_suppression_impl.h",
peah737f4b82016-03-10 23:05:28 -0800107 "render_queue_item_verifier.h",
ivoc9f4a4a02016-10-28 05:39:16 -0700108 "residual_echo_detector.cc",
109 "residual_echo_detector.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000110 "rms_level.cc",
111 "rms_level.h",
aluebs@webrtc.orgbe05c742014-11-14 22:18:10 +0000112 "splitting_filter.cc",
113 "splitting_filter.h",
Alejandro Luebs5a92aa82015-04-27 11:34:45 -0700114 "three_band_filter_bank.cc",
115 "three_band_filter_bank.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +0000116 "transient/common.h",
117 "transient/daubechies_8_wavelet_coeffs.h",
118 "transient/dyadic_decimator.h",
119 "transient/moving_moments.cc",
120 "transient/moving_moments.h",
121 "transient/transient_detector.cc",
122 "transient/transient_detector.h",
123 "transient/transient_suppressor.cc",
124 "transient/transient_suppressor.h",
125 "transient/wpd_node.cc",
126 "transient/wpd_node.h",
127 "transient/wpd_tree.cc",
128 "transient/wpd_tree.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000129 "typing_detection.cc",
130 "typing_detection.h",
minyue84db6fa2016-03-24 14:36:25 -0700131 "utility/block_mean_calculator.cc",
132 "utility/block_mean_calculator.h",
peahbdb7af62016-04-12 14:47:40 -0700133 "utility/delay_estimator.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000134 "utility/delay_estimator.h",
135 "utility/delay_estimator_internal.h",
peahbdb7af62016-04-12 14:47:40 -0700136 "utility/delay_estimator_wrapper.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000137 "utility/delay_estimator_wrapper.h",
peah81b92912016-10-06 06:46:20 -0700138 "utility/ooura_fft.cc",
139 "utility/ooura_fft.h",
140 "utility/ooura_fft_tables_common.h",
aluebsecf6b812015-06-25 12:28:48 -0700141 "vad/common.h",
142 "vad/gmm.cc",
143 "vad/gmm.h",
144 "vad/noise_gmm_tables.h",
145 "vad/pitch_based_vad.cc",
146 "vad/pitch_based_vad.h",
147 "vad/pitch_internal.cc",
148 "vad/pitch_internal.h",
149 "vad/pole_zero_filter.cc",
150 "vad/pole_zero_filter.h",
151 "vad/standalone_vad.cc",
152 "vad/standalone_vad.h",
153 "vad/vad_audio_proc.cc",
154 "vad/vad_audio_proc.h",
155 "vad/vad_audio_proc_internal.h",
156 "vad/vad_circular_buffer.cc",
157 "vad/vad_circular_buffer.h",
158 "vad/voice_activity_detector.cc",
159 "vad/voice_activity_detector.h",
160 "vad/voice_gmm_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000161 "voice_detection_impl.cc",
162 "voice_detection_impl.h",
163 ]
164
165 defines = []
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200166 deps = [
167 "../..:webrtc_common",
kwiberg98ab3a42015-09-30 21:54:21 -0700168 "../audio_coding:isac",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200169 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000170
peahf28a3892016-09-01 08:58:21 -0700171 if (apm_debug_dump) {
172 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ]
peahb46083e2016-05-03 07:01:18 -0700173 } else {
peahf28a3892016-09-01 08:58:21 -0700174 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000175 }
176
177 if (aec_untrusted_delay_for_testing) {
178 defines += [ "WEBRTC_UNTRUSTED_DELAY" ]
179 }
180
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000181 if (rtc_enable_protobuf) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000182 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
183 deps += [ ":audioproc_debug_proto" ]
184 }
185
peah1bcfce52016-08-26 07:16:04 -0700186 if (rtc_enable_intelligibility_enhancer) {
187 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
188 sources += [
189 "intelligibility/intelligibility_enhancer.cc",
190 "intelligibility/intelligibility_enhancer.h",
191 "intelligibility/intelligibility_utils.cc",
192 "intelligibility/intelligibility_utils.h",
193 ]
194 } else {
195 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
196 }
197
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000198 if (rtc_prefer_fixed_point) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000199 defines += [ "WEBRTC_NS_FIXED" ]
200 sources += [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000201 "ns/noise_suppression_x.c",
Henrik Kjellander9b72af92015-11-11 20:16:11 +0100202 "ns/noise_suppression_x.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000203 "ns/nsx_core.c",
204 "ns/nsx_core.h",
205 "ns/nsx_defines.h",
206 ]
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000207 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000208 sources += [ "ns/nsx_core_mips.c" ]
209 } else {
210 sources += [ "ns/nsx_core_c.c" ]
211 }
212 } else {
213 defines += [ "WEBRTC_NS_FLOAT" ]
214 sources += [
215 "ns/defines.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000216 "ns/noise_suppression.c",
Henrik Kjellander9b72af92015-11-11 20:16:11 +0100217 "ns/noise_suppression.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000218 "ns/ns_core.c",
219 "ns/ns_core.h",
220 "ns/windows_private.h",
221 ]
222 }
223
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000224 if (current_cpu == "x86" || current_cpu == "x64") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000225 deps += [ ":audio_processing_sse2" ]
226 }
227
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700228 if (rtc_build_with_neon) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000229 deps += [ ":audio_processing_neon" ]
230 }
231
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000232 if (current_cpu == "mipsel") {
peah27045122016-04-10 22:38:14 -0700233 sources += [ "aecm/aecm_core_mips.cc" ]
kjellander@webrtc.org6dab6d72015-03-04 09:50:31 +0000234 if (mips_float_abi == "hard") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000235 sources += [
peah8df5d4f2016-02-23 14:34:59 -0800236 "aec/aec_core_mips.cc",
peah81b92912016-10-06 06:46:20 -0700237 "utility/ooura_fft_mips.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000238 ]
239 }
240 } else {
peah27045122016-04-10 22:38:14 -0700241 sources += [ "aecm/aecm_core_c.cc" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000242 }
243
kjellander8f4419b2016-06-02 02:09:52 -0700244 # TODO(jschuh): Bug 1348: fix this warning.
245 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000246
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000247 deps += [
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000248 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000249 "../../common_audio",
250 "../../system_wrappers",
251 ]
252}
253
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000254if (rtc_enable_protobuf) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000255 proto_library("audioproc_debug_proto") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200256 sources = [
257 "debug.proto",
258 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000259
kjellander78ddd732016-02-09 08:13:06 -0800260 proto_out_dir = "webrtc/modules/audio_processing"
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000261 }
262}
263
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000264if (current_cpu == "x86" || current_cpu == "x64") {
kjellanderb62dbbe2016-09-23 00:38:52 -0700265 rtc_static_library("audio_processing_sse2") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000266 sources = [
peah8df5d4f2016-02-23 14:34:59 -0800267 "aec/aec_core_sse2.cc",
peah81b92912016-10-06 06:46:20 -0700268 "utility/ooura_fft_sse2.cc",
269 "utility/ooura_fft_tables_neon_sse2.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000270 ]
271
Henrik Kjellanderf2497cf2015-04-16 08:57:16 +0200272 if (is_posix) {
273 cflags = [ "-msse2" ]
274 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000275
peahf28a3892016-09-01 08:58:21 -0700276 if (apm_debug_dump) {
277 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
peahb46083e2016-05-03 07:01:18 -0700278 } else {
peahf28a3892016-09-01 08:58:21 -0700279 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
peahb46083e2016-05-03 07:01:18 -0700280 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000281 }
282}
283
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700284if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700285 rtc_static_library("audio_processing_neon") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000286 sources = [
peah8df5d4f2016-02-23 14:34:59 -0800287 "aec/aec_core_neon.cc",
peah27045122016-04-10 22:38:14 -0700288 "aecm/aecm_core_neon.cc",
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000289 "ns/nsx_core_neon.c",
peah81b92912016-10-06 06:46:20 -0700290 "utility/ooura_fft_neon.cc",
291 "utility/ooura_fft_tables_neon_sse2.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000292 ]
293
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000294 if (current_cpu != "arm64") {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700295 # Enable compilation for the NEON instruction set. This is needed
296 # since //build/config/arm.gni only enables NEON for iOS, not Android.
297 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700298 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200299 cflags = [ "-mfpu=neon" ]
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000300 }
301
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700302 # Disable LTO on NEON targets due to compiler bug.
303 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000304 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000305 cflags -= [
306 "-flto",
307 "-ffat-lto-objects",
308 ]
309 }
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700310
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700311 deps = [
312 "../../common_audio",
313 ]
peahb46083e2016-05-03 07:01:18 -0700314
peahf28a3892016-09-01 08:58:21 -0700315 if (apm_debug_dump) {
316 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
peahb46083e2016-05-03 07:01:18 -0700317 } else {
peahf28a3892016-09-01 08:58:21 -0700318 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
peahb46083e2016-05-03 07:01:18 -0700319 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000320 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000321}
kjellanderfb114242016-06-13 00:19:48 -0700322
323if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -0700324 group("audio_processing_tests") {
325 testonly = true
326 public_deps = [
327 ":audioproc_f",
328 ":audioproc_test_utils",
329 ":click_annotate",
330 ":nonlinear_beamformer_test",
331 ":transient_suppression_test",
332 ":unpack_aecdump",
333 ]
334
335 if (rtc_enable_intelligibility_enhancer) {
336 public_deps += [ ":intelligibility_proc" ]
337 }
338
339 if (rtc_enable_protobuf) {
340 public_deps += [ ":audioproc_unittest_proto" ]
341 }
342 }
343
ehmaldonado38a21322016-09-02 04:10:34 -0700344 rtc_executable("unpack_aecdump") {
peahc3ec1fd2016-08-07 23:19:30 -0700345 testonly = true
346 sources = [
347 "test/unpack.cc",
348 ]
349
peahc3ec1fd2016-08-07 23:19:30 -0700350 deps = [
351 ":audio_processing",
352 ":audioproc_debug_proto",
353 ":audioproc_protobuf_utils",
354 ":audioproc_test_utils",
355 "../../common_audio",
356 "../../system_wrappers:system_wrappers_default",
357 "//third_party/gflags:gflags",
358 ]
359 } # unpack_aecdump
360
ehmaldonado38a21322016-09-02 04:10:34 -0700361 rtc_executable("audioproc_f") {
peahc3ec1fd2016-08-07 23:19:30 -0700362 testonly = true
363 sources = [
364 "test/aec_dump_based_simulator.cc",
365 "test/aec_dump_based_simulator.h",
366 "test/audio_processing_simulator.cc",
367 "test/audio_processing_simulator.h",
368 "test/audioproc_float.cc",
369 "test/wav_based_simulator.cc",
370 "test/wav_based_simulator.h",
371 ]
372
peahc3ec1fd2016-08-07 23:19:30 -0700373 deps = [
374 ":audio_processing",
375 ":audioproc_debug_proto",
376 ":audioproc_protobuf_utils",
377 ":audioproc_test_utils",
378 "../../system_wrappers",
379 "../../system_wrappers:system_wrappers_default",
380 "../../test:test_support",
381 "//testing/gtest",
382 "//third_party/gflags:gflags",
383 ]
384 } # audioproc_f
385
ehmaldonado38a21322016-09-02 04:10:34 -0700386 rtc_source_set("audioproc_test_utils") {
kjellanderfb114242016-06-13 00:19:48 -0700387 testonly = true
388 sources = [
ehmaldonado529f83c2016-07-27 08:14:32 -0700389 "test/audio_buffer_tools.cc",
390 "test/audio_buffer_tools.h",
kjellanderfb114242016-06-13 00:19:48 -0700391 "test/test_utils.cc",
392 "test/test_utils.h",
393 ]
394
kjellanderfb114242016-06-13 00:19:48 -0700395 deps = [
396 "../../base:rtc_base_approved",
397 "../../common_audio",
398 ]
399 }
400
ehmaldonado38a21322016-09-02 04:10:34 -0700401 rtc_executable("transient_suppression_test") {
kwiberg7a770e02016-08-25 02:32:43 -0700402 testonly = true
403 sources = [
404 "transient/file_utils.cc",
405 "transient/file_utils.h",
406 "transient/transient_suppression_test.cc",
407 ]
408 deps = [
409 ":audio_processing",
410 "../../system_wrappers:metrics_default",
411 "../../test:test_support",
412 "//testing/gtest",
413 "//third_party/gflags",
414 ]
kwiberg7a770e02016-08-25 02:32:43 -0700415 }
416
ehmaldonado38a21322016-09-02 04:10:34 -0700417 rtc_executable("click_annotate") {
kwiberg7a770e02016-08-25 02:32:43 -0700418 testonly = true
419 sources = [
420 "transient/click_annotate.cc",
421 "transient/file_utils.cc",
422 "transient/file_utils.h",
423 ]
424 deps = [
425 ":audio_processing",
426 "../../system_wrappers:metrics_default",
427 ]
428 }
429
ehmaldonado38a21322016-09-02 04:10:34 -0700430 rtc_executable("nonlinear_beamformer_test") {
kwiberg7a770e02016-08-25 02:32:43 -0700431 testonly = true
432 sources = [
433 "beamformer/nonlinear_beamformer_test.cc",
434 ]
435 deps = [
436 ":audio_processing",
437 ":audioproc_test_utils",
438 "../../system_wrappers:metrics_default",
439 "//third_party/gflags",
440 ]
kwiberg7a770e02016-08-25 02:32:43 -0700441 }
442
peah1bcfce52016-08-26 07:16:04 -0700443 if (rtc_enable_intelligibility_enhancer) {
ehmaldonado38a21322016-09-02 04:10:34 -0700444 rtc_executable("intelligibility_proc") {
peah1bcfce52016-08-26 07:16:04 -0700445 testonly = true
446 sources = [
447 "intelligibility/test/intelligibility_proc.cc",
448 ]
449 deps = [
450 ":audio_processing",
451 ":audioproc_test_utils",
452 "../../system_wrappers:metrics_default",
453 "../../test:test_support",
454 "//testing/gtest",
455 "//third_party/gflags",
456 ]
kwiberg7a770e02016-08-25 02:32:43 -0700457 }
458 }
459
kjellanderfb114242016-06-13 00:19:48 -0700460 if (rtc_enable_protobuf) {
461 proto_library("audioproc_unittest_proto") {
462 sources = [
463 "test/unittest.proto",
464 ]
465 proto_out_dir = "webrtc/modules/audio_processing"
466 }
467
kjellanderb62dbbe2016-09-23 00:38:52 -0700468 rtc_static_library("audioproc_protobuf_utils") {
kjellanderfb114242016-06-13 00:19:48 -0700469 sources = [
470 "test/protobuf_utils.cc",
471 "test/protobuf_utils.h",
472 ]
473
474 deps = [
ehmaldonadobcba64a2016-08-19 02:11:07 -0700475 ":audioproc_debug_proto",
kjellanderfb114242016-06-13 00:19:48 -0700476 ]
477 }
478 }
479}