1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. 2*d9f75844SAndroid Build Coastguard Worker# 3*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license 4*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source 5*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found 6*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS. All contributing project authors may 7*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree. 8*d9f75844SAndroid Build Coastguard Worker 9*d9f75844SAndroid Build Coastguard Workerimport("../../../webrtc.gni") 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Workerrtc_source_set("transient_suppressor_api") { 12*d9f75844SAndroid Build Coastguard Worker sources = [ "transient_suppressor.h" ] 13*d9f75844SAndroid Build Coastguard Worker} 14*d9f75844SAndroid Build Coastguard Worker 15*d9f75844SAndroid Build Coastguard Workerrtc_library("transient_suppressor_impl") { 16*d9f75844SAndroid Build Coastguard Worker visibility = [ 17*d9f75844SAndroid Build Coastguard Worker ":click_annotate", 18*d9f75844SAndroid Build Coastguard Worker ":transient_suppression_test", 19*d9f75844SAndroid Build Coastguard Worker ":transient_suppression_unittests", 20*d9f75844SAndroid Build Coastguard Worker "..:optionally_built_submodule_creators", 21*d9f75844SAndroid Build Coastguard Worker ] 22*d9f75844SAndroid Build Coastguard Worker sources = [ 23*d9f75844SAndroid Build Coastguard Worker "common.h", 24*d9f75844SAndroid Build Coastguard Worker "daubechies_8_wavelet_coeffs.h", 25*d9f75844SAndroid Build Coastguard Worker "dyadic_decimator.h", 26*d9f75844SAndroid Build Coastguard Worker "moving_moments.cc", 27*d9f75844SAndroid Build Coastguard Worker "moving_moments.h", 28*d9f75844SAndroid Build Coastguard Worker "transient_detector.cc", 29*d9f75844SAndroid Build Coastguard Worker "transient_detector.h", 30*d9f75844SAndroid Build Coastguard Worker "transient_suppressor_impl.cc", 31*d9f75844SAndroid Build Coastguard Worker "transient_suppressor_impl.h", 32*d9f75844SAndroid Build Coastguard Worker "windows_private.h", 33*d9f75844SAndroid Build Coastguard Worker "wpd_node.cc", 34*d9f75844SAndroid Build Coastguard Worker "wpd_node.h", 35*d9f75844SAndroid Build Coastguard Worker "wpd_tree.cc", 36*d9f75844SAndroid Build Coastguard Worker "wpd_tree.h", 37*d9f75844SAndroid Build Coastguard Worker ] 38*d9f75844SAndroid Build Coastguard Worker deps = [ 39*d9f75844SAndroid Build Coastguard Worker ":transient_suppressor_api", 40*d9f75844SAndroid Build Coastguard Worker ":voice_probability_delay_unit", 41*d9f75844SAndroid Build Coastguard Worker "../../../common_audio:common_audio", 42*d9f75844SAndroid Build Coastguard Worker "../../../common_audio:common_audio_c", 43*d9f75844SAndroid Build Coastguard Worker "../../../common_audio:fir_filter", 44*d9f75844SAndroid Build Coastguard Worker "../../../common_audio:fir_filter_factory", 45*d9f75844SAndroid Build Coastguard Worker "../../../common_audio/third_party/ooura:fft_size_256", 46*d9f75844SAndroid Build Coastguard Worker "../../../rtc_base:checks", 47*d9f75844SAndroid Build Coastguard Worker "../../../rtc_base:gtest_prod", 48*d9f75844SAndroid Build Coastguard Worker "../../../rtc_base:logging", 49*d9f75844SAndroid Build Coastguard Worker ] 50*d9f75844SAndroid Build Coastguard Worker} 51*d9f75844SAndroid Build Coastguard Worker 52*d9f75844SAndroid Build Coastguard Workerrtc_library("voice_probability_delay_unit") { 53*d9f75844SAndroid Build Coastguard Worker sources = [ 54*d9f75844SAndroid Build Coastguard Worker "voice_probability_delay_unit.cc", 55*d9f75844SAndroid Build Coastguard Worker "voice_probability_delay_unit.h", 56*d9f75844SAndroid Build Coastguard Worker ] 57*d9f75844SAndroid Build Coastguard Worker deps = [ "../../../rtc_base:checks" ] 58*d9f75844SAndroid Build Coastguard Worker} 59*d9f75844SAndroid Build Coastguard Worker 60*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests) { 61*d9f75844SAndroid Build Coastguard Worker if (!build_with_chromium) { 62*d9f75844SAndroid Build Coastguard Worker rtc_executable("click_annotate") { 63*d9f75844SAndroid Build Coastguard Worker testonly = true 64*d9f75844SAndroid Build Coastguard Worker sources = [ 65*d9f75844SAndroid Build Coastguard Worker "click_annotate.cc", 66*d9f75844SAndroid Build Coastguard Worker "file_utils.cc", 67*d9f75844SAndroid Build Coastguard Worker "file_utils.h", 68*d9f75844SAndroid Build Coastguard Worker ] 69*d9f75844SAndroid Build Coastguard Worker deps = [ 70*d9f75844SAndroid Build Coastguard Worker ":transient_suppressor_impl", 71*d9f75844SAndroid Build Coastguard Worker "..:audio_processing", 72*d9f75844SAndroid Build Coastguard Worker "../../../rtc_base/system:file_wrapper", 73*d9f75844SAndroid Build Coastguard Worker "../../../system_wrappers", 74*d9f75844SAndroid Build Coastguard Worker ] 75*d9f75844SAndroid Build Coastguard Worker } 76*d9f75844SAndroid Build Coastguard Worker 77*d9f75844SAndroid Build Coastguard Worker rtc_executable("transient_suppression_test") { 78*d9f75844SAndroid Build Coastguard Worker testonly = true 79*d9f75844SAndroid Build Coastguard Worker sources = [ 80*d9f75844SAndroid Build Coastguard Worker "file_utils.cc", 81*d9f75844SAndroid Build Coastguard Worker "file_utils.h", 82*d9f75844SAndroid Build Coastguard Worker "transient_suppression_test.cc", 83*d9f75844SAndroid Build Coastguard Worker "voice_probability_delay_unit_unittest.cc", 84*d9f75844SAndroid Build Coastguard Worker ] 85*d9f75844SAndroid Build Coastguard Worker deps = [ 86*d9f75844SAndroid Build Coastguard Worker ":transient_suppressor_api", 87*d9f75844SAndroid Build Coastguard Worker ":transient_suppressor_impl", 88*d9f75844SAndroid Build Coastguard Worker ":voice_probability_delay_unit", 89*d9f75844SAndroid Build Coastguard Worker "..:audio_processing", 90*d9f75844SAndroid Build Coastguard Worker "../../../common_audio", 91*d9f75844SAndroid Build Coastguard Worker "../../../rtc_base/system:file_wrapper", 92*d9f75844SAndroid Build Coastguard Worker "../../../system_wrappers", 93*d9f75844SAndroid Build Coastguard Worker "../../../test:fileutils", 94*d9f75844SAndroid Build Coastguard Worker "../../../test:test_support", 95*d9f75844SAndroid Build Coastguard Worker "../agc:level_estimation", 96*d9f75844SAndroid Build Coastguard Worker "//testing/gtest", 97*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/flags:flag", 98*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/flags:parse", 99*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/types:optional", 100*d9f75844SAndroid Build Coastguard Worker ] 101*d9f75844SAndroid Build Coastguard Worker } 102*d9f75844SAndroid Build Coastguard Worker } 103*d9f75844SAndroid Build Coastguard Worker 104*d9f75844SAndroid Build Coastguard Worker rtc_library("transient_suppression_unittests") { 105*d9f75844SAndroid Build Coastguard Worker testonly = true 106*d9f75844SAndroid Build Coastguard Worker sources = [ 107*d9f75844SAndroid Build Coastguard Worker "dyadic_decimator_unittest.cc", 108*d9f75844SAndroid Build Coastguard Worker "file_utils.cc", 109*d9f75844SAndroid Build Coastguard Worker "file_utils.h", 110*d9f75844SAndroid Build Coastguard Worker "file_utils_unittest.cc", 111*d9f75844SAndroid Build Coastguard Worker "moving_moments_unittest.cc", 112*d9f75844SAndroid Build Coastguard Worker "transient_detector_unittest.cc", 113*d9f75844SAndroid Build Coastguard Worker "transient_suppressor_unittest.cc", 114*d9f75844SAndroid Build Coastguard Worker "voice_probability_delay_unit_unittest.cc", 115*d9f75844SAndroid Build Coastguard Worker "wpd_node_unittest.cc", 116*d9f75844SAndroid Build Coastguard Worker "wpd_tree_unittest.cc", 117*d9f75844SAndroid Build Coastguard Worker ] 118*d9f75844SAndroid Build Coastguard Worker deps = [ 119*d9f75844SAndroid Build Coastguard Worker ":transient_suppressor_api", 120*d9f75844SAndroid Build Coastguard Worker ":transient_suppressor_impl", 121*d9f75844SAndroid Build Coastguard Worker ":voice_probability_delay_unit", 122*d9f75844SAndroid Build Coastguard Worker "../../../rtc_base:stringutils", 123*d9f75844SAndroid Build Coastguard Worker "../../../rtc_base/system:file_wrapper", 124*d9f75844SAndroid Build Coastguard Worker "../../../test:fileutils", 125*d9f75844SAndroid Build Coastguard Worker "../../../test:test_support", 126*d9f75844SAndroid Build Coastguard Worker "//testing/gtest", 127*d9f75844SAndroid Build Coastguard Worker ] 128*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 129*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/strings", 130*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/types:optional", 131*d9f75844SAndroid Build Coastguard Worker ] 132*d9f75844SAndroid Build Coastguard Worker } 133*d9f75844SAndroid Build Coastguard Worker} 134