blob: 8aded107becbad5cadaef1f3f1aa020d50fb2671 [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",
peahbe615622016-02-13 16:40:47 -080064 "gain_control_for_experimental_agc.cc",
65 "gain_control_for_experimental_agc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000066 "gain_control_impl.cc",
67 "gain_control_impl.h",
68 "high_pass_filter_impl.cc",
69 "high_pass_filter_impl.h",
peahc19f3122016-10-07 14:54:10 -070070 "include/audio_processing.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000071 "include/audio_processing.h",
solenberg88499ec2016-09-07 07:34:41 -070072 "include/config.cc",
73 "include/config.h",
peahca4cac72016-06-29 15:26:12 -070074 "level_controller/biquad_filter.cc",
75 "level_controller/biquad_filter.h",
76 "level_controller/down_sampler.cc",
77 "level_controller/down_sampler.h",
78 "level_controller/gain_applier.cc",
79 "level_controller/gain_applier.h",
80 "level_controller/gain_selector.cc",
81 "level_controller/gain_selector.h",
peahca4cac72016-06-29 15:26:12 -070082 "level_controller/level_controller.cc",
83 "level_controller/level_controller.h",
peahc19f3122016-10-07 14:54:10 -070084 "level_controller/level_controller_constants.h",
peahca4cac72016-06-29 15:26:12 -070085 "level_controller/noise_level_estimator.cc",
86 "level_controller/noise_level_estimator.h",
87 "level_controller/noise_spectrum_estimator.cc",
88 "level_controller/noise_spectrum_estimator.h",
89 "level_controller/peak_level_estimator.cc",
90 "level_controller/peak_level_estimator.h",
91 "level_controller/saturating_gain_estimator.cc",
92 "level_controller/saturating_gain_estimator.h",
93 "level_controller/signal_classifier.cc",
94 "level_controller/signal_classifier.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000095 "level_estimator_impl.cc",
96 "level_estimator_impl.h",
peahb46083e2016-05-03 07:01:18 -070097 "logging/apm_data_dumper.cc",
98 "logging/apm_data_dumper.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000099 "noise_suppression_impl.cc",
100 "noise_suppression_impl.h",
peah737f4b82016-03-10 23:05:28 -0800101 "render_queue_item_verifier.h",
ivoc9f4a4a02016-10-28 05:39:16 -0700102 "residual_echo_detector.cc",
103 "residual_echo_detector.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000104 "rms_level.cc",
105 "rms_level.h",
aluebs@webrtc.orgbe05c742014-11-14 22:18:10 +0000106 "splitting_filter.cc",
107 "splitting_filter.h",
Alejandro Luebs5a92aa82015-04-27 11:34:45 -0700108 "three_band_filter_bank.cc",
109 "three_band_filter_bank.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +0000110 "transient/common.h",
111 "transient/daubechies_8_wavelet_coeffs.h",
112 "transient/dyadic_decimator.h",
113 "transient/moving_moments.cc",
114 "transient/moving_moments.h",
115 "transient/transient_detector.cc",
116 "transient/transient_detector.h",
117 "transient/transient_suppressor.cc",
118 "transient/transient_suppressor.h",
119 "transient/wpd_node.cc",
120 "transient/wpd_node.h",
121 "transient/wpd_tree.cc",
122 "transient/wpd_tree.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000123 "typing_detection.cc",
124 "typing_detection.h",
minyue84db6fa2016-03-24 14:36:25 -0700125 "utility/block_mean_calculator.cc",
126 "utility/block_mean_calculator.h",
peahbdb7af62016-04-12 14:47:40 -0700127 "utility/delay_estimator.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000128 "utility/delay_estimator.h",
129 "utility/delay_estimator_internal.h",
peahbdb7af62016-04-12 14:47:40 -0700130 "utility/delay_estimator_wrapper.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000131 "utility/delay_estimator_wrapper.h",
peah81b92912016-10-06 06:46:20 -0700132 "utility/ooura_fft.cc",
133 "utility/ooura_fft.h",
134 "utility/ooura_fft_tables_common.h",
aluebsecf6b812015-06-25 12:28:48 -0700135 "vad/common.h",
136 "vad/gmm.cc",
137 "vad/gmm.h",
138 "vad/noise_gmm_tables.h",
139 "vad/pitch_based_vad.cc",
140 "vad/pitch_based_vad.h",
141 "vad/pitch_internal.cc",
142 "vad/pitch_internal.h",
143 "vad/pole_zero_filter.cc",
144 "vad/pole_zero_filter.h",
145 "vad/standalone_vad.cc",
146 "vad/standalone_vad.h",
147 "vad/vad_audio_proc.cc",
148 "vad/vad_audio_proc.h",
149 "vad/vad_audio_proc_internal.h",
150 "vad/vad_circular_buffer.cc",
151 "vad/vad_circular_buffer.h",
152 "vad/voice_activity_detector.cc",
153 "vad/voice_activity_detector.h",
154 "vad/voice_gmm_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000155 "voice_detection_impl.cc",
156 "voice_detection_impl.h",
157 ]
158
159 defines = []
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200160 deps = [
161 "../..:webrtc_common",
kwiberg98ab3a42015-09-30 21:54:21 -0700162 "../audio_coding:isac",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200163 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000164
peahf28a3892016-09-01 08:58:21 -0700165 if (apm_debug_dump) {
166 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ]
peahb46083e2016-05-03 07:01:18 -0700167 } else {
peahf28a3892016-09-01 08:58:21 -0700168 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000169 }
170
171 if (aec_untrusted_delay_for_testing) {
172 defines += [ "WEBRTC_UNTRUSTED_DELAY" ]
173 }
174
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000175 if (rtc_enable_protobuf) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000176 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
177 deps += [ ":audioproc_debug_proto" ]
178 }
179
peah1bcfce52016-08-26 07:16:04 -0700180 if (rtc_enable_intelligibility_enhancer) {
181 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
182 sources += [
183 "intelligibility/intelligibility_enhancer.cc",
184 "intelligibility/intelligibility_enhancer.h",
185 "intelligibility/intelligibility_utils.cc",
186 "intelligibility/intelligibility_utils.h",
187 ]
188 } else {
189 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
190 }
191
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000192 if (rtc_prefer_fixed_point) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000193 defines += [ "WEBRTC_NS_FIXED" ]
194 sources += [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000195 "ns/noise_suppression_x.c",
Henrik Kjellander9b72af92015-11-11 20:16:11 +0100196 "ns/noise_suppression_x.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000197 "ns/nsx_core.c",
198 "ns/nsx_core.h",
199 "ns/nsx_defines.h",
200 ]
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000201 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000202 sources += [ "ns/nsx_core_mips.c" ]
203 } else {
204 sources += [ "ns/nsx_core_c.c" ]
205 }
206 } else {
207 defines += [ "WEBRTC_NS_FLOAT" ]
208 sources += [
209 "ns/defines.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000210 "ns/noise_suppression.c",
Henrik Kjellander9b72af92015-11-11 20:16:11 +0100211 "ns/noise_suppression.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000212 "ns/ns_core.c",
213 "ns/ns_core.h",
214 "ns/windows_private.h",
215 ]
216 }
217
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000218 if (current_cpu == "x86" || current_cpu == "x64") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000219 deps += [ ":audio_processing_sse2" ]
220 }
221
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700222 if (rtc_build_with_neon) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000223 deps += [ ":audio_processing_neon" ]
224 }
225
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000226 if (current_cpu == "mipsel") {
peah27045122016-04-10 22:38:14 -0700227 sources += [ "aecm/aecm_core_mips.cc" ]
kjellander@webrtc.org6dab6d72015-03-04 09:50:31 +0000228 if (mips_float_abi == "hard") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000229 sources += [
peah8df5d4f2016-02-23 14:34:59 -0800230 "aec/aec_core_mips.cc",
peah81b92912016-10-06 06:46:20 -0700231 "utility/ooura_fft_mips.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000232 ]
233 }
234 } else {
peah27045122016-04-10 22:38:14 -0700235 sources += [ "aecm/aecm_core_c.cc" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000236 }
237
kjellander8f4419b2016-06-02 02:09:52 -0700238 # TODO(jschuh): Bug 1348: fix this warning.
239 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000240
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000241 deps += [
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000242 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000243 "../../common_audio",
244 "../../system_wrappers",
245 ]
246}
247
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000248if (rtc_enable_protobuf) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000249 proto_library("audioproc_debug_proto") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200250 sources = [
251 "debug.proto",
252 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000253
kjellander78ddd732016-02-09 08:13:06 -0800254 proto_out_dir = "webrtc/modules/audio_processing"
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000255 }
256}
257
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000258if (current_cpu == "x86" || current_cpu == "x64") {
kjellanderb62dbbe2016-09-23 00:38:52 -0700259 rtc_static_library("audio_processing_sse2") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000260 sources = [
peah8df5d4f2016-02-23 14:34:59 -0800261 "aec/aec_core_sse2.cc",
peah81b92912016-10-06 06:46:20 -0700262 "utility/ooura_fft_sse2.cc",
263 "utility/ooura_fft_tables_neon_sse2.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000264 ]
265
Henrik Kjellanderf2497cf2015-04-16 08:57:16 +0200266 if (is_posix) {
267 cflags = [ "-msse2" ]
268 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000269
peahf28a3892016-09-01 08:58:21 -0700270 if (apm_debug_dump) {
271 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
peahb46083e2016-05-03 07:01:18 -0700272 } else {
peahf28a3892016-09-01 08:58:21 -0700273 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
peahb46083e2016-05-03 07:01:18 -0700274 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000275 }
276}
277
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700278if (rtc_build_with_neon) {
kjellanderb62dbbe2016-09-23 00:38:52 -0700279 rtc_static_library("audio_processing_neon") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000280 sources = [
peah8df5d4f2016-02-23 14:34:59 -0800281 "aec/aec_core_neon.cc",
peah27045122016-04-10 22:38:14 -0700282 "aecm/aecm_core_neon.cc",
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000283 "ns/nsx_core_neon.c",
peah81b92912016-10-06 06:46:20 -0700284 "utility/ooura_fft_neon.cc",
285 "utility/ooura_fft_tables_neon_sse2.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000286 ]
287
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000288 if (current_cpu != "arm64") {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700289 # Enable compilation for the NEON instruction set. This is needed
290 # since //build/config/arm.gni only enables NEON for iOS, not Android.
291 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700292 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200293 cflags = [ "-mfpu=neon" ]
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000294 }
295
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700296 # Disable LTO on NEON targets due to compiler bug.
297 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000298 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000299 cflags -= [
300 "-flto",
301 "-ffat-lto-objects",
302 ]
303 }
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700304
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700305 deps = [
306 "../../common_audio",
307 ]
peahb46083e2016-05-03 07:01:18 -0700308
peahf28a3892016-09-01 08:58:21 -0700309 if (apm_debug_dump) {
310 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
peahb46083e2016-05-03 07:01:18 -0700311 } else {
peahf28a3892016-09-01 08:58:21 -0700312 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
peahb46083e2016-05-03 07:01:18 -0700313 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000314 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000315}
kjellanderfb114242016-06-13 00:19:48 -0700316
317if (rtc_include_tests) {
kjellander6ceab082016-10-28 05:44:03 -0700318 group("audio_processing_tests") {
319 testonly = true
320 public_deps = [
321 ":audioproc_f",
322 ":audioproc_test_utils",
323 ":click_annotate",
324 ":nonlinear_beamformer_test",
325 ":transient_suppression_test",
326 ":unpack_aecdump",
327 ]
328
329 if (rtc_enable_intelligibility_enhancer) {
330 public_deps += [ ":intelligibility_proc" ]
331 }
332
333 if (rtc_enable_protobuf) {
334 public_deps += [ ":audioproc_unittest_proto" ]
335 }
336 }
337
ehmaldonado38a21322016-09-02 04:10:34 -0700338 rtc_executable("unpack_aecdump") {
peahc3ec1fd2016-08-07 23:19:30 -0700339 testonly = true
340 sources = [
341 "test/unpack.cc",
342 ]
343
peahc3ec1fd2016-08-07 23:19:30 -0700344 deps = [
345 ":audio_processing",
346 ":audioproc_debug_proto",
347 ":audioproc_protobuf_utils",
348 ":audioproc_test_utils",
349 "../../common_audio",
350 "../../system_wrappers:system_wrappers_default",
351 "//third_party/gflags:gflags",
352 ]
353 } # unpack_aecdump
354
ehmaldonado38a21322016-09-02 04:10:34 -0700355 rtc_executable("audioproc_f") {
peahc3ec1fd2016-08-07 23:19:30 -0700356 testonly = true
357 sources = [
358 "test/aec_dump_based_simulator.cc",
359 "test/aec_dump_based_simulator.h",
360 "test/audio_processing_simulator.cc",
361 "test/audio_processing_simulator.h",
362 "test/audioproc_float.cc",
363 "test/wav_based_simulator.cc",
364 "test/wav_based_simulator.h",
365 ]
366
peahc3ec1fd2016-08-07 23:19:30 -0700367 deps = [
368 ":audio_processing",
369 ":audioproc_debug_proto",
370 ":audioproc_protobuf_utils",
371 ":audioproc_test_utils",
372 "../../system_wrappers",
373 "../../system_wrappers:system_wrappers_default",
374 "../../test:test_support",
375 "//testing/gtest",
376 "//third_party/gflags:gflags",
377 ]
378 } # audioproc_f
379
ehmaldonado38a21322016-09-02 04:10:34 -0700380 rtc_source_set("audioproc_test_utils") {
kjellanderfb114242016-06-13 00:19:48 -0700381 testonly = true
382 sources = [
ehmaldonado529f83c2016-07-27 08:14:32 -0700383 "test/audio_buffer_tools.cc",
384 "test/audio_buffer_tools.h",
kjellanderfb114242016-06-13 00:19:48 -0700385 "test/test_utils.cc",
386 "test/test_utils.h",
387 ]
388
kjellanderfb114242016-06-13 00:19:48 -0700389 deps = [
390 "../../base:rtc_base_approved",
391 "../../common_audio",
392 ]
393 }
394
ehmaldonado38a21322016-09-02 04:10:34 -0700395 rtc_executable("transient_suppression_test") {
kwiberg7a770e02016-08-25 02:32:43 -0700396 testonly = true
397 sources = [
398 "transient/file_utils.cc",
399 "transient/file_utils.h",
400 "transient/transient_suppression_test.cc",
401 ]
402 deps = [
403 ":audio_processing",
404 "../../system_wrappers:metrics_default",
405 "../../test:test_support",
406 "//testing/gtest",
407 "//third_party/gflags",
408 ]
kwiberg7a770e02016-08-25 02:32:43 -0700409 }
410
ehmaldonado38a21322016-09-02 04:10:34 -0700411 rtc_executable("click_annotate") {
kwiberg7a770e02016-08-25 02:32:43 -0700412 testonly = true
413 sources = [
414 "transient/click_annotate.cc",
415 "transient/file_utils.cc",
416 "transient/file_utils.h",
417 ]
418 deps = [
419 ":audio_processing",
420 "../../system_wrappers:metrics_default",
421 ]
422 }
423
ehmaldonado38a21322016-09-02 04:10:34 -0700424 rtc_executable("nonlinear_beamformer_test") {
kwiberg7a770e02016-08-25 02:32:43 -0700425 testonly = true
426 sources = [
427 "beamformer/nonlinear_beamformer_test.cc",
428 ]
429 deps = [
430 ":audio_processing",
431 ":audioproc_test_utils",
432 "../../system_wrappers:metrics_default",
433 "//third_party/gflags",
434 ]
kwiberg7a770e02016-08-25 02:32:43 -0700435 }
436
peah1bcfce52016-08-26 07:16:04 -0700437 if (rtc_enable_intelligibility_enhancer) {
ehmaldonado38a21322016-09-02 04:10:34 -0700438 rtc_executable("intelligibility_proc") {
peah1bcfce52016-08-26 07:16:04 -0700439 testonly = true
440 sources = [
441 "intelligibility/test/intelligibility_proc.cc",
442 ]
443 deps = [
444 ":audio_processing",
445 ":audioproc_test_utils",
446 "../../system_wrappers:metrics_default",
447 "../../test:test_support",
448 "//testing/gtest",
449 "//third_party/gflags",
450 ]
kwiberg7a770e02016-08-25 02:32:43 -0700451 }
452 }
453
kjellanderfb114242016-06-13 00:19:48 -0700454 if (rtc_enable_protobuf) {
455 proto_library("audioproc_unittest_proto") {
456 sources = [
457 "test/unittest.proto",
458 ]
459 proto_out_dir = "webrtc/modules/audio_processing"
460 }
461
kjellanderb62dbbe2016-09-23 00:38:52 -0700462 rtc_static_library("audioproc_protobuf_utils") {
kjellanderfb114242016-06-13 00:19:48 -0700463 sources = [
464 "test/protobuf_utils.cc",
465 "test/protobuf_utils.h",
466 ]
467
468 deps = [
ehmaldonadobcba64a2016-08-19 02:11:07 -0700469 ":audioproc_debug_proto",
kjellanderfb114242016-06-13 00:19:48 -0700470 ]
471 }
472 }
473}