Make castv2 performance test work.
[chromium-blink-merge.git] / chrome / chrome_installer_util.gypi
blob8c9d87510099e6d54bd49f811707dbc3e9b7ff49
1 # Copyright (c) 2012 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.
6   'target_defaults': {
7     'variables': {
8       'installer_util_target': 0,
9     },
10     'target_conditions': [
11       # This part is shared between the two versions of the target.
12       ['installer_util_target==1', {
13         'sources': [
14           'installer/util/advanced_firewall_manager_win.cc',
15           'installer/util/advanced_firewall_manager_win.h',
16           'installer/util/app_command.cc',
17           'installer/util/app_command.h',
18           'installer/util/app_commands.cc',
19           'installer/util/app_commands.h',
20           'installer/util/app_registration_data.h',
21           'installer/util/auto_launch_util.cc',
22           'installer/util/auto_launch_util.h',
23           'installer/util/browser_distribution.cc',
24           'installer/util/browser_distribution.h',
25           'installer/util/callback_work_item.cc',
26           'installer/util/callback_work_item.h',
27           'installer/util/channel_info.cc',
28           'installer/util/channel_info.h',
29           'installer/util/chrome_frame_distribution.cc',
30           'installer/util/chrome_frame_distribution.h',
31           'installer/util/chromium_binaries_distribution.cc',
32           'installer/util/chromium_binaries_distribution.h',
33           'installer/util/conditional_work_item_list.cc',
34           'installer/util/conditional_work_item_list.h',
35           'installer/util/copy_tree_work_item.cc',
36           'installer/util/copy_tree_work_item.h',
37           'installer/util/create_dir_work_item.cc',
38           'installer/util/create_dir_work_item.h',
39           'installer/util/create_reg_key_work_item.cc',
40           'installer/util/create_reg_key_work_item.h',
41           'installer/util/delete_reg_key_work_item.cc',
42           'installer/util/delete_reg_key_work_item.h',
43           'installer/util/delete_reg_value_work_item.cc',
44           'installer/util/delete_reg_value_work_item.h',
45           'installer/util/delete_tree_work_item.cc',
46           'installer/util/delete_tree_work_item.h',
47           'installer/util/duplicate_tree_detector.cc',
48           'installer/util/duplicate_tree_detector.h',
49           'installer/util/firewall_manager_win.cc',
50           'installer/util/firewall_manager_win.h',
51           'installer/util/google_chrome_binaries_distribution.cc',
52           'installer/util/google_chrome_binaries_distribution.h',
53           'installer/util/google_chrome_sxs_distribution.cc',
54           'installer/util/google_chrome_sxs_distribution.h',
55           'installer/util/google_update_constants.cc',
56           'installer/util/google_update_constants.h',
57           'installer/util/google_update_experiment_util.cc',
58           'installer/util/google_update_experiment_util.h',
59           'installer/util/google_update_settings.cc',
60           'installer/util/google_update_settings.h',
61           'installer/util/google_update_util.cc',
62           'installer/util/google_update_util.h',
63           'installer/util/helper.cc',
64           'installer/util/helper.h',
65           'installer/util/install_util.cc',
66           'installer/util/install_util.h',
67           'installer/util/installation_state.cc',
68           'installer/util/installation_state.h',
69           'installer/util/installer_state.cc',
70           'installer/util/installer_state.h',
71           'installer/util/l10n_string_util.cc',
72           'installer/util/l10n_string_util.h',
73           'installer/util/language_selector.cc',
74           'installer/util/language_selector.h',
75           'installer/util/legacy_firewall_manager_win.cc',
76           'installer/util/legacy_firewall_manager_win.h',
77           'installer/util/master_preferences_constants.cc',
78           'installer/util/master_preferences_constants.h',
79           'installer/util/move_tree_work_item.cc',
80           'installer/util/move_tree_work_item.h',
81           'installer/util/non_updating_app_registration_data.cc',
82           'installer/util/non_updating_app_registration_data.h',
83           'installer/util/registry_key_backup.cc',
84           'installer/util/registry_key_backup.h',
85           'installer/util/self_reg_work_item.cc',
86           'installer/util/self_reg_work_item.h',
87           'installer/util/set_reg_value_work_item.cc',
88           'installer/util/set_reg_value_work_item.h',
89           'installer/util/updating_app_registration_data.cc',
90           'installer/util/updating_app_registration_data.h',
91           'installer/util/util_constants.cc',
92           'installer/util/util_constants.h',
93           'installer/util/wmi.cc',
94           'installer/util/wmi.h',
95           'installer/util/work_item.cc',
96           'installer/util/work_item.h',
97           'installer/util/work_item_list.cc',
98           'installer/util/work_item_list.h',
99         ],
100         'include_dirs': [
101           '<(DEPTH)',
102         ],
103       }],
104     ],
105   },
106   'conditions': [
107     ['OS=="win"', {
108       'targets': [
109         {
110           'target_name': 'installer_util',
111           'type': 'static_library',
112           'variables': {
113             'installer_util_target': 1,
114           },
115           'dependencies': [
116             'installer_util_strings',
117             '<(DEPTH)/base/base.gyp:base',
118             '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
119             '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
120             '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
121             '<(DEPTH)/chrome/common_constants.gyp:common_constants',
122             '<(DEPTH)/components/components.gyp:metrics',
123             '<(DEPTH)/courgette/courgette.gyp:courgette_lib',
124             '<(DEPTH)/crypto/crypto.gyp:crypto',
125             '<(DEPTH)/third_party/bspatch/bspatch.gyp:bspatch',
126             '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
127             '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
128             '<(DEPTH)/third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk',
129           ],
130           'sources': [
131             'installer/util/chrome_binaries_operations.cc',
132             'installer/util/chrome_binaries_operations.h',
133             'installer/util/chrome_browser_operations.cc',
134             'installer/util/chrome_browser_operations.h',
135             'installer/util/chrome_browser_sxs_operations.cc',
136             'installer/util/chrome_browser_sxs_operations.h',
137             'installer/util/chrome_frame_operations.cc',
138             'installer/util/chrome_frame_operations.h',
139             'installer/util/compat_checks.cc',
140             'installer/util/compat_checks.h',
141             'installer/util/delete_after_reboot_helper.cc',
142             'installer/util/delete_after_reboot_helper.h',
143             'installer/util/google_chrome_distribution.cc',
144             'installer/util/google_chrome_distribution.h',
145             'installer/util/html_dialog.h',
146             'installer/util/html_dialog_impl.cc',
147             'installer/util/installation_validator.cc',
148             'installer/util/installation_validator.h',
149             'installer/util/logging_installer.cc',
150             'installer/util/logging_installer.h',
151             'installer/util/lzma_util.cc',
152             'installer/util/lzma_util.h',
153             'installer/util/master_preferences.cc',
154             'installer/util/master_preferences.h',
155             'installer/util/product.cc',
156             'installer/util/product.h',
157             'installer/util/product_operations.h',
158             'installer/util/self_cleaning_temp_dir.cc',
159             'installer/util/self_cleaning_temp_dir.h',
160             'installer/util/shell_util.cc',
161             'installer/util/shell_util.h',
162             'installer/util/uninstall_metrics.cc',
163             'installer/util/uninstall_metrics.h',
164             'installer/util/user_experiment.cc',
165             'installer/util/user_experiment.h',
166           ],
167           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
168           'msvs_disabled_warnings': [ 4267, ],
169         },
170       ],
171     }],
172     ['OS=="win" and target_arch=="ia32"', {
173       'targets': [
174         {
175           'target_name': 'installer_util_nacl_win64',
176           'type': 'static_library',
177           'variables': {
178             'installer_util_target': 1,
179           },
180           'dependencies': [
181             'installer_util_strings',
182           ],
183           'include_dirs': [
184             '<(SHARED_INTERMEDIATE_DIR)',
185           ],
186           'sources': [
187             # Include |client_info.cc| directly here to avoid having to create a
188             # metrics_win64 target solely for this purpose.
189             '../components/metrics/client_info.cc',
190             '../components/metrics/client_info.h',
191             'installer/util/google_chrome_distribution_dummy.cc',
192             'installer/util/master_preferences.h',
193             'installer/util/master_preferences_dummy.cc',
194           ],
195           'configurations': {
196             'Common_Base': {
197               'msvs_target_platform': 'x64',
198             },
199           },
200         },
201       ],
202     }],
203     ['OS!="win"', {
204       'targets': [
205         {
206           # GN version: //chrome/installer/util
207           'target_name': 'installer_util',
208           'type': 'static_library',
209           'dependencies': [
210             '<(DEPTH)/base/base.gyp:base',
211             '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
212             '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
213           ],
214           'sources': [
215             # Note: sources list duplicated in GN build.
216             'installer/util/google_update_experiment_util.cc',
217             'installer/util/google_update_experiment_util.h',
218             'installer/util/master_preferences.cc',
219             'installer/util/master_preferences.h',
220             'installer/util/master_preferences_constants.cc',
221             'installer/util/master_preferences_constants.h',
222           ],
223           'include_dirs': [
224             '<(DEPTH)',
225           ],
226         }
227       ],
228     }],
230   ],