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") | |
scottmg
2016/08/03 22:47:06
So glad we don't have to do gyp too! :)
manzagop (departed)
2016/08/10 15:59:51
Totally!
| |
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.cc", | |
24 "postmortem.h", | |
25 "postmortem_minidump_writer.h", | |
26 "postmortem_minidump_writer_win.cc", | |
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", |
20 ] | 33 ] |
21 } | 34 } |
22 | 35 |
23 static_library("browser_watcher_client") { | 36 static_library("browser_watcher_client") { |
24 sources = [ | 37 sources = [ |
25 "watcher_client_win.cc", | 38 "watcher_client_win.cc", |
26 "watcher_client_win.h", | 39 "watcher_client_win.h", |
27 "watcher_metrics_provider_win.cc", | 40 "watcher_metrics_provider_win.cc", |
28 "watcher_metrics_provider_win.h", | 41 "watcher_metrics_provider_win.h", |
29 ] | 42 ] |
30 deps = [ | 43 deps = [ |
31 "//base", | 44 "//base", |
32 "//components/metrics", | 45 "//components/metrics", |
33 ] | 46 ] |
34 } | 47 } |
35 | 48 |
36 source_set("unit_tests") { | 49 source_set("unit_tests") { |
37 testonly = true | 50 testonly = true |
38 sources = [ | 51 sources = [ |
39 "endsession_watcher_window_win_unittest.cc", | 52 "endsession_watcher_window_win_unittest.cc", |
40 "exit_code_watcher_win_unittest.cc", | 53 "exit_code_watcher_win_unittest.cc", |
41 "exit_funnel_win_unittest.cc", | 54 "exit_funnel_win_unittest.cc", |
55 "postmortem_minidump_writer_win_unittest.cc", | |
56 "postmortem_unittest.cc", | |
42 "watcher_client_win_unittest.cc", | 57 "watcher_client_win_unittest.cc", |
43 "watcher_metrics_provider_win_unittest.cc", | 58 "watcher_metrics_provider_win_unittest.cc", |
44 "window_hang_monitor_win_unittest.cc", | 59 "window_hang_monitor_win_unittest.cc", |
45 ] | 60 ] |
46 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 61 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
47 deps = [ | 62 deps = [ |
48 ":browser_watcher", | 63 ":browser_watcher", |
49 ":browser_watcher_client", | 64 ":browser_watcher_client", |
65 ":stability_report_proto", | |
50 "//base", | 66 "//base", |
51 "//base/test:test_support", | 67 "//base/test:test_support", |
68 "//testing/gmock", | |
52 "//testing/gtest", | 69 "//testing/gtest", |
53 ] | 70 ] |
54 } | 71 } |
OLD | NEW |