blob: b677b194da2ac5067c4bc385917eb8f32dc671cf [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',
15 'autofill/browser/autofill_regex_constants.cc.utf8',
16 ],
17 'outputs': [
18 '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc',
19 ],
20 'action': ['python', '<(DEPTH)/build/escape_unicode.py',
21 '-o', '<(SHARED_INTERMEDIATE_DIR)',
22 'autofill/browser/autofill_regex_constants.cc.utf8'],
23 }],
24 },
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000025 ],
26 'conditions': [
27 ['OS != "ios"', {
28 'targets': [
29 {
30 'target_name': 'autofill_common',
31 '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',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +010036 '../third_party/WebKit/public/blink.gyp:blink',
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': [
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010052 'autofill/browser/android/auxiliary_profile_loader_android.cc',
53 'autofill/browser/android/auxiliary_profile_loader_android.h',
54 'autofill/browser/android/auxiliary_profiles_android.cc',
55 'autofill/browser/android/auxiliary_profiles_android.h',
56 'autofill/browser/android/component_jni_registrar.cc',
57 'autofill/browser/android/component_jni_registrar.h',
58 'autofill/browser/android/personal_data_manager_android.cc',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000059 'autofill/common/autocheckout_status.h',
60 'autofill/common/autofill_constants.cc',
61 'autofill/common/autofill_constants.h',
62 'autofill/common/autofill_messages.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010063 'autofill/common/autofill_message_generator.cc',
64 'autofill/common/autofill_message_generator.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000065 'autofill/common/autofill_pref_names.cc',
66 'autofill/common/autofill_pref_names.h',
67 'autofill/common/autofill_switches.cc',
68 'autofill/common/autofill_switches.h',
69 'autofill/common/form_data.cc',
70 'autofill/common/form_data.h',
71 'autofill/common/form_data_predictions.cc',
72 'autofill/common/form_data_predictions.h',
73 'autofill/common/form_field_data.cc',
74 'autofill/common/form_field_data.h',
75 'autofill/common/form_field_data_predictions.cc',
76 'autofill/common/form_field_data_predictions.h',
77 'autofill/common/password_form_fill_data.cc',
78 'autofill/common/password_form_fill_data.h',
79 'autofill/common/password_generation_util.cc',
80 'autofill/common/password_generation_util.h',
81 'autofill/common/web_element_descriptor.cc',
82 'autofill/common/web_element_descriptor.h',
83 ],
84 },
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010085
86 {
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +010087 # TODO(blundell): Eliminate this target; instead, have only the
88 # autofill_content_browser target and a new top-level
89 # autofill_shared target. crbug.com/247015
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010090 'target_name': 'autofill_browser',
91 'type': 'static_library',
92 'include_dirs': [
93 '..',
94 ],
95 'dependencies': [
96 'autofill_common',
97 'autofill_regexes',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010098 'encryptor',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010099 'user_prefs',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100100 'webdata_common',
101 '../base/base.gyp:base',
102 '../base/base.gyp:base_i18n',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100103 '../base/base.gyp:base_prefs',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100104 '../content/content.gyp:content_browser',
105 '../content/content.gyp:content_common',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100106 '../google_apis/google_apis.gyp:google_apis',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100107 '../ipc/ipc.gyp:ipc',
108 '../skia/skia.gyp:skia',
109 '../sql/sql.gyp:sql',
110 '../third_party/icu/icu.gyp:icui18n',
111 '../third_party/icu/icu.gyp:icuuc',
112 '../third_party/libjingle/libjingle.gyp:libjingle',
113 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
114 '../ui/ui.gyp:ui',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100115 '../url/url.gyp:url_lib',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100116 '../webkit/support/webkit_support.gyp:webkit_resources',
117
Torne (Richard Coles)a93a17c2013-05-15 11:34:50 +0100118 'component_resources.gyp:component_resources',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100119 ],
120 'sources': [
121 'autofill/browser/address.cc',
122 'autofill/browser/address.h',
123 'autofill/browser/address_field.cc',
124 'autofill/browser/address_field.h',
125 'autofill/browser/autocheckout/whitelist_manager.cc',
126 'autofill/browser/autocheckout/whitelist_manager.h',
127 'autofill/browser/autocheckout_manager.cc',
128 'autofill/browser/autocheckout_manager.h',
129 'autofill/browser/autocheckout_page_meta_data.cc',
130 'autofill/browser/autocheckout_page_meta_data.h',
131 'autofill/browser/autocheckout_request_manager.cc',
132 'autofill/browser/autocheckout_request_manager.h',
133 'autofill/browser/autocomplete_history_manager.cc',
134 'autofill/browser/autocomplete_history_manager.h',
135 'autofill/browser/autofill-inl.h',
136 'autofill/browser/autofill_country.cc',
137 'autofill/browser/autofill_country.h',
138 'autofill/browser/autofill_data_model.cc',
139 'autofill/browser/autofill_data_model.h',
140 'autofill/browser/autofill_download.cc',
141 'autofill/browser/autofill_download.h',
142 'autofill/browser/autofill_download_url.cc',
143 'autofill/browser/autofill_download_url.h',
144 'autofill/browser/autofill_external_delegate.cc',
145 'autofill/browser/autofill_external_delegate.h',
146 'autofill/browser/autofill_field.cc',
147 'autofill/browser/autofill_field.h',
148 'autofill/browser/autofill_ie_toolbar_import_win.cc',
149 'autofill/browser/autofill_ie_toolbar_import_win.h',
150 'autofill/browser/autofill_manager.cc',
151 'autofill/browser/autofill_manager.h',
152 'autofill/browser/autofill_manager_delegate.h',
153 'autofill/browser/autofill_manager_test_delegate.h',
154 'autofill/browser/autofill_metrics.cc',
155 'autofill/browser/autofill_metrics.h',
156 'autofill/browser/autofill_popup_delegate.h',
157 'autofill/browser/autofill_profile.cc',
158 'autofill/browser/autofill_profile.h',
159 'autofill/browser/autofill_regex_constants.cc.utf8',
160 'autofill/browser/autofill_regex_constants.h',
161 'autofill/browser/autofill_regexes.cc',
162 'autofill/browser/autofill_regexes.h',
163 'autofill/browser/autofill_scanner.cc',
164 'autofill/browser/autofill_scanner.h',
165 'autofill/browser/autofill_server_field_info.h',
166 'autofill/browser/autofill_type.cc',
167 'autofill/browser/autofill_type.h',
168 'autofill/browser/autofill_xml_parser.cc',
169 'autofill/browser/autofill_xml_parser.h',
170 'autofill/browser/contact_info.cc',
171 'autofill/browser/contact_info.h',
172 'autofill/browser/credit_card.cc',
173 'autofill/browser/credit_card.h',
174 'autofill/browser/credit_card_field.cc',
175 'autofill/browser/credit_card_field.h',
176 'autofill/browser/email_field.cc',
177 'autofill/browser/email_field.h',
178 'autofill/browser/field_types.h',
179 'autofill/browser/form_field.cc',
180 'autofill/browser/form_field.h',
181 'autofill/browser/form_group.cc',
182 'autofill/browser/form_group.h',
183 'autofill/browser/form_structure.cc',
184 'autofill/browser/form_structure.h',
185 'autofill/browser/name_field.cc',
186 'autofill/browser/name_field.h',
187 'autofill/browser/password_autofill_manager.cc',
188 'autofill/browser/password_autofill_manager.h',
189 'autofill/browser/password_generator.cc',
190 'autofill/browser/password_generator.h',
191 'autofill/browser/personal_data_manager.cc',
192 'autofill/browser/personal_data_manager.h',
193 'autofill/browser/personal_data_manager_mac.mm',
194 'autofill/browser/personal_data_manager_observer.h',
195 'autofill/browser/phone_field.cc',
196 'autofill/browser/phone_field.h',
197 'autofill/browser/phone_number.cc',
198 'autofill/browser/phone_number.h',
199 'autofill/browser/phone_number_i18n.cc',
200 'autofill/browser/phone_number_i18n.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100201 'autofill/browser/state_names.cc',
202 'autofill/browser/state_names.h',
203 'autofill/browser/validation.cc',
204 'autofill/browser/validation.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100205 'autofill/browser/webdata/autofill_change.cc',
206 'autofill/browser/webdata/autofill_change.h',
207 'autofill/browser/webdata/autofill_entry.cc',
208 'autofill/browser/webdata/autofill_entry.h',
209 'autofill/browser/webdata/autofill_table.cc',
210 'autofill/browser/webdata/autofill_table.h',
211 'autofill/browser/webdata/autofill_webdata.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100212 'autofill/browser/webdata/autofill_webdata_backend.h',
Torne (Richard Coles)a93a17c2013-05-15 11:34:50 +0100213 'autofill/browser/webdata/autofill_webdata_backend_impl.cc',
214 'autofill/browser/webdata/autofill_webdata_backend_impl.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100215 'autofill/browser/webdata/autofill_webdata_service.cc',
216 'autofill/browser/webdata/autofill_webdata_service.h',
217 'autofill/browser/webdata/autofill_webdata_service_observer.h',
218
219 # This file is generated by the autofill_regexes action.
220 '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc',
221 ],
222
223 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
224 'msvs_disabled_warnings': [4267, ],
225 },
226
227 {
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100228 # Protobuf compiler / generate rule for Autofill's risk integration.
229 'target_name': 'autofill_content_risk_proto',
230 'type': 'static_library',
231 'sources': [
232 'autofill/content/browser/risk/proto/fingerprint.proto',
233 ],
234 'variables': {
235 'proto_in_dir': 'autofill/content/browser/risk/proto',
236 'proto_out_dir': 'components/autofill/content/browser/risk/proto',
237 },
238 'includes': [ '../build/protoc.gypi' ]
239 },
240 {
241 'target_name': 'autofill_content_test_util',
242 'type': 'static_library',
243 'sources': [
244 'autofill/content/browser/wallet/wallet_test_util.cc',
245 'autofill/content/browser/wallet/wallet_test_util.h',
246 ],
247 'include_dirs': [ '..' ],
248 },
249 {
250 'target_name': 'autofill_content_browser',
251 'type': 'static_library',
252 'include_dirs': [
253 '..',
254 ],
255 'dependencies': [
256 'autofill_browser',
257 'autofill_common',
258 'autofill_content_risk_proto',
259 'autofill_regexes',
260 'encryptor',
261 'user_prefs',
262 'webdata_common',
263 '../base/base.gyp:base',
264 '../base/base.gyp:base_i18n',
265 '../base/base.gyp:base_prefs',
266 '../content/content.gyp:content_browser',
267 '../content/content.gyp:content_common',
268 '../google_apis/google_apis.gyp:google_apis',
269 '../ipc/ipc.gyp:ipc',
270 '../skia/skia.gyp:skia',
271 '../sql/sql.gyp:sql',
272 '../third_party/icu/icu.gyp:icui18n',
273 '../third_party/icu/icu.gyp:icuuc',
274 '../third_party/libjingle/libjingle.gyp:libjingle',
275 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
276 '../ui/ui.gyp:ui',
277 '../url/url.gyp:url_lib',
278 '../webkit/support/webkit_support.gyp:webkit_resources',
279
280 'component_resources.gyp:component_resources',
281 ],
282 'sources': [
283 'autofill/content/browser/risk/fingerprint.cc',
284 'autofill/content/browser/risk/fingerprint.h',
285 'autofill/content/browser/wallet/encryption_escrow_client.cc',
286 'autofill/content/browser/wallet/encryption_escrow_client.h',
287 'autofill/content/browser/wallet/encryption_escrow_client_observer.h',
288 'autofill/content/browser/wallet/full_wallet.cc',
289 'autofill/content/browser/wallet/full_wallet.h',
290 'autofill/content/browser/wallet/instrument.cc',
291 'autofill/content/browser/wallet/instrument.h',
292 'autofill/content/browser/wallet/required_action.cc',
293 'autofill/content/browser/wallet/required_action.h',
294 'autofill/content/browser/wallet/wallet_address.cc',
295 'autofill/content/browser/wallet/wallet_address.h',
296 'autofill/content/browser/wallet/wallet_client.cc',
297 'autofill/content/browser/wallet/wallet_client.h',
298 'autofill/content/browser/wallet/wallet_client_delegate.h',
299 'autofill/content/browser/wallet/wallet_items.cc',
300 'autofill/content/browser/wallet/wallet_items.h',
301 'autofill/content/browser/wallet/wallet_service_url.cc',
302 'autofill/content/browser/wallet/wallet_service_url.h',
303 'autofill/content/browser/wallet/wallet_signin_helper.cc',
304 'autofill/content/browser/wallet/wallet_signin_helper.h',
305 ],
306
307 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
308 'msvs_disabled_warnings': [4267, ],
309 },
310
311 {
312 'target_name': 'autofill_content_renderer',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100313 'type': 'static_library',
314 'include_dirs': [
315 '..',
316 ],
317 'dependencies': [
318 'autofill_common',
319 '../base/base.gyp:base',
320 '../content/content.gyp:content_renderer',
321 '../content/content.gyp:content_common',
322 '../ipc/ipc.gyp:ipc',
323 '../skia/skia.gyp:skia',
324
Torne (Richard Coles)a93a17c2013-05-15 11:34:50 +0100325 'component_resources.gyp:component_resources',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100326 ],
327 'sources': [
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100328 'autofill/content/renderer/autofill_agent.cc',
329 'autofill/content/renderer/autofill_agent.h',
330 'autofill/content/renderer/form_autofill_util.cc',
331 'autofill/content/renderer/form_autofill_util.h',
332 'autofill/content/renderer/form_cache.cc',
333 'autofill/content/renderer/form_cache.h',
334 'autofill/content/renderer/page_click_listener.h',
335 'autofill/content/renderer/page_click_tracker.cc',
336 'autofill/content/renderer/page_click_tracker.h',
337 'autofill/content/renderer/password_autofill_agent.cc',
338 'autofill/content/renderer/password_autofill_agent.h',
339 'autofill/content/renderer/password_generation_manager.cc',
340 'autofill/content/renderer/password_generation_manager.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100341 ],
342 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
343 'msvs_disabled_warnings': [4267, ],
344 },
345 ],
346 }],
347 ['OS == "android"', {
348 'targets': [
349 {
350 'target_name': 'autofill_java',
351 'type': 'none',
352 'dependencies': [
353 '../base/base.gyp:base',
354 '../content/content.gyp:content_java',
355 ],
356 'variables': {
357 'java_in_dir': 'autofill/browser/android/java',
358 },
359 'includes': [ '../build/java.gypi' ],
360 },
361 {
362 'target_name': 'autofill_jni_headers',
363 'type': 'none',
364 'sources': [
365 'autofill/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java',
366 ],
367 'variables': {
368 'jni_gen_package': 'autofill',
369 },
370 'includes': [ '../build/jni_generator.gypi' ],
371 },
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000372 ],
373 }],
374 ],
375}