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

Unified Diff: components/crash/core/common/BUILD.gn

Issue 2148803003: Componentize zombies to silence ObjC runtime errors in component builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: components/crash/core/common/BUILD.gn
diff --git a/components/crash/core/common/BUILD.gn b/components/crash/core/common/BUILD.gn
index 3714a2380a5421b85626d2d8143760f2ef4870b9..7d31217a5df4e4a9e6b4ffb785fca2cc6c0b826f 100644
--- a/components/crash/core/common/BUILD.gn
+++ b/components/crash/core/common/BUILD.gn
@@ -2,7 +2,17 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-static_library("common") {
+group("common") {
+ public_deps = [
+ ":crash_keys",
+ ]
+
+ if (is_mac || is_ios) {
+ public_deps += [ ":zombies" ]
+ }
+}
+
+static_library("crash_keys") {
sources = [
"crash_keys.cc",
"crash_keys.h",
@@ -11,12 +21,23 @@ static_library("common") {
deps = [
"//base",
]
+}
- if (is_mac || is_ios) {
- sources += [
+if (is_mac || is_ios) {
+ component("zombies") {
+ sources = [
Robert Sesek 2016/07/13 20:40:58 List the crash_export.h here, too, after it is mov
"objc_zombie.h",
"objc_zombie.mm",
]
+
+ defines = [ "CRASH_IMPLEMENTATION" ]
+
+ deps = [
+ ":crash_keys",
+ "//base",
+ ]
+
+ libs = [ "Foundation.framework" ]
}
}

Powered by Google App Engine
This is Rietveld 408576698