| 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") | 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 static_library("postmortem_report_collector") { | 62 static_library("postmortem_report_collector") { |
| 63 sources = [ | 63 sources = [ |
| 64 "postmortem_report_collector.cc", | 64 "postmortem_report_collector.cc", |
| 65 "postmortem_report_collector.h", | 65 "postmortem_report_collector.h", |
| 66 ] | 66 ] |
| 67 deps = [ | 67 deps = [ |
| 68 ":postmortem_minidump_writer", | 68 ":postmortem_minidump_writer", |
| 69 ":stability_data", | 69 ":stability_data", |
| 70 ":stability_report_proto", | 70 ":stability_report_proto", |
| 71 ":system_session_analyzer", |
| 71 "//base", | 72 "//base", |
| 72 "//components/variations", | 73 "//components/variations", |
| 73 "//third_party/crashpad/crashpad/client", | 74 "//third_party/crashpad/crashpad/client", |
| 74 "//third_party/crashpad/crashpad/util", | 75 "//third_party/crashpad/crashpad/util", |
| 75 ] | 76 ] |
| 76 } | 77 } |
| 77 } | 78 } |
| 78 | 79 |
| 79 static_library("stability") { | 80 static_library("stability") { |
| 80 sources = [ | 81 sources = [ |
| 81 "features.cc", | 82 "features.cc", |
| 82 "features.h", | 83 "features.h", |
| 83 "stability_debugging.cc", | 84 "stability_debugging.cc", |
| 84 "stability_debugging.h", | 85 "stability_debugging.h", |
| 85 ] | 86 ] |
| 86 deps = [ | 87 deps = [ |
| 87 "//base", | 88 "//base", |
| 88 ] | 89 ] |
| 89 } | 90 } |
| 90 | 91 |
| 91 static_library("stability_data") { | 92 static_library("stability_data") { |
| 92 sources = [ | 93 sources = [ |
| 93 "stability_data_names.cc", | 94 "stability_data_names.cc", |
| 94 "stability_data_names.h", | 95 "stability_data_names.h", |
| 95 ] | 96 ] |
| 96 } | 97 } |
| 97 | 98 |
| 98 if (is_win) { | 99 if (is_win) { |
| 100 static_library("system_session_analyzer") { |
| 101 sources = [ |
| 102 "system_session_analyzer_win.cc", |
| 103 "system_session_analyzer_win.h", |
| 104 ] |
| 105 deps = [ |
| 106 "//base", |
| 107 ] |
| 108 libs = [ "wevtapi.lib" ] |
| 109 ldflags = [ "/DELAYLOAD:wevtapi.dll" ] # Only used after unclean shutdowns. |
| 110 } |
| 111 |
| 99 source_set("unit_tests") { | 112 source_set("unit_tests") { |
| 100 testonly = true | 113 testonly = true |
| 101 sources = [ | 114 sources = [ |
| 102 "endsession_watcher_window_win_unittest.cc", | 115 "endsession_watcher_window_win_unittest.cc", |
| 103 "exit_code_watcher_win_unittest.cc", | 116 "exit_code_watcher_win_unittest.cc", |
| 104 "postmortem_minidump_writer_win_unittest.cc", | 117 "postmortem_minidump_writer_win_unittest.cc", |
| 105 "postmortem_report_collector_unittest.cc", | 118 "postmortem_report_collector_unittest.cc", |
| 119 "system_session_analyzer_win_unittest.cc", |
| 106 "watcher_client_win_unittest.cc", | 120 "watcher_client_win_unittest.cc", |
| 107 "watcher_metrics_provider_win_unittest.cc", | 121 "watcher_metrics_provider_win_unittest.cc", |
| 108 "window_hang_monitor_win_unittest.cc", | 122 "window_hang_monitor_win_unittest.cc", |
| 109 ] | 123 ] |
| 110 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 124 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 111 deps = [ | 125 deps = [ |
| 112 ":browser_watcher", | 126 ":browser_watcher", |
| 113 ":browser_watcher_client", | 127 ":browser_watcher_client", |
| 114 ":postmortem_minidump_writer", | 128 ":postmortem_minidump_writer", |
| 115 ":postmortem_report_collector", | 129 ":postmortem_report_collector", |
| 116 ":stability_data", | 130 ":stability_data", |
| 117 ":stability_report_proto", | 131 ":stability_report_proto", |
| 132 ":system_session_analyzer", |
| 118 "//base", | 133 "//base", |
| 119 "//base/test:test_support", | 134 "//base/test:test_support", |
| 120 "//testing/gmock", | 135 "//testing/gmock", |
| 121 "//testing/gtest", | 136 "//testing/gtest", |
| 122 "//third_party/crashpad/crashpad/client", | 137 "//third_party/crashpad/crashpad/client", |
| 123 | 138 |
| 124 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. | 139 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. |
| 125 "//third_party/crashpad/crashpad/compat", | 140 "//third_party/crashpad/crashpad/compat", |
| 126 "//third_party/crashpad/crashpad/minidump", | 141 "//third_party/crashpad/crashpad/minidump", |
| 127 "//third_party/crashpad/crashpad/snapshot", | 142 "//third_party/crashpad/crashpad/snapshot", |
| 128 "//third_party/crashpad/crashpad/util", | 143 "//third_party/crashpad/crashpad/util", |
| 129 ] | 144 ] |
| 130 } | 145 } |
| 131 | 146 |
| 132 executable("dump_postmortem") { | 147 executable("dump_postmortem") { |
| 133 sources = [ | 148 sources = [ |
| 134 "dump_postmortem_minidump_main_win.cc", | 149 "dump_postmortem_minidump_main_win.cc", |
| 135 ] | 150 ] |
| 136 deps = [ | 151 deps = [ |
| 137 ":stability_report_proto", | 152 ":stability_report_proto", |
| 138 "//base", | 153 "//base", |
| 139 ] | 154 ] |
| 140 } | 155 } |
| 156 |
| 157 executable("fetch_system_session_events") { |
| 158 sources = [ |
| 159 "fetch_system_session_events_main_win.cc", |
| 160 ] |
| 161 deps = [ |
| 162 ":system_session_analyzer", |
| 163 "//base", |
| 164 ] |
| 165 } |
| 141 } | 166 } |
| OLD | NEW |