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 | |
| 11 | rtc_library("transient_suppressor") { |
| 12 | sources = [ |
| 13 | "common.h", |
| 14 | "daubechies_8_wavelet_coeffs.h", |
| 15 | "dyadic_decimator.h", |
| 16 | "moving_moments.cc", |
| 17 | "moving_moments.h", |
| 18 | "transient_detector.cc", |
| 19 | "transient_detector.h", |
| 20 | "transient_suppressor.cc", |
| 21 | "transient_suppressor.h", |
| 22 | "windows_private.h", |
| 23 | "wpd_node.cc", |
| 24 | "wpd_node.h", |
| 25 | "wpd_tree.cc", |
| 26 | "wpd_tree.h", |
| 27 | ] |
| 28 | deps = [ |
| 29 | "../../../common_audio:common_audio", |
| 30 | "../../../common_audio:common_audio_c", |
| 31 | "../../../common_audio:fir_filter", |
| 32 | "../../../common_audio:fir_filter_factory", |
| 33 | "../../../common_audio/third_party/fft4g", |
| 34 | "../../../rtc_base:checks", |
| 35 | "../../../rtc_base:gtest_prod", |
| 36 | "../../../rtc_base:logging", |
| 37 | ] |
| 38 | } |
| 39 | |
| 40 | if (rtc_include_tests) { |
| 41 | rtc_executable("click_annotate") { |
| 42 | testonly = true |
| 43 | sources = [ |
| 44 | "click_annotate.cc", |
| 45 | "file_utils.cc", |
| 46 | "file_utils.h", |
| 47 | ] |
| 48 | deps = [ |
| 49 | ":transient_suppressor", |
| 50 | "..:audio_processing", |
| 51 | "../../../rtc_base/system:file_wrapper", |
| 52 | "../../../system_wrappers", |
| 53 | ] |
| 54 | } |
| 55 | |
| 56 | rtc_executable("transient_suppression_test") { |
| 57 | testonly = true |
| 58 | sources = [ |
| 59 | "file_utils.cc", |
| 60 | "file_utils.h", |
| 61 | "transient_suppression_test.cc", |
| 62 | ] |
| 63 | deps = [ |
| 64 | ":transient_suppressor", |
| 65 | "..:audio_processing", |
| 66 | "../../../common_audio", |
| 67 | "../../../rtc_base:rtc_base_approved", |
| 68 | "../../../rtc_base/system:file_wrapper", |
| 69 | "../../../system_wrappers", |
| 70 | "../../../test:fileutils", |
| 71 | "../../../test:test_support", |
| 72 | "../agc:level_estimation", |
| 73 | "//testing/gtest", |
| 74 | "//third_party/abseil-cpp/absl/flags:flag", |
| 75 | "//third_party/abseil-cpp/absl/flags:parse", |
| 76 | ] |
| 77 | } |
| 78 | |
| 79 | rtc_library("transient_suppression_unittests") { |
| 80 | testonly = true |
| 81 | sources = [ |
| 82 | "dyadic_decimator_unittest.cc", |
| 83 | "file_utils.cc", |
| 84 | "file_utils.h", |
| 85 | "file_utils_unittest.cc", |
| 86 | "moving_moments_unittest.cc", |
| 87 | "transient_detector_unittest.cc", |
| 88 | "transient_suppressor_unittest.cc", |
| 89 | "wpd_node_unittest.cc", |
| 90 | "wpd_tree_unittest.cc", |
| 91 | ] |
| 92 | deps = [ |
| 93 | ":transient_suppressor", |
| 94 | "../../../rtc_base:stringutils", |
| 95 | "../../../rtc_base/system:file_wrapper", |
| 96 | "../../../test:fileutils", |
| 97 | "../../../test:test_support", |
| 98 | "//testing/gtest", |
| 99 | ] |
| 100 | } |
| 101 | } |