Chromium Code Reviews| Index: components/browser_watcher/BUILD.gn |
| diff --git a/components/browser_watcher/BUILD.gn b/components/browser_watcher/BUILD.gn |
| index 883daece472ef5a8e9064c040f27a064d18a4e42..743a36919bfc44c53302b534dc387b13844ba3c6 100644 |
| --- a/components/browser_watcher/BUILD.gn |
| +++ b/components/browser_watcher/BUILD.gn |
| @@ -2,6 +2,14 @@ |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| +import("//third_party/protobuf/proto_library.gni") |
|
scottmg
2016/08/03 22:47:06
So glad we don't have to do gyp too! :)
manzagop (departed)
2016/08/10 15:59:51
Totally!
|
| + |
| +proto_library("stability_report_proto") { |
| + sources = [ |
| + "stability_report.proto", |
| + ] |
| +} |
| + |
| static_library("browser_watcher") { |
| # This is a separate lib to minimize the dependencies for its |
| # hosting binary "chrome_watcher.dll". |
| @@ -12,10 +20,15 @@ static_library("browser_watcher") { |
| "exit_code_watcher_win.h", |
| "exit_funnel_win.cc", |
| "exit_funnel_win.h", |
| + "postmortem.cc", |
| + "postmortem.h", |
| + "postmortem_minidump_writer.h", |
| + "postmortem_minidump_writer_win.cc", |
| "window_hang_monitor_win.cc", |
| "window_hang_monitor_win.h", |
| ] |
| deps = [ |
| + ":stability_report_proto", |
| "//base", |
| ] |
| } |
| @@ -39,6 +52,8 @@ source_set("unit_tests") { |
| "endsession_watcher_window_win_unittest.cc", |
| "exit_code_watcher_win_unittest.cc", |
| "exit_funnel_win_unittest.cc", |
| + "postmortem_minidump_writer_win_unittest.cc", |
| + "postmortem_unittest.cc", |
| "watcher_client_win_unittest.cc", |
| "watcher_metrics_provider_win_unittest.cc", |
| "window_hang_monitor_win_unittest.cc", |
| @@ -47,8 +62,10 @@ source_set("unit_tests") { |
| deps = [ |
| ":browser_watcher", |
| ":browser_watcher_client", |
| + ":stability_report_proto", |
| "//base", |
| "//base/test:test_support", |
| + "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |