OLD | NEW |
| (Empty) |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 { | |
5 'variables': { | |
6 'chromium_code': 1, | |
7 }, | |
8 'includes': [ | |
9 '../../build/util/version.gypi', | |
10 '../../build/win_precompile.gypi', | |
11 ], | |
12 'targets': [ | |
13 { | |
14 'target_name': 'kasko_util', | |
15 'type': 'none', | |
16 'dependencies': [ | |
17 '../third_party/kasko/kasko.gyp:kasko_features', | |
18 ], | |
19 }, | |
20 { | |
21 'target_name': 'hang_util', | |
22 'type': 'static_library', | |
23 'sources': [ | |
24 'system_load_estimator.cc', | |
25 'system_load_estimator.h', | |
26 ], | |
27 'dependencies': [ | |
28 '../base/base.gyp:base', | |
29 '../components/components.gyp:memory_pressure' | |
30 ], | |
31 'msvs_settings': { | |
32 'VCLinkerTool': { | |
33 'DelayLoadDLLs': [ | |
34 'pdh.dll', # Used by system_load_estimator.h on report capture. | |
35 ], | |
36 'AdditionalDependencies': [ | |
37 'pdh.lib', | |
38 ], | |
39 }, | |
40 }, | |
41 'all_dependent_settings': { | |
42 'msvs_settings': { | |
43 'VCLinkerTool': { | |
44 'DelayLoadDLLs': [ | |
45 # Used by system_load_estimator.h on report capture. | |
46 'pdh.dll', | |
47 ], | |
48 'AdditionalDependencies': [ | |
49 'pdh.lib', | |
50 ], | |
51 }, | |
52 }, | |
53 }, | |
54 }, | |
55 { | |
56 # GN version: //chrome/chrome_watcher:system_load_estimator_unittests | |
57 'target_name': 'system_load_estimator_unittests', | |
58 'type': '<(gtest_target_type)', | |
59 'sources': [ | |
60 'system_load_estimator_unittest.cc', | |
61 ], | |
62 'dependencies': [ | |
63 'hang_util', | |
64 '../base/base.gyp:base', | |
65 '../base/base.gyp:run_all_unittests', | |
66 '../base/base.gyp:test_support_base', | |
67 '../testing/gtest.gyp:gtest', | |
68 ], | |
69 }, | |
70 { | |
71 'target_name': 'chrome_watcher_resources', | |
72 'type': 'none', | |
73 'conditions': [ | |
74 ['branding == "Chrome"', { | |
75 'variables': { | |
76 'branding_path': '../app/theme/google_chrome/BRANDING', | |
77 }, | |
78 }, { # else branding!="Chrome" | |
79 'variables': { | |
80 'branding_path': '../app/theme/chromium/BRANDING', | |
81 }, | |
82 }], | |
83 ], | |
84 'variables': { | |
85 'output_dir': '.', | |
86 'template_input_path': '../app/chrome_version.rc.version', | |
87 }, | |
88 'sources': [ | |
89 'chrome_watcher.ver', | |
90 ], | |
91 'includes': [ | |
92 '../version_resource_rules.gypi', | |
93 ], | |
94 }, | |
95 { | |
96 # Users of the watcher link this target. | |
97 'target_name': 'chrome_watcher_client', | |
98 'type': 'static_library', | |
99 'sources': [ | |
100 'chrome_watcher_main_api.cc', | |
101 'chrome_watcher_main_api.h', | |
102 ], | |
103 'dependencies': [ | |
104 '../base/base.gyp:base', | |
105 ], | |
106 }, | |
107 { | |
108 'target_name': 'chrome_watcher', | |
109 'type': 'loadable_module', | |
110 'include_dirs': [ | |
111 '../..', | |
112 ], | |
113 'sources': [ | |
114 '<(SHARED_INTERMEDIATE_DIR)/chrome_watcher/chrome_watcher_version.rc', | |
115 'chrome_watcher.def', | |
116 'chrome_watcher_main.cc', | |
117 ], | |
118 'dependencies': [ | |
119 'chrome_watcher_client', | |
120 'chrome_watcher_resources', | |
121 'kasko_util', | |
122 'installer_util', | |
123 '../base/base.gyp:base', | |
124 '../components/components.gyp:browser_watcher', | |
125 ], | |
126 'msvs_settings': { | |
127 'VCLinkerTool': { | |
128 # Set /SUBSYSTEM:WINDOWS. | |
129 'SubSystem': '2', | |
130 }, | |
131 }, | |
132 }, | |
133 ], | |
134 } | |
OLD | NEW |