Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1 | # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
Henrik Kjellander | 73e2180 | 2017-06-20 06:38:58 | [diff] [blame] | 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 | |
| 9 | import("../webrtc.gni") |
| 10 | |
| 11 | if (is_android) { |
| 12 | import("//build/config/android/config.gni") |
| 13 | import("//build/config/android/rules.gni") |
| 14 | } |
| 15 | |
Oleh Prypin | dd21474 | 2018-07-17 11:49:46 | [diff] [blame] | 16 | rtc_source_set("protobuf_utils") { |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 17 | sources = [ "protobuf_utils.h" ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 18 | if (rtc_enable_protobuf) { |
Mirko Bonadei | d8661a0 | 2018-08-13 13:04:25 | [diff] [blame] | 19 | public_configs = [ "//third_party/protobuf:protobuf_config" ] |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 20 | deps = [ "//third_party/protobuf:protobuf_lite" ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 21 | } |
| 22 | } |
| 23 | |
Danil Chapovalov | 5af152c | 2021-08-31 13:27:51 | [diff] [blame] | 24 | rtc_source_set("bitstream_reader") { |
| 25 | sources = [ |
| 26 | "bitstream_reader.cc", |
| 27 | "bitstream_reader.h", |
| 28 | ] |
| 29 | deps = [ |
| 30 | ":checks", |
| 31 | ":safe_conversions", |
| 32 | "../api:array_view", |
Danil Chapovalov | 5af152c | 2021-08-31 13:27:51 | [diff] [blame] | 33 | "//third_party/abseil-cpp/absl/base:core_headers", |
| 34 | "//third_party/abseil-cpp/absl/numeric:bits", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 35 | "//third_party/abseil-cpp/absl/strings:string_view", |
Danil Chapovalov | 5af152c | 2021-08-31 13:27:51 | [diff] [blame] | 36 | ] |
| 37 | } |
| 38 | |
Oleh Prypin | dd21474 | 2018-07-17 11:49:46 | [diff] [blame] | 39 | rtc_source_set("compile_assert_c") { |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 40 | sources = [ "compile_assert_c.h" ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 41 | } |
| 42 | |
Mirko Bonadei | 3663ed3 | 2019-10-19 10:03:23 | [diff] [blame] | 43 | rtc_source_set("ignore_wundef") { |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 44 | sources = [ "ignore_wundef.h" ] |
Mirko Bonadei | 3663ed3 | 2019-10-19 10:03:23 | [diff] [blame] | 45 | } |
| 46 | |
Karl Wiberg | 70026f9 | 2020-09-18 08:03:16 | [diff] [blame] | 47 | rtc_source_set("untyped_function") { |
| 48 | sources = [ "untyped_function.h" ] |
Karl Wiberg | 3d452cf | 2020-09-11 14:09:46 | [diff] [blame] | 49 | deps = [ "system:assume" ] |
| 50 | } |
| 51 | |
Mirko Bonadei | 3d25935 | 2020-10-23 10:04:40 | [diff] [blame] | 52 | rtc_source_set("callback_list") { |
Karl Wiberg | 3d452cf | 2020-09-11 14:09:46 | [diff] [blame] | 53 | sources = [ |
Mirko Bonadei | 3d25935 | 2020-10-23 10:04:40 | [diff] [blame] | 54 | "callback_list.cc", |
| 55 | "callback_list.h", |
Karl Wiberg | 3d452cf | 2020-09-11 14:09:46 | [diff] [blame] | 56 | ] |
| 57 | deps = [ |
Karl Wiberg | 01a36f3 | 2020-11-11 10:48:04 | [diff] [blame] | 58 | ":checks", |
Karl Wiberg | 70026f9 | 2020-09-18 08:03:16 | [diff] [blame] | 59 | ":untyped_function", |
Karl Wiberg | 3d452cf | 2020-09-11 14:09:46 | [diff] [blame] | 60 | "../api:function_view", |
| 61 | "system:assume", |
Karl Wiberg | d2c6967 | 2020-09-29 11:55:13 | [diff] [blame] | 62 | "system:inline", |
Tomas Gunnarsson | 9797dcd | 2022-04-10 11:27:13 | [diff] [blame] | 63 | "system:rtc_export", |
Karl Wiberg | 3d452cf | 2020-09-11 14:09:46 | [diff] [blame] | 64 | ] |
| 65 | } |
| 66 | |
Florent Castelli | f9c5984 | 2022-04-19 15:07:23 | [diff] [blame] | 67 | rtc_source_set("buffer") { |
| 68 | visibility = [ "*" ] |
| 69 | sources = [ "buffer.h" ] |
| 70 | deps = [ |
| 71 | ":checks", |
| 72 | ":type_traits", |
| 73 | ":zero_memory", |
| 74 | "../api:array_view", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 75 | "//third_party/abseil-cpp/absl/strings:string_view", |
Florent Castelli | f9c5984 | 2022-04-19 15:07:23 | [diff] [blame] | 76 | ] |
Florent Castelli | f9c5984 | 2022-04-19 15:07:23 | [diff] [blame] | 77 | } |
| 78 | |
Florent Castelli | a876a92 | 2022-04-19 15:18:36 | [diff] [blame] | 79 | rtc_source_set("byte_order") { |
| 80 | visibility = [ "*" ] |
| 81 | sources = [ "byte_order.h" ] |
| 82 | deps = [ "system:arch" ] |
| 83 | } |
| 84 | |
Florent Castelli | 3176409 | 2022-04-14 11:41:58 | [diff] [blame] | 85 | rtc_source_set("mod_ops") { |
| 86 | visibility = [ "*" ] |
| 87 | sources = [ "numerics/mod_ops.h" ] |
| 88 | deps = [ ":checks" ] |
| 89 | } |
| 90 | |
| 91 | rtc_source_set("moving_max_counter") { |
| 92 | visibility = [ "*" ] |
| 93 | sources = [ "numerics/moving_max_counter.h" ] |
Florent Castelli | 8037fc6 | 2024-08-29 13:00:40 | [diff] [blame] | 94 | deps = [ ":checks" ] |
Florent Castelli | 3176409 | 2022-04-14 11:41:58 | [diff] [blame] | 95 | } |
| 96 | |
Florent Castelli | 6b60859 | 2022-04-14 11:18:04 | [diff] [blame] | 97 | rtc_source_set("one_time_event") { |
| 98 | visibility = [ "*" ] |
| 99 | sources = [ "one_time_event.h" ] |
| 100 | deps = [ "synchronization:mutex" ] |
| 101 | } |
| 102 | |
Florent Castelli | a6c10e3 | 2022-04-14 11:08:44 | [diff] [blame] | 103 | rtc_source_set("strong_alias") { |
| 104 | visibility = [ "*" ] |
| 105 | sources = [ "strong_alias.h" ] |
| 106 | } |
| 107 | |
Florent Castelli | d119b9e | 2022-04-14 11:23:51 | [diff] [blame] | 108 | rtc_source_set("swap_queue") { |
| 109 | visibility = [ "*" ] |
| 110 | sources = [ "swap_queue.h" ] |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 111 | deps = [ |
| 112 | ":checks", |
| 113 | "//third_party/abseil-cpp/absl/base:core_headers", |
| 114 | ] |
Florent Castelli | d119b9e | 2022-04-14 11:23:51 | [diff] [blame] | 115 | } |
| 116 | |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 117 | rtc_source_set("macromagic") { |
| 118 | sources = [ |
| 119 | "arraysize.h", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 120 | "thread_annotations.h", |
| 121 | ] |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 122 | deps = [ "system:arch" ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 123 | } |
| 124 | |
Florent Castelli | 7f623b0 | 2022-04-14 11:34:56 | [diff] [blame] | 125 | rtc_library("bit_buffer") { |
| 126 | visibility = [ "*" ] |
| 127 | sources = [ |
| 128 | "bit_buffer.cc", |
| 129 | "bit_buffer.h", |
| 130 | ] |
philipel | 579a7b4 | 2023-03-02 10:51:53 | [diff] [blame] | 131 | deps = [ |
| 132 | ":checks", |
| 133 | "../api/units:data_size", |
philipel | 579a7b4 | 2023-03-02 10:51:53 | [diff] [blame] | 134 | "//third_party/abseil-cpp/absl/numeric:bits", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 135 | "//third_party/abseil-cpp/absl/strings:string_view", |
philipel | 579a7b4 | 2023-03-02 10:51:53 | [diff] [blame] | 136 | ] |
Florent Castelli | 7f623b0 | 2022-04-14 11:34:56 | [diff] [blame] | 137 | } |
| 138 | |
Florent Castelli | ceb7b36 | 2022-04-19 15:35:04 | [diff] [blame] | 139 | rtc_library("byte_buffer") { |
| 140 | visibility = [ "*" ] |
| 141 | sources = [ |
| 142 | "byte_buffer.cc", |
| 143 | "byte_buffer.h", |
| 144 | ] |
| 145 | deps = [ |
| 146 | ":buffer", |
| 147 | ":byte_order", |
Per K | cf2e08b | 2023-11-17 09:05:36 | [diff] [blame] | 148 | "../api:array_view", |
Per K | cf2e08b | 2023-11-17 09:05:36 | [diff] [blame] | 149 | "//third_party/abseil-cpp/absl/base:core_headers", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 150 | "//third_party/abseil-cpp/absl/strings:string_view", |
Per K | cf2e08b | 2023-11-17 09:05:36 | [diff] [blame] | 151 | ] |
Florent Castelli | ceb7b36 | 2022-04-19 15:35:04 | [diff] [blame] | 152 | } |
| 153 | |
Florent Castelli | 7606375 | 2022-04-19 15:14:26 | [diff] [blame] | 154 | rtc_library("buffer_queue") { |
| 155 | visibility = [ "*" ] |
| 156 | sources = [ |
| 157 | "buffer_queue.cc", |
| 158 | "buffer_queue.h", |
| 159 | ] |
| 160 | deps = [ |
| 161 | ":buffer", |
| 162 | ":macromagic", |
| 163 | "../api:sequence_checker", |
| 164 | "system:no_unique_address", |
| 165 | ] |
| 166 | } |
| 167 | |
Florent Castelli | ed4aadc | 2022-04-19 15:40:46 | [diff] [blame] | 168 | rtc_library("copy_on_write_buffer") { |
| 169 | visibility = [ "*" ] |
| 170 | sources = [ |
| 171 | "copy_on_write_buffer.cc", |
| 172 | "copy_on_write_buffer.h", |
| 173 | ] |
| 174 | deps = [ |
| 175 | ":buffer", |
| 176 | ":checks", |
| 177 | ":refcount", |
| 178 | ":type_traits", |
| 179 | "../api:scoped_refptr", |
| 180 | "system:rtc_export", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 181 | "//third_party/abseil-cpp/absl/strings:string_view", |
Florent Castelli | ed4aadc | 2022-04-19 15:40:46 | [diff] [blame] | 182 | ] |
| 183 | } |
| 184 | |
Florent Castelli | a30aef3 | 2022-04-19 15:47:13 | [diff] [blame] | 185 | rtc_library("event_tracer") { |
| 186 | visibility = [ "*" ] |
| 187 | sources = [ |
| 188 | "event_tracer.cc", |
| 189 | "event_tracer.h", |
| 190 | "trace_event.h", |
| 191 | ] |
| 192 | deps = [ |
Florent Castelli | a30aef3 | 2022-04-19 15:47:13 | [diff] [blame] | 193 | ":checks", |
| 194 | ":logging", |
| 195 | ":macromagic", |
| 196 | ":platform_thread", |
| 197 | ":platform_thread_types", |
| 198 | ":rtc_event", |
| 199 | ":timeutils", |
Evan Shrubsole | cd09858 | 2024-04-30 07:57:49 | [diff] [blame] | 200 | "..:tracing", |
Florent Castelli | a30aef3 | 2022-04-19 15:47:13 | [diff] [blame] | 201 | "../api:sequence_checker", |
| 202 | "synchronization:mutex", |
| 203 | "system:rtc_export", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 204 | "//third_party/abseil-cpp/absl/strings:string_view", |
Florent Castelli | a30aef3 | 2022-04-19 15:47:13 | [diff] [blame] | 205 | ] |
Evan Shrubsole | db50b03 | 2024-04-24 13:27:00 | [diff] [blame] | 206 | if (rtc_use_perfetto) { |
| 207 | sources += [ |
| 208 | "trace_categories.cc", |
| 209 | "trace_categories.h", |
| 210 | ] |
Evan Shrubsole | db50b03 | 2024-04-24 13:27:00 | [diff] [blame] | 211 | } |
Florent Castelli | a30aef3 | 2022-04-19 15:47:13 | [diff] [blame] | 212 | } |
| 213 | |
Florent Castelli | 1729642 | 2022-04-14 11:48:10 | [diff] [blame] | 214 | rtc_library("histogram_percentile_counter") { |
| 215 | visibility = [ "*" ] |
| 216 | sources = [ |
| 217 | "numerics/histogram_percentile_counter.cc", |
| 218 | "numerics/histogram_percentile_counter.h", |
| 219 | ] |
Florent Castelli | 8037fc6 | 2024-08-29 13:00:40 | [diff] [blame] | 220 | deps = [ ":checks" ] |
Florent Castelli | 1729642 | 2022-04-14 11:48:10 | [diff] [blame] | 221 | } |
| 222 | |
Florent Castelli | 7f623b0 | 2022-04-14 11:34:56 | [diff] [blame] | 223 | rtc_library("race_checker") { |
| 224 | visibility = [ "*" ] |
| 225 | sources = [ |
| 226 | "race_checker.cc", |
| 227 | "race_checker.h", |
| 228 | ] |
| 229 | deps = [ |
| 230 | ":checks", |
| 231 | ":macromagic", |
| 232 | ":platform_thread_types", |
| 233 | ] |
| 234 | } |
| 235 | |
Florent Castelli | 71337f3 | 2022-04-14 10:41:26 | [diff] [blame] | 236 | rtc_library("random") { |
| 237 | visibility = [ "*" ] |
| 238 | sources = [ |
| 239 | "random.cc", |
| 240 | "random.h", |
| 241 | ] |
| 242 | deps = [ |
| 243 | ":checks", |
| 244 | ":safe_conversions", |
| 245 | ] |
| 246 | } |
| 247 | |
Danil Chapovalov | e546ff9 | 2023-07-21 12:06:20 | [diff] [blame] | 248 | rtc_library("bitrate_tracker") { |
| 249 | visibility = [ "*" ] |
| 250 | sources = [ |
| 251 | "bitrate_tracker.cc", |
| 252 | "bitrate_tracker.h", |
| 253 | ] |
| 254 | deps = [ |
| 255 | ":rate_statistics", |
| 256 | "../api/units:data_rate", |
| 257 | "../api/units:data_size", |
| 258 | "../api/units:time_delta", |
| 259 | "../api/units:timestamp", |
| 260 | "system:rtc_export", |
| 261 | ] |
Danil Chapovalov | e546ff9 | 2023-07-21 12:06:20 | [diff] [blame] | 262 | } |
| 263 | |
| 264 | rtc_library("frequency_tracker") { |
| 265 | visibility = [ "*" ] |
| 266 | sources = [ |
| 267 | "frequency_tracker.cc", |
| 268 | "frequency_tracker.h", |
| 269 | ] |
| 270 | deps = [ |
| 271 | ":rate_statistics", |
| 272 | "../api/units:frequency", |
| 273 | "../api/units:time_delta", |
| 274 | "../api/units:timestamp", |
| 275 | "system:rtc_export", |
| 276 | ] |
Danil Chapovalov | e546ff9 | 2023-07-21 12:06:20 | [diff] [blame] | 277 | } |
| 278 | |
Florent Castelli | 6bb1fd3 | 2022-04-19 13:58:39 | [diff] [blame] | 279 | rtc_library("rate_statistics") { |
Danil Chapovalov | e546ff9 | 2023-07-21 12:06:20 | [diff] [blame] | 280 | # TODO(bugs.webrtc.org/13756): Restrict visibility to private when all usage |
| 281 | # of the RateStatistics is migrated to BitrateTracker and FrequencyTracker. |
Florent Castelli | 6bb1fd3 | 2022-04-19 13:58:39 | [diff] [blame] | 282 | visibility = [ "*" ] |
| 283 | sources = [ |
| 284 | "rate_statistics.cc", |
| 285 | "rate_statistics.h", |
| 286 | ] |
| 287 | deps = [ |
| 288 | ":checks", |
| 289 | ":logging", |
| 290 | ":safe_conversions", |
| 291 | "system:rtc_export", |
| 292 | ] |
Florent Castelli | 6bb1fd3 | 2022-04-19 13:58:39 | [diff] [blame] | 293 | } |
| 294 | |
Florent Castelli | 58cc468 | 2022-04-19 13:50:28 | [diff] [blame] | 295 | rtc_library("rate_tracker") { |
| 296 | visibility = [ "*" ] |
| 297 | sources = [ |
| 298 | "rate_tracker.cc", |
| 299 | "rate_tracker.h", |
| 300 | ] |
| 301 | deps = [ |
| 302 | ":checks", |
| 303 | ":timeutils", |
| 304 | ] |
| 305 | } |
| 306 | |
Florent Castelli | 83a36d4 | 2022-04-14 11:44:39 | [diff] [blame] | 307 | rtc_library("sample_counter") { |
| 308 | visibility = [ "*" ] |
| 309 | sources = [ |
| 310 | "numerics/sample_counter.cc", |
| 311 | "numerics/sample_counter.h", |
| 312 | ] |
| 313 | deps = [ |
| 314 | ":checks", |
| 315 | ":safe_conversions", |
| 316 | ] |
Florent Castelli | 83a36d4 | 2022-04-14 11:44:39 | [diff] [blame] | 317 | } |
| 318 | |
Florent Castelli | b1dc4e4 | 2022-04-14 11:20:12 | [diff] [blame] | 319 | rtc_library("timestamp_aligner") { |
| 320 | visibility = [ "*" ] |
| 321 | sources = [ |
| 322 | "timestamp_aligner.cc", |
| 323 | "timestamp_aligner.h", |
| 324 | ] |
| 325 | deps = [ |
| 326 | ":checks", |
| 327 | ":logging", |
| 328 | ":timeutils", |
| 329 | "system:rtc_export", |
| 330 | ] |
| 331 | } |
| 332 | |
Florent Castelli | d119b9e | 2022-04-14 11:23:51 | [diff] [blame] | 333 | rtc_library("zero_memory") { |
| 334 | visibility = [ "*" ] |
| 335 | sources = [ |
| 336 | "zero_memory.cc", |
| 337 | "zero_memory.h", |
| 338 | ] |
| 339 | deps = [ |
| 340 | ":checks", |
| 341 | "../api:array_view", |
| 342 | ] |
| 343 | } |
| 344 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 345 | rtc_library("platform_thread_types") { |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 346 | sources = [ |
| 347 | "platform_thread_types.cc", |
| 348 | "platform_thread_types.h", |
| 349 | ] |
Mirko Bonadei | d409621 | 2022-11-24 08:01:35 | [diff] [blame] | 350 | deps = [ |
| 351 | ":checks", |
| 352 | ":macromagic", |
| 353 | ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 354 | } |
| 355 | |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 356 | rtc_source_set("refcount") { |
Mirko Bonadei | ca14a3a | 2018-08-09 07:47:12 | [diff] [blame] | 357 | visibility = [ "*" ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 358 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 359 | "ref_count.h", |
| 360 | "ref_counted_object.h", |
| 361 | "ref_counter.h", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 362 | ] |
Tomas Gunnarsson | d784200 | 2021-04-22 15:41:33 | [diff] [blame] | 363 | deps = [ |
| 364 | ":macromagic", |
Harald Alvestrand | d6bac61 | 2023-10-31 11:42:45 | [diff] [blame] | 365 | "../api:ref_count", |
Tomas Gunnarsson | d784200 | 2021-04-22 15:41:33 | [diff] [blame] | 366 | "../api:scoped_refptr", |
| 367 | ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 368 | } |
| 369 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 370 | rtc_library("criticalsection") { |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 371 | sources = [ |
Markus Handell | 3cb525b | 2020-07-16 14:16:09 | [diff] [blame] | 372 | "deprecated/recursive_critical_section.cc", |
| 373 | "deprecated/recursive_critical_section.h", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 374 | ] |
| 375 | deps = [ |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 376 | ":checks", |
| 377 | ":macromagic", |
| 378 | ":platform_thread_types", |
Markus Handell | f70fbc8 | 2020-06-03 22:41:20 | [diff] [blame] | 379 | "synchronization:yield", |
Niels Möller | a12c42a | 2018-07-25 14:05:48 | [diff] [blame] | 380 | "system:unused", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 381 | ] |
| 382 | } |
| 383 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 384 | rtc_library("platform_thread") { |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 385 | sources = [ |
| 386 | "platform_thread.cc", |
| 387 | "platform_thread.h", |
| 388 | ] |
| 389 | deps = [ |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 390 | ":checks", |
| 391 | ":macromagic", |
| 392 | ":platform_thread_types", |
| 393 | ":rtc_event", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 394 | ":timeutils", |
Artem Titov | d15a575 | 2021-02-10 13:31:24 | [diff] [blame] | 395 | "../api:sequence_checker", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 396 | "//third_party/abseil-cpp/absl/strings:string_view", |
Markus Handell | 97c4458 | 2021-04-20 15:41:54 | [diff] [blame] | 397 | ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 398 | } |
| 399 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 400 | rtc_library("rtc_event") { |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 401 | if (build_with_chromium) { |
| 402 | sources = [ |
| 403 | "../../webrtc_overrides/rtc_base/event.cc", |
| 404 | "../../webrtc_overrides/rtc_base/event.h", |
| 405 | ] |
Karl Wiberg | 9841703 | 2019-03-24 18:12:40 | [diff] [blame] | 406 | deps = [ |
| 407 | ":checks", |
Markus Handell | 211ecb4 | 2022-08-16 13:31:26 | [diff] [blame] | 408 | "../api/units:time_delta", |
Mirko Bonadei | d4002a7 | 2019-11-12 19:11:48 | [diff] [blame] | 409 | "system:rtc_export", # Only Chromium's rtc::Event use RTC_EXPORT. |
Karl Wiberg | 9841703 | 2019-03-24 18:12:40 | [diff] [blame] | 410 | "//base", # Dependency on chromium's waitable_event. |
| 411 | ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 412 | } else { |
| 413 | sources = [ |
| 414 | "event.cc", |
| 415 | "event.h", |
| 416 | ] |
Karl Wiberg | 9841703 | 2019-03-24 18:12:40 | [diff] [blame] | 417 | deps = [ |
| 418 | ":checks", |
Markus Handell | 1d5be49 | 2022-08-18 13:49:09 | [diff] [blame] | 419 | ":timeutils", |
| 420 | "../api/units:time_delta", |
Karl Wiberg | 9841703 | 2019-03-24 18:12:40 | [diff] [blame] | 421 | "synchronization:yield_policy", |
| 422 | "system:warn_current_thread_is_deadlocked", |
| 423 | ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 424 | } |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 425 | } |
| 426 | |
Mirko Bonadei | cb03e38 | 2022-02-10 13:27:57 | [diff] [blame] | 427 | config("chromium_logging_config") { |
Danil Chapovalov | e610610 | 2022-02-16 11:29:02 | [diff] [blame] | 428 | defines = [ "LOGGING_INSIDE_WEBRTC" ] |
Mirko Bonadei | cb03e38 | 2022-02-10 13:27:57 | [diff] [blame] | 429 | } |
| 430 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 431 | rtc_library("logging") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 08:54:40 | [diff] [blame] | 432 | visibility = [ "*" ] |
Patrik Höglund | 7730193 | 2018-10-09 13:09:51 | [diff] [blame] | 433 | libs = [] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 434 | deps = [ |
Yves Gerey | 988cc08 | 2018-10-23 10:03:01 | [diff] [blame] | 435 | ":checks", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 436 | ":macromagic", |
| 437 | ":platform_thread_types", |
| 438 | ":stringutils", |
| 439 | ":timeutils", |
Mirko Bonadei | 96191f8 | 2022-08-03 08:12:33 | [diff] [blame] | 440 | "../api/units:timestamp", |
Markus Handell | de8a935 | 2020-06-10 13:40:42 | [diff] [blame] | 441 | "synchronization:mutex", |
Danil Chapovalov | ef98ae6 | 2019-10-11 15:18:29 | [diff] [blame] | 442 | "//third_party/abseil-cpp/absl/base:core_headers", |
Sebastian Jansson | f4e085a | 2019-05-20 16:34:07 | [diff] [blame] | 443 | "//third_party/abseil-cpp/absl/meta:type_traits", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 444 | "//third_party/abseil-cpp/absl/strings:string_view", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 445 | ] |
| 446 | |
| 447 | if (build_with_chromium) { |
| 448 | # Dependency on chromium's logging (in //base). |
Artem Titov | 94b57c0 | 2019-03-21 12:35:10 | [diff] [blame] | 449 | deps += [ "//base" ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 450 | sources = [ |
| 451 | "../../webrtc_overrides/rtc_base/logging.cc", |
| 452 | "../../webrtc_overrides/rtc_base/logging.h", |
| 453 | ] |
Danil Chapovalov | e610610 | 2022-02-16 11:29:02 | [diff] [blame] | 454 | |
Mirko Bonadei | cb03e38 | 2022-02-10 13:27:57 | [diff] [blame] | 455 | # This macro needs to be both present in all WebRTC targets (see its |
| 456 | # definition in //BUILD.gn but also propagated to all the targets |
| 457 | # depending on the Chromium component defined in |
| 458 | # //third_party/webrtc_overrides:webrtc_component. This public_config |
| 459 | # allows GN to propagate the macro accordingly. |
Danil Chapovalov | e610610 | 2022-02-16 11:29:02 | [diff] [blame] | 460 | public_configs = [ ":chromium_logging_config" ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 461 | } else { |
| 462 | sources = [ |
| 463 | "logging.cc", |
| 464 | "logging.h", |
| 465 | ] |
Karl Wiberg | cefc465 | 2018-05-23 21:20:38 | [diff] [blame] | 466 | deps += [ "system:inline" ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 467 | |
Mirko Bonadei | 99a70a2 | 2018-10-09 14:45:14 | [diff] [blame] | 468 | if (is_mac) { |
Sylvain Defresne | c7f0dff | 2020-07-03 08:19:30 | [diff] [blame] | 469 | frameworks = [ "Foundation.framework" ] |
Mirko Bonadei | 99a70a2 | 2018-10-09 14:45:14 | [diff] [blame] | 470 | } |
| 471 | |
Patrik Höglund | 7730193 | 2018-10-09 13:09:51 | [diff] [blame] | 472 | if (is_android) { |
| 473 | libs += [ "log" ] |
| 474 | } |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 475 | } |
| 476 | } |
| 477 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 478 | rtc_library("checks") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 08:54:40 | [diff] [blame] | 479 | # TODO(bugs.webrtc.org/9607): This should not be public. |
| 480 | visibility = [ "*" ] |
Patrik Höglund | 7730193 | 2018-10-09 13:09:51 | [diff] [blame] | 481 | libs = [] |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 482 | sources = [ |
| 483 | "checks.cc", |
| 484 | "checks.h", |
| 485 | ] |
| 486 | deps = [ |
| 487 | ":safe_compare", |
Niels Möller | 9432768 | 2022-04-28 11:20:29 | [diff] [blame] | 488 | "../api:scoped_refptr", |
Jonas Olsson | f8e5c11 | 2018-06-14 11:14:22 | [diff] [blame] | 489 | "system:inline", |
Mirko Bonadei | 35214fc | 2019-09-23 12:54:28 | [diff] [blame] | 490 | "system:rtc_export", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 491 | "//third_party/abseil-cpp/absl/meta:type_traits", |
| 492 | "//third_party/abseil-cpp/absl/strings:string_view", |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 493 | ] |
Peter Boström | d6e861d | 2022-07-29 20:44:21 | [diff] [blame] | 494 | if (build_with_chromium) { |
| 495 | sources += [ "../../webrtc_overrides/rtc_base/checks_overrides.cc" ] |
| 496 | deps += [ "//base" ] |
| 497 | } |
Patrik Höglund | 7730193 | 2018-10-09 13:09:51 | [diff] [blame] | 498 | if (is_android) { |
| 499 | libs += [ "log" ] |
| 500 | } |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 501 | } |
| 502 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 503 | rtc_library("rate_limiter") { |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 504 | sources = [ |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 505 | "rate_limiter.cc", |
| 506 | "rate_limiter.h", |
| 507 | ] |
| 508 | deps = [ |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 509 | ":macromagic", |
Florent Castelli | 6bb1fd3 | 2022-04-19 13:58:39 | [diff] [blame] | 510 | ":rate_statistics", |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 511 | "../system_wrappers", |
Markus Handell | 18523c3 | 2020-07-08 15:55:58 | [diff] [blame] | 512 | "synchronization:mutex", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 513 | ] |
| 514 | } |
| 515 | |
| 516 | rtc_source_set("sanitizer") { |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 517 | sources = [ "sanitizer.h" ] |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 518 | deps = [ "//third_party/abseil-cpp/absl/meta:type_traits" ] |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 519 | } |
| 520 | |
Karl Wiberg | c126937 | 2020-03-02 19:23:41 | [diff] [blame] | 521 | rtc_source_set("bounded_inline_vector") { |
| 522 | public = [ "bounded_inline_vector.h" ] |
| 523 | sources = [ "bounded_inline_vector_impl.h" ] |
| 524 | deps = [ ":checks" ] |
| 525 | } |
| 526 | |
Danil Chapovalov | 33b83fd | 2019-09-18 13:48:23 | [diff] [blame] | 527 | rtc_source_set("divide_round") { |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 528 | sources = [ "numerics/divide_round.h" ] |
Danil Chapovalov | 33b83fd | 2019-09-18 13:48:23 | [diff] [blame] | 529 | deps = [ |
| 530 | ":checks", |
| 531 | ":safe_compare", |
| 532 | ] |
| 533 | } |
| 534 | |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 535 | rtc_source_set("safe_compare") { |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 536 | sources = [ "numerics/safe_compare.h" ] |
| 537 | deps = [ ":type_traits" ] |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 538 | } |
| 539 | |
Karl Wiberg | 12edf4c | 2018-03-07 13:18:56 | [diff] [blame] | 540 | rtc_source_set("safe_minmax") { |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 541 | sources = [ "numerics/safe_minmax.h" ] |
Karl Wiberg | 12edf4c | 2018-03-07 13:18:56 | [diff] [blame] | 542 | deps = [ |
| 543 | ":checks", |
| 544 | ":safe_compare", |
| 545 | ":type_traits", |
| 546 | ] |
| 547 | } |
| 548 | |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 549 | rtc_source_set("safe_conversions") { |
| 550 | sources = [ |
| 551 | "numerics/safe_conversions.h", |
| 552 | "numerics/safe_conversions_impl.h", |
| 553 | ] |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 554 | deps = [ ":checks" ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 555 | } |
| 556 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 557 | rtc_library("timeutils") { |
Mirko Bonadei | 2ad8c43 | 2018-08-09 08:54:40 | [diff] [blame] | 558 | visibility = [ "*" ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 559 | sources = [ |
Johannes Kron | b73c9f0 | 2021-02-15 12:29:45 | [diff] [blame] | 560 | "system_time.cc", |
| 561 | "system_time.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 562 | "time_utils.cc", |
| 563 | "time_utils.h", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 564 | ] |
| 565 | deps = [ |
| 566 | ":checks", |
| 567 | ":safe_conversions", |
Jonas Olsson | 366a50c | 2018-09-06 11:41:30 | [diff] [blame] | 568 | ":stringutils", |
Mirko Bonadei | 35214fc | 2019-09-23 12:54:28 | [diff] [blame] | 569 | "system:rtc_export", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 570 | ] |
Philipp Hancke | 3adaeef | 2023-06-27 11:08:44 | [diff] [blame] | 571 | |
Johannes Kron | bb52bdf | 2021-02-25 09:10:08 | [diff] [blame] | 572 | if (rtc_exclude_system_time) { |
| 573 | defines = [ "WEBRTC_EXCLUDE_SYSTEM_TIME" ] |
| 574 | } |
| 575 | |
Noah Richards | 342989d | 2019-03-18 20:50:20 | [diff] [blame] | 576 | libs = [] |
| 577 | if (is_win) { |
| 578 | libs += [ "winmm.lib" ] |
Philipp Hancke | 3adaeef | 2023-06-27 11:08:44 | [diff] [blame] | 579 | deps += [ ":win32" ] |
Noah Richards | 342989d | 2019-03-18 20:50:20 | [diff] [blame] | 580 | } |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 581 | } |
| 582 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 583 | rtc_library("stringutils") { |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 584 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 585 | "string_encode.cc", |
| 586 | "string_encode.h", |
Jonas Olsson | 6b1985d | 2018-07-05 09:59:48 | [diff] [blame] | 587 | "string_to_number.cc", |
| 588 | "string_to_number.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 589 | "string_utils.cc", |
| 590 | "string_utils.h", |
Sergey Silkin | ebc4d3e | 2023-11-15 10:04:48 | [diff] [blame] | 591 | "strings/str_join.h", |
Karl Wiberg | 881f168 | 2018-03-08 14:03:23 | [diff] [blame] | 592 | "strings/string_builder.cc", |
Tommi | fef0500 | 2018-02-27 12:51:08 | [diff] [blame] | 593 | "strings/string_builder.h", |
henrika | f0dc5c5 | 2020-04-09 16:46:00 | [diff] [blame] | 594 | "strings/string_format.cc", |
| 595 | "strings/string_format.h", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 596 | ] |
| 597 | deps = [ |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 598 | ":checks", |
Jonas Olsson | 6b1985d | 2018-07-05 09:59:48 | [diff] [blame] | 599 | ":macromagic", |
Karl Wiberg | 881f168 | 2018-03-08 14:03:23 | [diff] [blame] | 600 | ":safe_minmax", |
| 601 | "../api:array_view", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 602 | "//third_party/abseil-cpp/absl/strings:string_view", |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 603 | ] |
| 604 | } |
| 605 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 606 | rtc_library("audio_format_to_string") { |
Jonas Olsson | 7439534 | 2018-04-03 10:22:07 | [diff] [blame] | 607 | sources = [ |
| 608 | "strings/audio_format_to_string.cc", |
| 609 | "strings/audio_format_to_string.h", |
| 610 | ] |
| 611 | deps = [ |
| 612 | ":stringutils", |
| 613 | "../api/audio_codecs:audio_codecs_api", |
| 614 | ] |
| 615 | } |
| 616 | |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 617 | rtc_source_set("type_traits") { |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 618 | sources = [ "type_traits.h" ] |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 619 | } |
| 620 | |
Henrik Boström | 27c2936 | 2019-10-21 13:21:55 | [diff] [blame] | 621 | rtc_source_set("rtc_operations_chain") { |
| 622 | visibility = [ "*" ] |
| 623 | sources = [ |
| 624 | "operations_chain.cc", |
| 625 | "operations_chain.h", |
| 626 | ] |
| 627 | deps = [ |
| 628 | ":checks", |
| 629 | ":macromagic", |
| 630 | ":refcount", |
Niels Möller | 105711e | 2022-06-14 13:48:26 | [diff] [blame] | 631 | "../api:make_ref_counted", |
Niels Möller | 9512910 | 2022-01-13 10:00:05 | [diff] [blame] | 632 | "../api:refcountedbase", |
Henrik Boström | 27c2936 | 2019-10-21 13:21:55 | [diff] [blame] | 633 | "../api:scoped_refptr", |
Artem Titov | d15a575 | 2021-02-10 13:31:24 | [diff] [blame] | 634 | "../api:sequence_checker", |
Mirko Bonadei | 20e4c80 | 2020-11-23 10:07:42 | [diff] [blame] | 635 | "system:no_unique_address", |
Henrik Boström | 27c2936 | 2019-10-21 13:21:55 | [diff] [blame] | 636 | ] |
| 637 | } |
| 638 | |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 639 | if (rtc_enable_libevent) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 640 | rtc_library("rtc_task_queue_libevent") { |
Danil Chapovalov | 07a4f2b | 2019-03-05 18:58:28 | [diff] [blame] | 641 | visibility = [ "../api/task_queue:default_task_queue_factory" ] |
perkj | 650fdae | 2017-08-25 12:00:11 | [diff] [blame] | 642 | sources = [ |
Niels Möller | 15c9cf7 | 2017-10-19 10:38:09 | [diff] [blame] | 643 | "task_queue_libevent.cc", |
Danil Chapovalov | eb17524 | 2019-02-12 09:44:38 | [diff] [blame] | 644 | "task_queue_libevent.h", |
perkj | 650fdae | 2017-08-25 12:00:11 | [diff] [blame] | 645 | ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 646 | deps = [ |
| 647 | ":checks", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 648 | ":logging", |
Yves Gerey | 2e00abc | 2018-10-05 13:39:24 | [diff] [blame] | 649 | ":macromagic", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 650 | ":platform_thread", |
Yves Gerey | 2e00abc | 2018-10-05 13:39:24 | [diff] [blame] | 651 | ":platform_thread_types", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 652 | ":safe_conversions", |
| 653 | ":timeutils", |
Danil Chapovalov | eb17524 | 2019-02-12 09:44:38 | [diff] [blame] | 654 | "../api/task_queue", |
Danil Chapovalov | 30c2a31 | 2022-07-19 12:12:43 | [diff] [blame] | 655 | "../api/units:time_delta", |
Markus Handell | 18523c3 | 2020-07-08 15:55:58 | [diff] [blame] | 656 | "synchronization:mutex", |
Steve Anton | 9a83dd7 | 2020-01-09 19:03:25 | [diff] [blame] | 657 | "//third_party/abseil-cpp/absl/container:inlined_vector", |
Danil Chapovalov | 30c2a31 | 2022-07-19 12:12:43 | [diff] [blame] | 658 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 659 | "//third_party/abseil-cpp/absl/strings:string_view", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 660 | ] |
| 661 | if (rtc_build_libevent) { |
Byoungchan Lee | d69a726 | 2022-06-23 13:06:00 | [diff] [blame] | 662 | deps += [ "//third_party/libevent" ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 663 | } |
| 664 | } |
| 665 | } |
| 666 | |
| 667 | if (is_mac || is_ios) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 668 | rtc_library("rtc_task_queue_gcd") { |
Byoungchan Lee | 08438fc | 2021-10-12 13:53:35 | [diff] [blame] | 669 | visibility = [ "../api/task_queue:default_task_queue_factory" ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 670 | sources = [ |
| 671 | "task_queue_gcd.cc", |
Danil Chapovalov | 47cf5ea | 2019-02-19 19:20:16 | [diff] [blame] | 672 | "task_queue_gcd.h", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 673 | ] |
| 674 | deps = [ |
| 675 | ":checks", |
| 676 | ":logging", |
Markus Handell | 2a256c8 | 2023-02-27 11:41:39 | [diff] [blame] | 677 | "../api:location", |
Danil Chapovalov | 47cf5ea | 2019-02-19 19:20:16 | [diff] [blame] | 678 | "../api/task_queue", |
Danil Chapovalov | fcfa80f | 2022-07-07 09:26:48 | [diff] [blame] | 679 | "../api/units:time_delta", |
Markus Handell | 18523c3 | 2020-07-08 15:55:58 | [diff] [blame] | 680 | "synchronization:mutex", |
Yura Yaroshevich | ebf739b | 2020-03-16 15:00:59 | [diff] [blame] | 681 | "system:gcd_helpers", |
Danil Chapovalov | fcfa80f | 2022-07-07 09:26:48 | [diff] [blame] | 682 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 683 | "//third_party/abseil-cpp/absl/strings:string_view", |
Danil Chapovalov | fcfa80f | 2022-07-07 09:26:48 | [diff] [blame] | 684 | ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 685 | } |
| 686 | } |
| 687 | |
| 688 | if (is_win) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 689 | rtc_library("rtc_task_queue_win") { |
Danil Chapovalov | 07a4f2b | 2019-03-05 18:58:28 | [diff] [blame] | 690 | visibility = [ "../api/task_queue:default_task_queue_factory" ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 691 | sources = [ |
| 692 | "task_queue_win.cc", |
Danil Chapovalov | 826f2e7 | 2019-02-20 17:13:09 | [diff] [blame] | 693 | "task_queue_win.h", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 694 | ] |
| 695 | deps = [ |
| 696 | ":checks", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 697 | ":logging", |
| 698 | ":macromagic", |
| 699 | ":platform_thread", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 700 | ":rtc_event", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 701 | ":safe_conversions", |
| 702 | ":timeutils", |
Danil Chapovalov | 826f2e7 | 2019-02-20 17:13:09 | [diff] [blame] | 703 | "../api/task_queue", |
Danil Chapovalov | 3c06cfc | 2022-07-20 11:38:58 | [diff] [blame] | 704 | "../api/units:time_delta", |
| 705 | "../api/units:timestamp", |
Markus Handell | 18523c3 | 2020-07-08 15:55:58 | [diff] [blame] | 706 | "synchronization:mutex", |
Danil Chapovalov | 3c06cfc | 2022-07-20 11:38:58 | [diff] [blame] | 707 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 708 | "//third_party/abseil-cpp/absl/strings:string_view", |
Markus Handell | ad5037b | 2021-05-07 13:02:36 | [diff] [blame] | 709 | ] |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 710 | } |
| 711 | } |
| 712 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 713 | rtc_library("rtc_task_queue_stdlib") { |
Robin Raymond | 22027b9 | 2018-11-23 14:07:50 | [diff] [blame] | 714 | sources = [ |
| 715 | "task_queue_stdlib.cc", |
Danil Chapovalov | fa52efa | 2019-02-21 10:13:58 | [diff] [blame] | 716 | "task_queue_stdlib.h", |
Robin Raymond | 22027b9 | 2018-11-23 14:07:50 | [diff] [blame] | 717 | ] |
| 718 | deps = [ |
| 719 | ":checks", |
Danil Chapovalov | ba57001 | 2022-07-19 16:36:31 | [diff] [blame] | 720 | ":divide_round", |
Robin Raymond | 22027b9 | 2018-11-23 14:07:50 | [diff] [blame] | 721 | ":logging", |
| 722 | ":macromagic", |
| 723 | ":platform_thread", |
Robin Raymond | 22027b9 | 2018-11-23 14:07:50 | [diff] [blame] | 724 | ":rtc_event", |
Robin Raymond | 22027b9 | 2018-11-23 14:07:50 | [diff] [blame] | 725 | ":safe_conversions", |
| 726 | ":timeutils", |
Danil Chapovalov | fa52efa | 2019-02-21 10:13:58 | [diff] [blame] | 727 | "../api/task_queue", |
Danil Chapovalov | ba57001 | 2022-07-19 16:36:31 | [diff] [blame] | 728 | "../api/units:time_delta", |
Markus Handell | 18523c3 | 2020-07-08 15:55:58 | [diff] [blame] | 729 | "synchronization:mutex", |
Danil Chapovalov | ba57001 | 2022-07-19 16:36:31 | [diff] [blame] | 730 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 731 | "//third_party/abseil-cpp/absl/strings:string_view", |
Danil Chapovalov | ba57001 | 2022-07-19 16:36:31 | [diff] [blame] | 732 | ] |
Robin Raymond | 22027b9 | 2018-11-23 14:07:50 | [diff] [blame] | 733 | } |
| 734 | |
Markus Handell | 82da932 | 2022-12-16 14:50:24 | [diff] [blame] | 735 | if (rtc_include_tests) { |
| 736 | rtc_library("task_queue_stdlib_unittest") { |
| 737 | testonly = true |
| 738 | |
| 739 | sources = [ "task_queue_stdlib_unittest.cc" ] |
| 740 | deps = [ |
| 741 | ":gunit_helpers", |
| 742 | ":rtc_task_queue_stdlib", |
| 743 | "../api/task_queue:task_queue_test", |
| 744 | "../test:test_main", |
| 745 | "../test:test_support", |
| 746 | ] |
| 747 | } |
| 748 | } |
| 749 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 750 | rtc_library("weak_ptr") { |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 751 | sources = [ |
| 752 | "weak_ptr.cc", |
| 753 | "weak_ptr.h", |
| 754 | ] |
| 755 | deps = [ |
Tommi | af3dfd8 | 2024-04-24 08:54:19 | [diff] [blame] | 756 | ":checks", |
| 757 | ":macromagic", |
Tommi | 8d2c5a8 | 2018-03-19 10:12:48 | [diff] [blame] | 758 | ":refcount", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 759 | "../api:scoped_refptr", |
Artem Titov | d15a575 | 2021-02-10 13:31:24 | [diff] [blame] | 760 | "../api:sequence_checker", |
Mirko Bonadei | 20e4c80 | 2020-11-23 10:07:42 | [diff] [blame] | 761 | "system:no_unique_address", |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 762 | ] |
| 763 | } |
| 764 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 765 | rtc_library("rtc_numerics") { |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 766 | sources = [ |
Jonas Oreland | 63dced9 | 2019-11-25 12:00:15 | [diff] [blame] | 767 | "numerics/event_based_exponential_moving_average.cc", |
| 768 | "numerics/event_based_exponential_moving_average.h", |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 769 | "numerics/exp_filter.cc", |
| 770 | "numerics/exp_filter.h", |
Yves Gerey | 890f62b | 2019-04-10 15:18:48 | [diff] [blame] | 771 | "numerics/math_utils.h", |
Ilya Nikolaevskiy | 2634199 | 2018-11-05 11:55:18 | [diff] [blame] | 772 | "numerics/moving_average.cc", |
| 773 | "numerics/moving_average.h", |
Rasmus Brandt | 9166481 | 2022-09-14 14:22:24 | [diff] [blame] | 774 | "numerics/moving_percentile_filter.h", |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 775 | "numerics/percentile_filter.h", |
philipel | b85b4c0 | 2024-04-24 14:31:58 | [diff] [blame] | 776 | "numerics/rational.h", |
Yves Gerey | 890f62b | 2019-04-10 15:18:48 | [diff] [blame] | 777 | "numerics/running_statistics.h", |
Evan Shrubsole | 097fc34 | 2023-01-09 10:21:43 | [diff] [blame] | 778 | "numerics/sequence_number_unwrapper.h", |
Bjorn Terelius | a194e58 | 2017-10-25 11:07:09 | [diff] [blame] | 779 | "numerics/sequence_number_util.h", |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 780 | ] |
| 781 | deps = [ |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 782 | ":checks", |
Florent Castelli | 3176409 | 2022-04-14 11:41:58 | [diff] [blame] | 783 | ":mod_ops", |
Artem Titov | 9d77762 | 2020-09-18 16:23:08 | [diff] [blame] | 784 | ] |
Artem Titov | 9d77762 | 2020-09-18 16:23:08 | [diff] [blame] | 785 | } |
| 786 | |
| 787 | rtc_library("rtc_stats_counters") { |
| 788 | sources = [ |
| 789 | "numerics/event_rate_counter.cc", |
| 790 | "numerics/event_rate_counter.h", |
| 791 | "numerics/sample_stats.cc", |
| 792 | "numerics/sample_stats.h", |
| 793 | ] |
| 794 | deps = [ |
Björn Terelius | 72302cc | 2024-06-12 08:07:50 | [diff] [blame] | 795 | ":checks", |
Artem Titov | 9d77762 | 2020-09-18 16:23:08 | [diff] [blame] | 796 | "../api/numerics", |
Sebastian Jansson | efa3f76 | 2019-12-02 06:19:55 | [diff] [blame] | 797 | "../api/units:data_rate", |
| 798 | "../api/units:time_delta", |
Artem Titov | 6fcdbc1 | 2019-09-11 09:45:40 | [diff] [blame] | 799 | "../api/units:timestamp", |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 800 | ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 801 | } |
| 802 | |
Mirko Bonadei | 6564366 | 2019-07-12 11:29:30 | [diff] [blame] | 803 | config("rtc_json_suppressions") { |
Mirko Bonadei | 9407776 | 2019-06-27 09:24:25 | [diff] [blame] | 804 | if (!is_win || is_clang) { |
Mirko Bonadei | 6564366 | 2019-07-12 11:29:30 | [diff] [blame] | 805 | cflags_cc = [ |
Mirko Bonadei | 1cd6f32 | 2019-07-12 19:47:47 | [diff] [blame] | 806 | # TODO(bugs.webrtc.org/10814): Remove -Wno-undef as soon as it get |
Mirko Bonadei | 6564366 | 2019-07-12 11:29:30 | [diff] [blame] | 807 | # removed upstream. |
| 808 | "-Wno-undef", |
| 809 | ] |
Mirko Bonadei | 9407776 | 2019-06-27 09:24:25 | [diff] [blame] | 810 | } |
| 811 | } |
| 812 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 813 | rtc_library("rtc_json") { |
Sam Zackrisson | 2e1f16d | 2023-10-25 13:18:25 | [diff] [blame] | 814 | testonly = true |
Mirko Bonadei | 6564366 | 2019-07-12 11:29:30 | [diff] [blame] | 815 | public_configs = [ ":rtc_json_suppressions" ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 816 | defines = [] |
| 817 | sources = [ |
Sam Zackrisson | b45bdb5 | 2018-10-02 14:25:59 | [diff] [blame] | 818 | "strings/json.cc", |
| 819 | "strings/json.h", |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 820 | ] |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 821 | deps = [ |
| 822 | ":stringutils", |
| 823 | "//third_party/abseil-cpp/absl/strings:string_view", |
| 824 | ] |
Mirko Bonadei | a0e29fc | 2018-01-26 15:50:02 | [diff] [blame] | 825 | all_dependent_configs = [ "//third_party/jsoncpp:jsoncpp_config" ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 826 | if (rtc_build_json) { |
Florent Castelli | f35611a | 2022-04-14 09:55:57 | [diff] [blame] | 827 | deps += [ "//third_party/jsoncpp" ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 828 | } else { |
| 829 | include_dirs = [ "$rtc_jsoncpp_root" ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 830 | } |
| 831 | } |
| 832 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 833 | rtc_library("net_helpers") { |
Florent Castelli | 353a5ce | 2023-01-09 16:49:10 | [diff] [blame] | 834 | visibility = [ "*" ] |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 835 | sources = [ |
| 836 | "net_helpers.cc", |
| 837 | "net_helpers.h", |
| 838 | ] |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 839 | deps = [ |
| 840 | "system:rtc_export", |
| 841 | "//third_party/abseil-cpp/absl/strings:string_view", |
| 842 | ] |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 843 | if (is_android) { |
| 844 | deps += [ ":ifaddrs_android" ] |
| 845 | } |
| 846 | if (is_win) { |
Nico Weber | 79bd4f1 | 2021-10-05 19:01:26 | [diff] [blame] | 847 | deps += [ |
Nico Weber | 79bd4f1 | 2021-10-05 19:01:26 | [diff] [blame] | 848 | ":win32", |
Florent Castelli | 15a3c3f | 2022-04-27 08:33:27 | [diff] [blame] | 849 | "win:windows_version", |
Nico Weber | 79bd4f1 | 2021-10-05 19:01:26 | [diff] [blame] | 850 | ] |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 851 | } |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 852 | } |
| 853 | |
Mirko Bonadei | 0d8b79e | 2023-07-27 06:55:49 | [diff] [blame] | 854 | rtc_library("net_test_helpers") { |
| 855 | # TODO(mbonadei): Enable once net_helpers don't depend |
| 856 | # on this target anymore. |
| 857 | # testonly = true |
| 858 | sources = [ |
| 859 | "net_test_helpers.cc", |
| 860 | "net_test_helpers.h", |
| 861 | ] |
| 862 | deps = [ "system:rtc_export" ] |
| 863 | if (is_android) { |
| 864 | deps += [ ":ifaddrs_android" ] |
| 865 | } |
| 866 | if (is_win) { |
| 867 | deps += [ |
| 868 | ":win32", |
| 869 | "win:windows_version", |
| 870 | ] |
| 871 | } |
| 872 | } |
| 873 | |
Harald Alvestrand | 8d4a5f1 | 2023-08-22 13:53:16 | [diff] [blame] | 874 | rtc_library("async_dns_resolver") { |
| 875 | sources = [ |
| 876 | "async_dns_resolver.cc", |
| 877 | "async_dns_resolver.h", |
| 878 | ] |
| 879 | deps = [ |
| 880 | ":logging", |
| 881 | ":macromagic", |
| 882 | ":platform_thread", |
Harald Alvestrand | 8219cc3 | 2023-09-02 05:26:55 | [diff] [blame] | 883 | ":refcount", |
Harald Alvestrand | 8d4a5f1 | 2023-08-22 13:53:16 | [diff] [blame] | 884 | "../api:async_dns_resolver", |
Harald Alvestrand | 8219cc3 | 2023-09-02 05:26:55 | [diff] [blame] | 885 | "../api:make_ref_counted", |
Harald Alvestrand | 8d4a5f1 | 2023-08-22 13:53:16 | [diff] [blame] | 886 | "../api:sequence_checker", |
| 887 | "../api/task_queue:pending_task_safety_flag", |
Harald Alvestrand | fb658ca | 2023-10-10 07:24:54 | [diff] [blame] | 888 | "system:rtc_export", |
Harald Alvestrand | 8d4a5f1 | 2023-08-22 13:53:16 | [diff] [blame] | 889 | ] |
| 890 | } |
| 891 | |
| 892 | rtc_library("async_dns_resolver_unittests") { |
| 893 | testonly = true |
| 894 | sources = [ "async_dns_resolver_unittest.cc" ] |
| 895 | deps = [ |
| 896 | ":async_dns_resolver", |
| 897 | ":gunit_helpers", |
| 898 | "../test:run_loop", |
| 899 | "../test:test_support", |
| 900 | ] |
| 901 | } |
| 902 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 903 | rtc_library("ip_address") { |
Karl Wiberg | 02f4e32 | 2019-02-10 23:43:43 | [diff] [blame] | 904 | visibility = [ "*" ] |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 905 | sources = [ |
| 906 | "ip_address.cc", |
| 907 | "ip_address.h", |
| 908 | ] |
| 909 | deps = [ |
Florent Castelli | a876a92 | 2022-04-19 15:18:36 | [diff] [blame] | 910 | ":byte_order", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 911 | ":net_helpers", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 912 | ":stringutils", |
| 913 | "system:rtc_export", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 914 | "//third_party/abseil-cpp/absl/strings:string_view", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 915 | ] |
| 916 | if (is_win) { |
| 917 | deps += [ ":win32" ] |
| 918 | } |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 919 | } |
| 920 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 921 | rtc_library("socket_address") { |
Karl Wiberg | 02f4e32 | 2019-02-10 23:43:43 | [diff] [blame] | 922 | visibility = [ "*" ] |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 923 | sources = [ |
| 924 | "socket_address.cc", |
| 925 | "socket_address.h", |
| 926 | ] |
| 927 | deps = [ |
Florent Castelli | a876a92 | 2022-04-19 15:18:36 | [diff] [blame] | 928 | ":byte_order", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 929 | ":checks", |
| 930 | ":ip_address", |
| 931 | ":logging", |
| 932 | ":net_helpers", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 933 | ":safe_conversions", |
| 934 | ":stringutils", |
| 935 | "system:rtc_export", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 936 | "//third_party/abseil-cpp/absl/strings:string_view", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 937 | ] |
| 938 | if (is_win) { |
| 939 | deps += [ ":win32" ] |
| 940 | } |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 941 | } |
| 942 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 943 | rtc_library("null_socket_server") { |
| 944 | sources = [ |
| 945 | "null_socket_server.cc", |
| 946 | "null_socket_server.h", |
| 947 | ] |
| 948 | deps = [ |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 949 | ":checks", |
| 950 | ":rtc_event", |
| 951 | ":socket", |
| 952 | ":socket_server", |
Markus Handell | 2cfc1af | 2022-08-19 08:16:48 | [diff] [blame] | 953 | "../api/units:time_delta", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 954 | "system:rtc_export", |
| 955 | ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 956 | } |
| 957 | |
Karl Wiberg | 28522dc | 2019-01-22 16:54:34 | [diff] [blame] | 958 | rtc_source_set("socket_server") { |
Florent Castelli | 353a5ce | 2023-01-09 16:49:10 | [diff] [blame] | 959 | visibility = [ "*" ] |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 960 | sources = [ "socket_server.h" ] |
Markus Handell | 9a21c49 | 2022-08-25 11:40:13 | [diff] [blame] | 961 | deps = [ |
| 962 | ":rtc_event", |
| 963 | ":socket_factory", |
| 964 | "../api/units:time_delta", |
| 965 | ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 966 | } |
| 967 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 968 | rtc_library("threading") { |
Karl Wiberg | 02f4e32 | 2019-02-10 23:43:43 | [diff] [blame] | 969 | visibility = [ "*" ] |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 970 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 971 | sources = [ |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 972 | "internal/default_socket_server.cc", |
| 973 | "internal/default_socket_server.h", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 974 | "network_monitor.cc", |
| 975 | "network_monitor.h", |
| 976 | "network_monitor_factory.cc", |
| 977 | "network_monitor_factory.h", |
| 978 | "physical_socket_server.cc", |
| 979 | "physical_socket_server.h", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 980 | "thread.cc", |
| 981 | "thread.h", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 982 | ] |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 983 | deps = [ |
Harald Alvestrand | 60362c1 | 2023-10-10 11:30:18 | [diff] [blame] | 984 | ":async_dns_resolver", |
Florent Castelli | a876a92 | 2022-04-19 15:18:36 | [diff] [blame] | 985 | ":byte_order", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 986 | ":checks", |
| 987 | ":criticalsection", |
Florent Castelli | a30aef3 | 2022-04-19 15:47:13 | [diff] [blame] | 988 | ":event_tracer", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 989 | ":ip_address", |
| 990 | ":logging", |
| 991 | ":macromagic", |
| 992 | ":network_constants", |
| 993 | ":null_socket_server", |
Florent Castelli | 45a0599 | 2022-04-14 10:18:28 | [diff] [blame] | 994 | ":platform_thread", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 995 | ":platform_thread_types", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 996 | ":refcount", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 997 | ":rtc_event", |
Harald Alvestrand | 60362c1 | 2023-10-10 11:30:18 | [diff] [blame] | 998 | ":socket", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 999 | ":socket_address", |
| 1000 | ":socket_server", |
| 1001 | ":timeutils", |
Harald Alvestrand | 60362c1 | 2023-10-10 11:30:18 | [diff] [blame] | 1002 | "../api:async_dns_resolver", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1003 | "../api:function_view", |
Markus Handell | 2a256c8 | 2023-02-27 11:41:39 | [diff] [blame] | 1004 | "../api:location", |
Markus Handell | 1366b0f | 2021-04-21 08:22:34 | [diff] [blame] | 1005 | "../api:refcountedbase", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1006 | "../api:scoped_refptr", |
Artem Titov | d15a575 | 2021-02-10 13:31:24 | [diff] [blame] | 1007 | "../api:sequence_checker", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1008 | "../api/task_queue", |
Artem Titov | c374d11 | 2022-06-16 19:27:45 | [diff] [blame] | 1009 | "../api/task_queue:pending_task_safety_flag", |
Danil Chapovalov | 4bcf809 | 2022-07-06 17:42:34 | [diff] [blame] | 1010 | "../api/units:time_delta", |
Per Kjellander | fdcfefa | 2022-11-08 11:48:52 | [diff] [blame] | 1011 | "../system_wrappers:field_trial", |
Per K | 8df31c9 | 2024-03-11 09:21:48 | [diff] [blame] | 1012 | "./network:ecn_marking", |
Niels Möller | 6d17602 | 2021-02-09 13:44:48 | [diff] [blame] | 1013 | "synchronization:mutex", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1014 | "system:no_unique_address", |
| 1015 | "system:rtc_export", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1016 | "third_party/sigslot", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1017 | "//third_party/abseil-cpp/absl/algorithm:container", |
| 1018 | "//third_party/abseil-cpp/absl/base:core_headers", |
| 1019 | "//third_party/abseil-cpp/absl/cleanup", |
| 1020 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
| 1021 | "//third_party/abseil-cpp/absl/strings:string_view", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1022 | ] |
| 1023 | if (is_android) { |
| 1024 | deps += [ ":ifaddrs_android" ] |
| 1025 | } |
| 1026 | if (is_win) { |
| 1027 | deps += [ ":win32" ] |
| 1028 | } |
| 1029 | if (is_mac || is_ios) { |
Byoungchan Lee | 08438fc | 2021-10-12 13:53:35 | [diff] [blame] | 1030 | deps += [ "system:cocoa_threading" ] |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1031 | } |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 1032 | } |
| 1033 | |
Karl Wiberg | 28522dc | 2019-01-22 16:54:34 | [diff] [blame] | 1034 | rtc_source_set("socket_factory") { |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1035 | sources = [ "socket_factory.h" ] |
Niels Möller | d0b8879 | 2021-08-12 08:32:30 | [diff] [blame] | 1036 | deps = [ ":socket" ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 1037 | } |
| 1038 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1039 | rtc_library("async_socket") { |
| 1040 | sources = [ |
| 1041 | "async_socket.cc", |
| 1042 | "async_socket.h", |
| 1043 | ] |
| 1044 | deps = [ |
| 1045 | ":checks", |
| 1046 | ":socket", |
| 1047 | ":socket_address", |
| 1048 | "third_party/sigslot", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1049 | "//third_party/abseil-cpp/absl/memory", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1050 | ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 1051 | } |
| 1052 | |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1053 | rtc_library("socket") { |
| 1054 | sources = [ |
| 1055 | "socket.cc", |
| 1056 | "socket.h", |
| 1057 | ] |
| 1058 | deps = [ |
Per K | f81af2f | 2023-12-22 12:24:40 | [diff] [blame] | 1059 | ":buffer", |
Per K | 056782c | 2024-01-30 11:32:05 | [diff] [blame] | 1060 | ":checks", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1061 | ":macromagic", |
| 1062 | ":socket_address", |
Per K | f81af2f | 2023-12-22 12:24:40 | [diff] [blame] | 1063 | "../api/units:timestamp", |
Per K | 8df31c9 | 2024-03-11 09:21:48 | [diff] [blame] | 1064 | "./network:ecn_marking", |
Per K | 4e3b101 | 2024-01-11 08:50:32 | [diff] [blame] | 1065 | "system:rtc_export", |
Niels Möller | d0b8879 | 2021-08-12 08:32:30 | [diff] [blame] | 1066 | "third_party/sigslot", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1067 | ] |
| 1068 | if (is_win) { |
| 1069 | deps += [ ":win32" ] |
| 1070 | } |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 1071 | } |
| 1072 | |
| 1073 | rtc_source_set("network_constants") { |
Florent Castelli | 353a5ce | 2023-01-09 16:49:10 | [diff] [blame] | 1074 | visibility = [ "*" ] |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1075 | sources = [ |
| 1076 | "network_constants.cc", |
| 1077 | "network_constants.h", |
| 1078 | ] |
| 1079 | deps = [ ":checks" ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 1080 | } |
| 1081 | |
| 1082 | if (is_android) { |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1083 | rtc_library("ifaddrs_android") { |
| 1084 | sources = [ |
| 1085 | "ifaddrs_android.cc", |
| 1086 | "ifaddrs_android.h", |
| 1087 | ] |
| 1088 | libs = [ |
| 1089 | "log", |
| 1090 | "GLESv2", |
| 1091 | ] |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1092 | deps = [ "//third_party/abseil-cpp/absl/cleanup" ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 1093 | } |
| 1094 | } |
| 1095 | |
| 1096 | if (is_win) { |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1097 | rtc_library("win32") { |
Tommi | 16db7ff | 2020-09-26 09:57:26 | [diff] [blame] | 1098 | sources = [ |
| 1099 | "win32.cc", |
| 1100 | "win32.h", |
Tommi | 16db7ff | 2020-09-26 09:57:26 | [diff] [blame] | 1101 | ] |
| 1102 | |
| 1103 | deps = [ |
Florent Castelli | a876a92 | 2022-04-19 15:18:36 | [diff] [blame] | 1104 | ":byte_order", |
Tommi | 16db7ff | 2020-09-26 09:57:26 | [diff] [blame] | 1105 | ":checks", |
| 1106 | ":macromagic", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 1107 | ":stringutils", |
Tommi | 16db7ff | 2020-09-26 09:57:26 | [diff] [blame] | 1108 | ] |
| 1109 | |
| 1110 | libs = [ |
| 1111 | "crypt32.lib", |
| 1112 | "iphlpapi.lib", |
| 1113 | "secur32.lib", |
| 1114 | ] |
| 1115 | |
| 1116 | defines = [ "_CRT_NONSTDC_NO_DEPRECATE" ] |
Karl Wiberg | 0b6d0e6 | 2018-12-06 13:50:45 | [diff] [blame] | 1117 | } |
| 1118 | } |
| 1119 | |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1120 | rtc_library("ifaddrs_converter") { |
| 1121 | sources = [] |
| 1122 | deps = [ |
| 1123 | ":checks", |
| 1124 | ":ip_address", |
| 1125 | ":logging", |
| 1126 | ] |
| 1127 | |
| 1128 | if (is_android) { |
| 1129 | deps += [ ":ifaddrs_android" ] |
| 1130 | } |
| 1131 | |
| 1132 | if (is_ios || is_mac) { |
| 1133 | sources += [ "mac_ifaddrs_converter.cc" ] |
| 1134 | } |
| 1135 | |
| 1136 | if (is_posix || is_fuchsia) { |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1137 | sources += [ |
| 1138 | "ifaddrs_converter.cc", |
| 1139 | "ifaddrs_converter.h", |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1140 | ] |
| 1141 | } |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1142 | } |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1143 | |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1144 | rtc_library("rolling_accumulator") { |
| 1145 | sources = [ "rolling_accumulator.h" ] |
| 1146 | deps = [ |
| 1147 | ":checks", |
| 1148 | ":rtc_numerics", |
| 1149 | ] |
| 1150 | } |
Harald Alvestrand | 1379913 | 2020-03-09 18:39:36 | [diff] [blame] | 1151 | |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1152 | if (is_win) { |
| 1153 | rtc_library("win32_socket_init") { |
| 1154 | sources = [ "win32_socket_init.h" ] |
| 1155 | deps = [ ":win32" ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1156 | } |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1157 | } |
| 1158 | |
Florent Castelli | 372cf8b | 2023-01-09 14:48:28 | [diff] [blame] | 1159 | if (!build_with_chromium) { |
| 1160 | rtc_library("log_sinks") { |
Florent Castelli | a5ba586 | 2023-01-11 10:01:15 | [diff] [blame] | 1161 | visibility = [ "*" ] |
Florent Castelli | 372cf8b | 2023-01-09 14:48:28 | [diff] [blame] | 1162 | sources = [ |
| 1163 | "log_sinks.cc", |
| 1164 | "log_sinks.h", |
| 1165 | ] |
| 1166 | deps = [ |
| 1167 | ":checks", |
| 1168 | ":file_rotating_stream", |
| 1169 | ":logging", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1170 | "//third_party/abseil-cpp/absl/strings:string_view", |
Florent Castelli | 372cf8b | 2023-01-09 14:48:28 | [diff] [blame] | 1171 | ] |
Florent Castelli | 372cf8b | 2023-01-09 14:48:28 | [diff] [blame] | 1172 | } |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1173 | } |
| 1174 | |
| 1175 | rtc_library("network") { |
Florent Castelli | 353a5ce | 2023-01-09 16:49:10 | [diff] [blame] | 1176 | visibility = [ "*" ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1177 | sources = [ |
| 1178 | "network.cc", |
| 1179 | "network.h", |
| 1180 | ] |
| 1181 | deps = [ |
| 1182 | ":checks", |
| 1183 | ":ifaddrs_converter", |
| 1184 | ":ip_address", |
| 1185 | ":logging", |
| 1186 | ":macromagic", |
| 1187 | ":mdns_responder_interface", |
| 1188 | ":socket", |
| 1189 | ":socket_factory", |
| 1190 | ":stringutils", |
| 1191 | ":threading", |
| 1192 | "../api:array_view", |
| 1193 | "../api:field_trials_view", |
| 1194 | "../api:sequence_checker", |
| 1195 | "../api/task_queue:pending_task_safety_flag", |
| 1196 | "../api/transport:field_trial_based_config", |
| 1197 | "../api/units:time_delta", |
| 1198 | "experiments:field_trial_parser", |
| 1199 | "memory:always_valid_pointer", |
| 1200 | "system:rtc_export", |
| 1201 | "third_party/sigslot", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1202 | "//third_party/abseil-cpp/absl/algorithm:container", |
| 1203 | "//third_party/abseil-cpp/absl/base:core_headers", |
| 1204 | "//third_party/abseil-cpp/absl/memory", |
| 1205 | "//third_party/abseil-cpp/absl/strings", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1206 | "//third_party/abseil-cpp/absl/strings:string_view", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1207 | ] |
| 1208 | |
| 1209 | if (is_win) { |
| 1210 | deps += [ ":win32" ] |
| 1211 | } |
| 1212 | } |
| 1213 | |
| 1214 | rtc_library("socket_address_pair") { |
| 1215 | sources = [ |
| 1216 | "socket_address_pair.cc", |
| 1217 | "socket_address_pair.h", |
| 1218 | ] |
| 1219 | deps = [ ":socket_address" ] |
| 1220 | } |
| 1221 | |
| 1222 | rtc_library("net_helper") { |
Florent Castelli | 143c3b2 | 2023-01-10 14:02:51 | [diff] [blame] | 1223 | visibility = [ "*" ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1224 | sources = [ |
| 1225 | "net_helper.cc", |
| 1226 | "net_helper.h", |
| 1227 | ] |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1228 | deps = [ |
| 1229 | "system:rtc_export", |
| 1230 | "//third_party/abseil-cpp/absl/strings:string_view", |
| 1231 | ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1232 | } |
| 1233 | |
| 1234 | rtc_library("socket_adapters") { |
Florent Castelli | 353a5ce | 2023-01-09 16:49:10 | [diff] [blame] | 1235 | visibility = [ "*" ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1236 | sources = [ |
| 1237 | "socket_adapters.cc", |
| 1238 | "socket_adapters.h", |
| 1239 | ] |
| 1240 | deps = [ |
| 1241 | ":async_socket", |
| 1242 | ":buffer", |
| 1243 | ":byte_buffer", |
| 1244 | ":checks", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1245 | ":logging", |
| 1246 | ":stringutils", |
| 1247 | ":zero_memory", |
| 1248 | "../api:array_view", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1249 | "//third_party/abseil-cpp/absl/strings", |
| 1250 | "//third_party/abseil-cpp/absl/strings:string_view", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1251 | ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1252 | } |
| 1253 | |
| 1254 | rtc_library("network_route") { |
| 1255 | sources = [ |
| 1256 | "network_route.cc", |
| 1257 | "network_route.h", |
| 1258 | ] |
| 1259 | deps = [ |
| 1260 | ":network_constants", |
| 1261 | ":stringutils", |
| 1262 | "system:inline", |
| 1263 | ] |
| 1264 | } |
| 1265 | |
| 1266 | rtc_library("async_tcp_socket") { |
| 1267 | sources = [ |
| 1268 | "async_tcp_socket.cc", |
| 1269 | "async_tcp_socket.h", |
| 1270 | ] |
| 1271 | deps = [ |
| 1272 | ":async_packet_socket", |
| 1273 | ":buffer", |
| 1274 | ":byte_order", |
| 1275 | ":checks", |
| 1276 | ":logging", |
| 1277 | ":socket", |
| 1278 | ":socket_address", |
| 1279 | ":timeutils", |
| 1280 | "../api:array_view", |
| 1281 | "network:sent_packet", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1282 | ] |
| 1283 | } |
| 1284 | |
| 1285 | rtc_library("async_udp_socket") { |
Florent Castelli | 353a5ce | 2023-01-09 16:49:10 | [diff] [blame] | 1286 | visibility = [ "*" ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1287 | sources = [ |
| 1288 | "async_udp_socket.cc", |
| 1289 | "async_udp_socket.h", |
| 1290 | ] |
| 1291 | deps = [ |
| 1292 | ":async_packet_socket", |
| 1293 | ":checks", |
| 1294 | ":logging", |
| 1295 | ":macromagic", |
| 1296 | ":socket", |
| 1297 | ":socket_address", |
| 1298 | ":socket_factory", |
| 1299 | ":timeutils", |
| 1300 | "../api:sequence_checker", |
Per K | f81af2f | 2023-12-22 12:24:40 | [diff] [blame] | 1301 | "../api/units:time_delta", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1302 | "../system_wrappers:field_trial", |
Per K | f81af2f | 2023-12-22 12:24:40 | [diff] [blame] | 1303 | "network:received_packet", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1304 | "network:sent_packet", |
Harald Alvestrand | 3924bc2 | 2023-08-28 11:06:45 | [diff] [blame] | 1305 | "system:no_unique_address", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1306 | ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1307 | } |
| 1308 | |
| 1309 | rtc_library("async_packet_socket") { |
Florent Castelli | 353a5ce | 2023-01-09 16:49:10 | [diff] [blame] | 1310 | visibility = [ "*" ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1311 | sources = [ |
| 1312 | "async_packet_socket.cc", |
| 1313 | "async_packet_socket.h", |
| 1314 | ] |
| 1315 | deps = [ |
| 1316 | ":callback_list", |
Per K | 4ac3718 | 2023-11-15 09:43:32 | [diff] [blame] | 1317 | ":checks", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1318 | ":dscp", |
| 1319 | ":socket", |
| 1320 | ":timeutils", |
| 1321 | "../api:sequence_checker", |
Per K | 4ac3718 | 2023-11-15 09:43:32 | [diff] [blame] | 1322 | "network:received_packet", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1323 | "network:sent_packet", |
| 1324 | "system:no_unique_address", |
| 1325 | "system:rtc_export", |
| 1326 | "third_party/sigslot", |
| 1327 | ] |
| 1328 | } |
| 1329 | |
Per K | 4ac3718 | 2023-11-15 09:43:32 | [diff] [blame] | 1330 | if (rtc_include_tests) { |
| 1331 | rtc_library("async_packet_socket_unittest") { |
| 1332 | testonly = true |
| 1333 | visibility = [ "*" ] |
| 1334 | sources = [ "async_packet_socket_unittest.cc" ] |
| 1335 | deps = [ |
| 1336 | ":async_packet_socket", |
| 1337 | ":gunit_helpers", |
Per K | 2fafcec | 2024-02-22 06:42:42 | [diff] [blame] | 1338 | ":socket_address", |
Per K | 4ac3718 | 2023-11-15 09:43:32 | [diff] [blame] | 1339 | "../test:test_support", |
| 1340 | "network:received_packet", |
| 1341 | "third_party/sigslot", |
| 1342 | ] |
| 1343 | } |
| 1344 | } |
| 1345 | |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1346 | rtc_library("mdns_responder_interface") { |
| 1347 | sources = [ "mdns_responder_interface.h" ] |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1348 | deps = [ |
| 1349 | ":ip_address", |
| 1350 | "//third_party/abseil-cpp/absl/strings:string_view", |
| 1351 | ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1352 | } |
| 1353 | |
| 1354 | rtc_library("dscp") { |
| 1355 | sources = [ "dscp.h" ] |
| 1356 | } |
| 1357 | |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1358 | rtc_library("file_rotating_stream") { |
| 1359 | sources = [ |
| 1360 | "file_rotating_stream.cc", |
| 1361 | "file_rotating_stream.h", |
| 1362 | ] |
| 1363 | deps = [ |
| 1364 | ":checks", |
| 1365 | ":logging", |
| 1366 | ":stringutils", |
| 1367 | "system:file_wrapper", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1368 | "//third_party/abseil-cpp/absl/algorithm:container", |
| 1369 | "//third_party/abseil-cpp/absl/strings", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1370 | "//third_party/abseil-cpp/absl/strings:string_view", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1371 | ] |
| 1372 | } |
| 1373 | |
| 1374 | rtc_library("data_rate_limiter") { |
| 1375 | sources = [ |
| 1376 | "data_rate_limiter.cc", |
| 1377 | "data_rate_limiter.h", |
| 1378 | ] |
| 1379 | deps = [ "system:rtc_export" ] |
| 1380 | } |
| 1381 | |
| 1382 | rtc_library("unique_id_generator") { |
| 1383 | sources = [ |
| 1384 | "unique_id_generator.cc", |
| 1385 | "unique_id_generator.h", |
| 1386 | ] |
| 1387 | deps = [ |
Philipp Hancke | 4158678 | 2024-06-06 14:31:07 | [diff] [blame] | 1388 | ":crypto_random", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1389 | ":stringutils", |
| 1390 | "../api:array_view", |
| 1391 | "../api:sequence_checker", |
| 1392 | "synchronization:mutex", |
| 1393 | "system:no_unique_address", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1394 | "//third_party/abseil-cpp/absl/strings:string_view", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1395 | ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1396 | } |
| 1397 | |
| 1398 | rtc_library("crc32") { |
| 1399 | sources = [ |
| 1400 | "crc32.cc", |
| 1401 | "crc32.h", |
| 1402 | ] |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1403 | deps = [ |
| 1404 | ":macromagic", |
| 1405 | "//third_party/abseil-cpp/absl/strings:string_view", |
| 1406 | ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1407 | } |
| 1408 | |
| 1409 | rtc_library("stream") { |
Florent Castelli | 353a5ce | 2023-01-09 16:49:10 | [diff] [blame] | 1410 | visibility = [ "*" ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1411 | sources = [ |
| 1412 | "stream.cc", |
| 1413 | "stream.h", |
| 1414 | ] |
| 1415 | deps = [ |
| 1416 | ":buffer", |
| 1417 | ":checks", |
Tommi | d200488 | 2024-04-22 14:50:40 | [diff] [blame] | 1418 | ":logging", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1419 | ":threading", |
| 1420 | "../api:array_view", |
Tommi | d200488 | 2024-04-22 14:50:40 | [diff] [blame] | 1421 | "../api:sequence_checker", |
| 1422 | "system:no_unique_address", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1423 | "system:rtc_export", |
| 1424 | "third_party/sigslot", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1425 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1426 | ] |
| 1427 | } |
| 1428 | |
| 1429 | rtc_library("rtc_certificate_generator") { |
Florent Castelli | 353a5ce | 2023-01-09 16:49:10 | [diff] [blame] | 1430 | visibility = [ "*" ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1431 | sources = [ |
| 1432 | "rtc_certificate_generator.cc", |
| 1433 | "rtc_certificate_generator.h", |
| 1434 | ] |
| 1435 | deps = [ |
| 1436 | ":checks", |
| 1437 | ":ssl", |
| 1438 | ":threading", |
| 1439 | "../api:scoped_refptr", |
| 1440 | "system:rtc_export", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1441 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1442 | ] |
| 1443 | } |
| 1444 | |
Philipp Hancke | 57dbb1e | 2024-05-14 15:35:24 | [diff] [blame] | 1445 | rtc_source_set("ssl_header") { |
Mirko Bonadei | 7b3b2da | 2024-05-15 07:42:04 | [diff] [blame] | 1446 | visibility = [ "*" ] |
Philipp Hancke | 5ef183e | 2024-05-16 16:11:06 | [diff] [blame] | 1447 | sources = [ "openssl.h" ] |
| 1448 | deps = [] |
| 1449 | if (is_win) { |
| 1450 | deps += [ ":win32" ] |
| 1451 | } |
Philipp Hancke | 57dbb1e | 2024-05-14 15:35:24 | [diff] [blame] | 1452 | } |
| 1453 | |
| 1454 | rtc_source_set("digest") { |
Mirko Bonadei | 7b3b2da | 2024-05-15 07:42:04 | [diff] [blame] | 1455 | visibility = [ "*" ] |
Philipp Hancke | 5ef183e | 2024-05-16 16:11:06 | [diff] [blame] | 1456 | sources = [ |
| 1457 | "message_digest.cc", |
| 1458 | "message_digest.h", |
| 1459 | "openssl_digest.cc", |
| 1460 | "openssl_digest.h", |
| 1461 | ] |
| 1462 | deps = [ |
| 1463 | ":checks", |
| 1464 | ":ssl_header", |
| 1465 | ":stringutils", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1466 | "//third_party/abseil-cpp/absl/strings:string_view", |
Philipp Hancke | 5ef183e | 2024-05-16 16:11:06 | [diff] [blame] | 1467 | ] |
| 1468 | |
| 1469 | # If we are building the SSL library ourselves, we know it's BoringSSL. |
| 1470 | if (rtc_build_ssl) { |
| 1471 | deps += [ "//third_party/boringssl" ] |
| 1472 | } else { |
Philipp Hancke | 06a49f0 | 2024-08-22 18:52:33 | [diff] [blame] | 1473 | configs += [ "..:external_ssl_library" ] |
Philipp Hancke | 5ef183e | 2024-05-16 16:11:06 | [diff] [blame] | 1474 | } |
Philipp Hancke | 57dbb1e | 2024-05-14 15:35:24 | [diff] [blame] | 1475 | } |
| 1476 | |
Philipp Hancke | 4158678 | 2024-06-06 14:31:07 | [diff] [blame] | 1477 | rtc_library("crypto_random") { |
| 1478 | visibility = [ "*" ] |
| 1479 | sources = [ |
| 1480 | "crypto_random.cc", |
| 1481 | "crypto_random.h", |
| 1482 | ] |
| 1483 | deps = [ |
| 1484 | ":checks", |
| 1485 | ":logging", |
| 1486 | "synchronization:mutex", |
| 1487 | "system:rtc_export", |
| 1488 | "//third_party/abseil-cpp/absl/strings:string_view", |
| 1489 | ] |
| 1490 | |
| 1491 | # If we are building the SSL library ourselves, we know it's BoringSSL. |
| 1492 | if (rtc_build_ssl) { |
| 1493 | deps += [ "//third_party/boringssl" ] |
| 1494 | } else { |
Philipp Hancke | 06a49f0 | 2024-08-22 18:52:33 | [diff] [blame] | 1495 | configs += [ "..:external_ssl_library" ] |
Philipp Hancke | 4158678 | 2024-06-06 14:31:07 | [diff] [blame] | 1496 | } |
| 1497 | } |
| 1498 | |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1499 | rtc_library("ssl") { |
Florent Castelli | 353a5ce | 2023-01-09 16:49:10 | [diff] [blame] | 1500 | visibility = [ "*" ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1501 | sources = [ |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1502 | "openssl_key_pair.cc", |
| 1503 | "openssl_key_pair.h", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1504 | "openssl_utility.cc", |
| 1505 | "openssl_utility.h", |
| 1506 | "rtc_certificate.cc", |
| 1507 | "rtc_certificate.h", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1508 | "ssl_certificate.cc", |
| 1509 | "ssl_certificate.h", |
| 1510 | "ssl_fingerprint.cc", |
| 1511 | "ssl_fingerprint.h", |
| 1512 | "ssl_identity.cc", |
| 1513 | "ssl_identity.h", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1514 | ] |
| 1515 | |
| 1516 | deps = [ |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1517 | ":buffer", |
| 1518 | ":checks", |
| 1519 | ":copy_on_write_buffer", |
Philipp Hancke | 5ef183e | 2024-05-16 16:11:06 | [diff] [blame] | 1520 | ":digest", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1521 | ":logging", |
| 1522 | ":macromagic", |
| 1523 | ":safe_conversions", |
Philipp Hancke | 5ef183e | 2024-05-16 16:11:06 | [diff] [blame] | 1524 | ":ssl_header", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1525 | ":stringutils", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1526 | ":timeutils", |
| 1527 | "../api:array_view", |
| 1528 | "../api:refcountedbase", |
| 1529 | "../api:scoped_refptr", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1530 | "system:rtc_export", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1531 | "third_party/base64", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1532 | "//third_party/abseil-cpp/absl/algorithm:container", |
| 1533 | "//third_party/abseil-cpp/absl/base:core_headers", |
| 1534 | "//third_party/abseil-cpp/absl/memory", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1535 | "//third_party/abseil-cpp/absl/strings:string_view", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1536 | ] |
| 1537 | |
| 1538 | # If we are building the SSL library ourselves, we know it's BoringSSL. |
| 1539 | if (rtc_build_ssl) { |
| 1540 | sources += [ |
| 1541 | "boringssl_certificate.cc", |
| 1542 | "boringssl_certificate.h", |
| 1543 | "boringssl_identity.cc", |
| 1544 | "boringssl_identity.h", |
| 1545 | ] |
| 1546 | |
Philipp Hancke | 3fede87 | 2024-06-13 15:05:15 | [diff] [blame] | 1547 | deps += [ |
| 1548 | ":crypto_random", |
| 1549 | "//third_party/boringssl", |
| 1550 | ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1551 | } else { |
| 1552 | sources += [ |
| 1553 | "openssl_certificate.cc", |
| 1554 | "openssl_certificate.h", |
| 1555 | "openssl_identity.cc", |
| 1556 | "openssl_identity.h", |
| 1557 | ] |
Philipp Hancke | b2ce406 | 2024-08-01 17:44:45 | [diff] [blame] | 1558 | deps += [ ":crypto_random" ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1559 | |
Philipp Hancke | 06a49f0 | 2024-08-22 18:52:33 | [diff] [blame] | 1560 | configs += [ "..:external_ssl_library" ] |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1561 | } |
| 1562 | |
| 1563 | if (build_with_chromium) { |
| 1564 | include_dirs = [ "../../boringssl/src/include" ] |
| 1565 | } else { |
| 1566 | sources += [ "ssl_roots.h" ] |
| 1567 | } |
| 1568 | |
| 1569 | if (is_win) { |
| 1570 | deps += [ ":win32" ] |
| 1571 | } |
| 1572 | } |
| 1573 | |
Philipp Hancke | c7fd5af | 2024-05-17 20:49:05 | [diff] [blame] | 1574 | rtc_library("ssl_adapter") { |
| 1575 | visibility = [ "*" ] |
Philipp Hancke | 71ad98b | 2024-05-23 20:25:10 | [diff] [blame] | 1576 | sources = [ |
| 1577 | "openssl_adapter.cc", |
| 1578 | "openssl_adapter.h", |
| 1579 | "openssl_session_cache.cc", |
| 1580 | "openssl_session_cache.h", |
| 1581 | "openssl_stream_adapter.cc", |
| 1582 | "openssl_stream_adapter.h", |
| 1583 | "ssl_adapter.cc", |
| 1584 | "ssl_adapter.h", |
| 1585 | "ssl_stream_adapter.cc", |
| 1586 | "ssl_stream_adapter.h", |
| 1587 | ] |
| 1588 | |
| 1589 | deps = [ |
| 1590 | ":async_socket", |
| 1591 | ":buffer", |
| 1592 | ":checks", |
| 1593 | ":digest", |
| 1594 | ":logging", |
| 1595 | ":safe_conversions", |
| 1596 | ":socket", |
| 1597 | ":socket_address", |
| 1598 | ":ssl", |
| 1599 | ":ssl_header", |
| 1600 | ":stream", |
| 1601 | ":stringutils", |
| 1602 | ":threading", |
| 1603 | ":timeutils", |
| 1604 | "../api:array_view", |
Harald Alvestrand | 53c424e | 2024-08-01 06:31:02 | [diff] [blame] | 1605 | "../api:sequence_checker", |
Philipp Hancke | 71ad98b | 2024-05-23 20:25:10 | [diff] [blame] | 1606 | "../api/task_queue:pending_task_safety_flag", |
| 1607 | "../api/units:time_delta", |
| 1608 | "../system_wrappers:field_trial", |
| 1609 | "system:rtc_export", |
| 1610 | "task_utils:repeating_task", |
| 1611 | "third_party/sigslot", |
| 1612 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
| 1613 | "//third_party/abseil-cpp/absl/memory", |
| 1614 | "//third_party/abseil-cpp/absl/strings", |
Philipp Hancke | 71ad98b | 2024-05-23 20:25:10 | [diff] [blame] | 1615 | ] |
| 1616 | |
| 1617 | # If we are building the SSL library ourselves, we know it's BoringSSL. |
| 1618 | if (rtc_build_ssl) { |
| 1619 | deps += [ "//third_party/boringssl" ] |
| 1620 | } else { |
Philipp Hancke | 06a49f0 | 2024-08-22 18:52:33 | [diff] [blame] | 1621 | configs += [ "..:external_ssl_library" ] |
Philipp Hancke | 71ad98b | 2024-05-23 20:25:10 | [diff] [blame] | 1622 | } |
Philipp Hancke | c7fd5af | 2024-05-17 20:49:05 | [diff] [blame] | 1623 | } |
| 1624 | |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1625 | rtc_source_set("gtest_prod") { |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 1626 | sources = [ "gtest_prod_util.h" ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1627 | } |
| 1628 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1629 | rtc_library("gunit_helpers") { |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1630 | testonly = true |
Philipp Hancke | 5aaa9ed | 2024-01-15 09:07:58 | [diff] [blame] | 1631 | sources = [ "gunit.h" ] |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1632 | deps = [ |
| 1633 | ":logging", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1634 | ":rtc_base_tests_utils", |
| 1635 | ":stringutils", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1636 | ":threading", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1637 | "../test:test_support", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1638 | "//third_party/abseil-cpp/absl/strings:string_view", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1639 | ] |
| 1640 | } |
| 1641 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1642 | rtc_library("testclient") { |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1643 | testonly = true |
| 1644 | sources = [ |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 1645 | "test_client.cc", |
| 1646 | "test_client.h", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1647 | ] |
| 1648 | deps = [ |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1649 | ":async_udp_socket", |
Per K | d07900c | 2023-11-17 09:18:25 | [diff] [blame] | 1650 | ":buffer", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1651 | ":gunit_helpers", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1652 | ":rtc_base_tests_utils", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1653 | ":threading", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1654 | ":timeutils", |
Per K | d07900c | 2023-11-17 09:18:25 | [diff] [blame] | 1655 | "../api/units:timestamp", |
| 1656 | "network:received_packet", |
Markus Handell | 18523c3 | 2020-07-08 15:55:58 | [diff] [blame] | 1657 | "synchronization:mutex", |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1658 | ] |
| 1659 | } |
| 1660 | |
Mirko Bonadei | 3d25935 | 2020-10-23 10:04:40 | [diff] [blame] | 1661 | rtc_library("callback_list_unittests") { |
Lahiru Ginnaliya Gamathige | 3e98280 | 2020-09-16 17:34:21 | [diff] [blame] | 1662 | testonly = true |
| 1663 | |
Mirko Bonadei | 3d25935 | 2020-10-23 10:04:40 | [diff] [blame] | 1664 | sources = [ "callback_list_unittest.cc" ] |
Lahiru Ginnaliya Gamathige | 3e98280 | 2020-09-16 17:34:21 | [diff] [blame] | 1665 | deps = [ |
Mirko Bonadei | 3d25935 | 2020-10-23 10:04:40 | [diff] [blame] | 1666 | ":callback_list", |
Lahiru Ginnaliya Gamathige | 3e98280 | 2020-09-16 17:34:21 | [diff] [blame] | 1667 | ":gunit_helpers", |
Lahiru Ginnaliya Gamathige | 3e98280 | 2020-09-16 17:34:21 | [diff] [blame] | 1668 | "../api:function_view", |
| 1669 | "../test:test_support", |
| 1670 | ] |
| 1671 | } |
| 1672 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1673 | rtc_library("rtc_base_tests_utils") { |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1674 | testonly = true |
| 1675 | sources = [ |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1676 | "cpu_time.cc", |
| 1677 | "cpu_time.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 1678 | "fake_clock.cc", |
| 1679 | "fake_clock.h", |
Qingsi Wang | 0961933 | 2018-09-13 05:51:55 | [diff] [blame] | 1680 | "fake_mdns_responder.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 1681 | "fake_network.h", |
| 1682 | "fake_ssl_identity.cc", |
| 1683 | "fake_ssl_identity.h", |
| 1684 | "firewall_socket_server.cc", |
| 1685 | "firewall_socket_server.h", |
Niels Möller | e7547d5 | 2018-11-01 08:33:08 | [diff] [blame] | 1686 | "memory_stream.cc", |
| 1687 | "memory_stream.h", |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1688 | "memory_usage.cc", |
| 1689 | "memory_usage.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 1690 | "nat_server.cc", |
| 1691 | "nat_server.h", |
| 1692 | "nat_socket_factory.cc", |
| 1693 | "nat_socket_factory.h", |
| 1694 | "nat_types.cc", |
| 1695 | "nat_types.h", |
| 1696 | "proxy_server.cc", |
| 1697 | "proxy_server.h", |
Niels Möller | 4415315 | 2018-12-17 13:04:05 | [diff] [blame] | 1698 | "server_socket_adapters.cc", |
| 1699 | "server_socket_adapters.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 1700 | "sigslot_tester.h", |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 1701 | "test_base64.h", |
| 1702 | "test_certificate_verifier.h", |
| 1703 | "test_echo_server.cc", |
| 1704 | "test_echo_server.h", |
| 1705 | "test_utils.cc", |
| 1706 | "test_utils.h", |
| 1707 | "virtual_socket_server.cc", |
| 1708 | "virtual_socket_server.h", |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1709 | ] |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1710 | deps = [ |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1711 | ":async_packet_socket", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1712 | ":async_socket", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1713 | ":async_tcp_socket", |
| 1714 | ":async_udp_socket", |
Per K | 056782c | 2024-01-30 11:32:05 | [diff] [blame] | 1715 | ":buffer", |
Florent Castelli | ceb7b36 | 2022-04-19 15:35:04 | [diff] [blame] | 1716 | ":byte_buffer", |
Patrik Höglund | a8005cf | 2017-12-13 15:05:42 | [diff] [blame] | 1717 | ":checks", |
Philipp Hancke | 57dbb1e | 2024-05-14 15:35:24 | [diff] [blame] | 1718 | ":digest", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1719 | ":ip_address", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 1720 | ":logging", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 1721 | ":macromagic", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1722 | ":mdns_responder_interface", |
| 1723 | ":network", |
Florent Castelli | 33d31fb | 2022-04-04 14:57:52 | [diff] [blame] | 1724 | ":rtc_event", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1725 | ":socket", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1726 | ":socket_adapters", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1727 | ":socket_address", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1728 | ":socket_address_pair", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1729 | ":socket_factory", |
| 1730 | ":socket_server", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1731 | ":ssl", |
| 1732 | ":stream", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 1733 | ":stringutils", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1734 | ":threading", |
Florent Castelli | dd837e2 | 2022-04-04 15:16:15 | [diff] [blame] | 1735 | ":timeutils", |
Per K | 056782c | 2024-01-30 11:32:05 | [diff] [blame] | 1736 | "../api:array_view", |
Danil Chapovalov | babdaa86 | 2022-09-16 10:41:11 | [diff] [blame] | 1737 | "../api:make_ref_counted", |
| 1738 | "../api:refcountedbase", |
| 1739 | "../api:scoped_refptr", |
Harald Alvestrand | 24510d4 | 2023-11-13 11:52:16 | [diff] [blame] | 1740 | "../api:sequence_checker", |
Danil Chapovalov | babdaa86 | 2022-09-16 10:41:11 | [diff] [blame] | 1741 | "../api/task_queue", |
Sebastian Jansson | 5f83cf0 | 2018-05-08 12:52:22 | [diff] [blame] | 1742 | "../api/units:time_delta", |
Sebastian Jansson | d624c39 | 2019-04-17 08:36:03 | [diff] [blame] | 1743 | "../api/units:timestamp", |
Jonas Oreland | c06fe8b | 2022-03-28 12:58:26 | [diff] [blame] | 1744 | "../test:scoped_key_value_config", |
| 1745 | "memory:always_valid_pointer", |
Niels Möller | 1333948 | 2019-03-28 12:30:15 | [diff] [blame] | 1746 | "memory:fifo_buffer", |
Per K | 14630a7 | 2023-11-22 13:08:58 | [diff] [blame] | 1747 | "network:received_packet", |
Markus Handell | 18523c3 | 2020-07-08 15:55:58 | [diff] [blame] | 1748 | "synchronization:mutex", |
Artem Titov | e41c433 | 2018-07-25 13:04:28 | [diff] [blame] | 1749 | "third_party/sigslot", |
Steve Anton | 2acd163 | 2019-03-25 20:48:30 | [diff] [blame] | 1750 | "//third_party/abseil-cpp/absl/algorithm:container", |
Karl Wiberg | 918f50c | 2018-07-05 09:40:33 | [diff] [blame] | 1751 | "//third_party/abseil-cpp/absl/memory", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1752 | "//third_party/abseil-cpp/absl/strings:string_view", |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1753 | ] |
Sarah Pham | f1fa6ac7 | 2023-01-15 23:43:34 | [diff] [blame] | 1754 | if (is_fuchsia) { |
| 1755 | deps += [ "//third_party/fuchsia-sdk/sdk/pkg/zx" ] |
| 1756 | } |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1757 | } |
| 1758 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1759 | rtc_library("task_queue_for_test") { |
Tommi | da8781f | 2018-02-19 11:41:43 | [diff] [blame] | 1760 | testonly = true |
| 1761 | |
| 1762 | sources = [ |
| 1763 | "task_queue_for_test.cc", |
| 1764 | "task_queue_for_test.h", |
| 1765 | ] |
| 1766 | deps = [ |
| 1767 | ":checks", |
Danil Chapovalov | d26a916 | 2019-03-19 17:08:37 | [diff] [blame] | 1768 | ":rtc_event", |
Danil Chapovalov | 5286dcf | 2022-07-18 15:04:56 | [diff] [blame] | 1769 | "../api:function_view", |
Danil Chapovalov | eb90e6f | 2019-10-15 08:04:57 | [diff] [blame] | 1770 | "../api/task_queue", |
Danil Chapovalov | d26a916 | 2019-03-19 17:08:37 | [diff] [blame] | 1771 | "../api/task_queue:default_task_queue_factory", |
Danil Chapovalov | 5286dcf | 2022-07-18 15:04:56 | [diff] [blame] | 1772 | "//third_party/abseil-cpp/absl/cleanup", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1773 | "//third_party/abseil-cpp/absl/strings:string_view", |
Danil Chapovalov | 5286dcf | 2022-07-18 15:04:56 | [diff] [blame] | 1774 | ] |
Tommi | da8781f | 2018-02-19 11:41:43 | [diff] [blame] | 1775 | } |
| 1776 | |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1777 | if (rtc_include_tests) { |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 1778 | rtc_library("sigslot_unittest") { |
Artem Titov | e41c433 | 2018-07-25 13:04:28 | [diff] [blame] | 1779 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 1780 | sources = [ "sigslot_unittest.cc" ] |
Artem Titov | e41c433 | 2018-07-25 13:04:28 | [diff] [blame] | 1781 | deps = [ |
Mirko Bonadei | e3abb81 | 2018-11-23 12:15:08 | [diff] [blame] | 1782 | ":gunit_helpers", |
Artem Titov | e41c433 | 2018-07-25 13:04:28 | [diff] [blame] | 1783 | ":rtc_base_tests_utils", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 1784 | "../test:test_support", |
Markus Handell | 18523c3 | 2020-07-08 15:55:58 | [diff] [blame] | 1785 | "synchronization:mutex", |
Artem Titov | e41c433 | 2018-07-25 13:04:28 | [diff] [blame] | 1786 | "third_party/sigslot", |
| 1787 | ] |
| 1788 | } |
| 1789 | |
Karl Wiberg | 70026f9 | 2020-09-18 08:03:16 | [diff] [blame] | 1790 | rtc_library("untyped_function_unittest") { |
Karl Wiberg | 78e9acd | 2020-09-15 09:06:34 | [diff] [blame] | 1791 | testonly = true |
Karl Wiberg | 70026f9 | 2020-09-18 08:03:16 | [diff] [blame] | 1792 | sources = [ "untyped_function_unittest.cc" ] |
Karl Wiberg | 78e9acd | 2020-09-15 09:06:34 | [diff] [blame] | 1793 | deps = [ |
Karl Wiberg | 70026f9 | 2020-09-18 08:03:16 | [diff] [blame] | 1794 | ":untyped_function", |
Karl Wiberg | 78e9acd | 2020-09-15 09:06:34 | [diff] [blame] | 1795 | "../test:test_support", |
| 1796 | ] |
| 1797 | } |
| 1798 | |
Henrik Boström | 27c2936 | 2019-10-21 13:21:55 | [diff] [blame] | 1799 | rtc_library("rtc_operations_chain_unittests") { |
| 1800 | testonly = true |
| 1801 | |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 1802 | sources = [ "operations_chain_unittest.cc" ] |
Henrik Boström | 27c2936 | 2019-10-21 13:21:55 | [diff] [blame] | 1803 | deps = [ |
Henrik Boström | e8b00a1 | 2020-08-25 15:11:20 | [diff] [blame] | 1804 | ":gunit_helpers", |
Henrik Boström | 27c2936 | 2019-10-21 13:21:55 | [diff] [blame] | 1805 | ":rtc_event", |
| 1806 | ":rtc_operations_chain", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 1807 | ":threading", |
Henrik Boström | 27c2936 | 2019-10-21 13:21:55 | [diff] [blame] | 1808 | "../test:test_support", |
| 1809 | ] |
| 1810 | } |
| 1811 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1812 | if (!build_with_chromium) { |
| 1813 | rtc_library("rtc_base_nonparallel_tests") { |
| 1814 | testonly = true |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 1815 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1816 | sources = [ |
| 1817 | "cpu_time_unittest.cc", |
| 1818 | "file_rotating_stream_unittest.cc", |
| 1819 | "null_socket_server_unittest.cc", |
| 1820 | "physical_socket_server_unittest.cc", |
| 1821 | "socket_address_unittest.cc", |
| 1822 | "socket_unittest.cc", |
| 1823 | "socket_unittest.h", |
Tommi | 16db7ff | 2020-09-26 09:57:26 | [diff] [blame] | 1824 | ] |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1825 | deps = [ |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1826 | ":async_packet_socket", |
| 1827 | ":async_udp_socket", |
Florent Castelli | f9c5984 | 2022-04-19 15:07:23 | [diff] [blame] | 1828 | ":buffer", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1829 | ":checks", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1830 | ":file_rotating_stream", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1831 | ":gunit_helpers", |
| 1832 | ":ip_address", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 1833 | ":logging", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 1834 | ":macromagic", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1835 | ":net_helpers", |
Mirko Bonadei | 0d8b79e | 2023-07-27 06:55:49 | [diff] [blame] | 1836 | ":net_test_helpers", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1837 | ":null_socket_server", |
Florent Castelli | 45a0599 | 2022-04-14 10:18:28 | [diff] [blame] | 1838 | ":platform_thread", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1839 | ":rtc_base_tests_utils", |
| 1840 | ":socket", |
| 1841 | ":socket_address", |
| 1842 | ":socket_server", |
| 1843 | ":testclient", |
| 1844 | ":threading", |
Florent Castelli | dd837e2 | 2022-04-04 15:16:15 | [diff] [blame] | 1845 | ":timeutils", |
Markus Handell | 9a21c49 | 2022-08-25 11:40:13 | [diff] [blame] | 1846 | "../api/units:time_delta", |
Per K | 056782c | 2024-01-30 11:32:05 | [diff] [blame] | 1847 | "../api/units:timestamp", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1848 | "../system_wrappers", |
Per Kjellander | fdcfefa | 2022-11-08 11:48:52 | [diff] [blame] | 1849 | "../test:field_trial", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1850 | "../test:fileutils", |
| 1851 | "../test:test_main", |
| 1852 | "../test:test_support", |
| 1853 | "third_party/sigslot", |
| 1854 | "//testing/gtest", |
Ali Tofigh | 7fa9057 | 2022-03-17 14:47:49 | [diff] [blame] | 1855 | "//third_party/abseil-cpp/absl/memory", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1856 | "//third_party/abseil-cpp/absl/strings:string_view", |
Ali Tofigh | 7fa9057 | 2022-03-17 14:47:49 | [diff] [blame] | 1857 | ] |
Tommi | 16db7ff | 2020-09-26 09:57:26 | [diff] [blame] | 1858 | } |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1859 | |
| 1860 | rtc_library("rtc_base_approved_unittests") { |
| 1861 | testonly = true |
| 1862 | sources = [ |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1863 | "base64_unittest.cc", |
| 1864 | "bit_buffer_unittest.cc", |
Danil Chapovalov | e546ff9 | 2023-07-21 12:06:20 | [diff] [blame] | 1865 | "bitrate_tracker_unittest.cc", |
Danil Chapovalov | 5af152c | 2021-08-31 13:27:51 | [diff] [blame] | 1866 | "bitstream_reader_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1867 | "bounded_inline_vector_unittest.cc", |
| 1868 | "buffer_queue_unittest.cc", |
| 1869 | "buffer_unittest.cc", |
| 1870 | "byte_buffer_unittest.cc", |
| 1871 | "byte_order_unittest.cc", |
| 1872 | "checks_unittest.cc", |
| 1873 | "copy_on_write_buffer_unittest.cc", |
| 1874 | "deprecated/recursive_critical_section_unittest.cc", |
| 1875 | "event_tracer_unittest.cc", |
| 1876 | "event_unittest.cc", |
Danil Chapovalov | e546ff9 | 2023-07-21 12:06:20 | [diff] [blame] | 1877 | "frequency_tracker_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1878 | "logging_unittest.cc", |
| 1879 | "numerics/divide_round_unittest.cc", |
| 1880 | "numerics/histogram_percentile_counter_unittest.cc", |
| 1881 | "numerics/mod_ops_unittest.cc", |
| 1882 | "numerics/moving_max_counter_unittest.cc", |
| 1883 | "numerics/safe_compare_unittest.cc", |
| 1884 | "numerics/safe_minmax_unittest.cc", |
| 1885 | "numerics/sample_counter_unittest.cc", |
| 1886 | "one_time_event_unittest.cc", |
| 1887 | "platform_thread_unittest.cc", |
| 1888 | "random_unittest.cc", |
| 1889 | "rate_limiter_unittest.cc", |
| 1890 | "rate_statistics_unittest.cc", |
| 1891 | "rate_tracker_unittest.cc", |
| 1892 | "ref_counted_object_unittest.cc", |
| 1893 | "sanitizer_unittest.cc", |
| 1894 | "string_encode_unittest.cc", |
| 1895 | "string_to_number_unittest.cc", |
| 1896 | "string_utils_unittest.cc", |
Sergey Silkin | ebc4d3e | 2023-11-15 10:04:48 | [diff] [blame] | 1897 | "strings/str_join_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1898 | "strings/string_builder_unittest.cc", |
| 1899 | "strings/string_format_unittest.cc", |
Victor Boivie | b918230 | 2021-09-21 12:51:05 | [diff] [blame] | 1900 | "strong_alias_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1901 | "swap_queue_unittest.cc", |
| 1902 | "thread_annotations_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1903 | "time_utils_unittest.cc", |
| 1904 | "timestamp_aligner_unittest.cc", |
| 1905 | "virtual_socket_unittest.cc", |
| 1906 | "zero_memory_unittest.cc", |
| 1907 | ] |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1908 | deps = [ |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1909 | ":async_packet_socket", |
| 1910 | ":async_udp_socket", |
Florent Castelli | 7f623b0 | 2022-04-14 11:34:56 | [diff] [blame] | 1911 | ":bit_buffer", |
Danil Chapovalov | e546ff9 | 2023-07-21 12:06:20 | [diff] [blame] | 1912 | ":bitrate_tracker", |
Danil Chapovalov | 5af152c | 2021-08-31 13:27:51 | [diff] [blame] | 1913 | ":bitstream_reader", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1914 | ":bounded_inline_vector", |
Florent Castelli | f9c5984 | 2022-04-19 15:07:23 | [diff] [blame] | 1915 | ":buffer", |
Florent Castelli | 7606375 | 2022-04-19 15:14:26 | [diff] [blame] | 1916 | ":buffer_queue", |
Florent Castelli | ceb7b36 | 2022-04-19 15:35:04 | [diff] [blame] | 1917 | ":byte_buffer", |
Florent Castelli | a876a92 | 2022-04-19 15:18:36 | [diff] [blame] | 1918 | ":byte_order", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1919 | ":checks", |
Florent Castelli | ed4aadc | 2022-04-19 15:40:46 | [diff] [blame] | 1920 | ":copy_on_write_buffer", |
Niels Möller | 9233af3 | 2021-06-22 09:24:06 | [diff] [blame] | 1921 | ":criticalsection", |
Philipp Hancke | 4158678 | 2024-06-06 14:31:07 | [diff] [blame] | 1922 | ":crypto_random", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1923 | ":divide_round", |
Florent Castelli | a30aef3 | 2022-04-19 15:47:13 | [diff] [blame] | 1924 | ":event_tracer", |
Danil Chapovalov | e546ff9 | 2023-07-21 12:06:20 | [diff] [blame] | 1925 | ":frequency_tracker", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1926 | ":gunit_helpers", |
Florent Castelli | 1729642 | 2022-04-14 11:48:10 | [diff] [blame] | 1927 | ":histogram_percentile_counter", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1928 | ":ip_address", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 1929 | ":logging", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 1930 | ":macromagic", |
Florent Castelli | 3176409 | 2022-04-14 11:41:58 | [diff] [blame] | 1931 | ":mod_ops", |
| 1932 | ":moving_max_counter", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1933 | ":null_socket_server", |
Florent Castelli | 6b60859 | 2022-04-14 11:18:04 | [diff] [blame] | 1934 | ":one_time_event", |
Florent Castelli | 45a0599 | 2022-04-14 10:18:28 | [diff] [blame] | 1935 | ":platform_thread", |
Florent Castelli | 71337f3 | 2022-04-14 10:41:26 | [diff] [blame] | 1936 | ":random", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1937 | ":rate_limiter", |
Florent Castelli | 6bb1fd3 | 2022-04-19 13:58:39 | [diff] [blame] | 1938 | ":rate_statistics", |
Florent Castelli | 58cc468 | 2022-04-19 13:50:28 | [diff] [blame] | 1939 | ":rate_tracker", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 1940 | ":refcount", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1941 | ":rtc_base_tests_utils", |
Florent Castelli | 33d31fb | 2022-04-04 14:57:52 | [diff] [blame] | 1942 | ":rtc_event", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1943 | ":rtc_numerics", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1944 | ":safe_compare", |
| 1945 | ":safe_minmax", |
Florent Castelli | 83a36d4 | 2022-04-14 11:44:39 | [diff] [blame] | 1946 | ":sample_counter", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1947 | ":sanitizer", |
| 1948 | ":socket", |
| 1949 | ":socket_address", |
| 1950 | ":socket_server", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 1951 | ":ssl", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1952 | ":stringutils", |
Florent Castelli | a6c10e3 | 2022-04-14 11:08:44 | [diff] [blame] | 1953 | ":strong_alias", |
Florent Castelli | d119b9e | 2022-04-14 11:23:51 | [diff] [blame] | 1954 | ":swap_queue", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1955 | ":testclient", |
| 1956 | ":threading", |
Florent Castelli | b1dc4e4 | 2022-04-14 11:20:12 | [diff] [blame] | 1957 | ":timestamp_aligner", |
Florent Castelli | dd837e2 | 2022-04-04 15:16:15 | [diff] [blame] | 1958 | ":timeutils", |
Florent Castelli | d119b9e | 2022-04-14 11:23:51 | [diff] [blame] | 1959 | ":zero_memory", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1960 | "../api:array_view", |
Niels Möller | 105711e | 2022-06-14 13:48:26 | [diff] [blame] | 1961 | "../api:make_ref_counted", |
Harald Alvestrand | 78f905e | 2023-11-02 14:09:26 | [diff] [blame] | 1962 | "../api:ref_count", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1963 | "../api:scoped_refptr", |
| 1964 | "../api/numerics", |
Danil Chapovalov | e546ff9 | 2023-07-21 12:06:20 | [diff] [blame] | 1965 | "../api/units:data_rate", |
| 1966 | "../api/units:data_size", |
| 1967 | "../api/units:frequency", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1968 | "../api/units:time_delta", |
Danil Chapovalov | e546ff9 | 2023-07-21 12:06:20 | [diff] [blame] | 1969 | "../api/units:timestamp", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1970 | "../system_wrappers", |
| 1971 | "../test:fileutils", |
| 1972 | "../test:test_main", |
| 1973 | "../test:test_support", |
Nico Weber | 79bd4f1 | 2021-10-05 19:01:26 | [diff] [blame] | 1974 | "containers:flat_map", |
Victor Boivie | fd954fc | 2021-06-29 07:21:11 | [diff] [blame] | 1975 | "containers:unittests", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1976 | "memory:unittests", |
Per K | c202f96 | 2023-12-14 12:09:02 | [diff] [blame] | 1977 | "network:received_packet", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1978 | "synchronization:mutex", |
Danil Chapovalov | f136165 | 2022-09-02 13:40:26 | [diff] [blame] | 1979 | "task_utils:repeating_task", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1980 | "third_party/base64", |
| 1981 | "third_party/sigslot", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1982 | "//third_party/abseil-cpp/absl/base:core_headers", |
| 1983 | "//third_party/abseil-cpp/absl/memory", |
Danil Chapovalov | 5af152c | 2021-08-31 13:27:51 | [diff] [blame] | 1984 | "//third_party/abseil-cpp/absl/numeric:bits", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 1985 | "//third_party/abseil-cpp/absl/strings:string_view", |
Tommi | 16db7ff | 2020-09-26 09:57:26 | [diff] [blame] | 1986 | ] |
Florent Castelli | 15a3c3f | 2022-04-27 08:33:27 | [diff] [blame] | 1987 | |
| 1988 | if (is_win) { |
| 1989 | deps += [ "win:windows_version_unittest" ] |
| 1990 | } |
Tommi | 16db7ff | 2020-09-26 09:57:26 | [diff] [blame] | 1991 | } |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1992 | |
| 1993 | rtc_library("rtc_task_queue_unittests") { |
| 1994 | testonly = true |
| 1995 | |
| 1996 | sources = [ "task_queue_unittest.cc" ] |
| 1997 | deps = [ |
| 1998 | ":gunit_helpers", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 1999 | ":rtc_base_tests_utils", |
Florent Castelli | 33d31fb | 2022-04-04 14:57:52 | [diff] [blame] | 2000 | ":rtc_event", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2001 | ":task_queue_for_test", |
Florent Castelli | dd837e2 | 2022-04-04 15:16:15 | [diff] [blame] | 2002 | ":timeutils", |
Danil Chapovalov | 5286dcf | 2022-07-18 15:04:56 | [diff] [blame] | 2003 | "../api/units:time_delta", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2004 | "../test:test_main", |
| 2005 | "../test:test_support", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 2006 | "//third_party/abseil-cpp/absl/memory", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2007 | ] |
Diogo Real | 1dca9d5 | 2017-08-29 19:18:32 | [diff] [blame] | 2008 | } |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2009 | |
| 2010 | rtc_library("weak_ptr_unittests") { |
| 2011 | testonly = true |
| 2012 | |
| 2013 | sources = [ "weak_ptr_unittest.cc" ] |
| 2014 | deps = [ |
| 2015 | ":gunit_helpers", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2016 | ":rtc_base_tests_utils", |
| 2017 | ":rtc_event", |
| 2018 | ":task_queue_for_test", |
| 2019 | ":weak_ptr", |
| 2020 | "../test:test_main", |
| 2021 | "../test:test_support", |
| 2022 | ] |
| 2023 | } |
| 2024 | |
| 2025 | rtc_library("rtc_numerics_unittests") { |
| 2026 | testonly = true |
| 2027 | |
| 2028 | sources = [ |
| 2029 | "numerics/event_based_exponential_moving_average_unittest.cc", |
| 2030 | "numerics/exp_filter_unittest.cc", |
| 2031 | "numerics/moving_average_unittest.cc", |
Rasmus Brandt | 9166481 | 2022-09-14 14:22:24 | [diff] [blame] | 2032 | "numerics/moving_percentile_filter_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2033 | "numerics/percentile_filter_unittest.cc", |
| 2034 | "numerics/running_statistics_unittest.cc", |
Evan Shrubsole | 097fc34 | 2023-01-09 10:21:43 | [diff] [blame] | 2035 | "numerics/sequence_number_unwrapper_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2036 | "numerics/sequence_number_util_unittest.cc", |
| 2037 | ] |
| 2038 | deps = [ |
Björn Terelius | 72302cc | 2024-06-12 08:07:50 | [diff] [blame] | 2039 | ":mod_ops", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2040 | ":rtc_numerics", |
Evan Shrubsole | aa5897d | 2022-12-15 09:30:52 | [diff] [blame] | 2041 | ":timeutils", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2042 | "../test:test_main", |
| 2043 | "../test:test_support", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 2044 | "//third_party/abseil-cpp/absl/algorithm:container", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2045 | ] |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2046 | } |
| 2047 | |
| 2048 | rtc_library("rtc_json_unittests") { |
| 2049 | testonly = true |
| 2050 | |
| 2051 | sources = [ "strings/json_unittest.cc" ] |
| 2052 | deps = [ |
| 2053 | ":gunit_helpers", |
| 2054 | ":rtc_base_tests_utils", |
| 2055 | ":rtc_json", |
| 2056 | "../test:test_main", |
| 2057 | "../test:test_support", |
| 2058 | ] |
| 2059 | } |
| 2060 | |
| 2061 | rtc_library("rtc_base_unittests") { |
| 2062 | testonly = true |
| 2063 | defines = [] |
| 2064 | |
| 2065 | sources = [ |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2066 | "crc32_unittest.cc", |
Philipp Hancke | 4158678 | 2024-06-06 14:31:07 | [diff] [blame] | 2067 | "crypto_random_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2068 | "data_rate_limiter_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2069 | "fake_clock_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2070 | "ip_address_unittest.cc", |
| 2071 | "memory_usage_unittest.cc", |
| 2072 | "message_digest_unittest.cc", |
| 2073 | "nat_unittest.cc", |
| 2074 | "network_route_unittest.cc", |
| 2075 | "network_unittest.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2076 | "rolling_accumulator_unittest.cc", |
| 2077 | "rtc_certificate_generator_unittest.cc", |
| 2078 | "rtc_certificate_unittest.cc", |
| 2079 | "sigslot_tester_unittest.cc", |
| 2080 | "test_client_unittest.cc", |
| 2081 | "thread_unittest.cc", |
| 2082 | "unique_id_generator_unittest.cc", |
| 2083 | ] |
| 2084 | deps = [ |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2085 | ":async_packet_socket", |
| 2086 | ":async_tcp_socket", |
| 2087 | ":async_udp_socket", |
Florent Castelli | f9c5984 | 2022-04-19 15:07:23 | [diff] [blame] | 2088 | ":buffer", |
Florent Castelli | 7606375 | 2022-04-19 15:14:26 | [diff] [blame] | 2089 | ":buffer_queue", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2090 | ":checks", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2091 | ":crc32", |
Philipp Hancke | 4158678 | 2024-06-06 14:31:07 | [diff] [blame] | 2092 | ":crypto_random", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2093 | ":data_rate_limiter", |
Philipp Hancke | 57dbb1e | 2024-05-14 15:35:24 | [diff] [blame] | 2094 | ":digest", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2095 | ":gunit_helpers", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2096 | ":ifaddrs_converter", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2097 | ":ip_address", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 2098 | ":logging", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 2099 | ":macromagic", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2100 | ":net_helpers", |
Mirko Bonadei | 0d8b79e | 2023-07-27 06:55:49 | [diff] [blame] | 2101 | ":net_test_helpers", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2102 | ":network", |
| 2103 | ":network_route", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2104 | ":null_socket_server", |
Danil Chapovalov | 1624293 | 2022-09-02 09:10:24 | [diff] [blame] | 2105 | ":refcount", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2106 | ":rolling_accumulator", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2107 | ":rtc_base_tests_utils", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2108 | ":rtc_certificate_generator", |
Florent Castelli | 33d31fb | 2022-04-04 14:57:52 | [diff] [blame] | 2109 | ":rtc_event", |
Florent Castelli | e10a9f6 | 2022-04-04 15:04:37 | [diff] [blame] | 2110 | ":safe_conversions", |
Niels Möller | d0b8879 | 2021-08-12 08:32:30 | [diff] [blame] | 2111 | ":socket", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2112 | ":socket_adapters", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2113 | ":socket_address", |
| 2114 | ":socket_factory", |
| 2115 | ":socket_server", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2116 | ":ssl", |
Philipp Hancke | c7fd5af | 2024-05-17 20:49:05 | [diff] [blame] | 2117 | ":ssl_adapter", |
Philipp Hancke | 57dbb1e | 2024-05-14 15:35:24 | [diff] [blame] | 2118 | ":ssl_header", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2119 | ":stream", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2120 | ":stringutils", |
| 2121 | ":testclient", |
| 2122 | ":threading", |
Florent Castelli | dd837e2 | 2022-04-04 15:16:15 | [diff] [blame] | 2123 | ":timeutils", |
Florent Castelli | a138c6c | 2023-01-04 11:01:09 | [diff] [blame] | 2124 | ":unique_id_generator", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2125 | "../api:array_view", |
Ali Tofigh | 4b68194 | 2022-08-23 10:57:16 | [diff] [blame] | 2126 | "../api:field_trials_view", |
Niels Möller | 105711e | 2022-06-14 13:48:26 | [diff] [blame] | 2127 | "../api:make_ref_counted", |
Harald Alvestrand | 53c424e | 2024-08-01 06:31:02 | [diff] [blame] | 2128 | "../api:sequence_checker", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2129 | "../api/task_queue", |
Artem Titov | c374d11 | 2022-06-16 19:27:45 | [diff] [blame] | 2130 | "../api/task_queue:pending_task_safety_flag", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2131 | "../api/task_queue:task_queue_test", |
Danil Chapovalov | 4bcf809 | 2022-07-06 17:42:34 | [diff] [blame] | 2132 | "../api/units:time_delta", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2133 | "../test:field_trial", |
| 2134 | "../test:fileutils", |
| 2135 | "../test:rtc_expect_death", |
Jonas Oreland | c06fe8b | 2022-03-28 12:58:26 | [diff] [blame] | 2136 | "../test:scoped_key_value_config", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2137 | "../test:test_main", |
| 2138 | "../test:test_support", |
| 2139 | "memory:fifo_buffer", |
Per K | c202f96 | 2023-12-14 12:09:02 | [diff] [blame] | 2140 | "network:received_packet", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2141 | "synchronization:mutex", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2142 | "third_party/sigslot", |
Harald Alvestrand | 53c424e | 2024-08-01 06:31:02 | [diff] [blame] | 2143 | "//testing/gtest", |
Florent Castelli | 99c519b | 2024-05-23 11:21:53 | [diff] [blame] | 2144 | "//third_party/abseil-cpp/absl/algorithm:container", |
| 2145 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
| 2146 | "//third_party/abseil-cpp/absl/memory", |
| 2147 | "//third_party/abseil-cpp/absl/strings", |
| 2148 | "//third_party/abseil-cpp/absl/strings:string_view", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2149 | ] |
Peter Kasting | 049f5ef | 2023-03-14 16:56:25 | [diff] [blame] | 2150 | if (rtc_enable_google_benchmarks) { |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2151 | deps += [ "synchronization:synchronization_unittests" ] |
| 2152 | } |
| 2153 | if (is_win) { |
Philipp Hancke | 1cc41ea | 2023-05-24 16:49:10 | [diff] [blame] | 2154 | sources += [ "win32_unittest.cc" ] |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2155 | deps += [ ":win32" ] |
| 2156 | } |
Philipp Hancke | 1a5630e | 2023-09-04 07:40:19 | [diff] [blame] | 2157 | if (is_posix || is_fuchsia || is_win) { |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2158 | sources += [ |
| 2159 | "openssl_adapter_unittest.cc", |
| 2160 | "openssl_session_cache_unittest.cc", |
| 2161 | "openssl_utility_unittest.cc", |
| 2162 | "ssl_adapter_unittest.cc", |
| 2163 | "ssl_identity_unittest.cc", |
| 2164 | "ssl_stream_adapter_unittest.cc", |
| 2165 | ] |
Tommi | 7e41c06 | 2024-04-28 20:40:56 | [diff] [blame] | 2166 | deps += [ ":callback_list" ] |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2167 | } |
Florent Castelli | b96902d | 2022-04-14 09:58:24 | [diff] [blame] | 2168 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2169 | if (build_with_chromium) { |
| 2170 | include_dirs = [ "../../boringssl/src/include" ] |
| 2171 | } |
| 2172 | if (rtc_build_ssl) { |
| 2173 | deps += [ "//third_party/boringssl" ] |
| 2174 | } else { |
Philipp Hancke | 06a49f0 | 2024-08-22 18:52:33 | [diff] [blame] | 2175 | configs += [ "..:external_ssl_library" ] |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 2176 | } |
Diogo Real | 1dca9d5 | 2017-08-29 19:18:32 | [diff] [blame] | 2177 | } |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 2178 | } |
| 2179 | } |
| 2180 | |
Henrik Kjellander | 73e2180 | 2017-06-20 06:38:58 | [diff] [blame] | 2181 | if (is_android) { |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 | [diff] [blame] | 2182 | rtc_android_library("base_java") { |
Sami Kalliomäki | 51f599b | 2019-07-03 12:13:08 | [diff] [blame] | 2183 | visibility = [ "*" ] |
Natalie Chouinard | 65bbcab | 2019-12-23 22:02:25 | [diff] [blame] | 2184 | sources = [ |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 2185 | "java/src/org/webrtc/ContextUtils.java", |
Paulina Hensman | 1ec04f1 | 2018-06-21 12:31:38 | [diff] [blame] | 2186 | "java/src/org/webrtc/Loggable.java", |
Henrik Kjellander | c036276 | 2017-06-29 06:03:04 | [diff] [blame] | 2187 | "java/src/org/webrtc/Logging.java", |
| 2188 | "java/src/org/webrtc/Size.java", |
| 2189 | "java/src/org/webrtc/ThreadUtils.java", |
| 2190 | ] |
Byoungchan Lee | 02334e0 | 2021-08-14 02:41:59 | [diff] [blame] | 2191 | deps = [ "//third_party/androidx:androidx_annotation_annotation_java" ] |
Henrik Kjellander | 73e2180 | 2017-06-20 06:38:58 | [diff] [blame] | 2192 | } |
Jonas Oreland | f7721fb | 2020-08-07 09:08:34 | [diff] [blame] | 2193 | java_cpp_enum("network_monitor_enums") { |
| 2194 | sources = [ "network_monitor.h" ] |
Jonas Oreland | fe4688e | 2020-08-07 12:08:33 | [diff] [blame] | 2195 | visibility = [ "*" ] |
Jonas Oreland | f7721fb | 2020-08-07 09:08:34 | [diff] [blame] | 2196 | } |
Henrik Kjellander | 73e2180 | 2017-06-20 06:38:58 | [diff] [blame] | 2197 | } |