Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Unified Diff: webrtc/rtc_base/BUILD.gn

Issue 2988433002: Decoupling rtc_base_approved from Obj-C code (Closed)
Patch Set: tightening visibility of rtc_base_approved_objc_all_dependent_config Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/BUILD.gn
diff --git a/webrtc/rtc_base/BUILD.gn b/webrtc/rtc_base/BUILD.gn
index 03e8ea608a78c6420eca399840014234c45461e5..be37ae5e45cdc28dbdb024895c66c4c1742b6758 100644
--- a/webrtc/rtc_base/BUILD.gn
+++ b/webrtc/rtc_base/BUILD.gn
@@ -31,12 +31,6 @@ group("base") {
}
}
-config("rtc_base_approved_all_dependent_config") {
- if (is_mac && !build_with_chromium) {
- libs = [ "Foundation.framework" ] # needed for logging_mac.mm
- }
-}
-
config("rtc_base_chromium_config") {
defines = [ "NO_MAIN_THREAD_WRAPPING" ]
}
@@ -86,16 +80,28 @@ source_set("compile_assert_c") {
]
}
+rtc_source_set("rtc_base_approved") {
+ public_deps = [
+ ":rtc_base_approved_generic",
+ ]
+ if (is_mac && !build_with_chromium) {
+ public_deps += [ ":rtc_base_approved_objc" ]
+ }
+}
+
# The subset of rtc_base approved for use outside of libjingle.
-rtc_static_library("rtc_base_approved") {
+rtc_source_set("rtc_base_approved_generic") {
# TODO(kjellander): Remove (bugs.webrtc.org/7480)
# Enabling GN check triggers a cyclic dependency caused by rate_limiter.cc:
# :rtc_base_approved -> ../system_wrappers -> :rtc_base_approved
kwiberg-webrtc 2017/09/01 12:31:05 This comment is supposed to apply to check_include
+ visibility = [
+ ":rtc_base_approved",
+ ":rtc_base_approved_objc",
+ ]
check_includes = false
defines = []
libs = []
deps = []
- all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ]
sources = [
"array_view.h",
@@ -211,7 +217,6 @@ rtc_static_library("rtc_base_approved") {
sources += [
"logging.cc",
"logging.h",
- "logging_mac.mm",
]
}
if (is_component_build && is_win) {
@@ -291,6 +296,24 @@ rtc_static_library("rtc_base_approved") {
}
}
+if (is_mac && !build_with_chromium) {
+ config("rtc_base_approved_objc_all_dependent_config") {
+ visibility = [ ":rtc_base_approved_objc" ]
+ libs = [ "Foundation.framework" ] # needed for logging_mac.mm
+ }
+
+ rtc_source_set("rtc_base_approved_objc") {
+ visibility = [ ":rtc_base_approved" ]
+ all_dependent_configs = [ ":rtc_base_approved_objc_all_dependent_config" ]
+ sources = [
+ "logging_mac.mm",
+ ]
+ deps = [
+ ":rtc_base_approved_generic",
+ ]
+ }
+}
+
config("enable_libevent_config") {
defines = [ "WEBRTC_BUILD_LIBEVENT" ]
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698