Prevent rtc_base:log_sinks from being defined in Chromium
This target belongs only to WebRTC and shouldn't be defined there.
Bug: webrtc:9838
Change-Id: Id44573ed4649170820a5a61b68d6077784da8549
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/290722
Reviewed-by: Jeremy Leconte <jleconte@google.com>
Reviewed-by: Jeremy Leconte <jleconte@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39041}
diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn
index 3f848d5..3578fb8 100644
--- a/rtc_base/BUILD.gn
+++ b/rtc_base/BUILD.gn
@@ -1315,17 +1315,19 @@
}
}
-rtc_library("log_sinks") {
- sources = [
- "log_sinks.cc",
- "log_sinks.h",
- ]
- deps = [
- ":checks",
- ":file_rotating_stream",
- ":logging",
- ]
- absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
+if (!build_with_chromium) {
+ rtc_library("log_sinks") {
+ sources = [
+ "log_sinks.cc",
+ "log_sinks.h",
+ ]
+ deps = [
+ ":checks",
+ ":file_rotating_stream",
+ ":logging",
+ ]
+ absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
+ }
}
rtc_library("network") {