Chromium Code Reviews| Index: components/browser_watcher/BUILD.gn |
| diff --git a/components/browser_watcher/BUILD.gn b/components/browser_watcher/BUILD.gn |
| index 2e831c9c8b1d370dc280031ca2bc6089882a08f3..47892c6f3e7ab14f04a76c7715f37d5f94582ea1 100644 |
| --- a/components/browser_watcher/BUILD.gn |
| +++ b/components/browser_watcher/BUILD.gn |
| @@ -37,6 +37,7 @@ if (is_win) { |
| deps = [ |
| ":postmortem_report_collector", |
| ":stability", |
| + ":system_session_analyzer", |
| "//base", |
| "//components/metrics", |
| "//third_party/crashpad/crashpad/client", |
| @@ -68,6 +69,7 @@ if (is_win) { |
| ":postmortem_minidump_writer", |
| ":stability_data", |
| ":stability_report_proto", |
| + ":system_session_analyzer", |
| "//base", |
| "//components/variations", |
| "//third_party/crashpad/crashpad/client", |
| @@ -96,6 +98,18 @@ static_library("stability_data") { |
| } |
| if (is_win) { |
| + 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.
|
| + sources = [ |
| + "system_session_analyzer_win.cc", |
| + "system_session_analyzer_win.h", |
| + ] |
| + deps = [ |
| + "//base", |
| + ] |
| + libs = [ "wevtapi.lib" ] |
| + ldflags = [ "/DELAYLOAD:wevtapi.dll" ] # Only used after unclean shutdowns. |
| + } |
| + |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| @@ -103,6 +117,7 @@ if (is_win) { |
| "exit_code_watcher_win_unittest.cc", |
| "postmortem_minidump_writer_win_unittest.cc", |
| "postmortem_report_collector_unittest.cc", |
| + "system_session_analyzer_win_unittest.cc", |
| "watcher_client_win_unittest.cc", |
| "watcher_metrics_provider_win_unittest.cc", |
| "window_hang_monitor_win_unittest.cc", |
| @@ -115,6 +130,7 @@ if (is_win) { |
| ":postmortem_report_collector", |
| ":stability_data", |
| ":stability_report_proto", |
| + ":system_session_analyzer", |
| "//base", |
| "//base/test:test_support", |
| "//testing/gmock", |
| @@ -138,4 +154,14 @@ if (is_win) { |
| "//base", |
| ] |
| } |
| + |
| + executable("fetch_system_session_events") { |
| + sources = [ |
| + "fetch_system_session_events_main_win.cc", |
| + ] |
| + deps = [ |
| + ":system_session_analyzer", |
| + "//base", |
| + ] |
| + } |
| } |