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", |
| 23 "postmortem_minidump_writer.h", |
| 24 "postmortem_minidump_writer_win.cc", |
| 25 "postmortem_report_collector.cc", |
| 26 "postmortem_report_collector.h", |
15 "window_hang_monitor_win.cc", | 27 "window_hang_monitor_win.cc", |
16 "window_hang_monitor_win.h", | 28 "window_hang_monitor_win.h", |
17 ] | 29 ] |
18 deps = [ | 30 deps = [ |
| 31 ":stability_report_proto", |
19 "//base", | 32 "//base", |
| 33 "//components/version_info", |
| 34 "//third_party/crashpad/crashpad/client", |
| 35 |
| 36 # TODO(manzagop): remove non client/ crashpad dependencies. |
| 37 "//third_party/crashpad/crashpad/minidump", |
| 38 "//third_party/crashpad/crashpad/util", |
20 ] | 39 ] |
21 } | 40 } |
22 | 41 |
23 static_library("browser_watcher_client") { | 42 static_library("browser_watcher_client") { |
24 sources = [ | 43 sources = [ |
25 "watcher_client_win.cc", | 44 "watcher_client_win.cc", |
26 "watcher_client_win.h", | 45 "watcher_client_win.h", |
27 "watcher_metrics_provider_win.cc", | 46 "watcher_metrics_provider_win.cc", |
28 "watcher_metrics_provider_win.h", | 47 "watcher_metrics_provider_win.h", |
29 ] | 48 ] |
30 deps = [ | 49 deps = [ |
31 "//base", | 50 "//base", |
32 "//components/metrics", | 51 "//components/metrics", |
33 ] | 52 ] |
34 } | 53 } |
35 | 54 |
36 source_set("unit_tests") { | 55 source_set("unit_tests") { |
37 testonly = true | 56 testonly = true |
38 sources = [ | 57 sources = [ |
39 "endsession_watcher_window_win_unittest.cc", | 58 "endsession_watcher_window_win_unittest.cc", |
40 "exit_code_watcher_win_unittest.cc", | 59 "exit_code_watcher_win_unittest.cc", |
41 "exit_funnel_win_unittest.cc", | 60 "exit_funnel_win_unittest.cc", |
| 61 "postmortem_minidump_writer_win_unittest.cc", |
| 62 "postmortem_report_collector_unittest.cc", |
42 "watcher_client_win_unittest.cc", | 63 "watcher_client_win_unittest.cc", |
43 "watcher_metrics_provider_win_unittest.cc", | 64 "watcher_metrics_provider_win_unittest.cc", |
44 "window_hang_monitor_win_unittest.cc", | 65 "window_hang_monitor_win_unittest.cc", |
45 ] | 66 ] |
46 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 67 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
47 deps = [ | 68 deps = [ |
48 ":browser_watcher", | 69 ":browser_watcher", |
49 ":browser_watcher_client", | 70 ":browser_watcher_client", |
| 71 ":stability_report_proto", |
50 "//base", | 72 "//base", |
51 "//base/test:test_support", | 73 "//base/test:test_support", |
| 74 "//components/version_info", |
| 75 "//testing/gmock", |
52 "//testing/gtest", | 76 "//testing/gtest", |
| 77 "//third_party/crashpad/crashpad/client", |
| 78 |
| 79 # TODO(manzagop): remove non client/ crashpad dependencies. |
| 80 "//third_party/crashpad/crashpad/client", |
| 81 "//third_party/crashpad/crashpad/compat", |
| 82 "//third_party/crashpad/crashpad/snapshot", |
| 83 "//third_party/crashpad/crashpad/util", |
53 ] | 84 ] |
54 } | 85 } |
OLD | NEW |