| # Copyright 2018 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. |
| |
| import("//third_party/protobuf/proto_library.gni") |
| |
| static_library("crash_handler") { |
| sources = [ |
| "crash_analyzer.cc", |
| "crash_analyzer.h", |
| "crash_analyzer_mac.cc", |
| "crash_analyzer_win.cc", |
| "crash_handler.cc", |
| "crash_handler.h", |
| ] |
| |
| deps = [ |
| ":crash_proto", |
| "//base", |
| "//components/gwp_asan/common", |
| "//third_party/crashpad/crashpad/client", |
| "//third_party/crashpad/crashpad/handler", |
| "//third_party/crashpad/crashpad/minidump", |
| "//third_party/crashpad/crashpad/snapshot", |
| "//third_party/crashpad/crashpad/util", |
| "//third_party/protobuf:protobuf_lite", |
| ] |
| } |
| |
| proto_library("crash_proto") { |
| sources = [ |
| "crash.proto", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "crash_handler_unittest.cc", |
| ] |
| deps = [ |
| ":crash_handler", |
| ":crash_proto", |
| "//base/test:test_support", |
| "//components/gwp_asan/client", |
| "//components/gwp_asan/common", |
| "//testing/gtest", |
| "//third_party/crashpad/crashpad/client", |
| "//third_party/crashpad/crashpad/handler", |
| "//third_party/crashpad/crashpad/minidump", |
| "//third_party/crashpad/crashpad/snapshot", |
| "//third_party/crashpad/crashpad/tools:tool_support", |
| "//third_party/crashpad/crashpad/util", |
| "//third_party/protobuf:protobuf_lite", |
| ] |
| } |