blob: 66a7c2b964dba8acc15b187f2891c3413c58e5fa [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
ehmaldonado38a21322016-09-02 04:10:34 -070020rtc_source_set("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",
peah21a395d2016-04-13 07:53:48 -070025 "aec/aec_rdft.cc",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000026 "aec/aec_rdft.h",
peah88950cf2016-03-04 00:12:40 -080027 "aec/aec_resampler.cc",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000028 "aec/aec_resampler.h",
peah8df5d4f2016-02-23 14:34:59 -080029 "aec/echo_cancellation.cc",
Henrik Kjellander9b72af92015-11-11 20:16:11 +010030 "aec/echo_cancellation.h",
peah27045122016-04-10 22:38:14 -070031 "aecm/aecm_core.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000032 "aecm/aecm_core.h",
peah27045122016-04-10 22:38:14 -070033 "aecm/echo_control_mobile.cc",
Henrik Kjellander9b72af92015-11-11 20:16:11 +010034 "aecm/echo_control_mobile.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000035 "agc/agc.cc",
36 "agc/agc.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000037 "agc/agc_manager_direct.cc",
38 "agc/agc_manager_direct.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000039 "agc/gain_map_internal.h",
bjornv@webrtc.orgb395a5e2014-12-16 10:38:10 +000040 "agc/legacy/analog_agc.c",
41 "agc/legacy/analog_agc.h",
42 "agc/legacy/digital_agc.c",
43 "agc/legacy/digital_agc.h",
44 "agc/legacy/gain_control.h",
peahbbe42332016-06-08 06:42:02 -070045 "agc/loudness_histogram.cc",
46 "agc/loudness_histogram.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +000047 "agc/utility.cc",
48 "agc/utility.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000049 "audio_buffer.cc",
50 "audio_buffer.h",
aleloi5f099802016-08-25 00:45:31 -070051 "audio_processing.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000052 "audio_processing_impl.cc",
53 "audio_processing_impl.h",
aluebs4a66e4a2015-10-19 18:02:39 -070054 "beamformer/array_util.cc",
55 "beamformer/array_util.h",
aluebs@webrtc.org0c39e912014-12-18 22:22:04 +000056 "beamformer/complex_matrix.h",
57 "beamformer/covariance_matrix_generator.cc",
58 "beamformer/covariance_matrix_generator.h",
59 "beamformer/matrix.h",
andrew@webrtc.orgbd8c8652015-03-20 00:28:22 +000060 "beamformer/nonlinear_beamformer.cc",
61 "beamformer/nonlinear_beamformer.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000062 "common.h",
63 "echo_cancellation_impl.cc",
64 "echo_cancellation_impl.h",
65 "echo_control_mobile_impl.cc",
66 "echo_control_mobile_impl.h",
peahbe615622016-02-13 16:40:47 -080067 "gain_control_for_experimental_agc.cc",
68 "gain_control_for_experimental_agc.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +000069 "gain_control_impl.cc",
70 "gain_control_impl.h",
71 "high_pass_filter_impl.cc",
72 "high_pass_filter_impl.h",
73 "include/audio_processing.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",
82 "level_controller/lc_constants.h",
83 "level_controller/level_controller.cc",
84 "level_controller/level_controller.h",
85 "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",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000102 "rms_level.cc",
103 "rms_level.h",
aluebs@webrtc.orgbe05c742014-11-14 22:18:10 +0000104 "splitting_filter.cc",
105 "splitting_filter.h",
Alejandro Luebs5a92aa82015-04-27 11:34:45 -0700106 "three_band_filter_bank.cc",
107 "three_band_filter_bank.h",
pbos@webrtc.org788acd12014-12-15 09:41:24 +0000108 "transient/common.h",
109 "transient/daubechies_8_wavelet_coeffs.h",
110 "transient/dyadic_decimator.h",
111 "transient/moving_moments.cc",
112 "transient/moving_moments.h",
113 "transient/transient_detector.cc",
114 "transient/transient_detector.h",
115 "transient/transient_suppressor.cc",
116 "transient/transient_suppressor.h",
117 "transient/wpd_node.cc",
118 "transient/wpd_node.h",
119 "transient/wpd_tree.cc",
120 "transient/wpd_tree.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000121 "typing_detection.cc",
122 "typing_detection.h",
minyue84db6fa2016-03-24 14:36:25 -0700123 "utility/block_mean_calculator.cc",
124 "utility/block_mean_calculator.h",
peahbdb7af62016-04-12 14:47:40 -0700125 "utility/delay_estimator.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000126 "utility/delay_estimator.h",
127 "utility/delay_estimator_internal.h",
peahbdb7af62016-04-12 14:47:40 -0700128 "utility/delay_estimator_wrapper.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000129 "utility/delay_estimator_wrapper.h",
aluebsecf6b812015-06-25 12:28:48 -0700130 "vad/common.h",
131 "vad/gmm.cc",
132 "vad/gmm.h",
133 "vad/noise_gmm_tables.h",
134 "vad/pitch_based_vad.cc",
135 "vad/pitch_based_vad.h",
136 "vad/pitch_internal.cc",
137 "vad/pitch_internal.h",
138 "vad/pole_zero_filter.cc",
139 "vad/pole_zero_filter.h",
140 "vad/standalone_vad.cc",
141 "vad/standalone_vad.h",
142 "vad/vad_audio_proc.cc",
143 "vad/vad_audio_proc.h",
144 "vad/vad_audio_proc_internal.h",
145 "vad/vad_circular_buffer.cc",
146 "vad/vad_circular_buffer.h",
147 "vad/voice_activity_detector.cc",
148 "vad/voice_activity_detector.h",
149 "vad/voice_gmm_tables.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000150 "voice_detection_impl.cc",
151 "voice_detection_impl.h",
152 ]
153
brettw@chromium.org87ff9c82014-09-09 23:34:56 +0000154 configs += [ "../..:common_config" ]
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000155 public_configs = [ "../..:common_inherited_config" ]
brettw@chromium.org87ff9c82014-09-09 23:34:56 +0000156
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000157 defines = []
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200158 deps = [
159 "../..:webrtc_common",
kwiberg98ab3a42015-09-30 21:54:21 -0700160 "../audio_coding:isac",
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200161 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000162
peahf28a3892016-09-01 08:58:21 -0700163 if (apm_debug_dump) {
164 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ]
peahb46083e2016-05-03 07:01:18 -0700165 } else {
peahf28a3892016-09-01 08:58:21 -0700166 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000167 }
168
169 if (aec_untrusted_delay_for_testing) {
170 defines += [ "WEBRTC_UNTRUSTED_DELAY" ]
171 }
172
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000173 if (rtc_enable_protobuf) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000174 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ]
175 deps += [ ":audioproc_debug_proto" ]
176 }
177
peah1bcfce52016-08-26 07:16:04 -0700178 if (rtc_enable_intelligibility_enhancer) {
179 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=1" ]
180 sources += [
181 "intelligibility/intelligibility_enhancer.cc",
182 "intelligibility/intelligibility_enhancer.h",
183 "intelligibility/intelligibility_utils.cc",
184 "intelligibility/intelligibility_utils.h",
185 ]
186 } else {
187 defines += [ "WEBRTC_INTELLIGIBILITY_ENHANCER=0" ]
188 }
189
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000190 if (rtc_prefer_fixed_point) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000191 defines += [ "WEBRTC_NS_FIXED" ]
192 sources += [
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000193 "ns/noise_suppression_x.c",
Henrik Kjellander9b72af92015-11-11 20:16:11 +0100194 "ns/noise_suppression_x.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000195 "ns/nsx_core.c",
196 "ns/nsx_core.h",
197 "ns/nsx_defines.h",
198 ]
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000199 if (current_cpu == "mipsel") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000200 sources += [ "ns/nsx_core_mips.c" ]
201 } else {
202 sources += [ "ns/nsx_core_c.c" ]
203 }
204 } else {
205 defines += [ "WEBRTC_NS_FLOAT" ]
206 sources += [
207 "ns/defines.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000208 "ns/noise_suppression.c",
Henrik Kjellander9b72af92015-11-11 20:16:11 +0100209 "ns/noise_suppression.h",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000210 "ns/ns_core.c",
211 "ns/ns_core.h",
212 "ns/windows_private.h",
213 ]
214 }
215
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000216 if (current_cpu == "x86" || current_cpu == "x64") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000217 deps += [ ":audio_processing_sse2" ]
218 }
219
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700220 if (rtc_build_with_neon) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000221 deps += [ ":audio_processing_neon" ]
222 }
223
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000224 if (current_cpu == "mipsel") {
peah27045122016-04-10 22:38:14 -0700225 sources += [ "aecm/aecm_core_mips.cc" ]
kjellander@webrtc.org6dab6d72015-03-04 09:50:31 +0000226 if (mips_float_abi == "hard") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000227 sources += [
peah8df5d4f2016-02-23 14:34:59 -0800228 "aec/aec_core_mips.cc",
peah21a395d2016-04-13 07:53:48 -0700229 "aec/aec_rdft_mips.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000230 ]
231 }
232 } else {
peah27045122016-04-10 22:38:14 -0700233 sources += [ "aecm/aecm_core_c.cc" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000234 }
235
kjellander8f4419b2016-06-02 02:09:52 -0700236 # TODO(jschuh): Bug 1348: fix this warning.
237 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000238
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000239 deps += [
xians@webrtc.orge46bc772014-10-10 08:36:56 +0000240 "../../base:rtc_base_approved",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000241 "../../common_audio",
242 "../../system_wrappers",
243 ]
244}
245
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000246if (rtc_enable_protobuf) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000247 proto_library("audioproc_debug_proto") {
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200248 sources = [
249 "debug.proto",
250 ]
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000251
kjellander78ddd732016-02-09 08:13:06 -0800252 proto_out_dir = "webrtc/modules/audio_processing"
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000253 }
254}
255
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000256if (current_cpu == "x86" || current_cpu == "x64") {
ehmaldonado38a21322016-09-02 04:10:34 -0700257 rtc_source_set("audio_processing_sse2") {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000258 sources = [
peah8df5d4f2016-02-23 14:34:59 -0800259 "aec/aec_core_sse2.cc",
peah21a395d2016-04-13 07:53:48 -0700260 "aec/aec_rdft_sse2.cc",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000261 ]
262
Henrik Kjellanderf2497cf2015-04-16 08:57:16 +0200263 if (is_posix) {
264 cflags = [ "-msse2" ]
265 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000266
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +0000267 configs += [ "../..:common_config" ]
268 public_configs = [ "../..:common_inherited_config" ]
peahb46083e2016-05-03 07:01:18 -0700269
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) {
ehmaldonado38a21322016-09-02 04:10:34 -0700279 rtc_source_set("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",
peah21a395d2016-04-13 07:53:48 -0700282 "aec/aec_rdft_neon.cc",
peah27045122016-04-10 22:38:14 -0700283 "aecm/aecm_core_neon.cc",
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000284 "ns/nsx_core_neon.c",
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000285 ]
286
kjellander@webrtc.org72273912015-02-23 19:08:31 +0000287 if (current_cpu != "arm64") {
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700288 # Enable compilation for the NEON instruction set. This is needed
289 # since //build/config/arm.gni only enables NEON for iOS, not Android.
290 # This provides the same functionality as webrtc/build/arm_neon.gypi.
ehmaldonado38a21322016-09-02 04:10:34 -0700291 suppressed_configs += [ "//build/config/compiler:compiler_arm_fpu" ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200292 cflags = [ "-mfpu=neon" ]
andrew@webrtc.orga56a2c52014-11-26 17:01:40 +0000293 }
294
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700295 # Disable LTO on NEON targets due to compiler bug.
296 # TODO(fdegans): Enable this. See crbug.com/408997.
kjellander@webrtc.org6d08ca62014-09-07 17:36:10 +0000297 if (rtc_use_lto) {
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000298 cflags -= [
299 "-flto",
300 "-ffat-lto-objects",
301 ]
302 }
Andrew MacDonaldac4234c2015-06-24 18:25:54 -0700303
304 configs += [ "../..:common_config" ]
305 public_configs = [ "../..:common_inherited_config" ]
306
307 deps = [
308 "../../common_audio",
309 ]
peahb46083e2016-05-03 07:01:18 -0700310
peahf28a3892016-09-01 08:58:21 -0700311 if (apm_debug_dump) {
312 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
peahb46083e2016-05-03 07:01:18 -0700313 } else {
peahf28a3892016-09-01 08:58:21 -0700314 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
peahb46083e2016-05-03 07:01:18 -0700315 }
kjellander@webrtc.org524b8f72014-08-31 20:32:53 +0000316 }
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +0000317}
kjellanderfb114242016-06-13 00:19:48 -0700318
319if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -0700320 rtc_executable("audioproc") {
peahc3ec1fd2016-08-07 23:19:30 -0700321 testonly = true
322 sources = [
323 "test/process_test.cc",
324 ]
325
326 configs += [ "../..:common_config" ]
327 public_configs = [ "../..:common_inherited_config" ]
328
peahc3ec1fd2016-08-07 23:19:30 -0700329 deps = [
330 ":audio_processing",
331 ":audioproc_debug_proto",
332 ":audioproc_protobuf_utils",
333 ":audioproc_test_utils",
334 "../../system_wrappers",
335 "../../system_wrappers:system_wrappers_default",
336 "../../test:test_support",
ehmaldonadobcba64a2016-08-19 02:11:07 -0700337 "//build/config/sanitizers:deps",
peahc3ec1fd2016-08-07 23:19:30 -0700338 "//testing/gtest",
339 "//third_party/gflags:gflags",
340 ]
341 } # audioproc
342
ehmaldonado38a21322016-09-02 04:10:34 -0700343 rtc_executable("unpack_aecdump") {
peahc3ec1fd2016-08-07 23:19:30 -0700344 testonly = true
345 sources = [
346 "test/unpack.cc",
347 ]
348
349 configs += [ "../..:common_config" ]
350 public_configs = [ "../..:common_inherited_config" ]
351
peahc3ec1fd2016-08-07 23:19:30 -0700352 deps = [
353 ":audio_processing",
354 ":audioproc_debug_proto",
355 ":audioproc_protobuf_utils",
356 ":audioproc_test_utils",
357 "../../common_audio",
358 "../../system_wrappers:system_wrappers_default",
ehmaldonadobcba64a2016-08-19 02:11:07 -0700359 "//build/config/sanitizers:deps",
peahc3ec1fd2016-08-07 23:19:30 -0700360 "//third_party/gflags:gflags",
361 ]
362 } # unpack_aecdump
363
ehmaldonado38a21322016-09-02 04:10:34 -0700364 rtc_executable("audioproc_f") {
peahc3ec1fd2016-08-07 23:19:30 -0700365 testonly = true
366 sources = [
367 "test/aec_dump_based_simulator.cc",
368 "test/aec_dump_based_simulator.h",
369 "test/audio_processing_simulator.cc",
370 "test/audio_processing_simulator.h",
371 "test/audioproc_float.cc",
372 "test/wav_based_simulator.cc",
373 "test/wav_based_simulator.h",
374 ]
375
376 configs += [ "../..:common_config" ]
377 public_configs = [ "../..:common_inherited_config" ]
378
peahc3ec1fd2016-08-07 23:19:30 -0700379 deps = [
380 ":audio_processing",
381 ":audioproc_debug_proto",
382 ":audioproc_protobuf_utils",
383 ":audioproc_test_utils",
384 "../../system_wrappers",
385 "../../system_wrappers:system_wrappers_default",
386 "../../test:test_support",
ehmaldonadobcba64a2016-08-19 02:11:07 -0700387 "//build/config/sanitizers:deps",
peahc3ec1fd2016-08-07 23:19:30 -0700388 "//testing/gtest",
389 "//third_party/gflags:gflags",
390 ]
391 } # audioproc_f
392
ehmaldonado38a21322016-09-02 04:10:34 -0700393 rtc_source_set("audioproc_test_utils") {
kjellanderfb114242016-06-13 00:19:48 -0700394 testonly = true
395 sources = [
ehmaldonado529f83c2016-07-27 08:14:32 -0700396 "test/audio_buffer_tools.cc",
397 "test/audio_buffer_tools.h",
kjellanderfb114242016-06-13 00:19:48 -0700398 "test/test_utils.cc",
399 "test/test_utils.h",
400 ]
401
402 configs += [ "../..:common_config" ]
403 public_configs = [ "../..:common_inherited_config" ]
404
kjellanderfb114242016-06-13 00:19:48 -0700405 deps = [
406 "../../base:rtc_base_approved",
407 "../../common_audio",
408 ]
409 }
410
ehmaldonado38a21322016-09-02 04:10:34 -0700411 rtc_executable("transient_suppression_test") {
kwiberg7a770e02016-08-25 02:32:43 -0700412 testonly = true
413 sources = [
414 "transient/file_utils.cc",
415 "transient/file_utils.h",
416 "transient/transient_suppression_test.cc",
417 ]
418 deps = [
419 ":audio_processing",
420 "../../system_wrappers:metrics_default",
421 "../../test:test_support",
422 "//testing/gtest",
423 "//third_party/gflags",
424 ]
kwiberg7a770e02016-08-25 02:32:43 -0700425 }
426
ehmaldonado38a21322016-09-02 04:10:34 -0700427 rtc_executable("click_annotate") {
kwiberg7a770e02016-08-25 02:32:43 -0700428 testonly = true
429 sources = [
430 "transient/click_annotate.cc",
431 "transient/file_utils.cc",
432 "transient/file_utils.h",
433 ]
434 deps = [
435 ":audio_processing",
436 "../../system_wrappers:metrics_default",
437 ]
438 }
439
ehmaldonado38a21322016-09-02 04:10:34 -0700440 rtc_executable("nonlinear_beamformer_test") {
kwiberg7a770e02016-08-25 02:32:43 -0700441 testonly = true
442 sources = [
443 "beamformer/nonlinear_beamformer_test.cc",
444 ]
445 deps = [
446 ":audio_processing",
447 ":audioproc_test_utils",
448 "../../system_wrappers:metrics_default",
449 "//third_party/gflags",
450 ]
kwiberg7a770e02016-08-25 02:32:43 -0700451 }
452
peah1bcfce52016-08-26 07:16:04 -0700453 if (rtc_enable_intelligibility_enhancer) {
ehmaldonado38a21322016-09-02 04:10:34 -0700454 rtc_executable("intelligibility_proc") {
peah1bcfce52016-08-26 07:16:04 -0700455 testonly = true
456 sources = [
457 "intelligibility/test/intelligibility_proc.cc",
458 ]
459 deps = [
460 ":audio_processing",
461 ":audioproc_test_utils",
462 "../../system_wrappers:metrics_default",
463 "../../test:test_support",
464 "//testing/gtest",
465 "//third_party/gflags",
466 ]
kwiberg7a770e02016-08-25 02:32:43 -0700467 }
468 }
469
kjellanderfb114242016-06-13 00:19:48 -0700470 if (rtc_enable_protobuf) {
471 proto_library("audioproc_unittest_proto") {
472 sources = [
473 "test/unittest.proto",
474 ]
475 proto_out_dir = "webrtc/modules/audio_processing"
476 }
477
ehmaldonado38a21322016-09-02 04:10:34 -0700478 rtc_source_set("audioproc_protobuf_utils") {
kjellanderfb114242016-06-13 00:19:48 -0700479 sources = [
480 "test/protobuf_utils.cc",
481 "test/protobuf_utils.h",
482 ]
483
484 deps = [
ehmaldonadobcba64a2016-08-19 02:11:07 -0700485 ":audioproc_debug_proto",
kjellanderfb114242016-06-13 00:19:48 -0700486 ]
487 }
488 }
489}