2017-06-29 08:03:04 +02:00
|
|
|
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
2017-06-20 08:38:58 +02:00
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
import("../webrtc.gni")
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-16 10:40:39 -05:00
|
|
|
if (!rtc_build_ssl) {
|
2017-06-29 08:03:04 +02:00
|
|
|
config("external_ssl_library") {
|
|
|
|
|
assert(rtc_ssl_root != "",
|
|
|
|
|
"You must specify rtc_ssl_root when rtc_build_ssl==0.")
|
|
|
|
|
include_dirs = [ rtc_ssl_root ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-17 13:49:46 +02:00
|
|
|
rtc_source_set("protobuf_utils") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "protobuf_utils.h" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
if (rtc_enable_protobuf) {
|
2018-08-13 15:04:25 +02:00
|
|
|
public_configs = [ "//third_party/protobuf:protobuf_config" ]
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ "//third_party/protobuf:protobuf_lite" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-31 15:27:51 +02:00
|
|
|
rtc_source_set("bitstream_reader") {
|
|
|
|
|
sources = [
|
|
|
|
|
"bitstream_reader.cc",
|
|
|
|
|
"bitstream_reader.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
"../api:array_view",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
|
|
|
|
"//third_party/abseil-cpp/absl/numeric:bits",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-17 13:49:46 +02:00
|
|
|
rtc_source_set("compile_assert_c") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "compile_assert_c.h" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
|
2019-10-19 12:03:23 +02:00
|
|
|
rtc_source_set("ignore_wundef") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "ignore_wundef.h" ]
|
2019-10-19 12:03:23 +02:00
|
|
|
}
|
|
|
|
|
|
2020-09-18 10:03:16 +02:00
|
|
|
rtc_source_set("untyped_function") {
|
|
|
|
|
sources = [ "untyped_function.h" ]
|
2020-09-11 16:09:46 +02:00
|
|
|
deps = [ "system:assume" ]
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-23 12:04:40 +02:00
|
|
|
rtc_source_set("callback_list") {
|
2020-09-11 16:09:46 +02:00
|
|
|
sources = [
|
2020-10-23 12:04:40 +02:00
|
|
|
"callback_list.cc",
|
|
|
|
|
"callback_list.h",
|
2020-09-11 16:09:46 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
2020-11-11 11:48:04 +01:00
|
|
|
":checks",
|
2020-09-18 10:03:16 +02:00
|
|
|
":untyped_function",
|
2020-09-11 16:09:46 +02:00
|
|
|
"../api:function_view",
|
|
|
|
|
"system:assume",
|
Optimize RoboCaller::AddReceiver() for code size
Essentially, instead of having the inlined UntypedFunction::Create(f)
return an UntypedFunction which is then passed as an argument to
non-inlined RoboCallerReceivers::AddReceiverImpl(), we let
UntypedFunction::PrepareArgs(f) return a few different kinds of
trivial structs (depending on what sort of type f has) which are
passed as arguments to non-inlined RoboCallerReceivers::AddReceiver()
(which then converts them to UntypedFunction by calling
UntypedFunction::Create()). These structs are smaller than
UntypedFunction and optimized for argument passing, so many fewer
instructions are needed.
Example code:
struct Foo {
void Receive(int, float, int, float);
void TestAddLambdaReceiver();
webrtc::RoboCaller<int, float, int, float> rc;
};
void Foo::TestAddLambdaReceiver() {
rc.AddReceiver([this](int a, float b, int c, float d){
Receive(a, b, c, d);});
}
On arm32, we get before this CL:
Foo::TestAddLambdaReceiver():
push {r11, lr}
mov r11, sp
sub sp, sp, #24
ldr r1, .LCPI0_0
mov r2, #0
stm sp, {r0, r2}
add r1, pc, r1
str r2, [sp, #20]
str r1, [sp, #16]
mov r1, sp
bl RoboCallerReceivers::AddReceiverImpl
mov sp, r11
pop {r11, pc}
.LCPI0_0:
.long CallInlineStorage<Foo::TestAddLambdaReceiver()::$_0>
CallInlineStorage<Foo::TestAddLambdaReceiver()::$_0>:
ldr r0, [r0]
b Foo::Receive(int, float, int, float)
After this CL:
Foo::TestAddLambdaReceiver():
ldr r3, .LCPI0_0
mov r2, r0
add r3, pc, r3
b RoboCallerReceivers::AddReceiver<1u>
.LCPI0_0:
.long CallInlineStorage<Foo::TestAddLambdaReceiver()::$_0>
CallInlineStorage<Foo::TestAddLambdaReceiver()::$_0>:
ldr r0, [r0]
b Foo::Receive(int, float, int, float)
(Symbol names abbreviated so that they'll fit on one line.)
So a reduction from 64 to 28 bytes. The improvements on arm64 and
x86_64 are similar.
Bug: webrtc:11943
Change-Id: I93fbba083be0235051c3279d3e3f6852a4a9fdad
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185960
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32244}
2020-09-29 13:55:13 +02:00
|
|
|
"system:inline",
|
2022-04-10 13:27:13 +02:00
|
|
|
"system:rtc_export",
|
2020-09-11 16:09:46 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-19 17:07:23 +02:00
|
|
|
rtc_source_set("buffer") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [ "buffer.h" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":type_traits",
|
|
|
|
|
":zero_memory",
|
|
|
|
|
"../api:array_view",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-19 17:18:36 +02:00
|
|
|
rtc_source_set("byte_order") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [ "byte_order.h" ]
|
|
|
|
|
deps = [ "system:arch" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-14 13:41:58 +02:00
|
|
|
rtc_source_set("mod_ops") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [ "numerics/mod_ops.h" ]
|
|
|
|
|
deps = [ ":checks" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("moving_max_counter") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [ "numerics/moving_max_counter.h" ]
|
|
|
|
|
deps = [ ":checks" ]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-14 13:18:04 +02:00
|
|
|
rtc_source_set("one_time_event") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [ "one_time_event.h" ]
|
|
|
|
|
deps = [ "synchronization:mutex" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-14 13:08:44 +02:00
|
|
|
rtc_source_set("strong_alias") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [ "strong_alias.h" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-14 13:23:51 +02:00
|
|
|
rtc_source_set("swap_queue") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [ "swap_queue.h" ]
|
|
|
|
|
deps = [ ":checks" ]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/base:core_headers" ]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-19 11:12:48 +01:00
|
|
|
rtc_source_set("macromagic") {
|
|
|
|
|
sources = [
|
|
|
|
|
"arraysize.h",
|
|
|
|
|
"thread_annotations.h",
|
|
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ "system:arch" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
|
2022-04-14 13:34:56 +02:00
|
|
|
rtc_library("bit_buffer") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"bit_buffer.cc",
|
|
|
|
|
"bit_buffer.h",
|
|
|
|
|
]
|
2023-03-02 11:51:53 +01:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
"../api/units:data_size",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/numeric:bits",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings:strings",
|
|
|
|
|
]
|
2022-04-14 13:34:56 +02:00
|
|
|
}
|
|
|
|
|
|
2022-04-19 17:35:04 +02:00
|
|
|
rtc_library("byte_buffer") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"byte_buffer.cc",
|
|
|
|
|
"byte_buffer.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":buffer",
|
|
|
|
|
":byte_order",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-19 17:14:26 +02:00
|
|
|
rtc_library("buffer_queue") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"buffer_queue.cc",
|
|
|
|
|
"buffer_queue.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":buffer",
|
|
|
|
|
":macromagic",
|
|
|
|
|
"../api:sequence_checker",
|
|
|
|
|
"system:no_unique_address",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-19 17:40:46 +02:00
|
|
|
rtc_library("copy_on_write_buffer") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"copy_on_write_buffer.cc",
|
|
|
|
|
"copy_on_write_buffer.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":buffer",
|
|
|
|
|
":checks",
|
|
|
|
|
":refcount",
|
|
|
|
|
":type_traits",
|
|
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
]
|
2022-05-09 13:33:36 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
2022-04-19 17:40:46 +02:00
|
|
|
}
|
|
|
|
|
|
2022-04-19 17:47:13 +02:00
|
|
|
rtc_library("event_tracer") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"event_tracer.cc",
|
|
|
|
|
"event_tracer.h",
|
|
|
|
|
"trace_event.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread",
|
|
|
|
|
":platform_thread_types",
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":timeutils",
|
|
|
|
|
"../api:sequence_checker",
|
|
|
|
|
"synchronization:mutex",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-14 13:48:10 +02:00
|
|
|
rtc_library("histogram_percentile_counter") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"numerics/histogram_percentile_counter.cc",
|
|
|
|
|
"numerics/histogram_percentile_counter.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [ ":checks" ]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-14 13:34:56 +02:00
|
|
|
rtc_library("race_checker") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"race_checker.cc",
|
|
|
|
|
"race_checker.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread_types",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-14 12:41:26 +02:00
|
|
|
rtc_library("random") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"random.cc",
|
|
|
|
|
"random.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-21 14:06:20 +02:00
|
|
|
rtc_library("bitrate_tracker") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"bitrate_tracker.cc",
|
|
|
|
|
"bitrate_tracker.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":rate_statistics",
|
|
|
|
|
"../api/units:data_rate",
|
|
|
|
|
"../api/units:data_size",
|
|
|
|
|
"../api/units:time_delta",
|
|
|
|
|
"../api/units:timestamp",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("frequency_tracker") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"frequency_tracker.cc",
|
|
|
|
|
"frequency_tracker.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":rate_statistics",
|
|
|
|
|
"../api/units:frequency",
|
|
|
|
|
"../api/units:time_delta",
|
|
|
|
|
"../api/units:timestamp",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-19 15:58:39 +02:00
|
|
|
rtc_library("rate_statistics") {
|
2023-07-21 14:06:20 +02:00
|
|
|
# TODO(bugs.webrtc.org/13756): Restrict visibility to private when all usage
|
|
|
|
|
# of the RateStatistics is migrated to BitrateTracker and FrequencyTracker.
|
2022-04-19 15:58:39 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"rate_statistics.cc",
|
|
|
|
|
"rate_statistics.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":logging",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-19 15:50:28 +02:00
|
|
|
rtc_library("rate_tracker") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"rate_tracker.cc",
|
|
|
|
|
"rate_tracker.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":timeutils",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-14 13:44:39 +02:00
|
|
|
rtc_library("sample_counter") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"numerics/sample_counter.cc",
|
|
|
|
|
"numerics/sample_counter.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-14 13:20:12 +02:00
|
|
|
rtc_library("timestamp_aligner") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"timestamp_aligner.cc",
|
|
|
|
|
"timestamp_aligner.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":logging",
|
|
|
|
|
":timeutils",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-14 13:23:51 +02:00
|
|
|
rtc_library("zero_memory") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"zero_memory.cc",
|
|
|
|
|
"zero_memory.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
"../api:array_view",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("platform_thread_types") {
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
|
|
|
|
"platform_thread_types.cc",
|
|
|
|
|
"platform_thread_types.h",
|
|
|
|
|
]
|
2022-11-24 09:01:35 +01:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":macromagic",
|
|
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("refcount") {
|
2018-08-09 09:47:12 +02:00
|
|
|
visibility = [ "*" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"ref_count.h",
|
|
|
|
|
"ref_counted_object.h",
|
|
|
|
|
"ref_counter.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
2021-04-22 17:41:33 +02:00
|
|
|
deps = [
|
|
|
|
|
":macromagic",
|
2023-10-31 11:42:45 +00:00
|
|
|
"../api:ref_count",
|
2021-04-22 17:41:33 +02:00
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("criticalsection") {
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
2020-07-16 16:16:09 +02:00
|
|
|
"deprecated/recursive_critical_section.cc",
|
|
|
|
|
"deprecated/recursive_critical_section.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread_types",
|
2020-06-04 00:41:20 +02:00
|
|
|
"synchronization:yield",
|
2018-07-25 16:05:48 +02:00
|
|
|
"system:unused",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("platform_thread") {
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
|
|
|
|
"platform_thread.cc",
|
|
|
|
|
"platform_thread.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread_types",
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":timeutils",
|
2021-02-10 14:31:24 +01:00
|
|
|
"../api:sequence_checker",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
2021-04-20 17:41:54 +02:00
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2021-05-07 15:02:36 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2021-04-20 17:41:54 +02:00
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_event") {
|
2018-03-19 11:12:48 +01:00
|
|
|
if (build_with_chromium) {
|
|
|
|
|
sources = [
|
|
|
|
|
"../../webrtc_overrides/rtc_base/event.cc",
|
|
|
|
|
"../../webrtc_overrides/rtc_base/event.h",
|
|
|
|
|
]
|
2019-03-24 19:12:40 +01:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
2022-08-16 13:31:26 +00:00
|
|
|
"../api/units:time_delta",
|
2019-11-12 20:11:48 +01:00
|
|
|
"system:rtc_export", # Only Chromium's rtc::Event use RTC_EXPORT.
|
2019-03-24 19:12:40 +01:00
|
|
|
"//base", # Dependency on chromium's waitable_event.
|
|
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
} else {
|
|
|
|
|
sources = [
|
|
|
|
|
"event.cc",
|
|
|
|
|
"event.h",
|
|
|
|
|
]
|
2019-03-24 19:12:40 +01:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
2022-08-18 13:49:09 +00:00
|
|
|
":timeutils",
|
|
|
|
|
"../api/units:time_delta",
|
2019-03-24 19:12:40 +01:00
|
|
|
"synchronization:yield_policy",
|
|
|
|
|
"system:warn_current_thread_is_deadlocked",
|
|
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-10 14:27:57 +01:00
|
|
|
config("chromium_logging_config") {
|
2022-02-16 12:29:02 +01:00
|
|
|
defines = [ "LOGGING_INSIDE_WEBRTC" ]
|
2022-02-10 14:27:57 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("logging") {
|
2018-08-09 10:54:40 +02:00
|
|
|
visibility = [ "*" ]
|
2018-10-09 15:09:51 +02:00
|
|
|
libs = []
|
2018-03-19 11:12:48 +01:00
|
|
|
deps = [
|
2018-10-23 12:03:01 +02:00
|
|
|
":checks",
|
2018-03-19 11:12:48 +01:00
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread_types",
|
|
|
|
|
":stringutils",
|
|
|
|
|
":timeutils",
|
2022-08-03 08:12:33 +00:00
|
|
|
"../api/units:timestamp",
|
2020-06-10 15:40:42 +02:00
|
|
|
"synchronization:mutex",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2019-10-11 17:18:29 +02:00
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
2019-05-20 18:34:07 +02:00
|
|
|
"//third_party/abseil-cpp/absl/meta:type_traits",
|
2018-09-12 15:32:47 +02:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2022-08-03 08:12:33 +00:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (build_with_chromium) {
|
|
|
|
|
# Dependency on chromium's logging (in //base).
|
2019-03-21 13:35:10 +01:00
|
|
|
deps += [ "//base" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
|
|
|
|
"../../webrtc_overrides/rtc_base/logging.cc",
|
|
|
|
|
"../../webrtc_overrides/rtc_base/logging.h",
|
|
|
|
|
]
|
2022-02-16 12:29:02 +01:00
|
|
|
|
2022-02-10 14:27:57 +01:00
|
|
|
# This macro needs to be both present in all WebRTC targets (see its
|
|
|
|
|
# definition in //BUILD.gn but also propagated to all the targets
|
|
|
|
|
# depending on the Chromium component defined in
|
|
|
|
|
# //third_party/webrtc_overrides:webrtc_component. This public_config
|
|
|
|
|
# allows GN to propagate the macro accordingly.
|
2022-02-16 12:29:02 +01:00
|
|
|
public_configs = [ ":chromium_logging_config" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
} else {
|
|
|
|
|
sources = [
|
|
|
|
|
"logging.cc",
|
|
|
|
|
"logging.h",
|
|
|
|
|
]
|
2018-05-23 23:20:38 +02:00
|
|
|
deps += [ "system:inline" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
|
2018-10-09 16:45:14 +02:00
|
|
|
if (is_mac) {
|
2020-07-03 10:19:30 +02:00
|
|
|
frameworks = [ "Foundation.framework" ]
|
2018-10-09 16:45:14 +02:00
|
|
|
}
|
|
|
|
|
|
2018-10-09 15:09:51 +02:00
|
|
|
if (is_android) {
|
|
|
|
|
libs += [ "log" ]
|
|
|
|
|
}
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("checks") {
|
2018-08-09 10:54:40 +02:00
|
|
|
# TODO(bugs.webrtc.org/9607): This should not be public.
|
|
|
|
|
visibility = [ "*" ]
|
2018-10-09 15:09:51 +02:00
|
|
|
libs = []
|
2017-12-13 16:05:42 +01:00
|
|
|
sources = [
|
|
|
|
|
"checks.cc",
|
|
|
|
|
"checks.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":safe_compare",
|
2022-04-28 13:20:29 +02:00
|
|
|
"../api:scoped_refptr",
|
2018-06-14 13:14:22 +02:00
|
|
|
"system:inline",
|
2019-09-23 14:54:28 +02:00
|
|
|
"system:rtc_export",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
2022-07-29 13:44:21 -07:00
|
|
|
if (build_with_chromium) {
|
|
|
|
|
sources += [ "../../webrtc_overrides/rtc_base/checks_overrides.cc" ]
|
|
|
|
|
deps += [ "//base" ]
|
|
|
|
|
}
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [
|
2019-05-20 18:34:07 +02:00
|
|
|
"//third_party/abseil-cpp/absl/meta:type_traits",
|
2019-03-11 10:31:22 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2017-12-13 16:05:42 +01:00
|
|
|
]
|
2018-10-09 15:09:51 +02:00
|
|
|
if (is_android) {
|
|
|
|
|
libs += [ "log" ]
|
|
|
|
|
}
|
2017-12-13 16:05:42 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rate_limiter") {
|
2017-12-13 16:05:42 +01:00
|
|
|
sources = [
|
2017-12-15 14:40:10 +01:00
|
|
|
"rate_limiter.cc",
|
|
|
|
|
"rate_limiter.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2022-04-04 15:18:46 +02:00
|
|
|
":macromagic",
|
2022-04-19 15:58:39 +02:00
|
|
|
":rate_statistics",
|
2017-12-15 14:40:10 +01:00
|
|
|
"../system_wrappers",
|
2020-07-08 17:55:58 +02:00
|
|
|
"synchronization:mutex",
|
2017-12-13 16:05:42 +01:00
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2017-12-13 16:05:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("sanitizer") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "sanitizer.h" ]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/meta:type_traits" ]
|
2017-12-13 16:05:42 +01:00
|
|
|
}
|
|
|
|
|
|
2020-03-02 20:23:41 +01:00
|
|
|
rtc_source_set("bounded_inline_vector") {
|
|
|
|
|
public = [ "bounded_inline_vector.h" ]
|
|
|
|
|
sources = [ "bounded_inline_vector_impl.h" ]
|
|
|
|
|
deps = [ ":checks" ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-18 15:48:23 +02:00
|
|
|
rtc_source_set("divide_round") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "numerics/divide_round.h" ]
|
2019-09-18 15:48:23 +02:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":safe_compare",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-13 16:05:42 +01:00
|
|
|
rtc_source_set("safe_compare") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "numerics/safe_compare.h" ]
|
|
|
|
|
deps = [ ":type_traits" ]
|
2017-12-13 16:05:42 +01:00
|
|
|
}
|
|
|
|
|
|
2018-03-07 14:18:56 +01:00
|
|
|
rtc_source_set("safe_minmax") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "numerics/safe_minmax.h" ]
|
2018-03-07 14:18:56 +01:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":safe_compare",
|
|
|
|
|
":type_traits",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-19 11:12:48 +01:00
|
|
|
rtc_source_set("safe_conversions") {
|
|
|
|
|
sources = [
|
|
|
|
|
"numerics/safe_conversions.h",
|
|
|
|
|
"numerics/safe_conversions_impl.h",
|
|
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ ":checks" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("timeutils") {
|
2018-08-09 10:54:40 +02:00
|
|
|
visibility = [ "*" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
2021-02-15 13:29:45 +01:00
|
|
|
"system_time.cc",
|
|
|
|
|
"system_time.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"time_utils.cc",
|
|
|
|
|
"time_utils.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":safe_conversions",
|
2018-09-06 13:41:30 +02:00
|
|
|
":stringutils",
|
2019-09-23 14:54:28 +02:00
|
|
|
"system:rtc_export",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
2023-06-27 13:08:44 +02:00
|
|
|
|
2021-02-25 10:10:08 +01:00
|
|
|
if (rtc_exclude_system_time) {
|
|
|
|
|
defines = [ "WEBRTC_EXCLUDE_SYSTEM_TIME" ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-18 13:50:20 -07:00
|
|
|
libs = []
|
|
|
|
|
if (is_win) {
|
|
|
|
|
libs += [ "winmm.lib" ]
|
2023-06-27 13:08:44 +02:00
|
|
|
deps += [ ":win32" ]
|
2019-03-18 13:50:20 -07:00
|
|
|
}
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("stringutils") {
|
2017-12-13 16:05:42 +01:00
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"string_encode.cc",
|
|
|
|
|
"string_encode.h",
|
2018-07-05 11:59:48 +02:00
|
|
|
"string_to_number.cc",
|
|
|
|
|
"string_to_number.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"string_utils.cc",
|
|
|
|
|
"string_utils.h",
|
2018-03-08 15:03:23 +01:00
|
|
|
"strings/string_builder.cc",
|
Adding a new string utility class: SimpleStringBuilder.
This is a fairly minimalistic string building class that
can be used instead of stringstream, which is discouraged
but tempting to use due to its convenient interface and
familiarity for anyone using our logging macros.
As a starter, I'm changing the string building code in
ReceiveStatisticsProxy and SendStatisticsProxy from using
stringstream and using SimpleStringBuilder instead.
In the case of SimpleStringBuilder, there's a single allocation,
it's done on the stack (fast), and minimal code is required for
each concatenation. The developer is responsible for ensuring
that the buffer size is adequate but the class won't overflow
the buffer. In dcheck-enabled builds, a check will go off if
we run out of buffer space.
As part of using SimpleStringBuilder for a small part of
rtc::LogMessage, a few more changes were made:
- SimpleStringBuilder is used for formatting errors instead of ostringstream.
- A new 'noop' state has been introduced for log messages that will be dropped.
- Use a static (singleton) noop ostream object for noop logging messages
instead of building up an actual ostringstream object that will be dropped.
- Add a LogMessageForTest class for better state inspection/testing.
- Fix benign bug in LogTest.Perf, change the test to not use File IO and
always enable it.
- Ensure that minimal work is done for noop messages.
- Remove dependency on rtc::Thread.
- Add tests for the extra_ field, correctly parsed paths and noop handling.
Bug: webrtc:8529, webrtc:4364, webrtc:8933
Change-Id: Ifa258c135135945e4560d9e24315f7d96f784acb
Reviewed-on: https://webrtc-review.googlesource.com/55520
Commit-Queue: Tommi <tommi@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Jonas Olsson <jonasolsson@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22203}
2018-02-27 13:51:08 +01:00
|
|
|
"strings/string_builder.h",
|
2020-04-09 18:46:00 +02:00
|
|
|
"strings/string_format.cc",
|
|
|
|
|
"strings/string_format.h",
|
2017-12-13 16:05:42 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-15 14:40:10 +01:00
|
|
|
":checks",
|
2018-07-05 11:59:48 +02:00
|
|
|
":macromagic",
|
2018-03-08 15:03:23 +01:00
|
|
|
":safe_minmax",
|
|
|
|
|
"../api:array_view",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2019-03-21 13:35:10 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-07-05 11:59:48 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-12-15 14:40:10 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("audio_format_to_string") {
|
2018-04-03 12:22:07 +02:00
|
|
|
sources = [
|
|
|
|
|
"strings/audio_format_to_string.cc",
|
|
|
|
|
"strings/audio_format_to_string.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":stringutils",
|
|
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-15 14:40:10 +01:00
|
|
|
rtc_source_set("type_traits") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "type_traits.h" ]
|
2017-12-15 14:40:10 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_task_queue") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-09-19 08:28:00 -07:00
|
|
|
sources = [
|
2019-03-05 19:58:28 +01:00
|
|
|
"task_queue.cc",
|
2017-09-19 08:28:00 -07:00
|
|
|
"task_queue.h",
|
|
|
|
|
]
|
2017-08-25 05:00:11 -07:00
|
|
|
deps = [
|
2018-03-19 11:12:48 +01:00
|
|
|
":macromagic",
|
2019-01-14 14:29:18 +01:00
|
|
|
"../api/task_queue",
|
Reland "Export symbols needed by the Chromium component build (part 1)."
This reverts commit 16fe3f290a524a136f71660a114d0b03ef501f10.
Reason for revert:
After discussing this problem with nisse@ and yvesg@, we decided to modify
how RTC_EXPORT works and avoid to depend on the macro COMPONENT_BUILD.
RTC_EXPORT will instead depend on a macro WEBRTC_COMPONENT_BUILD (which
can be set as a GN argument which defaults to false).
When all the symbols needed by Chromium will be marked with RTC_EXPORT we
will flip the GN arg in Chromium, setting to to `component_build` and from
that moment, Chromium will depend on a WebRTC shared library when
`component_build=true`.
Original change's description:
> Revert "Export symbols needed by the Chromium component build (part 1)."
>
> This reverts commit 99eea42fc1fe0be0ebed13c5eba7e1e42059bc5a.
>
> Reason for revert:
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::UnwrapTurnPacket(unsigned char const *, unsigned int, unsigned int *, unsigned int *)" (__imp_?UnwrapTurnPacket@cricket@@YA_NPBEIPAI1@Z)
> >>> referenced by obj/services/network/network_service/socket_manager.obj:("virtual void __thiscall network::P2PSocketManager::DumpPacket(class base::span<unsigned char const, 4294967295>, bool)" (?DumpPacket@P2PSocketManager@network@@EAEXV?$span@$$CBE$0PPPPPPPP@@base@@_N@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ValidateRtpHeader(unsigned char const *, unsigned int, unsigned int *)" (__imp_?ValidateRtpHeader@cricket@@YA_NPBEIPAI@Z)
> >>> referenced by obj/services/network/network_service/socket_manager.obj:("virtual void __thiscall network::P2PSocketManager::DumpPacket(class base::span<unsigned char const, 4294967295>, bool)" (?DumpPacket@P2PSocketManager@network@@EAEXV?$span@$$CBE$0PPPPPPPP@@base@@_N@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ApplyPacketOptions(unsigned char *, unsigned int, struct rtc::PacketTimeUpdateParams const &, unsigned __int64)" (__imp_?ApplyPacketOptions@cricket@@YA_NPAEIABUPacketTimeUpdateParams@rtc@@_K@Z)
> >>> referenced by obj/services/network/network_service/socket_tcp.obj:("virtual void __thiscall network::P2PSocketTcp::DoSend(class net::IPEndPoint const &, class std::vector<signed char, class std::allocator<signed char>> const &, struct rtc::PacketOptions const &, struct net::NetworkTrafficAnnotationTag)" (?DoSend@P2PSocketTcp@network@@MAEXABVIPEndPoint@net@@ABV?$vector@CV?$allocator@C@std@@@std@@ABUPacketOptions@rtc@@UNetworkTrafficAnnotationTag@4@@Z))
> >>> referenced by obj/services/network/network_service/socket_tcp.obj:("virtual void __thiscall network::P2PSocketStunTcp::DoSend(class net::IPEndPoint const &, class std::vector<signed char, class std::allocator<signed char>> const &, struct rtc::PacketOptions const &, struct net::NetworkTrafficAnnotationTag)" (?DoSend@P2PSocketStunTcp@network@@MAEXABVIPEndPoint@net@@ABV?$vector@CV?$allocator@C@std@@@std@@ABUPacketOptions@rtc@@UNetworkTrafficAnnotationTag@4@@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ApplyPacketOptions(unsigned char *, unsigned int, struct rtc::PacketTimeUpdateParams const &, unsigned __int64)" (__imp_?ApplyPacketOptions@cricket@@YA_NPAEIABUPacketTimeUpdateParams@rtc@@_K@Z)
> >>> referenced by obj/services/network/network_service/socket_udp.obj:("bool __thiscall network::P2PSocketUdp::DoSend(struct network::P2PSocketUdp::PendingPacket const &)" (?DoSend@P2PSocketUdp@network@@AAE_NABUPendingPacket@12@@Z))
>
> Original change's description:
> > Reland "Reland "Export symbols needed by the Chromium component build (part 1).""
> >
> > This reverts commit b49520bfc08f5c5832dda1d642125f0bb898f974.
> >
> > Reason for revert: Problem fixed in https://chromium-review.googlesource.com/c/chromium/src/+/1261398.
> >
> > Original change's description:
> > > Revert "Reland "Export symbols needed by the Chromium component build (part 1).""
> > >
> > > This reverts commit 588f4642d1a29f7beaf28265dbd08728191b4c52.
> > >
> > > Reason for revert: Breaks WebRTC Chromium FYI Win Builder (dbg).
> > > lld-link: error: undefined symbol: "__declspec(dllimport) __thiscall webrtc::Config::Config(void)" (__imp_??0Config@webrtc@@QAE@XZ)
> > > [...]
> > >
> > > Original change's description:
> > > > Reland "Export symbols needed by the Chromium component build (part 1)."
> > > >
> > > > This reverts commit 2ea9af227517556136fd629dd2663c0d75d77c7b.
> > > >
> > > > Reason for revert: The problem will be fixed by
> > > > https://chromium-review.googlesource.com/c/chromium/src/+/1261122.
> > > >
> > > > Original change's description:
> > > > > Revert "Export symbols needed by the Chromium component build (part 1)."
> > > > >
> > > > > This reverts commit 9e24dcff167c4eb3555bf0ce6eaba090c10fbe53.
> > > > >
> > > > > Reason for revert: Breaks chromium.webrtc.fyi bots.
> > > > >
> > > > > Original change's description:
> > > > > > Export symbols needed by the Chromium component build (part 1).
> > > > > >
> > > > > > This CL uses RTC_EXPORT (defined in rtc_base/system/rtc_export.h)
> > > > > > to mark WebRTC symbols as visible from a shared library, this doesn't
> > > > > > mean these symbols are part of the public API (please continue to refer
> > > > > > to [1] for info about what is considered public WebRTC API).
> > > > > >
> > > > > > [1] - https://webrtc.googlesource.com/src/+/HEAD/native-api.md
> > > > > >
> > > > > > Bug: webrtc:9419
> > > > > > Change-Id: I802abd32874d42d3aa5ecd3c8022e7cf5e043d99
> > > > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103505
> > > > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > > Reviewed-by: Niels Moller <nisse@webrtc.org>
> > > > > > Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
> > > > > > Cr-Commit-Position: refs/heads/master@{#24969}
> > > > >
> > > > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > > > >
> > > > > Change-Id: I01f6e18f0d2c0f0309cdaa6c943c3927e1f1f49f
> > > > > No-Presubmit: true
> > > > > No-Tree-Checks: true
> > > > > No-Try: true
> > > > > Bug: webrtc:9419
> > > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103720
> > > > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > Cr-Commit-Position: refs/heads/master@{#24974}
> > > >
> > > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > > >
> > > > Change-Id: I83bbc7f550fc23e823c4d055e0a6f60c828960dd
> > > > No-Presubmit: true
> > > > No-Tree-Checks: true
> > > > No-Try: true
> > > > Bug: webrtc:9419
> > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103740
> > > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > Cr-Commit-Position: refs/heads/master@{#24980}
> > >
> > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > >
> > > Change-Id: I4b7cfe492f2c8eeda5c8ac52520e0cfc95ade9b0
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: webrtc:9419
> > > Reviewed-on: https://webrtc-review.googlesource.com/c/103801
> > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > Cr-Commit-Position: refs/heads/master@{#24983}
> >
> > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> >
> > # Not skipping CQ checks because original CL landed > 1 day ago.
> >
> > Bug: webrtc:9419
> > Change-Id: Id986a0a03cdc2818690337784396882af067f7fa
> > Reviewed-on: https://webrtc-review.googlesource.com/c/104602
> > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > Reviewed-by: Niels Moller <nisse@webrtc.org>
> > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#25049}
>
> TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
>
> Change-Id: I6f58b9c90defccdb160307783fb55271ab424fa1
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:9419
> Reviewed-on: https://webrtc-review.googlesource.com/c/104623
> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#25050}
TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
Change-Id: I4d01ed96ae40a8f9ca42c466be5c87653d75d7c1
Bug: webrtc:9419
Reviewed-on: https://webrtc-review.googlesource.com/c/104641
Reviewed-by: Yves Gerey <yvesg@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25108}
2018-10-11 10:50:45 +02:00
|
|
|
"system:rtc_export",
|
2017-08-25 05:00:11 -07:00
|
|
|
]
|
2022-07-05 16:03:03 +02:00
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
|
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
|
]
|
2019-03-05 19:58:28 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-21 15:21:55 +02:00
|
|
|
rtc_source_set("rtc_operations_chain") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
|
|
|
|
"operations_chain.cc",
|
|
|
|
|
"operations_chain.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":refcount",
|
2022-06-14 15:48:26 +02:00
|
|
|
"../api:make_ref_counted",
|
2022-01-13 11:00:05 +01:00
|
|
|
"../api:refcountedbase",
|
2019-10-21 15:21:55 +02:00
|
|
|
"../api:scoped_refptr",
|
2021-02-10 14:31:24 +01:00
|
|
|
"../api:sequence_checker",
|
2020-11-23 11:07:42 +01:00
|
|
|
"system:no_unique_address",
|
2019-10-21 15:21:55 +02:00
|
|
|
]
|
2020-08-25 10:20:11 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
2019-10-21 15:21:55 +02:00
|
|
|
}
|
|
|
|
|
|
2018-03-19 11:12:48 +01:00
|
|
|
if (rtc_enable_libevent) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_task_queue_libevent") {
|
2019-03-05 19:58:28 +01:00
|
|
|
visibility = [ "../api/task_queue:default_task_queue_factory" ]
|
2017-08-25 05:00:11 -07:00
|
|
|
sources = [
|
2017-10-19 12:38:09 +02:00
|
|
|
"task_queue_libevent.cc",
|
2019-02-12 10:44:38 +01:00
|
|
|
"task_queue_libevent.h",
|
2017-08-25 05:00:11 -07:00
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":logging",
|
2018-10-05 15:39:24 +02:00
|
|
|
":macromagic",
|
2018-03-19 11:12:48 +01:00
|
|
|
":platform_thread",
|
2018-10-05 15:39:24 +02:00
|
|
|
":platform_thread_types",
|
2018-03-19 11:12:48 +01:00
|
|
|
":safe_conversions",
|
|
|
|
|
":timeutils",
|
2019-02-12 10:44:38 +01:00
|
|
|
"../api/task_queue",
|
2022-07-19 14:12:43 +02:00
|
|
|
"../api/units:time_delta",
|
2020-07-08 17:55:58 +02:00
|
|
|
"synchronization:mutex",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2020-01-09 11:03:25 -08:00
|
|
|
"//third_party/abseil-cpp/absl/container:inlined_vector",
|
2022-07-19 14:12:43 +02:00
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
2019-02-12 10:44:38 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
if (rtc_build_libevent) {
|
2022-06-23 22:06:00 +09:00
|
|
|
deps += [ "//third_party/libevent" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_mac || is_ios) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_task_queue_gcd") {
|
2021-10-12 22:53:35 +09:00
|
|
|
visibility = [ "../api/task_queue:default_task_queue_factory" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
|
|
|
|
"task_queue_gcd.cc",
|
2019-02-19 20:20:16 +01:00
|
|
|
"task_queue_gcd.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":logging",
|
2023-02-27 12:41:39 +01:00
|
|
|
"../api:location",
|
2019-02-19 20:20:16 +01:00
|
|
|
"../api/task_queue",
|
2022-07-07 11:26:48 +02:00
|
|
|
"../api/units:time_delta",
|
2020-07-08 17:55:58 +02:00
|
|
|
"synchronization:mutex",
|
2020-03-16 18:00:59 +03:00
|
|
|
"system:gcd_helpers",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
2022-07-07 11:26:48 +02:00
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_task_queue_win") {
|
2019-03-05 19:58:28 +01:00
|
|
|
visibility = [ "../api/task_queue:default_task_queue_factory" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
|
|
|
|
"task_queue_win.cc",
|
2019-02-20 18:13:09 +01:00
|
|
|
"task_queue_win.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread",
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
":timeutils",
|
2019-02-20 18:13:09 +01:00
|
|
|
"../api/task_queue",
|
2022-07-20 13:38:58 +02:00
|
|
|
"../api/units:time_delta",
|
|
|
|
|
"../api/units:timestamp",
|
2020-07-08 17:55:58 +02:00
|
|
|
"synchronization:mutex",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
2021-05-07 15:02:36 +02:00
|
|
|
absl_deps = [
|
2022-07-20 13:38:58 +02:00
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
2021-05-07 15:02:36 +02:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_task_queue_stdlib") {
|
2018-11-23 09:07:50 -05:00
|
|
|
sources = [
|
|
|
|
|
"task_queue_stdlib.cc",
|
2019-02-21 11:13:58 +01:00
|
|
|
"task_queue_stdlib.h",
|
2018-11-23 09:07:50 -05:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
2022-07-19 18:36:31 +02:00
|
|
|
":divide_round",
|
2018-11-23 09:07:50 -05:00
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread",
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
":timeutils",
|
2019-02-21 11:13:58 +01:00
|
|
|
"../api/task_queue",
|
2022-07-19 18:36:31 +02:00
|
|
|
"../api/units:time_delta",
|
2020-07-08 17:55:58 +02:00
|
|
|
"synchronization:mutex",
|
2018-11-23 09:07:50 -05:00
|
|
|
]
|
2022-07-19 18:36:31 +02:00
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
2018-11-23 09:07:50 -05:00
|
|
|
}
|
|
|
|
|
|
2022-12-16 15:50:24 +01:00
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_library("task_queue_stdlib_unittest") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [ "task_queue_stdlib_unittest.cc" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":gunit_helpers",
|
|
|
|
|
":rtc_task_queue_stdlib",
|
|
|
|
|
"../api/task_queue:task_queue_test",
|
|
|
|
|
"../test:test_main",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("weak_ptr") {
|
2017-06-29 08:03:04 +02:00
|
|
|
sources = [
|
|
|
|
|
"weak_ptr.cc",
|
|
|
|
|
"weak_ptr.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2018-03-19 11:12:48 +01:00
|
|
|
":refcount",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2021-02-10 14:31:24 +01:00
|
|
|
"../api:sequence_checker",
|
2020-11-23 11:07:42 +01:00
|
|
|
"system:no_unique_address",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_numerics") {
|
2017-06-29 08:03:04 +02:00
|
|
|
sources = [
|
2019-11-25 13:00:15 +01:00
|
|
|
"numerics/event_based_exponential_moving_average.cc",
|
|
|
|
|
"numerics/event_based_exponential_moving_average.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"numerics/exp_filter.cc",
|
|
|
|
|
"numerics/exp_filter.h",
|
2019-04-10 17:18:48 +02:00
|
|
|
"numerics/math_utils.h",
|
2018-11-05 12:55:18 +01:00
|
|
|
"numerics/moving_average.cc",
|
|
|
|
|
"numerics/moving_average.h",
|
2022-09-14 16:22:24 +02:00
|
|
|
"numerics/moving_percentile_filter.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"numerics/percentile_filter.h",
|
2019-04-10 17:18:48 +02:00
|
|
|
"numerics/running_statistics.h",
|
2023-01-09 10:21:43 +00:00
|
|
|
"numerics/sequence_number_unwrapper.h",
|
2017-10-25 13:07:09 +02:00
|
|
|
"numerics/sequence_number_util.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-13 16:05:42 +01:00
|
|
|
":checks",
|
2022-04-14 13:41:58 +02:00
|
|
|
":mod_ops",
|
2020-09-18 18:23:08 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("rtc_stats_counters") {
|
|
|
|
|
sources = [
|
|
|
|
|
"numerics/event_rate_counter.cc",
|
|
|
|
|
"numerics/event_rate_counter.h",
|
|
|
|
|
"numerics/sample_stats.cc",
|
|
|
|
|
"numerics/sample_stats.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
"../api/numerics",
|
2019-12-02 07:19:55 +01:00
|
|
|
"../api/units:data_rate",
|
|
|
|
|
"../api/units:time_delta",
|
2019-09-11 11:45:40 +02:00
|
|
|
"../api/units:timestamp",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
2020-09-18 18:23:08 +02:00
|
|
|
absl_deps = []
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
|
2019-07-12 13:29:30 +02:00
|
|
|
config("rtc_json_suppressions") {
|
2019-06-27 11:24:25 +02:00
|
|
|
if (!is_win || is_clang) {
|
2019-07-12 13:29:30 +02:00
|
|
|
cflags_cc = [
|
2019-07-12 21:47:47 +02:00
|
|
|
# TODO(bugs.webrtc.org/10814): Remove -Wno-undef as soon as it get
|
2019-07-12 13:29:30 +02:00
|
|
|
# removed upstream.
|
|
|
|
|
"-Wno-undef",
|
|
|
|
|
]
|
2019-06-27 11:24:25 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_json") {
|
2023-10-25 15:18:25 +02:00
|
|
|
testonly = true
|
2019-07-12 13:29:30 +02:00
|
|
|
public_configs = [ ":rtc_json_suppressions" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
defines = []
|
|
|
|
|
sources = [
|
2018-10-02 16:25:59 +02:00
|
|
|
"strings/json.cc",
|
|
|
|
|
"strings/json.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ ":stringutils" ]
|
2018-01-26 16:50:02 +01:00
|
|
|
all_dependent_configs = [ "//third_party/jsoncpp:jsoncpp_config" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
if (rtc_build_json) {
|
2022-04-14 11:55:57 +02:00
|
|
|
deps += [ "//third_party/jsoncpp" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
} else {
|
|
|
|
|
include_dirs = [ "$rtc_jsoncpp_root" ]
|
|
|
|
|
}
|
2022-03-17 15:47:49 +01:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
|
2021-01-15 10:41:01 +01:00
|
|
|
rtc_library("net_helpers") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2021-01-15 10:41:01 +01:00
|
|
|
sources = [
|
|
|
|
|
"net_helpers.cc",
|
|
|
|
|
"net_helpers.h",
|
|
|
|
|
]
|
2023-08-02 08:57:01 +02:00
|
|
|
deps = [ "system:rtc_export" ]
|
2021-01-15 10:41:01 +01:00
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ ":ifaddrs_android" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
2021-10-05 15:01:26 -04:00
|
|
|
deps += [
|
|
|
|
|
":win32",
|
2022-04-27 10:33:27 +02:00
|
|
|
"win:windows_version",
|
2021-10-05 15:01:26 -04:00
|
|
|
]
|
2021-01-15 10:41:01 +01:00
|
|
|
}
|
2022-04-13 12:55:15 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
2023-07-27 08:55:49 +02:00
|
|
|
rtc_library("net_test_helpers") {
|
|
|
|
|
# TODO(mbonadei): Enable once net_helpers don't depend
|
|
|
|
|
# on this target anymore.
|
|
|
|
|
# testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"net_test_helpers.cc",
|
|
|
|
|
"net_test_helpers.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [ "system:rtc_export" ]
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ ":ifaddrs_android" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
|
|
|
|
deps += [
|
|
|
|
|
":win32",
|
|
|
|
|
"win:windows_version",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-15 10:41:01 +01:00
|
|
|
rtc_library("async_resolver_interface") {
|
2019-02-11 00:43:43 +01:00
|
|
|
visibility = [ "*" ]
|
2021-01-15 10:41:01 +01:00
|
|
|
sources = [
|
|
|
|
|
"async_resolver_interface.cc",
|
|
|
|
|
"async_resolver_interface.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2022-08-11 11:52:57 +02:00
|
|
|
":checks",
|
2021-01-15 10:41:01 +01:00
|
|
|
":socket_address",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
2023-08-22 13:53:16 +00:00
|
|
|
rtc_library("async_dns_resolver") {
|
|
|
|
|
sources = [
|
|
|
|
|
"async_dns_resolver.cc",
|
|
|
|
|
"async_dns_resolver.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread",
|
2023-09-02 05:26:55 +00:00
|
|
|
":refcount",
|
2023-08-22 13:53:16 +00:00
|
|
|
"../api:async_dns_resolver",
|
2023-09-02 05:26:55 +00:00
|
|
|
"../api:make_ref_counted",
|
2023-08-22 13:53:16 +00:00
|
|
|
"../api:sequence_checker",
|
|
|
|
|
"../api/task_queue:pending_task_safety_flag",
|
2023-10-10 07:24:54 +00:00
|
|
|
"system:rtc_export",
|
2023-08-22 13:53:16 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("async_dns_resolver_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [ "async_dns_resolver_unittest.cc" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":async_dns_resolver",
|
|
|
|
|
":gunit_helpers",
|
|
|
|
|
"../test:run_loop",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-15 10:41:01 +01:00
|
|
|
rtc_library("ip_address") {
|
2019-02-11 00:43:43 +01:00
|
|
|
visibility = [ "*" ]
|
2021-01-15 10:41:01 +01:00
|
|
|
sources = [
|
|
|
|
|
"ip_address.cc",
|
|
|
|
|
"ip_address.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2022-04-19 17:18:36 +02:00
|
|
|
":byte_order",
|
2021-01-15 10:41:01 +01:00
|
|
|
":net_helpers",
|
|
|
|
|
":stringutils",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
]
|
|
|
|
|
if (is_win) {
|
|
|
|
|
deps += [ ":win32" ]
|
|
|
|
|
}
|
2022-03-17 15:47:49 +01:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
2021-01-15 10:41:01 +01:00
|
|
|
rtc_library("socket_address") {
|
2019-02-11 00:43:43 +01:00
|
|
|
visibility = [ "*" ]
|
2021-01-15 10:41:01 +01:00
|
|
|
sources = [
|
|
|
|
|
"socket_address.cc",
|
|
|
|
|
"socket_address.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2022-04-19 17:18:36 +02:00
|
|
|
":byte_order",
|
2021-01-15 10:41:01 +01:00
|
|
|
":checks",
|
|
|
|
|
":ip_address",
|
|
|
|
|
":logging",
|
|
|
|
|
":net_helpers",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
":stringutils",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
]
|
|
|
|
|
if (is_win) {
|
|
|
|
|
deps += [ ":win32" ]
|
|
|
|
|
}
|
2022-03-17 15:47:49 +01:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
2021-01-15 10:41:01 +01:00
|
|
|
rtc_library("null_socket_server") {
|
|
|
|
|
sources = [
|
|
|
|
|
"null_socket_server.cc",
|
|
|
|
|
"null_socket_server.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":socket",
|
|
|
|
|
":socket_server",
|
2022-08-19 08:16:48 +00:00
|
|
|
"../api/units:time_delta",
|
2021-01-15 10:41:01 +01:00
|
|
|
"system:rtc_export",
|
|
|
|
|
]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
2019-01-22 17:54:34 +01:00
|
|
|
rtc_source_set("socket_server") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2021-01-15 10:41:01 +01:00
|
|
|
sources = [ "socket_server.h" ]
|
2022-08-25 11:40:13 +00:00
|
|
|
deps = [
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":socket_factory",
|
|
|
|
|
"../api/units:time_delta",
|
|
|
|
|
]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
2021-01-15 10:41:01 +01:00
|
|
|
rtc_library("threading") {
|
2019-02-11 00:43:43 +01:00
|
|
|
visibility = [ "*" ]
|
2021-01-15 10:41:01 +01:00
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"async_resolver.cc",
|
|
|
|
|
"async_resolver.h",
|
|
|
|
|
"internal/default_socket_server.cc",
|
|
|
|
|
"internal/default_socket_server.h",
|
|
|
|
|
"network_monitor.cc",
|
|
|
|
|
"network_monitor.h",
|
|
|
|
|
"network_monitor_factory.cc",
|
|
|
|
|
"network_monitor_factory.h",
|
|
|
|
|
"physical_socket_server.cc",
|
|
|
|
|
"physical_socket_server.h",
|
|
|
|
|
"thread.cc",
|
|
|
|
|
"thread.h",
|
|
|
|
|
]
|
2022-01-20 11:58:05 +01:00
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
|
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
2022-07-06 19:42:34 +02:00
|
|
|
"//third_party/abseil-cpp/absl/cleanup",
|
|
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
2022-08-24 18:35:45 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2022-03-17 15:47:49 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2022-01-20 11:58:05 +01:00
|
|
|
]
|
2021-01-15 10:41:01 +01:00
|
|
|
deps = [
|
2023-10-10 11:30:18 +00:00
|
|
|
":async_dns_resolver",
|
2021-01-15 10:41:01 +01:00
|
|
|
":async_resolver_interface",
|
2022-04-19 17:18:36 +02:00
|
|
|
":byte_order",
|
2021-01-15 10:41:01 +01:00
|
|
|
":checks",
|
|
|
|
|
":criticalsection",
|
2022-04-19 17:47:13 +02:00
|
|
|
":event_tracer",
|
2021-01-15 10:41:01 +01:00
|
|
|
":ip_address",
|
|
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":network_constants",
|
|
|
|
|
":null_socket_server",
|
2022-04-14 12:18:28 +02:00
|
|
|
":platform_thread",
|
2021-01-15 10:41:01 +01:00
|
|
|
":platform_thread_types",
|
2022-04-05 02:54:12 +02:00
|
|
|
":refcount",
|
2021-01-15 10:41:01 +01:00
|
|
|
":rtc_event",
|
|
|
|
|
":rtc_task_queue",
|
2023-10-10 11:30:18 +00:00
|
|
|
":socket",
|
2021-01-15 10:41:01 +01:00
|
|
|
":socket_address",
|
|
|
|
|
":socket_server",
|
|
|
|
|
":timeutils",
|
2023-10-10 11:30:18 +00:00
|
|
|
"../api:async_dns_resolver",
|
2021-01-15 10:41:01 +01:00
|
|
|
"../api:function_view",
|
2023-02-27 12:41:39 +01:00
|
|
|
"../api:location",
|
2021-04-21 10:22:34 +02:00
|
|
|
"../api:refcountedbase",
|
2021-01-15 10:41:01 +01:00
|
|
|
"../api:scoped_refptr",
|
2021-02-10 14:31:24 +01:00
|
|
|
"../api:sequence_checker",
|
2021-01-15 10:41:01 +01:00
|
|
|
"../api/task_queue",
|
2022-06-16 21:27:45 +02:00
|
|
|
"../api/task_queue:pending_task_safety_flag",
|
2022-07-06 19:42:34 +02:00
|
|
|
"../api/units:time_delta",
|
2022-11-08 12:48:52 +01:00
|
|
|
"../system_wrappers:field_trial",
|
2021-02-09 14:44:48 +01:00
|
|
|
"synchronization:mutex",
|
2021-01-15 10:41:01 +01:00
|
|
|
"system:no_unique_address",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ ":ifaddrs_android" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
|
|
|
|
deps += [ ":win32" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_mac || is_ios) {
|
2021-10-12 22:53:35 +09:00
|
|
|
deps += [ "system:cocoa_threading" ]
|
2021-01-15 10:41:01 +01:00
|
|
|
}
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
2019-01-22 17:54:34 +01:00
|
|
|
rtc_source_set("socket_factory") {
|
2021-01-15 10:41:01 +01:00
|
|
|
sources = [ "socket_factory.h" ]
|
2021-08-12 10:32:30 +02:00
|
|
|
deps = [ ":socket" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
2021-01-15 10:41:01 +01:00
|
|
|
rtc_library("async_socket") {
|
|
|
|
|
sources = [
|
|
|
|
|
"async_socket.cc",
|
|
|
|
|
"async_socket.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":socket",
|
|
|
|
|
":socket_address",
|
|
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
2021-08-11 11:22:44 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
2021-01-15 10:41:01 +01:00
|
|
|
rtc_library("socket") {
|
|
|
|
|
sources = [
|
|
|
|
|
"socket.cc",
|
|
|
|
|
"socket.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":macromagic",
|
|
|
|
|
":socket_address",
|
2021-08-12 10:32:30 +02:00
|
|
|
"third_party/sigslot",
|
2021-01-15 10:41:01 +01:00
|
|
|
]
|
|
|
|
|
if (is_win) {
|
|
|
|
|
deps += [ ":win32" ]
|
|
|
|
|
}
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("network_constants") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2021-01-15 10:41:01 +01:00
|
|
|
sources = [
|
|
|
|
|
"network_constants.cc",
|
|
|
|
|
"network_constants.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [ ":checks" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
2021-01-15 10:41:01 +01:00
|
|
|
rtc_library("ifaddrs_android") {
|
|
|
|
|
sources = [
|
|
|
|
|
"ifaddrs_android.cc",
|
|
|
|
|
"ifaddrs_android.h",
|
|
|
|
|
]
|
|
|
|
|
libs = [
|
|
|
|
|
"log",
|
|
|
|
|
"GLESv2",
|
|
|
|
|
]
|
2022-02-16 12:29:02 +01:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/cleanup" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
2021-01-15 10:41:01 +01:00
|
|
|
rtc_library("win32") {
|
2020-09-26 11:57:26 +02:00
|
|
|
sources = [
|
|
|
|
|
"win32.cc",
|
|
|
|
|
"win32.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2022-04-19 17:18:36 +02:00
|
|
|
":byte_order",
|
2020-09-26 11:57:26 +02:00
|
|
|
":checks",
|
|
|
|
|
":macromagic",
|
2022-04-04 17:14:02 +02:00
|
|
|
":stringutils",
|
2020-09-26 11:57:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
libs = [
|
|
|
|
|
"crypt32.lib",
|
|
|
|
|
"iphlpapi.lib",
|
|
|
|
|
"secur32.lib",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines = [ "_CRT_NONSTDC_NO_DEPRECATE" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-04 12:01:09 +01:00
|
|
|
rtc_library("ifaddrs_converter") {
|
|
|
|
|
sources = []
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":ip_address",
|
|
|
|
|
":logging",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ ":ifaddrs_android" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_ios || is_mac) {
|
|
|
|
|
sources += [ "mac_ifaddrs_converter.cc" ]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-30 10:38:06 -07:00
|
|
|
if (is_posix || is_fuchsia) {
|
2017-06-29 08:03:04 +02:00
|
|
|
sources += [
|
|
|
|
|
"ifaddrs_converter.cc",
|
|
|
|
|
"ifaddrs_converter.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
2023-01-04 12:01:09 +01:00
|
|
|
}
|
2017-06-29 08:03:04 +02:00
|
|
|
|
2023-01-04 12:01:09 +01:00
|
|
|
rtc_library("rolling_accumulator") {
|
|
|
|
|
sources = [ "rolling_accumulator.h" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":rtc_numerics",
|
|
|
|
|
]
|
|
|
|
|
}
|
2020-03-09 19:39:36 +01:00
|
|
|
|
2023-01-04 12:01:09 +01:00
|
|
|
if (is_win) {
|
|
|
|
|
rtc_library("win32_socket_init") {
|
|
|
|
|
sources = [ "win32_socket_init.h" ]
|
|
|
|
|
deps = [ ":win32" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-09 15:48:28 +01:00
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
rtc_library("log_sinks") {
|
2023-01-11 11:01:15 +01:00
|
|
|
visibility = [ "*" ]
|
2023-01-09 15:48:28 +01:00
|
|
|
sources = [
|
|
|
|
|
"log_sinks.cc",
|
|
|
|
|
"log_sinks.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":file_rotating_stream",
|
|
|
|
|
":logging",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
|
|
|
|
}
|
2023-01-04 12:01:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("network") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2023-01-04 12:01:09 +01:00
|
|
|
sources = [
|
|
|
|
|
"network.cc",
|
|
|
|
|
"network.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":ifaddrs_converter",
|
|
|
|
|
":ip_address",
|
|
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":mdns_responder_interface",
|
|
|
|
|
":socket",
|
|
|
|
|
":socket_factory",
|
|
|
|
|
":stringutils",
|
|
|
|
|
":threading",
|
|
|
|
|
"../api:array_view",
|
|
|
|
|
"../api:field_trials_view",
|
|
|
|
|
"../api:sequence_checker",
|
|
|
|
|
"../api/task_queue:pending_task_safety_flag",
|
|
|
|
|
"../api/transport:field_trial_based_config",
|
|
|
|
|
"../api/units:time_delta",
|
|
|
|
|
"experiments:field_trial_parser",
|
|
|
|
|
"memory:always_valid_pointer",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
|
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
|
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
deps += [ ":win32" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("socket_address_pair") {
|
|
|
|
|
sources = [
|
|
|
|
|
"socket_address_pair.cc",
|
|
|
|
|
"socket_address_pair.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [ ":socket_address" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("net_helper") {
|
2023-01-10 15:02:51 +01:00
|
|
|
visibility = [ "*" ]
|
2023-01-04 12:01:09 +01:00
|
|
|
sources = [
|
|
|
|
|
"net_helper.cc",
|
|
|
|
|
"net_helper.h",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
2023-01-20 17:32:07 +00:00
|
|
|
deps = [ "system:rtc_export" ]
|
2023-01-04 12:01:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("socket_adapters") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2023-01-04 12:01:09 +01:00
|
|
|
sources = [
|
|
|
|
|
"socket_adapters.cc",
|
|
|
|
|
"socket_adapters.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":async_socket",
|
|
|
|
|
":buffer",
|
|
|
|
|
":byte_buffer",
|
|
|
|
|
":checks",
|
|
|
|
|
":crypt_string",
|
|
|
|
|
":http_common",
|
|
|
|
|
":logging",
|
|
|
|
|
":stringutils",
|
|
|
|
|
":zero_memory",
|
|
|
|
|
"../api:array_view",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("network_route") {
|
|
|
|
|
sources = [
|
|
|
|
|
"network_route.cc",
|
|
|
|
|
"network_route.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":network_constants",
|
|
|
|
|
":stringutils",
|
|
|
|
|
"system:inline",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("async_tcp_socket") {
|
|
|
|
|
sources = [
|
|
|
|
|
"async_tcp_socket.cc",
|
|
|
|
|
"async_tcp_socket.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":async_packet_socket",
|
|
|
|
|
":buffer",
|
|
|
|
|
":byte_order",
|
|
|
|
|
":checks",
|
|
|
|
|
":logging",
|
|
|
|
|
":socket",
|
|
|
|
|
":socket_address",
|
|
|
|
|
":timeutils",
|
|
|
|
|
"../api:array_view",
|
|
|
|
|
"network:sent_packet",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("async_udp_socket") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2023-01-04 12:01:09 +01:00
|
|
|
sources = [
|
|
|
|
|
"async_udp_socket.cc",
|
|
|
|
|
"async_udp_socket.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":async_packet_socket",
|
|
|
|
|
":checks",
|
|
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":socket",
|
|
|
|
|
":socket_address",
|
|
|
|
|
":socket_factory",
|
|
|
|
|
":timeutils",
|
|
|
|
|
"../api:sequence_checker",
|
|
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"network:sent_packet",
|
2023-08-28 11:06:45 +00:00
|
|
|
"system:no_unique_address",
|
2023-01-04 12:01:09 +01:00
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("async_packet_socket") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2023-01-04 12:01:09 +01:00
|
|
|
sources = [
|
|
|
|
|
"async_packet_socket.cc",
|
|
|
|
|
"async_packet_socket.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":callback_list",
|
|
|
|
|
":dscp",
|
|
|
|
|
":socket",
|
|
|
|
|
":timeutils",
|
|
|
|
|
"../api:sequence_checker",
|
|
|
|
|
"network:sent_packet",
|
|
|
|
|
"system:no_unique_address",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("mdns_responder_interface") {
|
|
|
|
|
sources = [ "mdns_responder_interface.h" ]
|
|
|
|
|
deps = [ ":ip_address" ]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("dscp") {
|
|
|
|
|
sources = [ "dscp.h" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("proxy_info") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2023-01-04 12:01:09 +01:00
|
|
|
sources = [
|
|
|
|
|
"proxy_info.cc",
|
|
|
|
|
"proxy_info.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":crypt_string",
|
|
|
|
|
":socket_address",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("file_rotating_stream") {
|
|
|
|
|
sources = [
|
|
|
|
|
"file_rotating_stream.cc",
|
|
|
|
|
"file_rotating_stream.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":logging",
|
|
|
|
|
":stringutils",
|
|
|
|
|
"system:file_wrapper",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("data_rate_limiter") {
|
|
|
|
|
sources = [
|
|
|
|
|
"data_rate_limiter.cc",
|
|
|
|
|
"data_rate_limiter.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [ "system:rtc_export" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("unique_id_generator") {
|
|
|
|
|
sources = [
|
|
|
|
|
"unique_id_generator.cc",
|
|
|
|
|
"unique_id_generator.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":ssl",
|
|
|
|
|
":stringutils",
|
|
|
|
|
"../api:array_view",
|
|
|
|
|
"../api:sequence_checker",
|
|
|
|
|
"synchronization:mutex",
|
|
|
|
|
"system:no_unique_address",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("crc32") {
|
|
|
|
|
sources = [
|
|
|
|
|
"crc32.cc",
|
|
|
|
|
"crc32.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [ ":macromagic" ]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("stream") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2023-01-04 12:01:09 +01:00
|
|
|
sources = [
|
|
|
|
|
"stream.cc",
|
|
|
|
|
"stream.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":buffer",
|
|
|
|
|
":checks",
|
|
|
|
|
":threading",
|
|
|
|
|
"../api:array_view",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("rtc_certificate_generator") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2023-01-04 12:01:09 +01:00
|
|
|
sources = [
|
|
|
|
|
"rtc_certificate_generator.cc",
|
|
|
|
|
"rtc_certificate_generator.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":ssl",
|
|
|
|
|
":threading",
|
|
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"system:rtc_export",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("ssl") {
|
2023-01-09 17:49:10 +01:00
|
|
|
visibility = [ "*" ]
|
2023-01-04 12:01:09 +01:00
|
|
|
sources = [
|
|
|
|
|
"helpers.cc",
|
|
|
|
|
"helpers.h",
|
|
|
|
|
"message_digest.cc",
|
|
|
|
|
"message_digest.h",
|
|
|
|
|
"openssl.h",
|
|
|
|
|
"openssl_adapter.cc",
|
|
|
|
|
"openssl_adapter.h",
|
|
|
|
|
"openssl_digest.cc",
|
|
|
|
|
"openssl_digest.h",
|
|
|
|
|
"openssl_key_pair.cc",
|
|
|
|
|
"openssl_key_pair.h",
|
|
|
|
|
"openssl_session_cache.cc",
|
|
|
|
|
"openssl_session_cache.h",
|
|
|
|
|
"openssl_stream_adapter.cc",
|
|
|
|
|
"openssl_stream_adapter.h",
|
|
|
|
|
"openssl_utility.cc",
|
|
|
|
|
"openssl_utility.h",
|
|
|
|
|
"rtc_certificate.cc",
|
|
|
|
|
"rtc_certificate.h",
|
|
|
|
|
"ssl_adapter.cc",
|
|
|
|
|
"ssl_adapter.h",
|
|
|
|
|
"ssl_certificate.cc",
|
|
|
|
|
"ssl_certificate.h",
|
|
|
|
|
"ssl_fingerprint.cc",
|
|
|
|
|
"ssl_fingerprint.h",
|
|
|
|
|
"ssl_identity.cc",
|
|
|
|
|
"ssl_identity.h",
|
|
|
|
|
"ssl_stream_adapter.cc",
|
|
|
|
|
"ssl_stream_adapter.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":async_socket",
|
|
|
|
|
":buffer",
|
|
|
|
|
":checks",
|
|
|
|
|
":copy_on_write_buffer",
|
|
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
":socket",
|
|
|
|
|
":socket_address",
|
|
|
|
|
":stream",
|
|
|
|
|
":stringutils",
|
|
|
|
|
":threading",
|
|
|
|
|
":timeutils",
|
|
|
|
|
"../api:array_view",
|
|
|
|
|
"../api:refcountedbase",
|
|
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"../api/task_queue:pending_task_safety_flag",
|
|
|
|
|
"../api/units:time_delta",
|
|
|
|
|
"../system_wrappers:field_trial",
|
2023-06-15 00:32:48 +02:00
|
|
|
"synchronization:mutex",
|
2023-01-04 12:01:09 +01:00
|
|
|
"system:rtc_export",
|
|
|
|
|
"task_utils:repeating_task",
|
|
|
|
|
"third_party/base64",
|
|
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
|
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
2023-09-05 09:21:57 +02:00
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
2023-01-04 12:01:09 +01:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# If we are building the SSL library ourselves, we know it's BoringSSL.
|
|
|
|
|
if (rtc_build_ssl) {
|
|
|
|
|
sources += [
|
|
|
|
|
"boringssl_certificate.cc",
|
|
|
|
|
"boringssl_certificate.h",
|
|
|
|
|
"boringssl_identity.cc",
|
|
|
|
|
"boringssl_identity.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps += [ "//third_party/boringssl" ]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [
|
|
|
|
|
"openssl_certificate.cc",
|
|
|
|
|
"openssl_certificate.h",
|
|
|
|
|
"openssl_identity.cc",
|
|
|
|
|
"openssl_identity.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
configs += [ ":external_ssl_library" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (build_with_chromium) {
|
|
|
|
|
include_dirs = [ "../../boringssl/src/include" ]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [ "ssl_roots.h" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
deps += [ ":win32" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("crypt_string") {
|
|
|
|
|
sources = [
|
|
|
|
|
"crypt_string.cc",
|
|
|
|
|
"crypt_string.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_library("http_common") {
|
|
|
|
|
sources = [
|
|
|
|
|
"http_common.cc",
|
|
|
|
|
"http_common.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":crypt_string",
|
|
|
|
|
":logging",
|
|
|
|
|
":socket_address",
|
|
|
|
|
":ssl",
|
|
|
|
|
":stringutils",
|
|
|
|
|
":zero_memory",
|
|
|
|
|
"third_party/base64",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-29 08:03:04 +02:00
|
|
|
rtc_source_set("gtest_prod") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "gtest_prod_util.h" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("gunit_helpers") {
|
2018-11-23 13:15:08 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"gunit.cc",
|
|
|
|
|
"gunit.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":logging",
|
|
|
|
|
":rtc_base_tests_utils",
|
|
|
|
|
":stringutils",
|
2021-01-15 10:41:01 +01:00
|
|
|
":threading",
|
2018-11-23 13:15:08 +01:00
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
2020-06-05 14:30:41 +02:00
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
2018-11-23 13:15:08 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("testclient") {
|
2018-11-23 13:15:08 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"test_client.cc",
|
|
|
|
|
"test_client.h",
|
2018-11-23 13:15:08 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
2023-01-04 12:01:09 +01:00
|
|
|
":async_udp_socket",
|
2018-11-23 13:15:08 +01:00
|
|
|
":gunit_helpers",
|
|
|
|
|
":rtc_base_tests_utils",
|
2021-01-15 10:41:01 +01:00
|
|
|
":threading",
|
2018-11-23 13:15:08 +01:00
|
|
|
":timeutils",
|
2020-07-08 17:55:58 +02:00
|
|
|
"synchronization:mutex",
|
2018-11-23 13:15:08 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-23 12:04:40 +02:00
|
|
|
rtc_library("callback_list_unittests") {
|
2020-09-16 10:34:21 -07:00
|
|
|
testonly = true
|
|
|
|
|
|
2020-10-23 12:04:40 +02:00
|
|
|
sources = [ "callback_list_unittest.cc" ]
|
2020-09-16 10:34:21 -07:00
|
|
|
deps = [
|
2020-10-23 12:04:40 +02:00
|
|
|
":callback_list",
|
2020-09-16 10:34:21 -07:00
|
|
|
":gunit_helpers",
|
|
|
|
|
"../api:function_view",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_base_tests_utils") {
|
2017-06-29 08:03:04 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"cpu_time.cc",
|
|
|
|
|
"cpu_time.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"fake_clock.cc",
|
|
|
|
|
"fake_clock.h",
|
2018-09-12 22:51:55 -07:00
|
|
|
"fake_mdns_responder.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"fake_network.h",
|
|
|
|
|
"fake_ssl_identity.cc",
|
|
|
|
|
"fake_ssl_identity.h",
|
|
|
|
|
"firewall_socket_server.cc",
|
|
|
|
|
"firewall_socket_server.h",
|
2018-11-01 09:33:08 +01:00
|
|
|
"memory_stream.cc",
|
|
|
|
|
"memory_stream.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"memory_usage.cc",
|
|
|
|
|
"memory_usage.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"nat_server.cc",
|
|
|
|
|
"nat_server.h",
|
|
|
|
|
"nat_socket_factory.cc",
|
|
|
|
|
"nat_socket_factory.h",
|
|
|
|
|
"nat_types.cc",
|
|
|
|
|
"nat_types.h",
|
|
|
|
|
"proxy_server.cc",
|
|
|
|
|
"proxy_server.h",
|
2018-12-17 14:04:05 +01:00
|
|
|
"server_socket_adapters.cc",
|
|
|
|
|
"server_socket_adapters.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"sigslot_tester.h",
|
|
|
|
|
"socket_stream.cc",
|
|
|
|
|
"socket_stream.h",
|
|
|
|
|
"test_base64.h",
|
|
|
|
|
"test_certificate_verifier.h",
|
|
|
|
|
"test_echo_server.cc",
|
|
|
|
|
"test_echo_server.h",
|
|
|
|
|
"test_utils.cc",
|
|
|
|
|
"test_utils.h",
|
|
|
|
|
"virtual_socket_server.cc",
|
|
|
|
|
"virtual_socket_server.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
2023-01-04 12:01:09 +01:00
|
|
|
":async_packet_socket",
|
2021-01-15 10:41:01 +01:00
|
|
|
":async_socket",
|
2023-01-04 12:01:09 +01:00
|
|
|
":async_tcp_socket",
|
|
|
|
|
":async_udp_socket",
|
2022-04-19 17:35:04 +02:00
|
|
|
":byte_buffer",
|
2017-12-13 16:05:42 +01:00
|
|
|
":checks",
|
2021-01-15 10:41:01 +01:00
|
|
|
":ip_address",
|
2022-04-04 15:06:30 +02:00
|
|
|
":logging",
|
2022-04-04 15:18:46 +02:00
|
|
|
":macromagic",
|
2023-01-04 12:01:09 +01:00
|
|
|
":mdns_responder_interface",
|
|
|
|
|
":network",
|
2022-04-04 16:57:52 +02:00
|
|
|
":rtc_event",
|
2021-01-15 10:41:01 +01:00
|
|
|
":socket",
|
2023-01-04 12:01:09 +01:00
|
|
|
":socket_adapters",
|
2021-01-15 10:41:01 +01:00
|
|
|
":socket_address",
|
2023-01-04 12:01:09 +01:00
|
|
|
":socket_address_pair",
|
2021-01-15 10:41:01 +01:00
|
|
|
":socket_factory",
|
|
|
|
|
":socket_server",
|
2023-01-04 12:01:09 +01:00
|
|
|
":ssl",
|
|
|
|
|
":stream",
|
2022-04-04 17:14:02 +02:00
|
|
|
":stringutils",
|
2021-01-15 10:41:01 +01:00
|
|
|
":threading",
|
2022-04-04 17:16:15 +02:00
|
|
|
":timeutils",
|
2022-09-16 12:41:11 +02:00
|
|
|
"../api:make_ref_counted",
|
|
|
|
|
"../api:refcountedbase",
|
|
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"../api/task_queue",
|
2018-05-08 14:52:22 +02:00
|
|
|
"../api/units:time_delta",
|
2019-04-17 10:36:03 +02:00
|
|
|
"../api/units:timestamp",
|
2022-03-28 14:58:26 +02:00
|
|
|
"../test:scoped_key_value_config",
|
|
|
|
|
"memory:always_valid_pointer",
|
2019-03-28 13:30:15 +01:00
|
|
|
"memory:fifo_buffer",
|
2020-07-08 17:55:58 +02:00
|
|
|
"synchronization:mutex",
|
2018-07-25 15:04:28 +02:00
|
|
|
"third_party/sigslot",
|
2020-06-05 14:30:41 +02:00
|
|
|
]
|
|
|
|
|
absl_deps = [
|
2019-03-25 13:48:30 -07:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2022-03-17 15:47:49 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2022-09-16 12:41:11 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
2023-01-16 10:43:34 +11:00
|
|
|
if (is_fuchsia) {
|
|
|
|
|
deps += [ "//third_party/fuchsia-sdk/sdk/pkg/zx" ]
|
|
|
|
|
}
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("task_queue_for_test") {
|
2018-02-19 12:41:43 +01:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"task_queue_for_test.cc",
|
|
|
|
|
"task_queue_for_test.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
2022-04-04 15:18:46 +02:00
|
|
|
":macromagic",
|
2019-03-19 18:08:37 +01:00
|
|
|
":rtc_event",
|
2018-02-19 12:41:43 +01:00
|
|
|
":rtc_task_queue",
|
2022-07-18 17:04:56 +02:00
|
|
|
"../api:function_view",
|
2019-10-15 10:04:57 +02:00
|
|
|
"../api/task_queue",
|
2019-03-19 18:08:37 +01:00
|
|
|
"../api/task_queue:default_task_queue_factory",
|
2018-02-19 12:41:43 +01:00
|
|
|
]
|
2022-07-18 17:04:56 +02:00
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/cleanup",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
2018-02-19 12:41:43 +01:00
|
|
|
}
|
|
|
|
|
|
2017-06-29 08:03:04 +02:00
|
|
|
if (rtc_include_tests) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("sigslot_unittest") {
|
2018-07-25 15:04:28 +02:00
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "sigslot_unittest.cc" ]
|
2018-07-25 15:04:28 +02:00
|
|
|
deps = [
|
2018-11-23 13:15:08 +01:00
|
|
|
":gunit_helpers",
|
2018-07-25 15:04:28 +02:00
|
|
|
":rtc_base_tests_utils",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../test:test_support",
|
2020-07-08 17:55:58 +02:00
|
|
|
"synchronization:mutex",
|
2018-07-25 15:04:28 +02:00
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-18 10:03:16 +02:00
|
|
|
rtc_library("untyped_function_unittest") {
|
2020-09-15 11:06:34 +02:00
|
|
|
testonly = true
|
2020-09-18 10:03:16 +02:00
|
|
|
sources = [ "untyped_function_unittest.cc" ]
|
2020-09-15 11:06:34 +02:00
|
|
|
deps = [
|
2020-09-18 10:03:16 +02:00
|
|
|
":untyped_function",
|
2020-09-15 11:06:34 +02:00
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-21 15:21:55 +02:00
|
|
|
rtc_library("rtc_operations_chain_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "operations_chain_unittest.cc" ]
|
2019-10-21 15:21:55 +02:00
|
|
|
deps = [
|
2020-08-25 17:11:20 +02:00
|
|
|
":gunit_helpers",
|
2019-10-21 15:21:55 +02:00
|
|
|
":rtc_event",
|
|
|
|
|
":rtc_operations_chain",
|
2021-01-15 10:41:01 +01:00
|
|
|
":threading",
|
2019-10-21 15:21:55 +02:00
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
rtc_library("rtc_base_nonparallel_tests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"cpu_time_unittest.cc",
|
|
|
|
|
"file_rotating_stream_unittest.cc",
|
|
|
|
|
"null_socket_server_unittest.cc",
|
|
|
|
|
"physical_socket_server_unittest.cc",
|
|
|
|
|
"socket_address_unittest.cc",
|
|
|
|
|
"socket_unittest.cc",
|
|
|
|
|
"socket_unittest.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2023-01-04 12:01:09 +01:00
|
|
|
":async_packet_socket",
|
|
|
|
|
":async_udp_socket",
|
2022-04-19 17:07:23 +02:00
|
|
|
":buffer",
|
2021-02-01 09:56:37 +00:00
|
|
|
":checks",
|
2023-01-04 12:01:09 +01:00
|
|
|
":file_rotating_stream",
|
2021-02-01 09:56:37 +00:00
|
|
|
":gunit_helpers",
|
|
|
|
|
":ip_address",
|
2022-04-04 15:06:30 +02:00
|
|
|
":logging",
|
2022-04-04 15:18:46 +02:00
|
|
|
":macromagic",
|
2021-02-01 09:56:37 +00:00
|
|
|
":net_helpers",
|
2023-07-27 08:55:49 +02:00
|
|
|
":net_test_helpers",
|
2021-02-01 09:56:37 +00:00
|
|
|
":null_socket_server",
|
2022-04-14 12:18:28 +02:00
|
|
|
":platform_thread",
|
2021-02-01 09:56:37 +00:00
|
|
|
":rtc_base_tests_utils",
|
|
|
|
|
":socket",
|
|
|
|
|
":socket_address",
|
|
|
|
|
":socket_server",
|
|
|
|
|
":testclient",
|
|
|
|
|
":threading",
|
2022-04-04 17:16:15 +02:00
|
|
|
":timeutils",
|
2022-08-25 11:40:13 +00:00
|
|
|
"../api/units:time_delta",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../system_wrappers",
|
2022-11-08 12:48:52 +01:00
|
|
|
"../test:field_trial",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../test:fileutils",
|
|
|
|
|
"../test:test_main",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
"third_party/sigslot",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
2022-03-17 15:47:49 +01:00
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
2021-02-01 09:56:37 +00:00
|
|
|
}
|
2017-06-29 08:03:04 +02:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
rtc_library("rtc_base_approved_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"base64_unittest.cc",
|
|
|
|
|
"bit_buffer_unittest.cc",
|
2023-07-21 14:06:20 +02:00
|
|
|
"bitrate_tracker_unittest.cc",
|
2021-08-31 15:27:51 +02:00
|
|
|
"bitstream_reader_unittest.cc",
|
2021-02-01 09:56:37 +00:00
|
|
|
"bounded_inline_vector_unittest.cc",
|
|
|
|
|
"buffer_queue_unittest.cc",
|
|
|
|
|
"buffer_unittest.cc",
|
|
|
|
|
"byte_buffer_unittest.cc",
|
|
|
|
|
"byte_order_unittest.cc",
|
|
|
|
|
"checks_unittest.cc",
|
|
|
|
|
"copy_on_write_buffer_unittest.cc",
|
|
|
|
|
"deprecated/recursive_critical_section_unittest.cc",
|
|
|
|
|
"event_tracer_unittest.cc",
|
|
|
|
|
"event_unittest.cc",
|
2023-07-21 14:06:20 +02:00
|
|
|
"frequency_tracker_unittest.cc",
|
2021-02-01 09:56:37 +00:00
|
|
|
"logging_unittest.cc",
|
|
|
|
|
"numerics/divide_round_unittest.cc",
|
|
|
|
|
"numerics/histogram_percentile_counter_unittest.cc",
|
|
|
|
|
"numerics/mod_ops_unittest.cc",
|
|
|
|
|
"numerics/moving_max_counter_unittest.cc",
|
|
|
|
|
"numerics/safe_compare_unittest.cc",
|
|
|
|
|
"numerics/safe_minmax_unittest.cc",
|
|
|
|
|
"numerics/sample_counter_unittest.cc",
|
|
|
|
|
"one_time_event_unittest.cc",
|
|
|
|
|
"platform_thread_unittest.cc",
|
|
|
|
|
"random_unittest.cc",
|
|
|
|
|
"rate_limiter_unittest.cc",
|
|
|
|
|
"rate_statistics_unittest.cc",
|
|
|
|
|
"rate_tracker_unittest.cc",
|
|
|
|
|
"ref_counted_object_unittest.cc",
|
|
|
|
|
"sanitizer_unittest.cc",
|
|
|
|
|
"string_encode_unittest.cc",
|
|
|
|
|
"string_to_number_unittest.cc",
|
|
|
|
|
"string_utils_unittest.cc",
|
|
|
|
|
"strings/string_builder_unittest.cc",
|
|
|
|
|
"strings/string_format_unittest.cc",
|
2021-09-21 14:51:05 +02:00
|
|
|
"strong_alias_unittest.cc",
|
2021-02-01 09:56:37 +00:00
|
|
|
"swap_queue_unittest.cc",
|
|
|
|
|
"thread_annotations_unittest.cc",
|
|
|
|
|
"time_utils_unittest.cc",
|
|
|
|
|
"timestamp_aligner_unittest.cc",
|
|
|
|
|
"virtual_socket_unittest.cc",
|
|
|
|
|
"zero_memory_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2023-01-04 12:01:09 +01:00
|
|
|
":async_packet_socket",
|
|
|
|
|
":async_udp_socket",
|
2022-04-14 13:34:56 +02:00
|
|
|
":bit_buffer",
|
2023-07-21 14:06:20 +02:00
|
|
|
":bitrate_tracker",
|
2021-08-31 15:27:51 +02:00
|
|
|
":bitstream_reader",
|
2021-02-01 09:56:37 +00:00
|
|
|
":bounded_inline_vector",
|
2022-04-19 17:07:23 +02:00
|
|
|
":buffer",
|
2022-04-19 17:14:26 +02:00
|
|
|
":buffer_queue",
|
2022-04-19 17:35:04 +02:00
|
|
|
":byte_buffer",
|
2022-04-19 17:18:36 +02:00
|
|
|
":byte_order",
|
2021-02-01 09:56:37 +00:00
|
|
|
":checks",
|
2022-04-19 17:40:46 +02:00
|
|
|
":copy_on_write_buffer",
|
2021-06-22 11:24:06 +02:00
|
|
|
":criticalsection",
|
2021-02-01 09:56:37 +00:00
|
|
|
":divide_round",
|
2022-04-19 17:47:13 +02:00
|
|
|
":event_tracer",
|
2023-07-21 14:06:20 +02:00
|
|
|
":frequency_tracker",
|
2021-02-01 09:56:37 +00:00
|
|
|
":gunit_helpers",
|
2022-04-14 13:48:10 +02:00
|
|
|
":histogram_percentile_counter",
|
2021-02-01 09:56:37 +00:00
|
|
|
":ip_address",
|
2022-04-04 15:06:30 +02:00
|
|
|
":logging",
|
2022-04-04 15:18:46 +02:00
|
|
|
":macromagic",
|
2022-04-14 13:41:58 +02:00
|
|
|
":mod_ops",
|
|
|
|
|
":moving_max_counter",
|
2021-02-01 09:56:37 +00:00
|
|
|
":null_socket_server",
|
2022-04-14 13:18:04 +02:00
|
|
|
":one_time_event",
|
2022-04-14 12:18:28 +02:00
|
|
|
":platform_thread",
|
2022-04-14 12:41:26 +02:00
|
|
|
":random",
|
2021-02-01 09:56:37 +00:00
|
|
|
":rate_limiter",
|
2022-04-19 15:58:39 +02:00
|
|
|
":rate_statistics",
|
2022-04-19 15:50:28 +02:00
|
|
|
":rate_tracker",
|
2022-04-05 02:54:12 +02:00
|
|
|
":refcount",
|
2021-02-01 09:56:37 +00:00
|
|
|
":rtc_base_tests_utils",
|
2022-04-04 16:57:52 +02:00
|
|
|
":rtc_event",
|
2021-02-01 09:56:37 +00:00
|
|
|
":rtc_numerics",
|
|
|
|
|
":rtc_task_queue",
|
|
|
|
|
":safe_compare",
|
|
|
|
|
":safe_minmax",
|
2022-04-14 13:44:39 +02:00
|
|
|
":sample_counter",
|
2021-02-01 09:56:37 +00:00
|
|
|
":sanitizer",
|
|
|
|
|
":socket",
|
|
|
|
|
":socket_address",
|
|
|
|
|
":socket_server",
|
2023-01-04 12:01:09 +01:00
|
|
|
":ssl",
|
2021-02-01 09:56:37 +00:00
|
|
|
":stringutils",
|
2022-04-14 13:08:44 +02:00
|
|
|
":strong_alias",
|
2022-04-14 13:23:51 +02:00
|
|
|
":swap_queue",
|
2021-02-01 09:56:37 +00:00
|
|
|
":testclient",
|
|
|
|
|
":threading",
|
2022-04-14 13:20:12 +02:00
|
|
|
":timestamp_aligner",
|
2022-04-04 17:16:15 +02:00
|
|
|
":timeutils",
|
2022-04-14 13:23:51 +02:00
|
|
|
":zero_memory",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../api:array_view",
|
2022-06-14 15:48:26 +02:00
|
|
|
"../api:make_ref_counted",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../api:scoped_refptr",
|
|
|
|
|
"../api/numerics",
|
2023-07-21 14:06:20 +02:00
|
|
|
"../api/units:data_rate",
|
|
|
|
|
"../api/units:data_size",
|
|
|
|
|
"../api/units:frequency",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../api/units:time_delta",
|
2023-07-21 14:06:20 +02:00
|
|
|
"../api/units:timestamp",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../system_wrappers",
|
|
|
|
|
"../test:fileutils",
|
|
|
|
|
"../test:test_main",
|
|
|
|
|
"../test:test_support",
|
2021-10-05 15:01:26 -04:00
|
|
|
"containers:flat_map",
|
2021-06-29 09:21:11 +02:00
|
|
|
"containers:unittests",
|
2021-02-01 09:56:37 +00:00
|
|
|
"memory:unittests",
|
|
|
|
|
"synchronization:mutex",
|
2022-09-02 15:40:26 +02:00
|
|
|
"task_utils:repeating_task",
|
2021-02-01 09:56:37 +00:00
|
|
|
"third_party/base64",
|
|
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
|
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2021-08-31 15:27:51 +02:00
|
|
|
"//third_party/abseil-cpp/absl/numeric:bits",
|
2022-03-14 13:32:04 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2021-05-07 15:02:36 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2021-02-01 09:56:37 +00:00
|
|
|
]
|
2022-04-27 10:33:27 +02:00
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
deps += [ "win:windows_version_unittest" ]
|
|
|
|
|
}
|
2021-02-01 09:56:37 +00:00
|
|
|
}
|
2017-06-29 08:03:04 +02:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
rtc_library("rtc_task_queue_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [ "task_queue_unittest.cc" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":gunit_helpers",
|
|
|
|
|
":rtc_base_tests_utils",
|
2022-04-04 16:57:52 +02:00
|
|
|
":rtc_event",
|
2021-02-01 09:56:37 +00:00
|
|
|
":rtc_task_queue",
|
|
|
|
|
":task_queue_for_test",
|
2022-04-04 17:16:15 +02:00
|
|
|
":timeutils",
|
2022-07-18 17:04:56 +02:00
|
|
|
"../api/units:time_delta",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../test:test_main",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/memory" ]
|
|
|
|
|
}
|
2017-06-29 08:03:04 +02:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
rtc_library("weak_ptr_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [ "weak_ptr_unittest.cc" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":gunit_helpers",
|
|
|
|
|
":rtc_base_tests_utils",
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":task_queue_for_test",
|
|
|
|
|
":weak_ptr",
|
|
|
|
|
"../test:test_main",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
2018-10-02 16:25:59 +02:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
rtc_library("rtc_numerics_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"numerics/event_based_exponential_moving_average_unittest.cc",
|
|
|
|
|
"numerics/exp_filter_unittest.cc",
|
|
|
|
|
"numerics/moving_average_unittest.cc",
|
2022-09-14 16:22:24 +02:00
|
|
|
"numerics/moving_percentile_filter_unittest.cc",
|
2021-02-01 09:56:37 +00:00
|
|
|
"numerics/percentile_filter_unittest.cc",
|
|
|
|
|
"numerics/running_statistics_unittest.cc",
|
2023-01-09 10:21:43 +00:00
|
|
|
"numerics/sequence_number_unwrapper_unittest.cc",
|
2021-02-01 09:56:37 +00:00
|
|
|
"numerics/sequence_number_util_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":rtc_numerics",
|
2022-12-15 09:30:52 +00:00
|
|
|
":timeutils",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../test:test_main",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
absl_deps = [ "//third_party/abseil-cpp/absl/algorithm:container" ]
|
|
|
|
|
}
|
2018-10-02 16:25:59 +02:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
rtc_library("rtc_json_unittests") {
|
|
|
|
|
testonly = true
|
2017-06-29 08:03:04 +02:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
sources = [ "strings/json_unittest.cc" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":gunit_helpers",
|
|
|
|
|
":rtc_base_tests_utils",
|
|
|
|
|
":rtc_json",
|
|
|
|
|
"../test:test_main",
|
|
|
|
|
"../test:test_support",
|
2020-09-26 11:57:26 +02:00
|
|
|
]
|
|
|
|
|
}
|
2021-02-01 09:56:37 +00:00
|
|
|
|
|
|
|
|
rtc_library("rtc_base_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
defines = []
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"crc32_unittest.cc",
|
|
|
|
|
"data_rate_limiter_unittest.cc",
|
|
|
|
|
"fake_clock_unittest.cc",
|
|
|
|
|
"helpers_unittest.cc",
|
|
|
|
|
"ip_address_unittest.cc",
|
|
|
|
|
"memory_usage_unittest.cc",
|
|
|
|
|
"message_digest_unittest.cc",
|
|
|
|
|
"nat_unittest.cc",
|
|
|
|
|
"network_route_unittest.cc",
|
|
|
|
|
"network_unittest.cc",
|
|
|
|
|
"proxy_unittest.cc",
|
|
|
|
|
"rolling_accumulator_unittest.cc",
|
|
|
|
|
"rtc_certificate_generator_unittest.cc",
|
|
|
|
|
"rtc_certificate_unittest.cc",
|
|
|
|
|
"sigslot_tester_unittest.cc",
|
|
|
|
|
"test_client_unittest.cc",
|
|
|
|
|
"thread_unittest.cc",
|
|
|
|
|
"unique_id_generator_unittest.cc",
|
2020-09-26 11:57:26 +02:00
|
|
|
]
|
2021-02-01 09:56:37 +00:00
|
|
|
deps = [
|
2023-01-04 12:01:09 +01:00
|
|
|
":async_packet_socket",
|
|
|
|
|
":async_tcp_socket",
|
|
|
|
|
":async_udp_socket",
|
2022-04-19 17:07:23 +02:00
|
|
|
":buffer",
|
2022-04-19 17:14:26 +02:00
|
|
|
":buffer_queue",
|
2021-02-01 09:56:37 +00:00
|
|
|
":checks",
|
2023-01-04 12:01:09 +01:00
|
|
|
":crc32",
|
|
|
|
|
":data_rate_limiter",
|
2021-02-01 09:56:37 +00:00
|
|
|
":gunit_helpers",
|
2023-01-04 12:01:09 +01:00
|
|
|
":ifaddrs_converter",
|
2021-02-01 09:56:37 +00:00
|
|
|
":ip_address",
|
2022-04-04 15:06:30 +02:00
|
|
|
":logging",
|
2022-04-04 15:18:46 +02:00
|
|
|
":macromagic",
|
2021-02-01 09:56:37 +00:00
|
|
|
":net_helpers",
|
2023-07-27 08:55:49 +02:00
|
|
|
":net_test_helpers",
|
2023-01-04 12:01:09 +01:00
|
|
|
":network",
|
|
|
|
|
":network_route",
|
2021-02-01 09:56:37 +00:00
|
|
|
":null_socket_server",
|
2022-09-02 11:10:24 +02:00
|
|
|
":refcount",
|
2023-01-04 12:01:09 +01:00
|
|
|
":rolling_accumulator",
|
2021-02-01 09:56:37 +00:00
|
|
|
":rtc_base_tests_utils",
|
2023-01-04 12:01:09 +01:00
|
|
|
":rtc_certificate_generator",
|
2022-04-04 16:57:52 +02:00
|
|
|
":rtc_event",
|
2022-04-04 17:04:37 +02:00
|
|
|
":safe_conversions",
|
2021-08-12 10:32:30 +02:00
|
|
|
":socket",
|
2023-01-04 12:01:09 +01:00
|
|
|
":socket_adapters",
|
2021-02-01 09:56:37 +00:00
|
|
|
":socket_address",
|
|
|
|
|
":socket_factory",
|
|
|
|
|
":socket_server",
|
2023-01-04 12:01:09 +01:00
|
|
|
":ssl",
|
|
|
|
|
":stream",
|
2021-02-01 09:56:37 +00:00
|
|
|
":stringutils",
|
|
|
|
|
":testclient",
|
|
|
|
|
":threading",
|
2022-04-04 17:16:15 +02:00
|
|
|
":timeutils",
|
2023-01-04 12:01:09 +01:00
|
|
|
":unique_id_generator",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../api:array_view",
|
2022-08-23 12:57:16 +02:00
|
|
|
"../api:field_trials_view",
|
2022-06-14 15:48:26 +02:00
|
|
|
"../api:make_ref_counted",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../api/task_queue",
|
2022-06-16 21:27:45 +02:00
|
|
|
"../api/task_queue:pending_task_safety_flag",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../api/task_queue:task_queue_test",
|
2022-07-06 19:42:34 +02:00
|
|
|
"../api/units:time_delta",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../test:field_trial",
|
|
|
|
|
"../test:fileutils",
|
|
|
|
|
"../test:rtc_expect_death",
|
2022-03-28 14:58:26 +02:00
|
|
|
"../test:scoped_key_value_config",
|
2021-02-01 09:56:37 +00:00
|
|
|
"../test:test_main",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
"memory:fifo_buffer",
|
|
|
|
|
"synchronization:mutex",
|
|
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
2023-03-14 09:56:25 -07:00
|
|
|
if (rtc_enable_google_benchmarks) {
|
2021-02-01 09:56:37 +00:00
|
|
|
deps += [ "synchronization:synchronization_unittests" ]
|
|
|
|
|
}
|
|
|
|
|
if (is_win) {
|
2023-05-24 18:49:10 +02:00
|
|
|
sources += [ "win32_unittest.cc" ]
|
2021-02-01 09:56:37 +00:00
|
|
|
deps += [ ":win32" ]
|
|
|
|
|
}
|
2023-09-04 09:40:19 +02:00
|
|
|
if (is_posix || is_fuchsia || is_win) {
|
2021-02-01 09:56:37 +00:00
|
|
|
sources += [
|
|
|
|
|
"openssl_adapter_unittest.cc",
|
|
|
|
|
"openssl_session_cache_unittest.cc",
|
|
|
|
|
"openssl_utility_unittest.cc",
|
|
|
|
|
"ssl_adapter_unittest.cc",
|
|
|
|
|
"ssl_identity_unittest.cc",
|
|
|
|
|
"ssl_stream_adapter_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
absl_deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
2022-07-18 17:04:56 +02:00
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
2021-02-01 09:56:37 +00:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
2022-04-14 11:58:24 +02:00
|
|
|
|
2021-02-01 09:56:37 +00:00
|
|
|
if (build_with_chromium) {
|
|
|
|
|
include_dirs = [ "../../boringssl/src/include" ]
|
|
|
|
|
}
|
|
|
|
|
if (rtc_build_ssl) {
|
|
|
|
|
deps += [ "//third_party/boringssl" ]
|
|
|
|
|
} else {
|
|
|
|
|
configs += [ ":external_ssl_library" ]
|
|
|
|
|
}
|
2017-08-29 12:18:32 -07:00
|
|
|
}
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-20 08:38:58 +02:00
|
|
|
if (is_android) {
|
2017-11-07 15:36:33 +00:00
|
|
|
rtc_android_library("base_java") {
|
2019-07-03 14:13:08 +02:00
|
|
|
visibility = [ "*" ]
|
2019-12-23 14:02:25 -08:00
|
|
|
sources = [
|
2017-06-29 08:03:04 +02:00
|
|
|
"java/src/org/webrtc/ContextUtils.java",
|
2018-06-21 14:31:38 +02:00
|
|
|
"java/src/org/webrtc/Loggable.java",
|
2017-06-29 08:03:04 +02:00
|
|
|
"java/src/org/webrtc/Logging.java",
|
|
|
|
|
"java/src/org/webrtc/Size.java",
|
|
|
|
|
"java/src/org/webrtc/ThreadUtils.java",
|
|
|
|
|
]
|
2021-08-14 11:41:59 +09:00
|
|
|
deps = [ "//third_party/androidx:androidx_annotation_annotation_java" ]
|
2017-06-20 08:38:58 +02:00
|
|
|
}
|
2020-08-07 11:08:34 +02:00
|
|
|
java_cpp_enum("network_monitor_enums") {
|
|
|
|
|
sources = [ "network_monitor.h" ]
|
2020-08-07 14:08:33 +02:00
|
|
|
visibility = [ "*" ]
|
2020-08-07 11:08:34 +02:00
|
|
|
}
|
2017-06-20 08:38:58 +02:00
|
|
|
}
|