xref: /aosp_15_r20/external/webrtc/audio/utility/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1# Copyright (c) 2016 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.
8import("../../webrtc.gni")
9
10group("utility") {
11  deps = [ ":audio_frame_operations" ]
12}
13
14rtc_library("audio_frame_operations") {
15  visibility = [ "*" ]
16  sources = [
17    "audio_frame_operations.cc",
18    "audio_frame_operations.h",
19    "channel_mixer.cc",
20    "channel_mixer.h",
21    "channel_mixing_matrix.cc",
22    "channel_mixing_matrix.h",
23  ]
24
25  deps = [
26    "../../api/audio:audio_frame_api",
27    "../../common_audio",
28    "../../rtc_base:checks",
29    "../../rtc_base:logging",
30    "../../rtc_base:safe_conversions",
31    "../../system_wrappers:field_trial",
32  ]
33  absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
34}
35
36if (rtc_include_tests) {
37  rtc_library("utility_tests") {
38    testonly = true
39    sources = [
40      "audio_frame_operations_unittest.cc",
41      "channel_mixer_unittest.cc",
42      "channel_mixing_matrix_unittest.cc",
43    ]
44    deps = [
45      ":audio_frame_operations",
46      "../../api/audio:audio_frame_api",
47      "../../rtc_base:checks",
48      "../../rtc_base:logging",
49      "../../rtc_base:macromagic",
50      "../../rtc_base:stringutils",
51      "../../test:field_trial",
52      "../../test:test_support",
53      "//testing/gtest",
54    ]
55  }
56}
57