blob: 1152d51f3a348249537e95afe8b57c3be59dd0eb [file] [log] [blame]
# 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_linux.cc",
"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_analyzer_unittest.cc",
"crash_handler_unittest.cc",
]
deps = [
":crash_handler",
":crash_proto",
"//base/test:test_support",
"//components/gwp_asan/client",
"//components/gwp_asan/common",
"//testing/gmock",
"//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/snapshot:test_support",
"//third_party/crashpad/crashpad/test",
"//third_party/crashpad/crashpad/tools:tool_support",
"//third_party/crashpad/crashpad/util",
"//third_party/protobuf:protobuf_lite",
]
}