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

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

Issue 2856923002: Rejig stability intstrumentation filenames and targets (Closed)
Patch Set: Missing include Created 3 years, 7 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 17 matching lines...) Expand all
28 } 28 }
29 29
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_stability",
39 ":stability", 39 ":stability_client",
40 "//base", 40 "//base",
41 "//components/metrics", 41 "//components/metrics",
42 "//third_party/crashpad/crashpad/client", 42 "//third_party/crashpad/crashpad/client",
43 ] 43 ]
44 } 44 }
45 45
46 static_library("postmortem_report_collector") { 46 static_library("postmortem_stability") {
47 sources = [ 47 sources = [
48 "postmortem_minidump_writer.h", 48 "postmortem_minidump_writer.h",
49 "postmortem_minidump_writer_win.cc", 49 "postmortem_minidump_writer_win.cc",
50 "postmortem_report_collector.cc", 50 "postmortem_report_collector.cc",
51 "postmortem_report_collector.h", 51 "postmortem_report_collector.h",
52 "postmortem_report_extractor.cc",
53 "postmortem_report_extractor.h",
54 "system_session_analyzer_win.cc", 52 "system_session_analyzer_win.cc",
55 "system_session_analyzer_win.h", 53 "system_session_analyzer_win.h",
56 ] 54 ]
57 deps = [ 55 deps = [
58 ":stability_data", 56 ":stability_client",
57 ":stability_common",
59 ":stability_report_proto", 58 ":stability_report_proto",
60 "//base", 59 "//base",
61 "//components/variations", 60 "//components/variations",
62 "//third_party/crashpad/crashpad/client", 61 "//third_party/crashpad/crashpad/client",
63 "//third_party/crashpad/crashpad/minidump", 62 "//third_party/crashpad/crashpad/minidump",
64 "//third_party/crashpad/crashpad/util", 63 "//third_party/crashpad/crashpad/util",
65 ] 64 ]
66 libs = [ "wevtapi.lib" ] 65 libs = [ "wevtapi.lib" ]
67 ldflags = [ "/DELAYLOAD:wevtapi.dll" ] # Only used after unclean shutdowns. 66 ldflags = [ "/DELAYLOAD:wevtapi.dll" ] # Only used after unclean shutdowns.
68 } 67 }
68
69 static_library("stability_common") {
70 sources = [
71 "stability_report_extractor.cc",
72 "stability_report_extractor.h",
73 ]
74 deps = [
75 ":stability_client",
76 ":stability_report_proto",
77 "//base",
78 "//components/variations",
79 "//third_party/crashpad/crashpad/util",
80 ]
81 }
69 } 82 }
70 83
71 static_library("stability") { 84 static_library("stability_client") {
72 sources = [ 85 sources = [
73 "features.cc", 86 "features.cc",
74 "features.h", 87 "features.h",
88 "stability_data_names.cc",
89 "stability_data_names.h",
75 "stability_debugging.cc", 90 "stability_debugging.cc",
76 "stability_debugging.h", 91 "stability_debugging.h",
92 "stability_paths.cc",
93 "stability_paths.h",
77 ] 94 ]
78 deps = [ 95 deps = [
79 "//base", 96 "//base",
80 ] 97 ]
81 } 98 }
82 99
83 static_library("stability_data") {
84 sources = [
85 "stability_data_names.cc",
86 "stability_data_names.h",
87 ]
88 }
89
90 if (is_win) { 100 if (is_win) {
91 source_set("unit_tests") { 101 source_set("unit_tests") {
92 testonly = true 102 testonly = true
93 sources = [ 103 sources = [
94 "endsession_watcher_window_win_unittest.cc", 104 "endsession_watcher_window_win_unittest.cc",
95 "exit_code_watcher_win_unittest.cc", 105 "exit_code_watcher_win_unittest.cc",
96 "postmortem_minidump_writer_win_unittest.cc", 106 "postmortem_minidump_writer_win_unittest.cc",
97 "postmortem_report_collector_unittest.cc", 107 "postmortem_report_collector_unittest.cc",
98 "stability_debugging_win_unittest.cc", 108 "stability_debugging_win_unittest.cc",
99 "system_session_analyzer_win_unittest.cc", 109 "system_session_analyzer_win_unittest.cc",
100 "watcher_client_win_unittest.cc", 110 "watcher_client_win_unittest.cc",
101 "watcher_metrics_provider_win_unittest.cc", 111 "watcher_metrics_provider_win_unittest.cc",
102 "window_hang_monitor_win_unittest.cc", 112 "window_hang_monitor_win_unittest.cc",
103 ] 113 ]
104 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 114 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
105 deps = [ 115 deps = [
106 ":browser_watcher", 116 ":browser_watcher",
107 ":browser_watcher_client", 117 ":browser_watcher_client",
108 ":postmortem_report_collector", 118 ":postmortem_stability",
109 ":stability", 119 ":stability_client",
110 ":stability_data", 120 ":stability_common",
111 ":stability_report_proto", 121 ":stability_report_proto",
112 "//base", 122 "//base",
113 "//base/test:test_support", 123 "//base/test:test_support",
114 "//testing/gmock", 124 "//testing/gmock",
115 "//testing/gtest", 125 "//testing/gtest",
116 "//third_party/crashpad/crashpad/client", 126 "//third_party/crashpad/crashpad/client",
117 127
118 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. 128 # TODO(manzagop): remove this lib once Crashpad writes the minidumps.
119 "//third_party/crashpad/crashpad/compat", 129 "//third_party/crashpad/crashpad/compat",
120 "//third_party/crashpad/crashpad/minidump", 130 "//third_party/crashpad/crashpad/minidump",
(...skipping 10 matching lines...) Expand all
131 ":stability_report_proto", 141 ":stability_report_proto",
132 "//base", 142 "//base",
133 ] 143 ]
134 } 144 }
135 145
136 executable("fetch_system_session_events") { 146 executable("fetch_system_session_events") {
137 sources = [ 147 sources = [
138 "fetch_system_session_events_main_win.cc", 148 "fetch_system_session_events_main_win.cc",
139 ] 149 ]
140 deps = [ 150 deps = [
141 ":postmortem_report_collector", 151 ":postmortem_stability",
142 "//base", 152 "//base",
143 ] 153 ]
144 } 154 }
145 } 155 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.cc ('k') | components/browser_watcher/postmortem_report_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698