blob: 504fa059bb1c0f5789a18ea6dcf29ab9a6f4442f [file] [log] [blame]
Ivo Creusen3ce44a32019-10-31 14:38:11 +01001# 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",
Florent Castelli57aa81b2022-04-04 17:14:02 +020023 "../../rtc_base:stringutils",
Ivo Creusen3ce44a32019-10-31 14:38:11 +010024 "../../system_wrappers:system_wrappers",
25 "../audio_codecs:audio_codecs_api",
Ivo Creusen3ce44a32019-10-31 14:38:11 +010026 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +020027 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Ivo Creusen3ce44a32019-10-31 14:38:11 +010028}
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",
Ivo Creusen88636c62020-01-24 11:04:56 +010057 "../../system_wrappers:system_wrappers",
Ivo Creusen3ce44a32019-10-31 14:38:11 +010058 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +020059 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Ivo Creusen3ce44a32019-10-31 14:38:11 +010060}
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",
Ivo Creusen3ce44a32019-10-31 14:38:11 +010083 ]
84}
85
86rtc_source_set("tick_timer_unittest") {
87 visibility = [ "*" ]
88 testonly = true
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010089 sources = [ "tick_timer_unittest.cc" ]
Ivo Creusen3ce44a32019-10-31 14:38:11 +010090 deps = [
91 ":tick_timer",
92 "../../test:test_support",
93 "//testing/gtest",
94 ]
95}