xref: /aosp_15_r20/external/webrtc/modules/audio_processing/utility/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1# 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
9import("../../../webrtc.gni")
10
11rtc_library("cascaded_biquad_filter") {
12  sources = [
13    "cascaded_biquad_filter.cc",
14    "cascaded_biquad_filter.h",
15  ]
16  deps = [
17    "../../../api:array_view",
18    "../../../rtc_base:checks",
19  ]
20}
21
22rtc_library("legacy_delay_estimator") {
23  sources = [
24    "delay_estimator.cc",
25    "delay_estimator.h",
26    "delay_estimator_internal.h",
27    "delay_estimator_wrapper.cc",
28    "delay_estimator_wrapper.h",
29  ]
30  deps = [ "../../../rtc_base:checks" ]
31}
32
33rtc_library("pffft_wrapper") {
34  visibility = [ "../*" ]
35  sources = [
36    "pffft_wrapper.cc",
37    "pffft_wrapper.h",
38  ]
39  deps = [
40    "../../../api:array_view",
41    "../../../rtc_base:checks",
42    "//third_party/pffft",
43  ]
44}
45
46if (rtc_include_tests) {
47  rtc_library("cascaded_biquad_filter_unittest") {
48    testonly = true
49
50    sources = [ "cascaded_biquad_filter_unittest.cc" ]
51    deps = [
52      ":cascaded_biquad_filter",
53      "../../../test:test_support",
54      "//testing/gtest",
55    ]
56  }
57
58  rtc_library("legacy_delay_estimator_unittest") {
59    testonly = true
60
61    sources = [ "delay_estimator_unittest.cc" ]
62    deps = [
63      ":legacy_delay_estimator",
64      "../../../test:test_support",
65      "//testing/gtest",
66    ]
67  }
68
69  rtc_library("pffft_wrapper_unittest") {
70    testonly = true
71    sources = [ "pffft_wrapper_unittest.cc" ]
72    deps = [
73      ":pffft_wrapper",
74      "../../../test:test_support",
75      "//testing/gtest",
76      "//third_party/pffft",
77    ]
78  }
79}
80