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