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

Unified Diff: components/breakpad/app/BUILD.gn

Issue 413863002: Add breakpad component to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « components/breakpad.gypi ('k') | components/breakpad/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/breakpad/app/BUILD.gn
diff --git a/components/breakpad/app/BUILD.gn b/components/breakpad/app/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..c449f962c93d39ed6e40add99c2f3875e1ddd271
--- /dev/null
+++ b/components/breakpad/app/BUILD.gn
@@ -0,0 +1,65 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+if (is_android) {
+ import("//build/config/android/config.gni")
+}
+
+source_set("lib") {
+ sources = [
+ "breakpad_client.cc",
+ "breakpad_client.h",
+ "crash_keys_win.cc",
+ "crash_keys_win.h",
+ ]
+}
+
+# Note: if you depend on this target, you need to either link in
+# content.gyp:content_common, or add content/public/common/content_switches.cc
+# to your sources.
+#
+# GYP version: components/breakpad.gyp:breakpad_component
+source_set("app") {
+ sources = [
+ "breakpad_linux_impl.h",
+ "breakpad_mac.h",
+ "breakpad_mac.mm",
+ "breakpad_win.cc",
+ "breakpad_win.h",
+ "hard_error_handler_win.cc",
+ "hard_error_handler_win.h",
+ ]
+ if (is_android || is_linux) {
+ # Want these files on both Linux and Android.
+ set_sources_assignment_filter([])
+ sources += [
+ "breakpad_linux.cc",
+ "breakpad_linux.h",
+ ]
+ }
+
+ defines = [ "BREAKPAD_IMPLEMENTATION" ]
+
+ deps = [
+ "//base",
+ ":lib",
+ ]
+
+ if (is_mac) {
+ deps += [ "//breakpad" ]
+ } else if (is_win) {
+ deps += [
+ "//sandbox",
+ #'../breakpad/breakpad.gyp:breakpad_handler', TODO(GYP)
+ #'../breakpad/breakpad.gyp:breakpad_sender', TODO(GYP)
+ ]
+ } else if (is_posix && !is_ios &&
+ (!is_android || !is_android_webview_build)) {
+ deps += [ "//breakpad:client" ]
+ }
+}
+
+source_set("test_support") {
+ deps = [ ":lib" ]
+}
« no previous file with comments | « components/breakpad.gypi ('k') | components/breakpad/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698