| 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 17 matching lines...) Expand all Loading... |
| 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", |
| 97 "//third_party/crashpad/crashpad/compat", |
| 98 "//third_party/crashpad/crashpad/util", |
| 80 ] | 99 ] |
| 81 } | 100 } |
| 82 | 101 |
| 83 static_library("stability_data") { | |
| 84 sources = [ | |
| 85 "stability_data_names.cc", | |
| 86 "stability_data_names.h", | |
| 87 ] | |
| 88 } | |
| 89 | |
| 90 if (is_win) { | 102 if (is_win) { |
| 91 source_set("unit_tests") { | 103 source_set("unit_tests") { |
| 92 testonly = true | 104 testonly = true |
| 93 sources = [ | 105 sources = [ |
| 94 "endsession_watcher_window_win_unittest.cc", | 106 "endsession_watcher_window_win_unittest.cc", |
| 95 "exit_code_watcher_win_unittest.cc", | 107 "exit_code_watcher_win_unittest.cc", |
| 96 "postmortem_minidump_writer_win_unittest.cc", | 108 "postmortem_minidump_writer_win_unittest.cc", |
| 97 "postmortem_report_collector_unittest.cc", | 109 "postmortem_report_collector_unittest.cc", |
| 98 "stability_debugging_win_unittest.cc", | 110 "stability_debugging_win_unittest.cc", |
| 99 "system_session_analyzer_win_unittest.cc", | 111 "system_session_analyzer_win_unittest.cc", |
| 100 "watcher_client_win_unittest.cc", | 112 "watcher_client_win_unittest.cc", |
| 101 "watcher_metrics_provider_win_unittest.cc", | 113 "watcher_metrics_provider_win_unittest.cc", |
| 102 "window_hang_monitor_win_unittest.cc", | 114 "window_hang_monitor_win_unittest.cc", |
| 103 ] | 115 ] |
| 104 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 116 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 105 deps = [ | 117 deps = [ |
| 106 ":browser_watcher", | 118 ":browser_watcher", |
| 107 ":browser_watcher_client", | 119 ":browser_watcher_client", |
| 108 ":postmortem_report_collector", | 120 ":postmortem_stability", |
| 109 ":stability", | 121 ":stability_client", |
| 110 ":stability_data", | 122 ":stability_common", |
| 111 ":stability_report_proto", | 123 ":stability_report_proto", |
| 112 "//base", | 124 "//base", |
| 113 "//base/test:test_support", | 125 "//base/test:test_support", |
| 114 "//testing/gmock", | 126 "//testing/gmock", |
| 115 "//testing/gtest", | 127 "//testing/gtest", |
| 116 "//third_party/crashpad/crashpad/client", | 128 "//third_party/crashpad/crashpad/client", |
| 117 | 129 |
| 118 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. | 130 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. |
| 119 "//third_party/crashpad/crashpad/compat", | 131 "//third_party/crashpad/crashpad/compat", |
| 120 "//third_party/crashpad/crashpad/minidump", | 132 "//third_party/crashpad/crashpad/minidump", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 131 ":stability_report_proto", | 143 ":stability_report_proto", |
| 132 "//base", | 144 "//base", |
| 133 ] | 145 ] |
| 134 } | 146 } |
| 135 | 147 |
| 136 executable("fetch_system_session_events") { | 148 executable("fetch_system_session_events") { |
| 137 sources = [ | 149 sources = [ |
| 138 "fetch_system_session_events_main_win.cc", | 150 "fetch_system_session_events_main_win.cc", |
| 139 ] | 151 ] |
| 140 deps = [ | 152 deps = [ |
| 141 ":postmortem_report_collector", | 153 ":postmortem_stability", |
| 142 "//base", | 154 "//base", |
| 143 ] | 155 ] |
| 144 } | 156 } |
| 145 } | 157 } |
| OLD | NEW |