| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//third_party/protobuf/proto_library.gni") |
| 6 |
| 7 proto_library("stability_report_proto") { |
| 8 sources = [ |
| 9 "stability_report.proto", |
| 10 ] |
| 11 } |
| 12 |
| 5 static_library("browser_watcher") { | 13 static_library("browser_watcher") { |
| 6 # This is a separate lib to minimize the dependencies for its | 14 # This is a separate lib to minimize the dependencies for its |
| 7 # hosting binary "chrome_watcher.dll". | 15 # hosting binary "chrome_watcher.dll". |
| 8 sources = [ | 16 sources = [ |
| 9 "endsession_watcher_window_win.cc", | 17 "endsession_watcher_window_win.cc", |
| 10 "endsession_watcher_window_win.h", | 18 "endsession_watcher_window_win.h", |
| 11 "exit_code_watcher_win.cc", | 19 "exit_code_watcher_win.cc", |
| 12 "exit_code_watcher_win.h", | 20 "exit_code_watcher_win.h", |
| 13 "exit_funnel_win.cc", | 21 "exit_funnel_win.cc", |
| 14 "exit_funnel_win.h", | 22 "exit_funnel_win.h", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 26 "watcher_client_win.h", | 34 "watcher_client_win.h", |
| 27 "watcher_metrics_provider_win.cc", | 35 "watcher_metrics_provider_win.cc", |
| 28 "watcher_metrics_provider_win.h", | 36 "watcher_metrics_provider_win.h", |
| 29 ] | 37 ] |
| 30 deps = [ | 38 deps = [ |
| 31 "//base", | 39 "//base", |
| 32 "//components/metrics", | 40 "//components/metrics", |
| 33 ] | 41 ] |
| 34 } | 42 } |
| 35 | 43 |
| 44 static_library("postmortem_minidump_writer") { |
| 45 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. |
| 46 sources = [ |
| 47 "postmortem_minidump_writer.h", |
| 48 "postmortem_minidump_writer_win.cc", |
| 49 ] |
| 50 deps = [ |
| 51 ":stability_report_proto", |
| 52 "//base", |
| 53 "//third_party/crashpad/crashpad/client", |
| 54 "//third_party/crashpad/crashpad/minidump", |
| 55 "//third_party/crashpad/crashpad/util", |
| 56 ] |
| 57 } |
| 58 |
| 36 source_set("unit_tests") { | 59 source_set("unit_tests") { |
| 37 testonly = true | 60 testonly = true |
| 38 sources = [ | 61 sources = [ |
| 39 "endsession_watcher_window_win_unittest.cc", | 62 "endsession_watcher_window_win_unittest.cc", |
| 40 "exit_code_watcher_win_unittest.cc", | 63 "exit_code_watcher_win_unittest.cc", |
| 41 "exit_funnel_win_unittest.cc", | 64 "exit_funnel_win_unittest.cc", |
| 65 "postmortem_minidump_writer_win_unittest.cc", |
| 42 "watcher_client_win_unittest.cc", | 66 "watcher_client_win_unittest.cc", |
| 43 "watcher_metrics_provider_win_unittest.cc", | 67 "watcher_metrics_provider_win_unittest.cc", |
| 44 "window_hang_monitor_win_unittest.cc", | 68 "window_hang_monitor_win_unittest.cc", |
| 45 ] | 69 ] |
| 46 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 70 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 47 deps = [ | 71 deps = [ |
| 48 ":browser_watcher", | 72 ":browser_watcher", |
| 49 ":browser_watcher_client", | 73 ":browser_watcher_client", |
| 74 ":postmortem_minidump_writer", |
| 75 ":stability_report_proto", |
| 50 "//base", | 76 "//base", |
| 51 "//base/test:test_support", | 77 "//base/test:test_support", |
| 52 "//testing/gtest", | 78 "//testing/gtest", |
| 79 "//third_party/crashpad/crashpad/client", |
| 80 |
| 81 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. |
| 82 "//third_party/crashpad/crashpad/compat", |
| 83 "//third_party/crashpad/crashpad/minidump", |
| 84 "//third_party/crashpad/crashpad/snapshot", |
| 85 "//third_party/crashpad/crashpad/util", |
| 53 ] | 86 ] |
| 54 } | 87 } |
| OLD | NEW |