- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / chrome_installer_util.gypi
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.
4
5 {
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/app_command.cc',
15           'installer/util/app_command.h',
16           'installer/util/app_commands.cc',
17           'installer/util/app_commands.h',
18           'installer/util/auto_launch_util.cc',
19           'installer/util/auto_launch_util.h',
20           'installer/util/browser_distribution.cc',
21           'installer/util/browser_distribution.h',
22           'installer/util/callback_work_item.cc',
23           'installer/util/callback_work_item.h',
24           'installer/util/channel_info.cc',
25           'installer/util/channel_info.h',
26           'installer/util/chrome_app_host_distribution.cc',
27           'installer/util/chrome_app_host_distribution.h',
28           'installer/util/chrome_frame_distribution.cc',
29           'installer/util/chrome_frame_distribution.h',
30           'installer/util/chromium_binaries_distribution.cc',
31           'installer/util/chromium_binaries_distribution.h',
32           'installer/util/conditional_work_item_list.cc',
33           'installer/util/conditional_work_item_list.h',
34           'installer/util/copy_reg_key_work_item.cc',
35           'installer/util/copy_reg_key_work_item.h',
36           'installer/util/copy_tree_work_item.cc',
37           'installer/util/copy_tree_work_item.h',
38           'installer/util/create_dir_work_item.cc',
39           'installer/util/create_dir_work_item.h',
40           'installer/util/create_reg_key_work_item.cc',
41           'installer/util/create_reg_key_work_item.h',
42           'installer/util/delete_reg_key_work_item.cc',
43           'installer/util/delete_reg_key_work_item.h',
44           'installer/util/delete_reg_value_work_item.cc',
45           'installer/util/delete_reg_value_work_item.h',
46           'installer/util/delete_tree_work_item.cc',
47           'installer/util/delete_tree_work_item.h',
48           'installer/util/duplicate_tree_detector.cc',
49           'installer/util/duplicate_tree_detector.h',
50           'installer/util/google_chrome_binaries_distribution.cc',
51           'installer/util/google_chrome_binaries_distribution.h',
52           'installer/util/google_chrome_sxs_distribution.cc',
53           'installer/util/google_chrome_sxs_distribution.h',
54           'installer/util/google_update_constants.cc',
55           'installer/util/google_update_constants.h',
56           'installer/util/google_update_experiment_util.cc',
57           'installer/util/google_update_experiment_util.h',
58           'installer/util/google_update_settings.cc',
59           'installer/util/google_update_settings.h',
60           'installer/util/google_update_util.cc',
61           'installer/util/google_update_util.h',
62           'installer/util/helper.cc',
63           'installer/util/helper.h',
64           'installer/util/install_util.cc',
65           'installer/util/install_util.h',
66           'installer/util/installation_state.cc',
67           'installer/util/installation_state.h',
68           'installer/util/installer_state.cc',
69           'installer/util/installer_state.h',
70           'installer/util/l10n_string_util.cc',
71           'installer/util/l10n_string_util.h',
72           'installer/util/language_selector.cc',
73           'installer/util/language_selector.h',
74           'installer/util/master_preferences_constants.cc',
75           'installer/util/master_preferences_constants.h',
76           'installer/util/move_tree_work_item.cc',
77           'installer/util/move_tree_work_item.h',
78           'installer/util/registry_key_backup.cc',
79           'installer/util/registry_key_backup.h',
80           'installer/util/self_reg_work_item.cc',
81           'installer/util/self_reg_work_item.h',
82           'installer/util/set_reg_value_work_item.cc',
83           'installer/util/set_reg_value_work_item.h',
84           'installer/util/util_constants.cc',
85           'installer/util/util_constants.h',
86           'installer/util/wmi.cc',
87           'installer/util/wmi.h',
88           'installer/util/work_item.cc',
89           'installer/util/work_item.h',
90           'installer/util/work_item_list.cc',
91           'installer/util/work_item_list.h',
92         ],
93         'include_dirs': [
94           '<(DEPTH)',
95         ],
96       }],
97     ],
98   },
99   'conditions': [
100     ['OS=="win"', {
101       'targets': [
102         {
103           'target_name': 'installer_util',
104           'type': 'static_library',
105           'variables': {
106             'installer_util_target': 1,
107           },
108           'dependencies': [
109             'installer_util_strings',
110             '<(DEPTH)/base/base.gyp:base',
111             '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
112             '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
113             '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
114             '<(DEPTH)/chrome/common_constants.gyp:common_constants',
115             '<(DEPTH)/content/content.gyp:content_common',
116             '<(DEPTH)/courgette/courgette.gyp:courgette_lib',
117             '<(DEPTH)/crypto/crypto.gyp:crypto',
118             '<(DEPTH)/third_party/bspatch/bspatch.gyp:bspatch',
119             '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
120             '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
121             '<(DEPTH)/third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk',
122           ],
123           'sources': [
124             'installer/util/chrome_app_host_operations.cc',
125             'installer/util/chrome_app_host_operations.h',
126             'installer/util/chrome_binaries_operations.cc',
127             'installer/util/chrome_binaries_operations.h',
128             'installer/util/chrome_browser_operations.cc',
129             'installer/util/chrome_browser_operations.h',
130             'installer/util/chrome_browser_sxs_operations.cc',
131             'installer/util/chrome_browser_sxs_operations.h',
132             'installer/util/chrome_frame_operations.cc',
133             'installer/util/chrome_frame_operations.h',
134             'installer/util/compat_checks.cc',
135             'installer/util/compat_checks.h',
136             'installer/util/delete_after_reboot_helper.cc',
137             'installer/util/delete_after_reboot_helper.h',
138             'installer/util/eula_util.cc',
139             'installer/util/eula_util.h',
140             'installer/util/google_chrome_distribution.cc',
141             'installer/util/google_chrome_distribution.h',
142             'installer/util/html_dialog.h',
143             'installer/util/html_dialog_impl.cc',
144             'installer/util/installation_validator.cc',
145             'installer/util/installation_validator.h',
146             'installer/util/logging_installer.cc',
147             'installer/util/logging_installer.h',
148             'installer/util/lzma_util.cc',
149             'installer/util/lzma_util.h',
150             'installer/util/master_preferences.cc',
151             'installer/util/master_preferences.h',
152             'installer/util/product.h',
153             'installer/util/product.cc',
154             'installer/util/product_operations.h',
155             'installer/util/self_cleaning_temp_dir.cc',
156             'installer/util/self_cleaning_temp_dir.h',
157             'installer/util/shell_util.cc',
158             'installer/util/shell_util.h',
159             'installer/util/uninstall_metrics.cc',
160             'installer/util/uninstall_metrics.h',
161             'installer/util/user_experiment.cc',
162             'installer/util/user_experiment.h',
163           ],
164           'conditions': [
165             ['component=="shared_library"', {
166               'sources': [ '../content/public/common/content_switches.cc' ],
167               'defines': [ 'COMPILE_CONTENT_STATICALLY'],
168             }, {
169               'dependencies': ['<(DEPTH)/content/content.gyp:content_common'],
170             }],
171           ],
172           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
173           'msvs_disabled_warnings': [ 4267, ],
174         },
175       ],
176     }],
177     ['OS=="win" and target_arch=="ia32"', {
178       'targets': [
179         {
180           'target_name': 'installer_util_nacl_win64',
181           'type': 'static_library',
182           'variables': {
183             'installer_util_target': 1,
184           },
185           'dependencies': [
186             'installer_util_strings',
187           ],
188           'include_dirs': [
189             '<(SHARED_INTERMEDIATE_DIR)',
190           ],
191           'sources': [
192             'installer/util/google_chrome_distribution_dummy.cc',
193             'installer/util/master_preferences.h',
194             'installer/util/master_preferences_dummy.cc',
195           ],
196           'configurations': {
197             'Common_Base': {
198               'msvs_target_platform': 'x64',
199             },
200           },
201         },
202       ],
203     }],
204     ['OS!="win"', {
205       'targets': [
206         {
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             '<(DEPTH)/chrome/common_constants.gyp:common_constants',
214           ],
215           'sources': [
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           'conditions': [
227             ['component == "shared_library"', {
228               'sources': [ '../content/public/common/content_switches.cc' ],
229               'defines': [ 'COMPILE_CONTENT_STATICALLY'],
230             }],
231           ],
232         }
233       ],
234     }],
235
236   ],
237 }