blob: 92eccd3a1d63248ed5d500287d3d18af00e8a9bb [file] [log] [blame]
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +00001# Copyright (c) 2013 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 'targets': [
7 {
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +01008 # Private target only used in components/autofill.
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +00009 'target_name': 'autofill_regexes',
10 'type': 'none',
11 'actions': [{
12 'action_name': 'autofill_regexes',
13 'inputs': [
14 '<(DEPTH)/build/escape_unicode.py',
Ben Murdocheb525c52013-07-10 11:40:50 +010015 'autofill/core/browser/autofill_regex_constants.cc.utf8',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000016 ],
17 'outputs': [
18 '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc',
19 ],
20 'action': ['python', '<(DEPTH)/build/escape_unicode.py',
21 '-o', '<(SHARED_INTERMEDIATE_DIR)',
Ben Murdocheb525c52013-07-10 11:40:50 +010022 'autofill/core/browser/autofill_regex_constants.cc.utf8'],
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000023 }],
24 },
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000025 ],
26 'conditions': [
27 ['OS != "ios"', {
28 'targets': [
29 {
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010030 'target_name': 'autofill_core_common',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000031 'type': 'static_library',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000032 'dependencies': [
33 '../base/base.gyp:base',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000034 '../content/content.gyp:content_common',
35 '../ipc/ipc.gyp:ipc',
Ben Murdochca12bfa2013-07-23 11:17:05 +010036 '../third_party/WebKit/public/blink.gyp:blink_minimal',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000037 '../ui/ui.gyp:ui',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +010038 '../url/url.gyp:url_lib',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000039 ],
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010040 'conditions': [
41 ['OS == "android"', {
42 'dependencies': [
43 'autofill_jni_headers',
44 ],
45 }],
46 ],
47 'include_dirs': [
48 '..',
49 '<(SHARED_INTERMEDIATE_DIR)/autofill'
50 ],
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000051 'sources': [
Ben Murdocheb525c52013-07-10 11:40:50 +010052 'autofill/core/browser/android/auxiliary_profile_loader_android.cc',
53 'autofill/core/browser/android/auxiliary_profile_loader_android.h',
54 'autofill/core/browser/android/auxiliary_profiles_android.cc',
55 'autofill/core/browser/android/auxiliary_profiles_android.h',
56 'autofill/core/browser/android/component_jni_registrar.cc',
57 'autofill/core/browser/android/component_jni_registrar.h',
58 'autofill/core/browser/android/personal_data_manager_android.cc',
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010059 'autofill/core/common/autocheckout_status.h',
60 'autofill/core/common/autofill_constants.cc',
61 'autofill/core/common/autofill_constants.h',
62 'autofill/core/common/autofill_messages.h',
63 'autofill/core/common/autofill_message_generator.cc',
64 'autofill/core/common/autofill_message_generator.h',
65 'autofill/core/common/autofill_pref_names.cc',
66 'autofill/core/common/autofill_pref_names.h',
67 'autofill/core/common/autofill_switches.cc',
68 'autofill/core/common/autofill_switches.h',
69 'autofill/core/common/form_data.cc',
70 'autofill/core/common/form_data.h',
71 'autofill/core/common/form_data_predictions.cc',
72 'autofill/core/common/form_data_predictions.h',
73 'autofill/core/common/form_field_data.cc',
74 'autofill/core/common/form_field_data.h',
75 'autofill/core/common/form_field_data_predictions.cc',
76 'autofill/core/common/form_field_data_predictions.h',
77 'autofill/core/common/password_form_fill_data.cc',
78 'autofill/core/common/password_form_fill_data.h',
79 'autofill/core/common/password_generation_util.cc',
80 'autofill/core/common/password_generation_util.h',
81 'autofill/core/common/web_element_descriptor.cc',
82 'autofill/core/common/web_element_descriptor.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000083 ],
84 },
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010085
86 {
Ben Murdocheb525c52013-07-10 11:40:50 +010087 'target_name': 'autofill_core_browser',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010088 'type': 'static_library',
89 'include_dirs': [
90 '..',
91 ],
92 'dependencies': [
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010093 'autofill_core_common',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010094 'autofill_regexes',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010095 'encryptor',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010096 'user_prefs',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010097 'webdata_common',
98 '../base/base.gyp:base',
99 '../base/base.gyp:base_i18n',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100100 '../base/base.gyp:base_prefs',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100101 '../content/content.gyp:content_browser',
102 '../content/content.gyp:content_common',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100103 '../google_apis/google_apis.gyp:google_apis',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100104 '../ipc/ipc.gyp:ipc',
105 '../skia/skia.gyp:skia',
106 '../sql/sql.gyp:sql',
107 '../third_party/icu/icu.gyp:icui18n',
108 '../third_party/icu/icu.gyp:icuuc',
109 '../third_party/libjingle/libjingle.gyp:libjingle',
110 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
111 '../ui/ui.gyp:ui',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100112 '../url/url.gyp:url_lib',
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100113 '../webkit/webkit_resources.gyp:webkit_resources',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100114
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100115 'component_strings.gyp:component_strings',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100116 ],
117 'sources': [
Ben Murdocheb525c52013-07-10 11:40:50 +0100118 'autofill/core/browser/address.cc',
119 'autofill/core/browser/address.h',
120 'autofill/core/browser/address_field.cc',
121 'autofill/core/browser/address_field.h',
122 'autofill/core/browser/autocomplete_history_manager.cc',
123 'autofill/core/browser/autocomplete_history_manager.h',
124 'autofill/core/browser/autofill-inl.h',
125 'autofill/core/browser/autofill_country.cc',
126 'autofill/core/browser/autofill_country.h',
127 'autofill/core/browser/autofill_data_model.cc',
128 'autofill/core/browser/autofill_data_model.h',
129 'autofill/core/browser/autofill_download.cc',
130 'autofill/core/browser/autofill_download.h',
131 'autofill/core/browser/autofill_download_url.cc',
132 'autofill/core/browser/autofill_download_url.h',
133 'autofill/core/browser/autofill_driver.h',
134 'autofill/core/browser/autofill_external_delegate.cc',
135 'autofill/core/browser/autofill_external_delegate.h',
136 'autofill/core/browser/autofill_field.cc',
137 'autofill/core/browser/autofill_field.h',
138 'autofill/core/browser/autofill_ie_toolbar_import_win.cc',
139 'autofill/core/browser/autofill_ie_toolbar_import_win.h',
140 'autofill/core/browser/autofill_manager.cc',
141 'autofill/core/browser/autofill_manager.h',
142 'autofill/core/browser/autofill_manager_delegate.h',
143 'autofill/core/browser/autofill_manager_test_delegate.h',
144 'autofill/core/browser/autofill_metrics.cc',
145 'autofill/core/browser/autofill_metrics.h',
146 'autofill/core/browser/autofill_popup_delegate.h',
147 'autofill/core/browser/autofill_profile.cc',
148 'autofill/core/browser/autofill_profile.h',
149 'autofill/core/browser/autofill_regex_constants.cc.utf8',
150 'autofill/core/browser/autofill_regex_constants.h',
151 'autofill/core/browser/autofill_regexes.cc',
152 'autofill/core/browser/autofill_regexes.h',
153 'autofill/core/browser/autofill_scanner.cc',
154 'autofill/core/browser/autofill_scanner.h',
155 'autofill/core/browser/autofill_server_field_info.h',
156 'autofill/core/browser/autofill_type.cc',
157 'autofill/core/browser/autofill_type.h',
158 'autofill/core/browser/autofill_xml_parser.cc',
159 'autofill/core/browser/autofill_xml_parser.h',
160 'autofill/core/browser/contact_info.cc',
161 'autofill/core/browser/contact_info.h',
162 'autofill/core/browser/credit_card.cc',
163 'autofill/core/browser/credit_card.h',
164 'autofill/core/browser/credit_card_field.cc',
165 'autofill/core/browser/credit_card_field.h',
166 'autofill/core/browser/email_field.cc',
167 'autofill/core/browser/email_field.h',
168 'autofill/core/browser/field_types.h',
169 'autofill/core/browser/form_field.cc',
170 'autofill/core/browser/form_field.h',
171 'autofill/core/browser/form_group.cc',
172 'autofill/core/browser/form_group.h',
173 'autofill/core/browser/form_structure.cc',
174 'autofill/core/browser/form_structure.h',
175 'autofill/core/browser/name_field.cc',
176 'autofill/core/browser/name_field.h',
177 'autofill/core/browser/password_autofill_manager.cc',
178 'autofill/core/browser/password_autofill_manager.h',
179 'autofill/core/browser/password_generator.cc',
180 'autofill/core/browser/password_generator.h',
181 'autofill/core/browser/personal_data_manager.cc',
182 'autofill/core/browser/personal_data_manager.h',
183 'autofill/core/browser/personal_data_manager_mac.mm',
184 'autofill/core/browser/personal_data_manager_observer.h',
185 'autofill/core/browser/phone_field.cc',
186 'autofill/core/browser/phone_field.h',
187 'autofill/core/browser/phone_number.cc',
188 'autofill/core/browser/phone_number.h',
189 'autofill/core/browser/phone_number_i18n.cc',
190 'autofill/core/browser/phone_number_i18n.h',
191 'autofill/core/browser/state_names.cc',
192 'autofill/core/browser/state_names.h',
193 'autofill/core/browser/validation.cc',
194 'autofill/core/browser/validation.h',
195 'autofill/core/browser/webdata/autofill_change.cc',
196 'autofill/core/browser/webdata/autofill_change.h',
197 'autofill/core/browser/webdata/autofill_entry.cc',
198 'autofill/core/browser/webdata/autofill_entry.h',
199 'autofill/core/browser/webdata/autofill_table.cc',
200 'autofill/core/browser/webdata/autofill_table.h',
201 'autofill/core/browser/webdata/autofill_webdata.h',
202 'autofill/core/browser/webdata/autofill_webdata_backend.h',
203 'autofill/core/browser/webdata/autofill_webdata_backend_impl.cc',
204 'autofill/core/browser/webdata/autofill_webdata_backend_impl.h',
205 'autofill/core/browser/webdata/autofill_webdata_service.cc',
206 'autofill/core/browser/webdata/autofill_webdata_service.h',
207 'autofill/core/browser/webdata/autofill_webdata_service_observer.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100208
209 # This file is generated by the autofill_regexes action.
210 '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc',
211 ],
212
213 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
214 'msvs_disabled_warnings': [4267, ],
215 },
216
217 {
Ben Murdochca12bfa2013-07-23 11:17:05 +0100218 'target_name': 'autofill_core_test_support',
219 'type': 'static_library',
220 'dependencies': [
221 'autofill_core_common',
222 'autofill_core_browser',
223 '../testing/gtest.gyp:gtest',
224 ],
225 'sources': [
226 'autofill/core/browser/android/test_auxiliary_profile_loader_android.cc',
227 'autofill/core/browser/android/test_auxiliary_profile_loader_android.h',
228 'autofill/core/browser/autofill_common_test.cc',
229 'autofill/core/browser/autofill_common_test.h',
230 'autofill/core/browser/data_driven_test.cc',
231 'autofill/core/browser/data_driven_test.h',
232 'autofill/core/browser/test_autofill_driver.cc',
233 'autofill/core/browser/test_autofill_driver.h',
234 'autofill/core/browser/test_autofill_external_delegate.cc',
235 'autofill/core/browser/test_autofill_external_delegate.h',
236 'autofill/core/browser/test_autofill_manager_delegate.cc',
237 'autofill/core/browser/test_autofill_manager_delegate.h',
238 'autofill/core/browser/test_personal_data_manager.cc',
239 'autofill/core/browser/test_personal_data_manager.h',
240 ],
241 },
242
243 {
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100244 # Protobuf compiler / generate rule for Autofill's risk integration.
245 'target_name': 'autofill_content_risk_proto',
246 'type': 'static_library',
247 'sources': [
248 'autofill/content/browser/risk/proto/fingerprint.proto',
249 ],
250 'variables': {
251 'proto_in_dir': 'autofill/content/browser/risk/proto',
252 'proto_out_dir': 'components/autofill/content/browser/risk/proto',
253 },
254 'includes': [ '../build/protoc.gypi' ]
255 },
256 {
Ben Murdochca12bfa2013-07-23 11:17:05 +0100257 'target_name': 'autofill_content_test_support',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100258 'type': 'static_library',
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100259 'dependencies': [
260 '../testing/gmock.gyp:gmock',
261 ],
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100262 'sources': [
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100263 'autofill/content/browser/wallet/mock_wallet_client.cc',
264 'autofill/content/browser/wallet/mock_wallet_client.h',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100265 'autofill/content/browser/wallet/wallet_test_util.cc',
266 'autofill/content/browser/wallet/wallet_test_util.h',
267 ],
268 'include_dirs': [ '..' ],
269 },
270 {
271 'target_name': 'autofill_content_browser',
272 'type': 'static_library',
273 'include_dirs': [
274 '..',
275 ],
276 'dependencies': [
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100277 'autofill_content_risk_proto',
Ben Murdocheb525c52013-07-10 11:40:50 +0100278 'autofill_core_browser',
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100279 'autofill_core_common',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100280 'autofill_regexes',
281 'encryptor',
282 'user_prefs',
283 'webdata_common',
284 '../base/base.gyp:base',
285 '../base/base.gyp:base_i18n',
286 '../base/base.gyp:base_prefs',
287 '../content/content.gyp:content_browser',
288 '../content/content.gyp:content_common',
289 '../google_apis/google_apis.gyp:google_apis',
290 '../ipc/ipc.gyp:ipc',
291 '../skia/skia.gyp:skia',
292 '../sql/sql.gyp:sql',
293 '../third_party/icu/icu.gyp:icui18n',
294 '../third_party/icu/icu.gyp:icuuc',
295 '../third_party/libjingle/libjingle.gyp:libjingle',
296 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
297 '../ui/ui.gyp:ui',
298 '../url/url.gyp:url_lib',
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100299 '../webkit/webkit_resources.gyp:webkit_resources',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100300
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100301 'component_strings.gyp:component_strings',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100302 ],
303 'sources': [
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100304 'autofill/content/browser/autocheckout/whitelist_manager.cc',
305 'autofill/content/browser/autocheckout/whitelist_manager.h',
306 'autofill/content/browser/autocheckout_manager.cc',
307 'autofill/content/browser/autocheckout_manager.h',
308 'autofill/content/browser/autocheckout_page_meta_data.cc',
309 'autofill/content/browser/autocheckout_page_meta_data.h',
310 'autofill/content/browser/autocheckout_request_manager.cc',
311 'autofill/content/browser/autocheckout_request_manager.h',
Ben Murdocheb525c52013-07-10 11:40:50 +0100312 'autofill/content/browser/autocheckout_statistic.cc',
313 'autofill/content/browser/autocheckout_statistic.h',
314 'autofill/content/browser/autocheckout_steps.h',
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100315 'autofill/content/browser/autofill_driver_impl.cc',
316 'autofill/content/browser/autofill_driver_impl.h',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100317 'autofill/content/browser/risk/fingerprint.cc',
318 'autofill/content/browser/risk/fingerprint.h',
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100319 'autofill/content/browser/wallet/form_field_error.cc',
320 'autofill/content/browser/wallet/form_field_error.h',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100321 'autofill/content/browser/wallet/full_wallet.cc',
322 'autofill/content/browser/wallet/full_wallet.h',
323 'autofill/content/browser/wallet/instrument.cc',
324 'autofill/content/browser/wallet/instrument.h',
325 'autofill/content/browser/wallet/required_action.cc',
326 'autofill/content/browser/wallet/required_action.h',
327 'autofill/content/browser/wallet/wallet_address.cc',
328 'autofill/content/browser/wallet/wallet_address.h',
329 'autofill/content/browser/wallet/wallet_client.cc',
330 'autofill/content/browser/wallet/wallet_client.h',
331 'autofill/content/browser/wallet/wallet_client_delegate.h',
332 'autofill/content/browser/wallet/wallet_items.cc',
333 'autofill/content/browser/wallet/wallet_items.h',
334 'autofill/content/browser/wallet/wallet_service_url.cc',
335 'autofill/content/browser/wallet/wallet_service_url.h',
336 'autofill/content/browser/wallet/wallet_signin_helper.cc',
337 'autofill/content/browser/wallet/wallet_signin_helper.h',
338 ],
339
340 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
341 'msvs_disabled_warnings': [4267, ],
342 },
343
344 {
345 'target_name': 'autofill_content_renderer',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100346 'type': 'static_library',
347 'include_dirs': [
348 '..',
349 ],
350 'dependencies': [
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100351 'autofill_core_common',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100352 '../base/base.gyp:base',
353 '../content/content.gyp:content_renderer',
354 '../content/content.gyp:content_common',
355 '../ipc/ipc.gyp:ipc',
356 '../skia/skia.gyp:skia',
357
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100358 'component_strings.gyp:component_strings',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100359 ],
360 'sources': [
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100361 'autofill/content/renderer/autofill_agent.cc',
362 'autofill/content/renderer/autofill_agent.h',
363 'autofill/content/renderer/form_autofill_util.cc',
364 'autofill/content/renderer/form_autofill_util.h',
365 'autofill/content/renderer/form_cache.cc',
366 'autofill/content/renderer/form_cache.h',
367 'autofill/content/renderer/page_click_listener.h',
368 'autofill/content/renderer/page_click_tracker.cc',
369 'autofill/content/renderer/page_click_tracker.h',
370 'autofill/content/renderer/password_autofill_agent.cc',
371 'autofill/content/renderer/password_autofill_agent.h',
372 'autofill/content/renderer/password_generation_manager.cc',
373 'autofill/content/renderer/password_generation_manager.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100374 ],
375 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
376 'msvs_disabled_warnings': [4267, ],
377 },
378 ],
379 }],
380 ['OS == "android"', {
381 'targets': [
382 {
383 'target_name': 'autofill_java',
384 'type': 'none',
385 'dependencies': [
386 '../base/base.gyp:base',
387 '../content/content.gyp:content_java',
388 ],
389 'variables': {
Ben Murdocheb525c52013-07-10 11:40:50 +0100390 'java_in_dir': 'autofill/core/browser/android/java',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100391 },
392 'includes': [ '../build/java.gypi' ],
393 },
394 {
395 'target_name': 'autofill_jni_headers',
396 'type': 'none',
397 'sources': [
Ben Murdocheb525c52013-07-10 11:40:50 +0100398 'autofill/core/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100399 ],
400 'variables': {
401 'jni_gen_package': 'autofill',
402 },
403 'includes': [ '../build/jni_generator.gypi' ],
404 },
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000405 ],
406 }],
407 ],
408}