Sam Zackrisson | 4b6ba7c | 2020-03-12 12:45:21 +0100 | [diff] [blame] | 1 | # Copyright (c) 2020 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 | |
| 9 | import("../../../webrtc.gni") |
| 10 | |
saza | aa42ecd | 2020-04-01 15:24:40 +0200 | [diff] [blame^] | 11 | rtc_source_set("transient_suppressor_api") { |
| 12 | sources = [ "transient_suppressor.h" ] |
| 13 | } |
| 14 | |
| 15 | rtc_library("transient_suppressor_creator") { |
| 16 | sources = [ |
| 17 | "transient_suppressor_creator.cc", |
| 18 | "transient_suppressor_creator.h", |
| 19 | ] |
| 20 | deps = [ |
| 21 | ":transient_suppressor_api", |
| 22 | ":transient_suppressor_impl", |
| 23 | ] |
| 24 | } |
| 25 | |
| 26 | rtc_library("transient_suppressor_impl") { |
| 27 | visibility = [ |
| 28 | ":transient_suppressor_creator", |
| 29 | ":transient_suppression_test", |
| 30 | ":transient_suppression_unittests", |
| 31 | ":click_annotate", |
| 32 | ] |
Sam Zackrisson | 4b6ba7c | 2020-03-12 12:45:21 +0100 | [diff] [blame] | 33 | sources = [ |
| 34 | "common.h", |
| 35 | "daubechies_8_wavelet_coeffs.h", |
| 36 | "dyadic_decimator.h", |
| 37 | "moving_moments.cc", |
| 38 | "moving_moments.h", |
| 39 | "transient_detector.cc", |
| 40 | "transient_detector.h", |
saza | aa42ecd | 2020-04-01 15:24:40 +0200 | [diff] [blame^] | 41 | "transient_suppressor_impl.cc", |
| 42 | "transient_suppressor_impl.h", |
Sam Zackrisson | 4b6ba7c | 2020-03-12 12:45:21 +0100 | [diff] [blame] | 43 | "windows_private.h", |
| 44 | "wpd_node.cc", |
| 45 | "wpd_node.h", |
| 46 | "wpd_tree.cc", |
| 47 | "wpd_tree.h", |
| 48 | ] |
| 49 | deps = [ |
saza | aa42ecd | 2020-04-01 15:24:40 +0200 | [diff] [blame^] | 50 | ":transient_suppressor_api", |
Sam Zackrisson | 4b6ba7c | 2020-03-12 12:45:21 +0100 | [diff] [blame] | 51 | "../../../common_audio:common_audio", |
| 52 | "../../../common_audio:common_audio_c", |
| 53 | "../../../common_audio:fir_filter", |
| 54 | "../../../common_audio:fir_filter_factory", |
| 55 | "../../../common_audio/third_party/fft4g", |
| 56 | "../../../rtc_base:checks", |
| 57 | "../../../rtc_base:gtest_prod", |
| 58 | "../../../rtc_base:logging", |
| 59 | ] |
| 60 | } |
| 61 | |
| 62 | if (rtc_include_tests) { |
| 63 | rtc_executable("click_annotate") { |
| 64 | testonly = true |
| 65 | sources = [ |
| 66 | "click_annotate.cc", |
| 67 | "file_utils.cc", |
| 68 | "file_utils.h", |
| 69 | ] |
| 70 | deps = [ |
saza | aa42ecd | 2020-04-01 15:24:40 +0200 | [diff] [blame^] | 71 | ":transient_suppressor_impl", |
Sam Zackrisson | 4b6ba7c | 2020-03-12 12:45:21 +0100 | [diff] [blame] | 72 | "..:audio_processing", |
| 73 | "../../../rtc_base/system:file_wrapper", |
| 74 | "../../../system_wrappers", |
| 75 | ] |
| 76 | } |
| 77 | |
| 78 | rtc_executable("transient_suppression_test") { |
| 79 | testonly = true |
| 80 | sources = [ |
| 81 | "file_utils.cc", |
| 82 | "file_utils.h", |
| 83 | "transient_suppression_test.cc", |
| 84 | ] |
| 85 | deps = [ |
saza | aa42ecd | 2020-04-01 15:24:40 +0200 | [diff] [blame^] | 86 | ":transient_suppressor_impl", |
Sam Zackrisson | 4b6ba7c | 2020-03-12 12:45:21 +0100 | [diff] [blame] | 87 | "..:audio_processing", |
| 88 | "../../../common_audio", |
| 89 | "../../../rtc_base:rtc_base_approved", |
| 90 | "../../../rtc_base/system:file_wrapper", |
| 91 | "../../../system_wrappers", |
| 92 | "../../../test:fileutils", |
| 93 | "../../../test:test_support", |
| 94 | "../agc:level_estimation", |
| 95 | "//testing/gtest", |
| 96 | "//third_party/abseil-cpp/absl/flags:flag", |
| 97 | "//third_party/abseil-cpp/absl/flags:parse", |
| 98 | ] |
| 99 | } |
| 100 | |
| 101 | rtc_library("transient_suppression_unittests") { |
| 102 | testonly = true |
| 103 | sources = [ |
| 104 | "dyadic_decimator_unittest.cc", |
| 105 | "file_utils.cc", |
| 106 | "file_utils.h", |
| 107 | "file_utils_unittest.cc", |
| 108 | "moving_moments_unittest.cc", |
| 109 | "transient_detector_unittest.cc", |
| 110 | "transient_suppressor_unittest.cc", |
| 111 | "wpd_node_unittest.cc", |
| 112 | "wpd_tree_unittest.cc", |
| 113 | ] |
| 114 | deps = [ |
saza | aa42ecd | 2020-04-01 15:24:40 +0200 | [diff] [blame^] | 115 | ":transient_suppressor_impl", |
Sam Zackrisson | 4b6ba7c | 2020-03-12 12:45:21 +0100 | [diff] [blame] | 116 | "../../../rtc_base:stringutils", |
| 117 | "../../../rtc_base/system:file_wrapper", |
| 118 | "../../../test:fileutils", |
| 119 | "../../../test:test_support", |
| 120 | "//testing/gtest", |
| 121 | ] |
| 122 | } |
| 123 | } |