Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: components/browser_watcher/BUILD.gn

Issue 2715903003: Bound the impact of system instability on chrome instability. (Closed)
Patch Set: Don't inline complex destructors Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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") 5 import("//third_party/protobuf/proto_library.gni")
6 6
7 if (is_win) { 7 if (is_win) {
8 proto_library("stability_report_proto") { 8 proto_library("stability_report_proto") {
9 sources = [ 9 sources = [
10 "stability_report.proto", 10 "stability_report.proto",
(...skipping 19 matching lines...) Expand all
30 static_library("browser_watcher_client") { 30 static_library("browser_watcher_client") {
31 sources = [ 31 sources = [
32 "watcher_client_win.cc", 32 "watcher_client_win.cc",
33 "watcher_client_win.h", 33 "watcher_client_win.h",
34 "watcher_metrics_provider_win.cc", 34 "watcher_metrics_provider_win.cc",
35 "watcher_metrics_provider_win.h", 35 "watcher_metrics_provider_win.h",
36 ] 36 ]
37 deps = [ 37 deps = [
38 ":postmortem_report_collector", 38 ":postmortem_report_collector",
39 ":stability", 39 ":stability",
40 ":system_session_analyzer",
40 "//base", 41 "//base",
41 "//components/metrics", 42 "//components/metrics",
42 "//third_party/crashpad/crashpad/client", 43 "//third_party/crashpad/crashpad/client",
43 ] 44 ]
44 } 45 }
45 46
46 static_library("postmortem_minidump_writer") { 47 static_library("postmortem_minidump_writer") {
47 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. 48 # TODO(manzagop): remove this lib once Crashpad writes the minidumps.
48 sources = [ 49 sources = [
49 "postmortem_minidump_writer.h", 50 "postmortem_minidump_writer.h",
(...skipping 11 matching lines...) Expand all
61 62
62 static_library("postmortem_report_collector") { 63 static_library("postmortem_report_collector") {
63 sources = [ 64 sources = [
64 "postmortem_report_collector.cc", 65 "postmortem_report_collector.cc",
65 "postmortem_report_collector.h", 66 "postmortem_report_collector.h",
66 ] 67 ]
67 deps = [ 68 deps = [
68 ":postmortem_minidump_writer", 69 ":postmortem_minidump_writer",
69 ":stability_data", 70 ":stability_data",
70 ":stability_report_proto", 71 ":stability_report_proto",
72 ":system_session_analyzer",
71 "//base", 73 "//base",
72 "//components/variations", 74 "//components/variations",
73 "//third_party/crashpad/crashpad/client", 75 "//third_party/crashpad/crashpad/client",
74 "//third_party/crashpad/crashpad/util", 76 "//third_party/crashpad/crashpad/util",
75 ] 77 ]
76 } 78 }
77 } 79 }
78 80
79 static_library("stability") { 81 static_library("stability") {
80 sources = [ 82 sources = [
81 "features.cc", 83 "features.cc",
82 "features.h", 84 "features.h",
83 "stability_debugging.cc", 85 "stability_debugging.cc",
84 "stability_debugging.h", 86 "stability_debugging.h",
85 ] 87 ]
86 deps = [ 88 deps = [
87 "//base", 89 "//base",
88 ] 90 ]
89 } 91 }
90 92
91 static_library("stability_data") { 93 static_library("stability_data") {
92 sources = [ 94 sources = [
93 "stability_data_names.cc", 95 "stability_data_names.cc",
94 "stability_data_names.h", 96 "stability_data_names.h",
95 ] 97 ]
96 } 98 }
97 99
98 if (is_win) { 100 if (is_win) {
101 static_library("system_session_analyzer") {
Sigurður Ásgeirsson 2017/03/01 15:09:26 can you glom all these static libraries into one?
manzagop (departed) 2017/03/01 21:07:45 I think I got that notion from here: https://docs.
102 sources = [
103 "system_session_analyzer_win.cc",
104 "system_session_analyzer_win.h",
105 ]
106 deps = [
107 "//base",
108 ]
109 libs = [ "wevtapi.lib" ]
110 ldflags = [ "/DELAYLOAD:wevtapi.dll" ] # Only used after unclean shutdowns.
111 }
112
99 source_set("unit_tests") { 113 source_set("unit_tests") {
100 testonly = true 114 testonly = true
101 sources = [ 115 sources = [
102 "endsession_watcher_window_win_unittest.cc", 116 "endsession_watcher_window_win_unittest.cc",
103 "exit_code_watcher_win_unittest.cc", 117 "exit_code_watcher_win_unittest.cc",
104 "postmortem_minidump_writer_win_unittest.cc", 118 "postmortem_minidump_writer_win_unittest.cc",
105 "postmortem_report_collector_unittest.cc", 119 "postmortem_report_collector_unittest.cc",
120 "system_session_analyzer_win_unittest.cc",
106 "watcher_client_win_unittest.cc", 121 "watcher_client_win_unittest.cc",
107 "watcher_metrics_provider_win_unittest.cc", 122 "watcher_metrics_provider_win_unittest.cc",
108 "window_hang_monitor_win_unittest.cc", 123 "window_hang_monitor_win_unittest.cc",
109 ] 124 ]
110 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 125 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
111 deps = [ 126 deps = [
112 ":browser_watcher", 127 ":browser_watcher",
113 ":browser_watcher_client", 128 ":browser_watcher_client",
114 ":postmortem_minidump_writer", 129 ":postmortem_minidump_writer",
115 ":postmortem_report_collector", 130 ":postmortem_report_collector",
116 ":stability_data", 131 ":stability_data",
117 ":stability_report_proto", 132 ":stability_report_proto",
133 ":system_session_analyzer",
118 "//base", 134 "//base",
119 "//base/test:test_support", 135 "//base/test:test_support",
120 "//testing/gmock", 136 "//testing/gmock",
121 "//testing/gtest", 137 "//testing/gtest",
122 "//third_party/crashpad/crashpad/client", 138 "//third_party/crashpad/crashpad/client",
123 139
124 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. 140 # TODO(manzagop): remove this lib once Crashpad writes the minidumps.
125 "//third_party/crashpad/crashpad/compat", 141 "//third_party/crashpad/crashpad/compat",
126 "//third_party/crashpad/crashpad/minidump", 142 "//third_party/crashpad/crashpad/minidump",
127 "//third_party/crashpad/crashpad/snapshot", 143 "//third_party/crashpad/crashpad/snapshot",
128 "//third_party/crashpad/crashpad/util", 144 "//third_party/crashpad/crashpad/util",
129 ] 145 ]
130 } 146 }
131 147
132 executable("dump_postmortem") { 148 executable("dump_postmortem") {
133 sources = [ 149 sources = [
134 "dump_postmortem_minidump_main_win.cc", 150 "dump_postmortem_minidump_main_win.cc",
135 ] 151 ]
136 deps = [ 152 deps = [
137 ":stability_report_proto", 153 ":stability_report_proto",
138 "//base", 154 "//base",
139 ] 155 ]
140 } 156 }
157
158 executable("fetch_system_session_events") {
159 sources = [
160 "fetch_system_session_events_main_win.cc",
161 ]
162 deps = [
163 ":system_session_analyzer",
164 "//base",
165 ]
166 }
141 } 167 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698