Index: components/browser_watcher.gypi |
diff --git a/components/browser_watcher.gypi b/components/browser_watcher.gypi |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4d504db61d639f19f9a7c8caa9ef2cfcc112732e |
--- /dev/null |
+++ b/components/browser_watcher.gypi |
@@ -0,0 +1,57 @@ |
+# Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+{ |
+ 'conditions': [ |
+ ['OS=="win"', { |
+ 'targets': [ |
+ { |
+ # Chrome watcher is a standalone DLL that's used to monitor the |
+ # browser's exit code to determine the cause of exit. |
+ # It's hosted by chrome.exe in when it's passed --type=watcher |
+ 'target_name': 'browser_watcher', |
+ # The DLL is named "chrome_watcher.dll". |
+ 'product_name': 'chrome_watcher', |
+ 'type': 'loadable_module', |
+ 'sources': [ |
+ 'browser_watcher/watcher_main_win.cc', |
+ 'browser_watcher/watcher_main_win.h', |
+ ], |
+ 'dependencies': [ |
+ 'browser_watcher_lib', |
+ '../base/base.gyp:base', |
+ '../chrome/common_constants.gyp:common_constants', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'browser_watcher_lib', |
+ 'type': 'static_library', |
+ 'sources': [ |
+ 'browser_watcher/watcher_win.cc', |
+ 'browser_watcher/watcher_win.h', |
+ ], |
+ 'dependencies': [ |
+ '../base/base.gyp:base', |
+ ], |
+ }, |
+ { |
+ # Users of the watcher link this target. |
+ 'target_name': 'browser_watcher_client', |
+ 'type': 'static_library', |
+ 'sources': [ |
+ 'browser_watcher/watcher_client_win.cc', |
+ 'browser_watcher/watcher_client_win.h', |
+ 'browser_watcher/watcher_metrics_provider_win.cc', |
+ 'browser_watcher/watcher_metrics_provider_win.h', |
+ ], |
+ 'dependencies': [ |
+ 'browser_watcher', |
+ '../base/base.gyp:base', |
+ ], |
+ }, |
+ ], |
+ } |
+ ], |
+ ], |
+} |