blob: 186c43adbe44089514e599554f3891d040296e54 [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")
mbonadei9aa3f0a2017-01-24 06:58:22 -080010import("../../webrtc.gni")
Dan Minor9c686132018-01-15 10:20:00 -050011if (!build_with_mozilla) {
12 import("//third_party/protobuf/proto_library.gni")
13}
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000014
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000015declare_args() {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000016 # Disables the usual mode where we trust the reported system delay
17 # values the AEC receives. The corresponding define is set appropriately
18 # in the code, but it can be force-enabled here for testing.
19 aec_untrusted_delay_for_testing = false
20}
21
Patrik Höglundd75c8dc2017-12-19 09:45:24 +010022config("apm_debug_dump") {
23 if (apm_debug_dump) {
24 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
25 } else {
26 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
27 }
28}
29
kjellanderb62dbbe2016-09-23 00:38:52 -070030rtc_static_library("audio_processing") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000031 visibility = [ "*" ]
Patrik Höglundd75c8dc2017-12-19 09:45:24 +010032 configs += [ ":apm_debug_dump" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000033 sources = [
peah88950cf2016-03-04 00:12:40 -080034 "aec/aec_resampler.cc",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000035 "aec/aec_resampler.h",
peah8df5d4f2016-02-23 14:34:59 -080036 "aec/echo_cancellation.cc",
Henrik Kjellander9b72af92015-11-11 20:16:11 +010037 "aec/echo_cancellation.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000038 "agc/agc.cc",
39 "agc/agc.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000040 "agc/agc_manager_direct.cc",
41 "agc/agc_manager_direct.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000042 "agc/gain_map_internal.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",
ivoc4e477a12017-01-15 08:29:46 -080068 "echo_detector/moving_max.cc",
69 "echo_detector/moving_max.h",
ivocaf27ed02016-10-28 07:04:03 -070070 "echo_detector/normalized_covariance_estimator.cc",
71 "echo_detector/normalized_covariance_estimator.h",
peahbe615622016-02-13 16:40:47 -080072 "gain_control_for_experimental_agc.cc",
73 "gain_control_for_experimental_agc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000074 "gain_control_impl.cc",
75 "gain_control_impl.h",
Alex Loikoe36e8bb2018-02-16 11:54:07 +010076 "gain_controller2.cc",
77 "gain_controller2.h",
peahc19f3122016-10-07 14:54:10 -070078 "include/audio_processing.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000079 "include/audio_processing.h",
solenberg88499ec2016-09-07 07:34:41 -070080 "include/config.cc",
81 "include/config.h",
Sam Zackrisson52f81882018-03-06 11:54:08 +000082 "level_controller/biquad_filter.cc",
83 "level_controller/biquad_filter.h",
84 "level_controller/down_sampler.cc",
85 "level_controller/down_sampler.h",
86 "level_controller/gain_applier.cc",
87 "level_controller/gain_applier.h",
88 "level_controller/gain_selector.cc",
89 "level_controller/gain_selector.h",
90 "level_controller/level_controller.cc",
91 "level_controller/level_controller.h",
92 "level_controller/level_controller_constants.h",
93 "level_controller/noise_level_estimator.cc",
94 "level_controller/noise_level_estimator.h",
95 "level_controller/noise_spectrum_estimator.cc",
96 "level_controller/noise_spectrum_estimator.h",
97 "level_controller/peak_level_estimator.cc",
98 "level_controller/peak_level_estimator.h",
99 "level_controller/saturating_gain_estimator.cc",
100 "level_controller/saturating_gain_estimator.h",
101 "level_controller/signal_classifier.cc",
102 "level_controller/signal_classifier.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000103 "level_estimator_impl.cc",
104 "level_estimator_impl.h",
peah8271d042016-11-22 07:24:52 -0800105 "low_cut_filter.cc",
106 "low_cut_filter.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000107 "noise_suppression_impl.cc",
108 "noise_suppression_impl.h",
peah737f4b82016-03-10 23:05:28 -0800109 "render_queue_item_verifier.h",
ivoc9f4a4a02016-10-28 05:39:16 -0700110 "residual_echo_detector.cc",
111 "residual_echo_detector.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000112 "rms_level.cc",
113 "rms_level.h",
aluebs@webrtc.orgbe05c742014-11-14 22:18:10 +0000114 "splitting_filter.cc",
115 "splitting_filter.h",
Alejandro Luebs5a92aa82015-04-27 11:34:45 -0700116 "three_band_filter_bank.cc",
117 "three_band_filter_bank.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +0000118 "transient/common.h",
119 "transient/daubechies_8_wavelet_coeffs.h",
120 "transient/dyadic_decimator.h",
121 "transient/moving_moments.cc",
122 "transient/moving_moments.h",
123 "transient/transient_detector.cc",
124 "transient/transient_detector.h",
125 "transient/transient_suppressor.cc",
126 "transient/transient_suppressor.h",
127 "transient/wpd_node.cc",
128 "transient/wpd_node.h",
129 "transient/wpd_tree.cc",
130 "transient/wpd_tree.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000131 "typing_detection.cc",
132 "typing_detection.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000133 "voice_detection_impl.cc",
134 "voice_detection_impl.h",
135 ]
136
137 defines = []
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200138 deps = [
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100139 ":aec_core",
aleloi868f32f2017-05-23 07:20:05 -0700140 ":aec_dump_interface",
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100141 ":apm_logging",
Alex Loikoe36e8bb2018-02-16 11:54:07 +0100142 ":audio_frame_view",
Sam Zackrisson4d364492018-03-02 16:03:21 +0100143 ":audio_generator_interface",
Mirko Bonadei10679932017-12-05 15:07:16 +0100144 ":audio_processing_c",
Ivo Creusen56d46092017-11-24 17:29:59 +0100145 ":audio_processing_statistics",
mbonadei1140f972017-04-26 03:38:35 -0700146 "..:module_api",
Gustaf Ullbergf35c6662018-02-23 13:18:29 +0100147 "../..:typedefs",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200148 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700149 "../../api:array_view",
kwiberg84f6a3f2017-09-05 08:43:13 -0700150 "../../api:optional",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100151 "../../api/audio:aec3_config",
152 "../../api/audio:echo_control",
aleloi6321b492016-12-05 01:46:09 -0800153 "../../audio/utility:audio_frame_operations",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100154 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100155 "../../rtc_base:checks",
Patrik Höglund3e113432017-12-15 14:40:10 +0100156 "../../rtc_base:deprecation",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700157 "../../rtc_base:gtest_prod",
158 "../../rtc_base:protobuf_utils",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100159 "../../rtc_base:safe_minmax",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100160 "../../rtc_base:sanitizer",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100161 "../../system_wrappers:cpu_features_api",
Per Åhgren11556462017-12-22 16:13:57 +0100162 "../../system_wrappers:field_trial_api",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100163 "../../system_wrappers:metrics_api",
Alex Loikoe36e8bb2018-02-16 11:54:07 +0100164 "agc2",
Alex Loiko0488fcf2018-02-05 11:15:23 +0100165 "vad",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200166 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000167
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000168 if (aec_untrusted_delay_for_testing) {
169 defines += [ "WEBRTC_UNTRUSTED_DELAY" ]
170 }
171
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000172 if (rtc_enable_protobuf) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000173 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
174 deps += [ ":audioproc_debug_proto" ]
175 }
176
peah1bcfce52016-08-26 07:16:04 -0700177 if (rtc_enable_intelligibility_enhancer) {
178 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
179 sources += [
180 "intelligibility/intelligibility_enhancer.cc",
181 "intelligibility/intelligibility_enhancer.h",
182 "intelligibility/intelligibility_utils.cc",
183 "intelligibility/intelligibility_utils.h",
184 ]
185 } else {
186 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
187 }
188
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000189 if (rtc_prefer_fixed_point) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000190 defines += [ "WEBRTC_NS_FIXED" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000191 } else {
192 defines += [ "WEBRTC_NS_FLOAT" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000193 }
194
kjellander8f4419b2016-06-02 02:09:52 -0700195 # TODO(jschuh): Bug 1348: fix this warning.
196 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000197
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000198 deps += [
199 "../../common_audio",
Patrik Höglundf715c532017-11-17 11:04:15 +0100200 "../../common_audio:fir_filter",
201 "../../common_audio:fir_filter_factory",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700202 "../../rtc_base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000203 "../../system_wrappers",
204 ]
205}
206
Ivo Creusen56d46092017-11-24 17:29:59 +0100207rtc_source_set("audio_processing_statistics") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000208 visibility = [ "*" ]
Ivo Creusen56d46092017-11-24 17:29:59 +0100209 sources = [
210 "include/audio_processing_statistics.cc",
211 "include/audio_processing_statistics.h",
212 ]
213 deps = [
214 "../../api:optional",
215 ]
216}
217
Alex Loikoe36e8bb2018-02-16 11:54:07 +0100218rtc_source_set("audio_frame_view") {
219 sources = [
220 "include/audio_frame_view.h",
221 ]
222 deps = [
223 "../../api:array_view",
224 ]
225}
226
aleloi868f32f2017-05-23 07:20:05 -0700227rtc_source_set("aec_dump_interface") {
228 sources = [
229 "include/aec_dump.cc",
230 "include/aec_dump.h",
231 ]
232
233 deps = [
Alex Loikoe36e8bb2018-02-16 11:54:07 +0100234 ":audio_frame_view",
kwiberg529662a2017-09-04 05:43:17 -0700235 "../../api:array_view",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700236 "../../rtc_base:rtc_base_approved",
aleloi868f32f2017-05-23 07:20:05 -0700237 ]
238}
239
Sam Zackrisson4d364492018-03-02 16:03:21 +0100240rtc_source_set("audio_generator_interface") {
241 visibility = [ "*" ]
242 sources = [
243 "include/audio_generator.h",
244 ]
245 deps = [
246 ":audio_frame_view",
247 "../../rtc_base:rtc_base_approved",
248 "../../system_wrappers:system_wrappers",
249 ]
250}
251
252rtc_source_set("audio_generator_factory") {
253 visibility = [ "*" ]
254 sources = [
255 "include/audio_generator_factory.cc",
256 "include/audio_generator_factory.h",
257 ]
258 deps = [
259 ":audio_generator_interface",
260 ":file_audio_generator",
261 "../../common_audio:common_audio",
262 "../../rtc_base:rtc_base_approved",
263 "../../system_wrappers:system_wrappers",
264 ]
265}
266
267rtc_source_set("file_audio_generator") {
268 sources = [
269 "audio_generator/file_audio_generator.cc",
270 "audio_generator/file_audio_generator.h",
271 ]
272 deps = [
273 ":audio_generator_interface",
274 "../../common_audio:common_audio",
275 "../../rtc_base:rtc_base_approved",
276 "../../system_wrappers:system_wrappers",
277 ]
278}
279
kjellander7439f972016-12-05 22:47:46 -0800280rtc_source_set("audio_processing_c") {
281 visibility = [ ":*" ] # Only targets in this file can depend on this.
282 sources = [
283 "agc/legacy/analog_agc.c",
284 "agc/legacy/analog_agc.h",
285 "agc/legacy/digital_agc.c",
286 "agc/legacy/digital_agc.h",
287 "agc/legacy/gain_control.h",
288 ]
289
290 if (rtc_prefer_fixed_point) {
291 sources += [
292 "ns/noise_suppression_x.c",
293 "ns/noise_suppression_x.h",
294 "ns/nsx_core.c",
295 "ns/nsx_core.h",
296 "ns/nsx_defines.h",
297 ]
298 if (current_cpu == "mipsel") {
299 sources += [ "ns/nsx_core_mips.c" ]
300 } else {
301 sources += [ "ns/nsx_core_c.c" ]
302 }
303 } else {
304 sources += [
305 "ns/defines.h",
306 "ns/noise_suppression.c",
307 "ns/noise_suppression.h",
308 "ns/ns_core.c",
309 "ns/ns_core.h",
310 "ns/windows_private.h",
311 ]
312 }
313
314 deps = [
Gustaf Ullbergf35c6662018-02-23 13:18:29 +0100315 "../..:typedefs",
ehmaldonado64c4a7e2016-12-08 04:10:01 -0800316 "../..:webrtc_common",
kjellander7439f972016-12-05 22:47:46 -0800317 "../../common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100318 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100319 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700320 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100321 "../../system_wrappers:cpu_features_api",
kjellander7439f972016-12-05 22:47:46 -0800322 ]
mbonadeie5dc3ce2017-01-25 05:34:46 -0800323
324 if (rtc_build_with_neon) {
Patrik Höglund67c20ae2017-12-18 11:21:14 +0100325 sources += [ "ns/nsx_core_neon.c" ]
326
327 if (current_cpu != "arm64") {
328 # Enable compilation for the NEON instruction set. This is needed
329 # since //build/config/arm.gni only enables NEON for iOS, not Android.
330 # This provides the same functionality as webrtc/build/arm_neon.gypi.
331 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
332 cflags = [ "-mfpu=neon" ]
333 }
334
335 # Disable LTO on NEON targets due to compiler bug.
336 # TODO(fdegans): Enable this. See crbug.com/408997.
337 if (rtc_use_lto) {
338 cflags -= [
339 "-flto",
340 "-ffat-lto-objects",
341 ]
342 }
mbonadeie5dc3ce2017-01-25 05:34:46 -0800343 }
kjellander7439f972016-12-05 22:47:46 -0800344}
345
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000346if (rtc_enable_protobuf) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000347 proto_library("audioproc_debug_proto") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200348 sources = [
349 "debug.proto",
350 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000351
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200352 proto_out_dir = "modules/audio_processing"
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000353 }
354}
355
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100356rtc_source_set("apm_logging") {
Patrik Höglundd75c8dc2017-12-19 09:45:24 +0100357 configs += [ ":apm_debug_dump" ]
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100358 sources = [
359 "logging/apm_data_dumper.cc",
360 "logging/apm_data_dumper.h",
361 ]
362 deps = [
363 "../../api:array_view",
364 "../../common_audio:common_audio",
365 "../../rtc_base:rtc_base_approved",
Patrik Höglund3e113432017-12-15 14:40:10 +0100366 "../../rtc_base:stringutils",
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100367 ]
368 defines = []
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100369}
Patrik Höglunda36d0e22017-12-04 10:11:11 +0000370
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100371rtc_source_set("aec_core") {
Patrik Höglundd75c8dc2017-12-19 09:45:24 +0100372 configs += [ ":apm_debug_dump" ]
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100373 sources = [
Patrik Höglund62139292017-12-19 16:44:45 +0100374 "aec/aec_common.h",
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100375 "aec/aec_core.cc",
376 "aec/aec_core.h",
377 "aec/aec_core_optimized_methods.h",
378 "aecm/aecm_core.cc",
379 "aecm/aecm_core.h",
Patrik Höglund62139292017-12-19 16:44:45 +0100380 "aecm/aecm_defines.h",
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100381 "aecm/echo_control_mobile.cc",
382 "aecm/echo_control_mobile.h",
383 "utility/block_mean_calculator.cc",
384 "utility/block_mean_calculator.h",
385 "utility/delay_estimator.cc",
386 "utility/delay_estimator.h",
387 "utility/delay_estimator_internal.h",
388 "utility/delay_estimator_wrapper.cc",
389 "utility/delay_estimator_wrapper.h",
390 "utility/ooura_fft.cc",
391 "utility/ooura_fft.h",
392 "utility/ooura_fft_tables_common.h",
393 ]
394 deps = [
395 ":apm_logging",
396 ":audio_processing_statistics",
Gustaf Ullbergf35c6662018-02-23 13:18:29 +0100397 "../..:typedefs",
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100398 "../..:webrtc_common",
399 "../../common_audio:common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100400 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100401 "../../rtc_base:checks",
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100402 "../../rtc_base:rtc_base_approved",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100403 "../../rtc_base:sanitizer",
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100404 "../../system_wrappers:cpu_features_api",
405 "../../system_wrappers:metrics_api",
406 ]
407 cflags = []
408 defines = []
409
410 if (current_cpu == "x86" || current_cpu == "x64") {
411 sources += [
peah8df5d4f2016-02-23 14:34:59 -0800412 "aec/aec_core_sse2.cc",
peah81b92912016-10-06 06:46:20 -0700413 "utility/ooura_fft_sse2.cc",
414 "utility/ooura_fft_tables_neon_sse2.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000415 ]
Henrik Kjellanderf2497cf2015-04-16 08:57:16 +0200416 if (is_posix) {
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100417 cflags += [ "-msse2" ]
peahb46083e2016-05-03 07:01:18 -0700418 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000419 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000420
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100421 if (rtc_build_with_neon) {
422 sources += [
peah8df5d4f2016-02-23 14:34:59 -0800423 "aec/aec_core_neon.cc",
peah27045122016-04-10 22:38:14 -0700424 "aecm/aecm_core_neon.cc",
peah81b92912016-10-06 06:46:20 -0700425 "utility/ooura_fft_neon.cc",
426 "utility/ooura_fft_tables_neon_sse2.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000427 ]
428
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000429 if (current_cpu != "arm64") {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700430 # Enable compilation for the NEON instruction set. This is needed
431 # since //build/config/arm.gni only enables NEON for iOS, not Android.
432 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700433 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100434 cflags += [ "-mfpu=neon" ]
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000435 }
436
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700437 # Disable LTO on NEON targets due to compiler bug.
438 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000439 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000440 cflags -= [
441 "-flto",
442 "-ffat-lto-objects",
443 ]
444 }
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700445
Patrik Höglund67c20ae2017-12-18 11:21:14 +0100446 deps += [ "../../common_audio" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000447 }
kjellander7439f972016-12-05 22:47:46 -0800448
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100449 if (current_cpu == "mipsel") {
450 sources += [ "aecm/aecm_core_mips.cc" ]
451 if (mips_float_abi == "hard") {
452 sources += [
453 "aec/aec_core_mips.cc",
454 "utility/ooura_fft_mips.cc",
455 ]
456 }
457 } else {
458 sources += [ "aecm/aecm_core_c.cc" ]
459 }
Patrik Höglundf39659c2017-12-12 11:16:05 +0100460
461 # TODO(jschuh): Bug 1348: fix this warning.
462 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100463}
464
kjellanderfb114242016-06-13 00:19:48 -0700465if (rtc_include_tests) {
Patrik Höglund62139292017-12-19 16:44:45 +0100466 rtc_source_set("mocks") {
467 testonly = true
468 sources = [
469 "include/mock_audio_processing.h",
470 ]
471 deps = [
472 ":aec_dump_interface",
473 ":audio_processing",
474 ":audio_processing_statistics",
475 "../../test:test_support",
476 ]
477 }
478
kjellander6ceab082016-10-28 05:44:03 -0700479 group("audio_processing_tests") {
480 testonly = true
Mirko Bonadei10679932017-12-05 15:07:16 +0100481 deps = [
kjellander6ceab082016-10-28 05:44:03 -0700482 ":audioproc_test_utils",
483 ":click_annotate",
484 ":nonlinear_beamformer_test",
485 ":transient_suppression_test",
kjellander6ceab082016-10-28 05:44:03 -0700486 ]
487
488 if (rtc_enable_intelligibility_enhancer) {
Mirko Bonadei10679932017-12-05 15:07:16 +0100489 deps += [ ":intelligibility_proc" ]
kjellander6ceab082016-10-28 05:44:03 -0700490 }
491
492 if (rtc_enable_protobuf) {
Mirko Bonadei10679932017-12-05 15:07:16 +0100493 deps += [
ehmaldonado1fd08c12017-01-17 02:37:34 -0800494 ":audioproc_f",
495 ":audioproc_unittest_proto",
Alessio Bazzicaca90a552017-09-27 11:51:10 +0200496 "aec_dump:aec_dump_unittests",
alessiob5f32aca2017-03-18 02:29:13 -0700497 "test/conversational_speech",
alessiob306d1bf2017-02-24 05:32:21 -0800498 "test/py_quality_assessment",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800499 ]
kjellander6ceab082016-10-28 05:44:03 -0700500 }
501 }
502
ehmaldonado36268652017-01-19 08:27:11 -0800503 rtc_source_set("audio_processing_unittests") {
504 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700505
Patrik Höglundd75c8dc2017-12-19 09:45:24 +0100506 configs += [ ":apm_debug_dump" ]
ehmaldonado36268652017-01-19 08:27:11 -0800507 sources = [
508 "aec/echo_cancellation_unittest.cc",
509 "aec/system_delay_unittest.cc",
510 "agc/agc_manager_direct_unittest.cc",
511 "agc/loudness_histogram_unittest.cc",
512 "agc/mock_agc.h",
513 "audio_buffer_unittest.cc",
Alex Loiko153f11e2018-02-16 12:39:00 +0100514 "audio_frame_view_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800515 "beamformer/array_util_unittest.cc",
516 "beamformer/complex_matrix_unittest.cc",
517 "beamformer/covariance_matrix_generator_unittest.cc",
Patrik Höglund62139292017-12-19 16:44:45 +0100518 "beamformer/matrix_test_helpers.h",
ehmaldonado36268652017-01-19 08:27:11 -0800519 "beamformer/matrix_unittest.cc",
520 "beamformer/mock_nonlinear_beamformer.h",
ehmaldonado36268652017-01-19 08:27:11 -0800521 "config_unittest.cc",
522 "echo_cancellation_impl_unittest.cc",
Alex Loiko153f11e2018-02-16 12:39:00 +0100523 "gain_controller2_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800524 "splitting_filter_unittest.cc",
Alessio Bazzicaca90a552017-09-27 11:51:10 +0200525 "test/fake_recording_device_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800526 "transient/dyadic_decimator_unittest.cc",
527 "transient/file_utils.cc",
528 "transient/file_utils.h",
529 "transient/file_utils_unittest.cc",
530 "transient/moving_moments_unittest.cc",
531 "transient/transient_detector_unittest.cc",
532 "transient/transient_suppressor_unittest.cc",
533 "transient/wpd_node_unittest.cc",
534 "transient/wpd_tree_unittest.cc",
535 "utility/block_mean_calculator_unittest.cc",
536 "utility/delay_estimator_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800537 ]
538
539 deps = [
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100540 ":aec_core",
Alessio Bazzicaca90a552017-09-27 11:51:10 +0200541 ":analog_mic_simulation",
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100542 ":apm_logging",
Alex Loiko153f11e2018-02-16 12:39:00 +0100543 ":audio_frame_view",
ehmaldonado36268652017-01-19 08:27:11 -0800544 ":audio_processing",
ehmaldonado36268652017-01-19 08:27:11 -0800545 ":audioproc_test_utils",
Sam Zackrisson4d364492018-03-02 16:03:21 +0100546 ":file_audio_generator_unittests",
Patrik Höglund62139292017-12-19 16:44:45 +0100547 ":mocks",
mbonadei1140f972017-04-26 03:38:35 -0700548 "..:module_api",
Gustaf Ullbergf35c6662018-02-23 13:18:29 +0100549 "../..:typedefs",
ehmaldonado36268652017-01-19 08:27:11 -0800550 "../..:webrtc_common",
kwiberg529662a2017-09-04 05:43:17 -0700551 "../../api:array_view",
kwiberg84f6a3f2017-09-05 08:43:13 -0700552 "../../api:optional",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +0100553 "../../api/audio:aec3_config",
Gustaf Ullberg0efa9412018-02-27 13:58:45 +0100554 "../../api/audio:aec3_factory",
ehmaldonado36268652017-01-19 08:27:11 -0800555 "../../common_audio:common_audio",
Mirko Bonadeidbbb33c2018-02-05 15:50:41 +0100556 "../../common_audio:common_audio_c",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100557 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700558 "../../rtc_base:gtest_prod",
559 "../../rtc_base:protobuf_utils",
560 "../../rtc_base:rtc_base",
561 "../../rtc_base:rtc_base_approved",
Karl Wiberg12edf4c2018-03-07 14:18:56 +0100562 "../../rtc_base:safe_minmax",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100563 "../../system_wrappers",
564 "../../system_wrappers:cpu_features_api",
ehmaldonado36268652017-01-19 08:27:11 -0800565 "../../test:test_support",
Ivo Creusen385b10b2017-10-13 12:37:27 +0200566 "../audio_coding:neteq_input_audio_tools",
aleloi20e4a732017-06-08 08:12:46 -0700567 "aec_dump:mock_aec_dump_unittests",
Alex Loikoe36e8bb2018-02-16 11:54:07 +0100568 "agc2:fixed_digital_unittests",
alessiob4b6463c2017-03-23 05:17:06 -0700569 "test/conversational_speech:unittest",
Alex Loiko0488fcf2018-02-05 11:15:23 +0100570 "vad:vad_unittests",
ehmaldonado36268652017-01-19 08:27:11 -0800571 "//testing/gtest",
572 ]
573
574 defines = []
575
ehmaldonado36268652017-01-19 08:27:11 -0800576 if (rtc_enable_intelligibility_enhancer) {
577 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
578 sources += [
579 "intelligibility/intelligibility_enhancer_unittest.cc",
580 "intelligibility/intelligibility_utils_unittest.cc",
581 ]
582 } else {
583 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
584 }
585
586 if (rtc_prefer_fixed_point) {
587 defines += [ "WEBRTC_AUDIOPROC_FIXED_PROFILE" ]
588 } else {
589 defines += [ "WEBRTC_AUDIOPROC_FLOAT_PROFILE" ]
590 }
591
592 if (rtc_enable_protobuf) {
593 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
594 deps += [
ehmaldonadof49ff262017-01-23 04:26:02 -0800595 ":audioproc_debug_proto",
ehmaldonado36268652017-01-19 08:27:11 -0800596 ":audioproc_protobuf_utils",
Sam Zackrissond57f9dd2017-09-13 11:00:04 +0200597 ":audioproc_test_utils",
ehmaldonado36268652017-01-19 08:27:11 -0800598 ":audioproc_unittest_proto",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700599 "../../rtc_base:rtc_task_queue",
aleloif4dd1912017-06-15 01:55:38 -0700600 "aec_dump",
601 "aec_dump:aec_dump_unittests",
ehmaldonado36268652017-01-19 08:27:11 -0800602 ]
603 sources += [
ehmaldonado36268652017-01-19 08:27:11 -0800604 "audio_processing_impl_locking_unittest.cc",
605 "audio_processing_impl_unittest.cc",
606 "audio_processing_unittest.cc",
ehmaldonadof49ff262017-01-23 04:26:02 -0800607 "beamformer/nonlinear_beamformer_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800608 "echo_cancellation_bit_exact_unittest.cc",
609 "echo_control_mobile_unittest.cc",
610 "echo_detector/circular_buffer_unittest.cc",
611 "echo_detector/mean_variance_estimator_unittest.cc",
612 "echo_detector/moving_max_unittest.cc",
613 "echo_detector/normalized_covariance_estimator_unittest.cc",
614 "gain_control_unittest.cc",
Sam Zackrisson52f81882018-03-06 11:54:08 +0000615 "level_controller/level_controller_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800616 "level_estimator_unittest.cc",
617 "low_cut_filter_unittest.cc",
618 "noise_suppression_unittest.cc",
619 "residual_echo_detector_unittest.cc",
620 "rms_level_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800621 "test/debug_dump_replayer.cc",
622 "test/debug_dump_replayer.h",
623 "test/debug_dump_test.cc",
peah69221db2017-01-27 03:28:19 -0800624 "test/echo_canceller_test_tools.cc",
625 "test/echo_canceller_test_tools.h",
626 "test/echo_canceller_test_tools_unittest.cc",
ehmaldonado36268652017-01-19 08:27:11 -0800627 "test/test_utils.h",
628 "voice_detection_unittest.cc",
629 ]
630 }
631
632 if ((!build_with_chromium || is_win) && is_clang) {
633 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
634 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
635 }
636 }
637
ehmaldonado021eef32017-01-05 07:09:50 -0800638 rtc_source_set("audio_processing_perf_tests") {
ehmaldonado021eef32017-01-05 07:09:50 -0800639 testonly = true
kjellandere0629c02017-04-25 04:04:50 -0700640
ehmaldonado021eef32017-01-05 07:09:50 -0800641 sources = [
642 "audio_processing_performance_unittest.cc",
Sam Zackrisson52f81882018-03-06 11:54:08 +0000643 "level_controller/level_controller_complexity_unittest.cc",
ehmaldonado021eef32017-01-05 07:09:50 -0800644 ]
645 deps = [
646 ":audio_processing",
647 ":audioproc_test_utils",
Ivo Creusen69d276d2017-11-24 15:35:57 +0100648 "../../api:array_view",
649 "../../modules:module_api",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700650 "../../rtc_base:protobuf_utils",
Ivo Creusen69d276d2017-11-24 15:35:57 +0100651 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100652 "../../system_wrappers",
Edward Lemure66572b2018-01-05 15:34:09 +0100653 "../../test:perf_test",
Ivo Creusen69d276d2017-11-24 15:35:57 +0100654 "../../test:test_support",
ehmaldonado021eef32017-01-05 07:09:50 -0800655 ]
mbonadei7c2c8432017-04-07 00:59:12 -0700656
ehmaldonado021eef32017-01-05 07:09:50 -0800657 if (rtc_enable_intelligibility_enhancer) {
658 defines = [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
659 } else {
660 defines = [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
661 }
662 }
663
Sam Zackrisson4d364492018-03-02 16:03:21 +0100664 rtc_source_set("file_audio_generator_unittests") {
665 testonly = true
666
667 sources = [
668 "audio_generator/file_audio_generator_unittest.cc",
669 ]
670
671 deps = [
672 ":audio_generator_factory",
673 ":audio_processing",
674 ":file_audio_generator",
675 "../../rtc_base:rtc_base_approved",
676 "../../test:test_support",
677 ]
678 }
679
Alessio Bazzicaca90a552017-09-27 11:51:10 +0200680 rtc_source_set("analog_mic_simulation") {
681 sources = [
682 "test/fake_recording_device.cc",
683 "test/fake_recording_device.h",
684 ]
685 deps = [
686 "../../api:array_view",
687 "../../common_audio:common_audio",
688 "../../modules:module_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100689 "../../rtc_base:checks",
Alessio Bazzicaca90a552017-09-27 11:51:10 +0200690 "../../rtc_base:rtc_base_approved",
691 ]
692 }
693
ehmaldonado1fd08c12017-01-17 02:37:34 -0800694 if (rtc_enable_protobuf) {
ehmaldonado1fd08c12017-01-17 02:37:34 -0800695 rtc_executable("audioproc_f") {
696 testonly = true
697 sources = [
698 "test/aec_dump_based_simulator.cc",
699 "test/aec_dump_based_simulator.h",
700 "test/audio_processing_simulator.cc",
701 "test/audio_processing_simulator.h",
702 "test/audioproc_float.cc",
703 "test/wav_based_simulator.cc",
704 "test/wav_based_simulator.h",
705 ]
peahc3ec1fd2016-08-07 23:19:30 -0700706
ehmaldonado1fd08c12017-01-17 02:37:34 -0800707 deps = [
Alessio Bazzicaca90a552017-09-27 11:51:10 +0200708 ":analog_mic_simulation",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800709 ":audio_processing",
710 ":audioproc_debug_proto",
711 ":audioproc_protobuf_utils",
712 ":audioproc_test_utils",
kwiberg84f6a3f2017-09-05 08:43:13 -0700713 "../../api:optional",
Gustaf Ullberg0efa9412018-02-27 13:58:45 +0100714 "../../api/audio:aec3_factory",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800715 "../../common_audio:common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100716 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700717 "../../rtc_base:protobuf_utils",
718 "../../rtc_base:rtc_base_approved",
719 "../../rtc_base:rtc_task_queue",
Patrik Höglund3e113432017-12-15 14:40:10 +0100720 "../../rtc_base:stringutils",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800721 "../../system_wrappers",
722 "../../system_wrappers:system_wrappers_default",
723 "../../test:test_support",
aleloif4dd1912017-06-15 01:55:38 -0700724 "aec_dump",
725 "aec_dump:aec_dump_impl",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800726 "//testing/gtest",
ehmaldonado1fd08c12017-01-17 02:37:34 -0800727 ]
728 } # audioproc_f
729 }
peahc3ec1fd2016-08-07 23:19:30 -0700730
ehmaldonado38a21322016-09-02 04:10:34 -0700731 rtc_source_set("audioproc_test_utils") {
Per Kjellandera7f2d842018-01-10 15:54:53 +0000732 visibility = [ "*" ]
kjellanderfb114242016-06-13 00:19:48 -0700733 testonly = true
734 sources = [
ehmaldonado529f83c2016-07-27 08:14:32 -0700735 "test/audio_buffer_tools.cc",
736 "test/audio_buffer_tools.h",
Sam Zackrissond57f9dd2017-09-13 11:00:04 +0200737 "test/bitexactness_tools.cc",
738 "test/bitexactness_tools.h",
ivoc3cfb3ef2016-11-24 04:17:28 -0800739 "test/performance_timer.cc",
740 "test/performance_timer.h",
741 "test/simulator_buffers.cc",
742 "test/simulator_buffers.h",
kjellanderfb114242016-06-13 00:19:48 -0700743 "test/test_utils.cc",
744 "test/test_utils.h",
745 ]
746
kjellanderfb114242016-06-13 00:19:48 -0700747 deps = [
ehmaldonado64c4a7e2016-12-08 04:10:01 -0800748 ":audio_processing",
mbonadei1140f972017-04-26 03:38:35 -0700749 "..:module_api",
kwiberg529662a2017-09-04 05:43:17 -0700750 "../../api:array_view",
kwiberg84f6a3f2017-09-05 08:43:13 -0700751 "../../api:optional",
kjellanderfb114242016-06-13 00:19:48 -0700752 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100753 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700754 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100755 "../../system_wrappers",
Sam Zackrissond57f9dd2017-09-13 11:00:04 +0200756 "../../test:test_support",
Ivo Creusen385b10b2017-10-13 12:37:27 +0200757 "../audio_coding:neteq_input_audio_tools",
Sam Zackrissond57f9dd2017-09-13 11:00:04 +0200758 "//testing/gtest",
kjellanderfb114242016-06-13 00:19:48 -0700759 ]
760 }
761
ehmaldonado38a21322016-09-02 04:10:34 -0700762 rtc_executable("transient_suppression_test") {
kwiberg7a770e02016-08-25 02:32:43 -0700763 testonly = true
764 sources = [
765 "transient/file_utils.cc",
766 "transient/file_utils.h",
767 "transient/transient_suppression_test.cc",
768 ]
769 deps = [
770 ":audio_processing",
mbonadei1140f972017-04-26 03:38:35 -0700771 "..:module_api",
Gustaf Ullbergf35c6662018-02-23 13:18:29 +0100772 "../..:typedefs",
ehmaldonado64c4a7e2016-12-08 04:10:01 -0800773 "../..:webrtc_common",
774 "../../common_audio:common_audio",
oprypin6e09d872017-08-31 03:21:39 -0700775 "../../rtc_base:rtc_base_approved",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100776 "../../system_wrappers",
Patrik Höglunde6ffc422017-12-11 10:28:16 +0100777 "../../system_wrappers:metrics_default",
kwiberg7a770e02016-08-25 02:32:43 -0700778 "../../test:test_support",
779 "//testing/gtest",
kwiberg7a770e02016-08-25 02:32:43 -0700780 ]
kwiberg7a770e02016-08-25 02:32:43 -0700781 }
782
ehmaldonado38a21322016-09-02 04:10:34 -0700783 rtc_executable("click_annotate") {
kwiberg7a770e02016-08-25 02:32:43 -0700784 testonly = true
785 sources = [
786 "transient/click_annotate.cc",
787 "transient/file_utils.cc",
788 "transient/file_utils.h",
789 ]
790 deps = [
791 ":audio_processing",
Gustaf Ullbergf35c6662018-02-23 13:18:29 +0100792 "../..:typedefs",
ehmaldonado64c4a7e2016-12-08 04:10:01 -0800793 "../..:webrtc_common",
Mirko Bonadeia498ae82017-12-06 09:17:14 +0100794 "../../system_wrappers",
kwiberg7a770e02016-08-25 02:32:43 -0700795 "../../system_wrappers:metrics_default",
796 ]
797 }
798
ehmaldonado38a21322016-09-02 04:10:34 -0700799 rtc_executable("nonlinear_beamformer_test") {
kwiberg7a770e02016-08-25 02:32:43 -0700800 testonly = true
801 sources = [
802 "beamformer/nonlinear_beamformer_test.cc",
803 ]
804 deps = [
805 ":audio_processing",
806 ":audioproc_test_utils",
ehmaldonado64c4a7e2016-12-08 04:10:01 -0800807 "../../common_audio:common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +0100808 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700809 "../../rtc_base:rtc_base_approved",
kwiberg7a770e02016-08-25 02:32:43 -0700810 "../../system_wrappers:metrics_default",
kwiberg7a770e02016-08-25 02:32:43 -0700811 ]
kwiberg7a770e02016-08-25 02:32:43 -0700812 }
813
peah1bcfce52016-08-26 07:16:04 -0700814 if (rtc_enable_intelligibility_enhancer) {
ehmaldonado38a21322016-09-02 04:10:34 -0700815 rtc_executable("intelligibility_proc") {
peah1bcfce52016-08-26 07:16:04 -0700816 testonly = true
817 sources = [
818 "intelligibility/test/intelligibility_proc.cc",
819 ]
820 deps = [
821 ":audio_processing",
822 ":audioproc_test_utils",
Alex Loiko0488fcf2018-02-05 11:15:23 +0100823 "../../common_audio",
oprypin6e09d872017-08-31 03:21:39 -0700824 "../../rtc_base:rtc_base_approved",
peah1bcfce52016-08-26 07:16:04 -0700825 "../../system_wrappers:metrics_default",
826 "../../test:test_support",
827 "//testing/gtest",
peah1bcfce52016-08-26 07:16:04 -0700828 ]
kwiberg7a770e02016-08-25 02:32:43 -0700829 }
830 }
831
kjellanderfb114242016-06-13 00:19:48 -0700832 if (rtc_enable_protobuf) {
833 proto_library("audioproc_unittest_proto") {
834 sources = [
835 "test/unittest.proto",
836 ]
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200837 proto_out_dir = "modules/audio_processing/test"
kjellanderfb114242016-06-13 00:19:48 -0700838 }
839
kjellanderb62dbbe2016-09-23 00:38:52 -0700840 rtc_static_library("audioproc_protobuf_utils") {
kjellanderfb114242016-06-13 00:19:48 -0700841 sources = [
842 "test/protobuf_utils.cc",
843 "test/protobuf_utils.h",
844 ]
845
846 deps = [
ehmaldonadobcba64a2016-08-19 02:11:07 -0700847 ":audioproc_debug_proto",
Gustaf Ullbergf35c6662018-02-23 13:18:29 +0100848 "../..:typedefs",
ehmaldonado64c4a7e2016-12-08 04:10:01 -0800849 "../..:webrtc_common",
ehmaldonadof6a861a2017-07-19 10:40:47 -0700850 "../../rtc_base:protobuf_utils",
851 "../../rtc_base:rtc_base_approved",
kjellanderfb114242016-06-13 00:19:48 -0700852 ]
853 }
854 }
855}