Move mod_ops out of rtc_base_approved
Bug: webrtc:9838
Change-Id: I9d974e027f114098d87da368fad0c040c072a893
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/258771
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36608}
diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn
index 9167173..b025ebf 100644
--- a/rtc_base/BUILD.gn
+++ b/rtc_base/BUILD.gn
@@ -87,6 +87,8 @@
":location",
":logging",
":macromagic",
+ ":mod_ops",
+ ":moving_max_counter",
":one_time_event",
":platform_thread",
":platform_thread_types",
@@ -134,8 +136,8 @@
"location.h", # Transitional, use :location
"numerics/histogram_percentile_counter.cc",
"numerics/histogram_percentile_counter.h",
- "numerics/mod_ops.h",
- "numerics/moving_max_counter.h",
+ "numerics/mod_ops.h", # Transitional, use :mod_ops
+ "numerics/moving_max_counter.h", # Transitional, use :moving_max_counter
"numerics/sample_counter.cc",
"numerics/sample_counter.h",
"one_time_event.h", # Transitional, use :one_time_event
@@ -190,6 +192,19 @@
}
}
+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" ]
+}
+
rtc_source_set("one_time_event") {
visibility = [ "*" ]
sources = [ "one_time_event.h" ]
@@ -718,6 +733,7 @@
]
deps = [
":checks",
+ ":mod_ops",
":rtc_base_approved",
]
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
@@ -1517,6 +1533,8 @@
":location",
":logging",
":macromagic",
+ ":mod_ops",
+ ":moving_max_counter",
":null_socket_server",
":one_time_event",
":platform_thread",