blob: 86a7c8acf857c735370fa1b858d04bd008cab05d [file] [log] [blame]
Niels Möller0c4f7be2018-05-07 12:01:371# Copyright (c) 2018 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
Mirko Bonadei86d053c2019-10-17 19:32:0411rtc_library("bitrate_settings") {
Niels Möller0c4f7be2018-05-07 12:01:3712 visibility = [ "*" ]
13 sources = [
14 "bitrate_settings.cc",
15 "bitrate_settings.h",
16 ]
Mirko Bonadei2dcf3482020-06-05 12:30:4117 deps = [ "../../rtc_base/system:rtc_export" ]
18 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möller0c4f7be2018-05-07 12:01:3719}
Sebastian Janssonc6c44262018-05-09 08:33:3920
Jonas Olsson81125f02018-10-09 08:52:0421rtc_source_set("enums") {
22 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:1023 sources = [ "enums.h" ]
Jonas Olsson81125f02018-10-09 08:52:0424}
25
Mirko Bonadei86d053c2019-10-17 19:32:0426rtc_library("network_control") {
Mirko Bonadeia859d412018-11-15 08:24:4127 visibility = [ "*" ]
Sebastian Janssonc6c44262018-05-09 08:33:3928 sources = [
29 "network_control.h",
30 "network_types.cc",
31 "network_types.h",
32 ]
33
34 deps = [
Jonas Orelande62c2f22022-03-29 09:04:4835 "../../api:field_trials_view",
Sebastian Jansson79f32872019-10-04 07:25:0636 "../rtc_event_log",
Sebastian Janssonc6c44262018-05-09 08:33:3937 "../units:data_rate",
38 "../units:data_size",
39 "../units:time_delta",
40 "../units:timestamp",
Mirko Bonadei2dcf3482020-06-05 12:30:4141 ]
42 absl_deps = [
Danil Chapovalove34fb872019-10-21 08:51:0843 "//third_party/abseil-cpp/absl/base:core_headers",
Danil Chapovalov0bc58cf2018-06-21 11:32:5644 "//third_party/abseil-cpp/absl/types:optional",
Sebastian Janssonc6c44262018-05-09 08:33:3945 ]
46}
47
Mirko Bonadei86d053c2019-10-17 19:32:0448rtc_library("field_trial_based_config") {
Sebastian Jansson95edb032019-01-17 15:24:1249 visibility = [ "*" ]
50 sources = [
51 "field_trial_based_config.cc",
52 "field_trial_based_config.h",
53 ]
54 deps = [
Emil Lundmark1c8103d2022-09-21 13:20:2255 "../../api:field_trials_registry",
Sebastian Jansson95edb032019-01-17 15:24:1256 "../../system_wrappers:field_trial",
Sebastian Jansson95edb032019-01-17 15:24:1257 ]
Mirko Bonadei2dcf3482020-06-05 12:30:4158 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Sebastian Jansson95edb032019-01-17 15:24:1259}
60
Niels Möller65f17ca2019-09-12 11:59:3661rtc_source_set("datagram_transport_interface") {
62 visibility = [ "*" ]
Niels Möller2a707032020-06-16 14:39:1363 sources = [ "data_channel_transport_interface.h" ]
Niels Möller65f17ca2019-09-12 11:59:3664 deps = [
Niels Möller65f17ca2019-09-12 11:59:3665 "..:array_view",
66 "..:rtc_error",
Florent Castellied4aadc2022-04-19 15:40:4667 "../../rtc_base:copy_on_write_buffer",
Niels Möller65f17ca2019-09-12 11:59:3668 ]
Mirko Bonadei2dcf3482020-06-05 12:30:4169 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
Niels Möller65f17ca2019-09-12 11:59:3670}
71
Mirko Bonadei86d053c2019-10-17 19:32:0472rtc_library("goog_cc") {
Mirko Bonadeia859d412018-11-15 08:24:4173 visibility = [ "*" ]
Sebastian Janssonc87b8c12018-10-09 17:02:0374 sources = [
75 "goog_cc_factory.cc",
76 "goog_cc_factory.h",
77 ]
78 deps = [
79 ":network_control",
Ying Wang0810a7c2019-04-10 11:48:2480 "..:network_state_predictor_api",
Jonas Orelande62c2f22022-03-29 09:04:4881 "../../api:field_trials_view",
Sebastian Janssonc87b8c12018-10-09 17:02:0382 "../../modules/congestion_controller/goog_cc",
Sebastian Janssonc87b8c12018-10-09 17:02:0383 ]
Danil Chapovalove9041612021-02-22 11:43:3984 absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
Sebastian Janssonc87b8c12018-10-09 17:02:0385}
86
Per Kjellander2bca0082020-08-28 07:15:1587rtc_source_set("sctp_transport_factory_interface") {
88 visibility = [ "*" ]
89 sources = [ "sctp_transport_factory_interface.h" ]
90}
91
Patrik Höglund56d94522019-11-18 14:53:3292rtc_source_set("stun_types") {
93 visibility = [ "*" ]
94 sources = [
95 "stun.cc",
96 "stun.h",
97 ]
98
99 deps = [
Harald Alvestrandbee64082020-11-12 11:17:41100 "../../api:array_view",
Florent Castelliceb7b362022-04-19 15:35:04101 "../../rtc_base:byte_buffer",
Florent Castellia876a922022-04-19 15:18:36102 "../../rtc_base:byte_order",
Patrik Höglund56d94522019-11-18 14:53:32103 "../../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01104 "../../rtc_base:ip_address",
Florent Castelli0af55ba2022-04-04 13:06:30105 "../../rtc_base:logging",
Patrik Höglund56d94522019-11-18 14:53:32106 "../../rtc_base:rtc_base",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01107 "../../rtc_base:socket_address",
Harald Alvestrand38b3b5e2022-10-10 04:36:12108 "../../system_wrappers:metrics",
Patrik Höglund56d94522019-11-18 14:53:32109 ]
Harald Alvestrandbee64082020-11-12 11:17:41110 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Patrik Höglund56d94522019-11-18 14:53:32111}
112
Sebastian Janssonc6c44262018-05-09 08:33:39113if (rtc_include_tests) {
Sebastian Jansson3525f862019-05-17 15:44:04114 rtc_source_set("test_feedback_generator_interface") {
115 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10116 sources = [ "test/feedback_generator_interface.h" ]
Sebastian Jansson3525f862019-05-17 15:44:04117 deps = [
118 ":network_control",
119 "..:simulated_network_api",
120 ]
121 }
Mirko Bonadei86d053c2019-10-17 19:32:04122 rtc_library("test_feedback_generator") {
Sebastian Jansson3525f862019-05-17 15:44:04123 testonly = true
124 sources = [
125 "test/create_feedback_generator.cc",
126 "test/create_feedback_generator.h",
127 ]
128 visibility = [ "*" ]
129 deps = [
130 ":network_control",
131 ":test_feedback_generator_interface",
Artem Titov386802e2019-07-05 08:48:17132 "../../test/network:feedback_generator",
Sebastian Jansson3525f862019-05-17 15:44:04133 ]
134 }
Sebastian Janssonc6c44262018-05-09 08:33:39135}
Per Kjellander52f7ae72019-09-10 17:28:06136
137if (rtc_include_tests) {
Patrik Höglund56d94522019-11-18 14:53:32138 rtc_source_set("stun_unittest") {
139 visibility = [ "*" ]
140 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10141 sources = [ "stun_unittest.cc" ]
Patrik Höglund56d94522019-11-18 14:53:32142 deps = [
143 ":stun_types",
Patrik Höglund56d94522019-11-18 14:53:32144 "../../rtc_base",
Florent Castelliceb7b362022-04-19 15:35:04145 "../../rtc_base:byte_buffer",
Florent Castellia876a922022-04-19 15:18:36146 "../../rtc_base:byte_order",
Florent Castelli4467ad72022-04-04 13:18:46147 "../../rtc_base:macromagic",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01148 "../../rtc_base:socket_address",
Harald Alvestrandac757782022-10-11 12:18:34149 "../../system_wrappers:metrics",
Patrik Höglund56d94522019-11-18 14:53:32150 "../../test:test_support",
151 "//testing/gtest",
152 ]
153 }
154}
155
156if (rtc_include_tests) {
Per Kjellander52f7ae72019-09-10 17:28:06157 rtc_source_set("mock_network_control") {
158 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10159 sources = [ "test/mock_network_control.h" ]
Per Kjellander52f7ae72019-09-10 17:28:06160 deps = [
161 ":network_control",
162 "../../test:test_support",
163 ]
164 }
165}