xref: /aosp_15_r20/external/webrtc/modules/congestion_controller/pcc/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
2*d9f75844SAndroid Build Coastguard Worker#
3*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license
4*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source
5*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found
6*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS.  All contributing project authors may
7*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree.
8*d9f75844SAndroid Build Coastguard Worker
9*d9f75844SAndroid Build Coastguard Workerimport("../../../webrtc.gni")
10*d9f75844SAndroid Build Coastguard Worker
11*d9f75844SAndroid Build Coastguard Workerrtc_library("pcc") {
12*d9f75844SAndroid Build Coastguard Worker  sources = [
13*d9f75844SAndroid Build Coastguard Worker    "pcc_factory.cc",
14*d9f75844SAndroid Build Coastguard Worker    "pcc_factory.h",
15*d9f75844SAndroid Build Coastguard Worker  ]
16*d9f75844SAndroid Build Coastguard Worker  deps = [
17*d9f75844SAndroid Build Coastguard Worker    ":pcc_controller",
18*d9f75844SAndroid Build Coastguard Worker    "../../../api/transport:network_control",
19*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:time_delta",
20*d9f75844SAndroid Build Coastguard Worker  ]
21*d9f75844SAndroid Build Coastguard Worker}
22*d9f75844SAndroid Build Coastguard Worker
23*d9f75844SAndroid Build Coastguard Workerrtc_library("pcc_controller") {
24*d9f75844SAndroid Build Coastguard Worker  sources = [
25*d9f75844SAndroid Build Coastguard Worker    "pcc_network_controller.cc",
26*d9f75844SAndroid Build Coastguard Worker    "pcc_network_controller.h",
27*d9f75844SAndroid Build Coastguard Worker  ]
28*d9f75844SAndroid Build Coastguard Worker  deps = [
29*d9f75844SAndroid Build Coastguard Worker    ":bitrate_controller",
30*d9f75844SAndroid Build Coastguard Worker    ":monitor_interval",
31*d9f75844SAndroid Build Coastguard Worker    ":rtt_tracker",
32*d9f75844SAndroid Build Coastguard Worker    "../../../api/transport:network_control",
33*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:data_rate",
34*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:data_size",
35*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:time_delta",
36*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:timestamp",
37*d9f75844SAndroid Build Coastguard Worker    "../../../rtc_base:checks",
38*d9f75844SAndroid Build Coastguard Worker    "../../../rtc_base:random",
39*d9f75844SAndroid Build Coastguard Worker  ]
40*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
41*d9f75844SAndroid Build Coastguard Worker}
42*d9f75844SAndroid Build Coastguard Worker
43*d9f75844SAndroid Build Coastguard Workerrtc_library("monitor_interval") {
44*d9f75844SAndroid Build Coastguard Worker  sources = [
45*d9f75844SAndroid Build Coastguard Worker    "monitor_interval.cc",
46*d9f75844SAndroid Build Coastguard Worker    "monitor_interval.h",
47*d9f75844SAndroid Build Coastguard Worker  ]
48*d9f75844SAndroid Build Coastguard Worker  deps = [
49*d9f75844SAndroid Build Coastguard Worker    "../../../api/transport:network_control",
50*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:data_rate",
51*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:data_size",
52*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:time_delta",
53*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:timestamp",
54*d9f75844SAndroid Build Coastguard Worker    "../../../rtc_base:logging",
55*d9f75844SAndroid Build Coastguard Worker  ]
56*d9f75844SAndroid Build Coastguard Worker}
57*d9f75844SAndroid Build Coastguard Worker
58*d9f75844SAndroid Build Coastguard Workerrtc_library("rtt_tracker") {
59*d9f75844SAndroid Build Coastguard Worker  sources = [
60*d9f75844SAndroid Build Coastguard Worker    "rtt_tracker.cc",
61*d9f75844SAndroid Build Coastguard Worker    "rtt_tracker.h",
62*d9f75844SAndroid Build Coastguard Worker  ]
63*d9f75844SAndroid Build Coastguard Worker  deps = [
64*d9f75844SAndroid Build Coastguard Worker    "../../../api/transport:network_control",
65*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:time_delta",
66*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:timestamp",
67*d9f75844SAndroid Build Coastguard Worker  ]
68*d9f75844SAndroid Build Coastguard Worker}
69*d9f75844SAndroid Build Coastguard Worker
70*d9f75844SAndroid Build Coastguard Workerrtc_library("utility_function") {
71*d9f75844SAndroid Build Coastguard Worker  sources = [
72*d9f75844SAndroid Build Coastguard Worker    "utility_function.cc",
73*d9f75844SAndroid Build Coastguard Worker    "utility_function.h",
74*d9f75844SAndroid Build Coastguard Worker  ]
75*d9f75844SAndroid Build Coastguard Worker  deps = [
76*d9f75844SAndroid Build Coastguard Worker    ":monitor_interval",
77*d9f75844SAndroid Build Coastguard Worker    "../../../api/transport:network_control",
78*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:data_rate",
79*d9f75844SAndroid Build Coastguard Worker    "../../../rtc_base:checks",
80*d9f75844SAndroid Build Coastguard Worker  ]
81*d9f75844SAndroid Build Coastguard Worker}
82*d9f75844SAndroid Build Coastguard Worker
83*d9f75844SAndroid Build Coastguard Workerrtc_library("bitrate_controller") {
84*d9f75844SAndroid Build Coastguard Worker  sources = [
85*d9f75844SAndroid Build Coastguard Worker    "bitrate_controller.cc",
86*d9f75844SAndroid Build Coastguard Worker    "bitrate_controller.h",
87*d9f75844SAndroid Build Coastguard Worker  ]
88*d9f75844SAndroid Build Coastguard Worker  deps = [
89*d9f75844SAndroid Build Coastguard Worker    ":monitor_interval",
90*d9f75844SAndroid Build Coastguard Worker    ":utility_function",
91*d9f75844SAndroid Build Coastguard Worker    "../../../api/transport:network_control",
92*d9f75844SAndroid Build Coastguard Worker    "../../../api/units:data_rate",
93*d9f75844SAndroid Build Coastguard Worker  ]
94*d9f75844SAndroid Build Coastguard Worker  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
95*d9f75844SAndroid Build Coastguard Worker}
96*d9f75844SAndroid Build Coastguard Worker
97*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests && !build_with_chromium) {
98*d9f75844SAndroid Build Coastguard Worker  rtc_library("pcc_unittests") {
99*d9f75844SAndroid Build Coastguard Worker    testonly = true
100*d9f75844SAndroid Build Coastguard Worker    sources = [
101*d9f75844SAndroid Build Coastguard Worker      "bitrate_controller_unittest.cc",
102*d9f75844SAndroid Build Coastguard Worker      "monitor_interval_unittest.cc",
103*d9f75844SAndroid Build Coastguard Worker      "pcc_network_controller_unittest.cc",
104*d9f75844SAndroid Build Coastguard Worker      "rtt_tracker_unittest.cc",
105*d9f75844SAndroid Build Coastguard Worker      "utility_function_unittest.cc",
106*d9f75844SAndroid Build Coastguard Worker    ]
107*d9f75844SAndroid Build Coastguard Worker    deps = [
108*d9f75844SAndroid Build Coastguard Worker      ":bitrate_controller",
109*d9f75844SAndroid Build Coastguard Worker      ":monitor_interval",
110*d9f75844SAndroid Build Coastguard Worker      ":pcc",
111*d9f75844SAndroid Build Coastguard Worker      ":pcc_controller",
112*d9f75844SAndroid Build Coastguard Worker      ":rtt_tracker",
113*d9f75844SAndroid Build Coastguard Worker      ":utility_function",
114*d9f75844SAndroid Build Coastguard Worker      "../../../api/transport:network_control",
115*d9f75844SAndroid Build Coastguard Worker      "../../../api/units:data_rate",
116*d9f75844SAndroid Build Coastguard Worker      "../../../api/units:data_size",
117*d9f75844SAndroid Build Coastguard Worker      "../../../api/units:time_delta",
118*d9f75844SAndroid Build Coastguard Worker      "../../../api/units:timestamp",
119*d9f75844SAndroid Build Coastguard Worker      "../../../test:test_support",
120*d9f75844SAndroid Build Coastguard Worker      "../../../test/scenario",
121*d9f75844SAndroid Build Coastguard Worker    ]
122*d9f75844SAndroid Build Coastguard Worker  }
123*d9f75844SAndroid Build Coastguard Worker}
124