• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
11rtc_library("bitrate_settings") {
12  visibility = [ "*" ]
13  sources = [
14    "bitrate_settings.cc",
15    "bitrate_settings.h",
16  ]
17  deps = [ "../../rtc_base/system:rtc_export" ]
18  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
19}
20
21rtc_source_set("enums") {
22  visibility = [ "*" ]
23  sources = [ "enums.h" ]
24}
25
26rtc_library("network_control") {
27  visibility = [ "*" ]
28  sources = [
29    "network_control.h",
30    "network_types.cc",
31    "network_types.h",
32  ]
33
34  deps = [
35    ":webrtc_key_value_config",
36    "../../rtc_base:deprecation",
37    "../rtc_event_log",
38    "../units:data_rate",
39    "../units:data_size",
40    "../units:time_delta",
41    "../units:timestamp",
42  ]
43  absl_deps = [
44    "//third_party/abseil-cpp/absl/base:core_headers",
45    "//third_party/abseil-cpp/absl/types:optional",
46  ]
47}
48
49rtc_source_set("webrtc_key_value_config") {
50  visibility = [ "*" ]
51  sources = [ "webrtc_key_value_config.h" ]
52  deps = [ "../../rtc_base/system:rtc_export" ]
53  absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
54}
55
56rtc_library("field_trial_based_config") {
57  visibility = [ "*" ]
58  sources = [
59    "field_trial_based_config.cc",
60    "field_trial_based_config.h",
61  ]
62  deps = [
63    ":webrtc_key_value_config",
64    "../../system_wrappers:field_trial",
65  ]
66  absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
67}
68
69# TODO(nisse): Rename?
70rtc_source_set("datagram_transport_interface") {
71  visibility = [ "*" ]
72  sources = [ "data_channel_transport_interface.h" ]
73  deps = [
74    "..:array_view",
75    "..:rtc_error",
76    "../../rtc_base:rtc_base_approved",
77  ]
78  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
79}
80
81rtc_library("goog_cc") {
82  visibility = [ "*" ]
83  sources = [
84    "goog_cc_factory.cc",
85    "goog_cc_factory.h",
86  ]
87  deps = [
88    ":network_control",
89    ":webrtc_key_value_config",
90    "..:network_state_predictor_api",
91    "../../modules/congestion_controller/goog_cc",
92    "../../rtc_base:deprecation",
93  ]
94}
95
96rtc_source_set("stun_types") {
97  visibility = [ "*" ]
98  sources = [
99    "stun.cc",
100    "stun.h",
101  ]
102
103  deps = [
104    "../../rtc_base:checks",
105    "../../rtc_base:rtc_base",
106    "../../rtc_base:rtc_base_approved",
107  ]
108}
109
110if (rtc_include_tests) {
111  rtc_source_set("test_feedback_generator_interface") {
112    testonly = true
113    sources = [ "test/feedback_generator_interface.h" ]
114    deps = [
115      ":network_control",
116      "..:simulated_network_api",
117    ]
118  }
119  rtc_library("test_feedback_generator") {
120    testonly = true
121    sources = [
122      "test/create_feedback_generator.cc",
123      "test/create_feedback_generator.h",
124    ]
125    visibility = [ "*" ]
126    deps = [
127      ":network_control",
128      ":test_feedback_generator_interface",
129      "../../test/network:feedback_generator",
130    ]
131  }
132}
133
134if (rtc_include_tests) {
135  rtc_source_set("stun_unittest") {
136    visibility = [ "*" ]
137    testonly = true
138    sources = [ "stun_unittest.cc" ]
139    deps = [
140      ":stun_types",
141      "../../rtc_base",
142      "../../rtc_base:macromagic",
143      "../../rtc_base:rtc_base_approved",
144      "../../test:test_support",
145      "//testing/gtest",
146    ]
147  }
148}
149
150if (rtc_include_tests) {
151  rtc_source_set("mock_network_control") {
152    testonly = true
153    sources = [ "test/mock_network_control.h" ]
154    deps = [
155      ":network_control",
156      "../../test:test_support",
157    ]
158  }
159}
160