OLD | NEW |
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 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 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 ['OS=="win"', { | 7 ['OS=="win"', { |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
| 10 # This is a separate lib to minimize the dependencies for its |
| 11 # hosting binary "chrome_watcher.dll". |
10 'target_name': 'browser_watcher_lib', | 12 'target_name': 'browser_watcher_lib', |
11 'type': 'static_library', | 13 'type': 'static_library', |
12 'sources': [ | 14 'sources': [ |
13 'browser_watcher/watcher_win.cc', | 15 'browser_watcher/exit_code_watcher_win.cc', |
14 'browser_watcher/watcher_win.h', | 16 'browser_watcher/exit_code_watcher_win.h', |
15 ], | 17 ], |
16 'dependencies': [ | 18 'dependencies': [ |
17 '../base/base.gyp:base', | 19 '../base/base.gyp:base', |
18 ], | 20 ], |
19 }, | 21 }, |
| 22 { |
| 23 # Users of the watcher link this target. |
| 24 'target_name': 'browser_watcher_client', |
| 25 'type': 'static_library', |
| 26 'sources': [ |
| 27 'browser_watcher/watcher_client_win.cc', |
| 28 'browser_watcher/watcher_client_win.h', |
| 29 ], |
| 30 'dependencies': [ |
| 31 'browser_watcher_lib', |
| 32 '../base/base.gyp:base', |
| 33 ], |
| 34 }, |
20 ], | 35 ], |
21 } | 36 } |
22 ], | 37 ], |
23 ], | 38 ], |
24 } | 39 } |
OLD | NEW |