xref: /aosp_15_r20/external/webrtc/api/neteq/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1# Copyright (c) 2019 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_source_set("neteq_api") {
12  visibility = [ "*" ]
13  sources = [
14    "neteq.cc",
15    "neteq.h",
16    "neteq_factory.h",
17  ]
18
19  deps = [
20    "..:rtp_headers",
21    "..:rtp_packet_info",
22    "..:scoped_refptr",
23    "../../rtc_base:stringutils",
24    "../../system_wrappers:system_wrappers",
25    "../audio_codecs:audio_codecs_api",
26  ]
27  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
28}
29
30rtc_source_set("custom_neteq_factory") {
31  visibility = [ "*" ]
32  sources = [
33    "custom_neteq_factory.cc",
34    "custom_neteq_factory.h",
35  ]
36
37  deps = [
38    ":neteq_api",
39    ":neteq_controller_api",
40    "..:scoped_refptr",
41    "../../modules/audio_coding:neteq",
42    "../../system_wrappers:system_wrappers",
43    "../audio_codecs:audio_codecs_api",
44  ]
45}
46
47rtc_source_set("neteq_controller_api") {
48  visibility = [ "*" ]
49  sources = [
50    "neteq_controller.h",
51    "neteq_controller_factory.h",
52  ]
53
54  deps = [
55    ":neteq_api",
56    ":tick_timer",
57    "../../system_wrappers:system_wrappers",
58  ]
59  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
60}
61
62rtc_source_set("default_neteq_controller_factory") {
63  visibility = [ "*" ]
64  sources = [
65    "default_neteq_controller_factory.cc",
66    "default_neteq_controller_factory.h",
67  ]
68
69  deps = [
70    ":neteq_controller_api",
71    "../../modules/audio_coding:neteq",
72  ]
73}
74
75rtc_source_set("tick_timer") {
76  visibility = [ "*" ]
77  sources = [
78    "tick_timer.cc",
79    "tick_timer.h",
80  ]
81  deps = [
82    "../../rtc_base:checks",
83  ]
84}
85
86rtc_source_set("tick_timer_unittest") {
87  visibility = [ "*" ]
88  testonly = true
89  sources = [ "tick_timer_unittest.cc" ]
90  deps = [
91    ":tick_timer",
92    "../../test:test_support",
93    "//testing/gtest",
94  ]
95}
96