Remove syzygy/asan_rtl.dll from offical archives.
[chromium-blink-merge.git] / components / autofill.gypi
blob42594ad403be4aac254da151b37d91a90f8950be
1 # 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.
6   'targets': [
7     {
8       'target_name': 'autofill_regexes',
9       'type': 'none',
10       'actions': [{
11         'action_name': 'autofill_regexes',
12         'inputs': [
13           '<(DEPTH)/build/escape_unicode.py',
14           'autofill/browser/autofill_regex_constants.cc.utf8',
15         ],
16         'outputs': [
17           '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc',
18         ],
19         'action': ['python', '<(DEPTH)/build/escape_unicode.py',
20                    '-o', '<(SHARED_INTERMEDIATE_DIR)',
21                    'autofill/browser/autofill_regex_constants.cc.utf8'],
22       }],
23     },
24     {
25       # Protobuf compiler / generate rule for Autofill's risk integration.
26       'target_name': 'autofill_risk_proto',
27       'type': 'static_library',
28       'sources': [
29         'autofill/browser/risk/proto/fingerprint.proto',
30       ],
31       'variables': {
32         'proto_in_dir': 'autofill/browser/risk/proto',
33         'proto_out_dir': 'components/autofill/browser/risk/proto',
34       },
35       'includes': [ '../build/protoc.gypi' ]
36     },
37   ],
38   'conditions': [
39     ['OS != "ios"', {
40       'targets': [
41         {
42           'target_name': 'autofill_common',
43           'type': 'static_library',
44           'dependencies': [
45             '../base/base.gyp:base',
46             '../build/temp_gyp/googleurl.gyp:googleurl',
47             '../content/content.gyp:content_common',
48             '../ipc/ipc.gyp:ipc',
49             '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
50             '../ui/ui.gyp:ui',
51           ],
52           'conditions': [
53             ['OS == "android"', {
54               'dependencies': [
55                 'autofill_jni_headers',
56               ],
57             }],
58           ],
59           'include_dirs': [
60             '..',
61             '<(SHARED_INTERMEDIATE_DIR)/autofill'
62           ],
63           'sources': [
64             'autofill/browser/android/auxiliary_profile_loader_android.cc',
65             'autofill/browser/android/auxiliary_profile_loader_android.h',
66             'autofill/browser/android/auxiliary_profiles_android.cc',
67             'autofill/browser/android/auxiliary_profiles_android.h',
68             'autofill/browser/android/component_jni_registrar.cc',
69             'autofill/browser/android/component_jni_registrar.h',
70             'autofill/browser/android/personal_data_manager_android.cc',
71             'autofill/common/autocheckout_status.h',
72             'autofill/common/autofill_constants.cc',
73             'autofill/common/autofill_constants.h',
74             'autofill/common/autofill_messages.h',
75             'autofill/common/autofill_pref_names.cc',
76             'autofill/common/autofill_pref_names.h',
77             'autofill/common/autofill_switches.cc',
78             'autofill/common/autofill_switches.h',
79             'autofill/common/form_data.cc',
80             'autofill/common/form_data.h',
81             'autofill/common/form_data_predictions.cc',
82             'autofill/common/form_data_predictions.h',
83             'autofill/common/form_field_data.cc',
84             'autofill/common/form_field_data.h',
85             'autofill/common/form_field_data_predictions.cc',
86             'autofill/common/form_field_data_predictions.h',
87             'autofill/common/password_form_fill_data.cc',
88             'autofill/common/password_form_fill_data.h',
89             'autofill/common/password_generation_util.cc',
90             'autofill/common/password_generation_util.h',
91             'autofill/common/web_element_descriptor.cc',
92             'autofill/common/web_element_descriptor.h',
93           ],
94         },
96         {
97           # A few types used by autofill_browser that are also referenced in
98           # other components.
99           'target_name': 'autofill_browser_types',
100           'type': 'static_library',
101           'include_dirs': [
102             '..',
103           ],
104           'dependencies': [
105             'autofill_common',
106             'autofill_regexes',
107             '../base/base.gyp:base',
108             '../third_party/icu/icu.gyp:icui18n',
109             '../third_party/icu/icu.gyp:icuuc',
110             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
111             '../ui/ui.gyp:ui',
112             '../webkit/support/webkit_support.gyp:webkit_resources',
114             # For grip/generated_resources.h
115             # TODO(kaiwang): Remove this dependency on chrome.
116             '../chrome/chrome_resources.gyp:chrome_strings',
117           ],
118           'sources': [
119             'autofill/browser/address.cc',
120             'autofill/browser/address.h',
121             'autofill/browser/autofill_country.cc',
122             'autofill/browser/autofill_country.h',
123             'autofill/browser/autofill_field.cc',
124             'autofill/browser/autofill_field.h',
125             'autofill/browser/autofill_profile.cc',
126             'autofill/browser/autofill_profile.h',
127             'autofill/browser/autofill_regexes.cc',
128             'autofill/browser/autofill_regexes.h',
129             'autofill/browser/autofill_type.cc',
130             'autofill/browser/autofill_type.h',
131             'autofill/browser/contact_info.cc',
132             'autofill/browser/contact_info.h',
133             'autofill/browser/credit_card.cc',
134             'autofill/browser/credit_card.h',
135             'autofill/browser/field_types.h',
136             'autofill/browser/form_group.cc',
137             'autofill/browser/form_group.h',
138             'autofill/browser/phone_number.cc',
139             'autofill/browser/phone_number.h',
140             'autofill/browser/phone_number_i18n.cc',
141             'autofill/browser/phone_number_i18n.h',
142             'autofill/browser/validation.cc',
143             'autofill/browser/validation.h',
144           ],
146           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
147           'msvs_disabled_warnings': [4267, ],
148         },
150         {
151           'target_name': 'autofill_browser',
152           'type': 'static_library',
153           'include_dirs': [
154             '..',
155           ],
156           'dependencies': [
157             'autofill_browser_types',
158             'autofill_common',
159             'autofill_regexes',
160             'autofill_risk_proto',
161             '../base/base.gyp:base',
162             '../build/temp_gyp/googleurl.gyp:googleurl',
163             '../content/content.gyp:content_browser',
164             '../content/content.gyp:content_common',
165             '../ipc/ipc.gyp:ipc',
166             '../skia/skia.gyp:skia',
167             '../third_party/libjingle/libjingle.gyp:libjingle',
168             '../webkit/support/webkit_support.gyp:webkit_resources',
170             # For grip/generated_resources.h and grit/chromium_strings.h
171             # TODO(kaiwang): Remove this dependency on chrome.
172             '../chrome/chrome_resources.gyp:chrome_strings',
174             # TODO(kaiwang): Add webdata after it's fully componentized.
175           ],
176           'sources': [
177             'autofill/browser/address_field.cc',
178             'autofill/browser/address_field.h',
179             'autofill/browser/autocheckout/whitelist_manager.cc',
180             'autofill/browser/autocheckout/whitelist_manager.h',
181             'autofill/browser/autocheckout_manager.cc',
182             'autofill/browser/autocheckout_manager.h',
183             'autofill/browser/autocheckout_page_meta_data.cc',
184             'autofill/browser/autocheckout_page_meta_data.h',
185             'autofill/browser/autocheckout_request_manager.cc',
186             'autofill/browser/autocheckout_request_manager.h',
187             'autofill/browser/autocomplete_history_manager.cc',
188             'autofill/browser/autocomplete_history_manager.h',
189             'autofill/browser/autofill-inl.h',
190             'autofill/browser/autofill_download.cc',
191             'autofill/browser/autofill_download.h',
192             'autofill/browser/autofill_download_url.cc',
193             'autofill/browser/autofill_download_url.h',
194             'autofill/browser/autofill_external_delegate.cc',
195             'autofill/browser/autofill_external_delegate.h',
196             'autofill/browser/autofill_ie_toolbar_import_win.cc',
197             'autofill/browser/autofill_ie_toolbar_import_win.h',
198             'autofill/browser/autofill_manager.cc',
199             'autofill/browser/autofill_manager.h',
200             'autofill/browser/autofill_manager_delegate.h',
201             'autofill/browser/autofill_manager_test_delegate.h',
202             'autofill/browser/autofill_metrics.cc',
203             'autofill/browser/autofill_metrics.h',
204             'autofill/browser/autofill_popup_delegate.h',
205             'autofill/browser/autofill_regex_constants.cc.utf8',
206             'autofill/browser/autofill_regex_constants.h',
207             'autofill/browser/autofill_scanner.cc',
208             'autofill/browser/autofill_scanner.h',
209             'autofill/browser/autofill_server_field_info.h',
210             'autofill/browser/autofill_xml_parser.cc',
211             'autofill/browser/autofill_xml_parser.h',
212             'autofill/browser/credit_card_field.cc',
213             'autofill/browser/credit_card_field.h',
214             'autofill/browser/email_field.cc',
215             'autofill/browser/email_field.h',
216             'autofill/browser/form_field.cc',
217             'autofill/browser/form_field.h',
218             'autofill/browser/form_structure.cc',
219             'autofill/browser/form_structure.h',
220             'autofill/browser/name_field.cc',
221             'autofill/browser/name_field.h',
222             'autofill/browser/password_autofill_manager.cc',
223             'autofill/browser/password_autofill_manager.h',
224             'autofill/browser/password_generator.cc',
225             'autofill/browser/password_generator.h',
226             'autofill/browser/personal_data_manager.cc',
227             'autofill/browser/personal_data_manager.h',
228             'autofill/browser/personal_data_manager_mac.mm',
229             'autofill/browser/personal_data_manager_observer.h',
230             'autofill/browser/phone_field.cc',
231             'autofill/browser/phone_field.h',
232             'autofill/browser/risk/fingerprint.cc',
233             'autofill/browser/risk/fingerprint.h',
234             'autofill/browser/wallet/cart.cc',
235             'autofill/browser/wallet/cart.h',
236             'autofill/browser/wallet/encryption_escrow_client.cc',
237             'autofill/browser/wallet/encryption_escrow_client.h',
238             'autofill/browser/wallet/encryption_escrow_client_observer.h',
239             'autofill/browser/wallet/full_wallet.cc',
240             'autofill/browser/wallet/full_wallet.h',
241             'autofill/browser/wallet/instrument.cc',
242             'autofill/browser/wallet/instrument.h',
243             'autofill/browser/wallet/required_action.cc',
244             'autofill/browser/wallet/required_action.h',
245             'autofill/browser/wallet/wallet_address.cc',
246             'autofill/browser/wallet/wallet_address.h',
247             'autofill/browser/wallet/wallet_client.cc',
248             'autofill/browser/wallet/wallet_client.h',
249             'autofill/browser/wallet/wallet_client_delegate.h',
250             'autofill/browser/wallet/wallet_items.cc',
251             'autofill/browser/wallet/wallet_items.h',
252             'autofill/browser/wallet/wallet_service_url.cc',
253             'autofill/browser/wallet/wallet_service_url.h',
254             'autofill/browser/wallet/wallet_signin_helper.cc',
255             'autofill/browser/wallet/wallet_signin_helper.h',
257             # This file is generated by the autofill_regexes action.
258             '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc',
259           ],
261           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
262           'msvs_disabled_warnings': [4267, ],
263         },
265         {
266           'target_name': 'autofill_renderer',
267           'type': 'static_library',
268           'include_dirs': [
269             '..',
270           ],
271           'dependencies': [
272             'autofill_common',
273             '../base/base.gyp:base',
274             '../content/content.gyp:content_renderer',
275             '../content/content.gyp:content_common',
276             '../ipc/ipc.gyp:ipc',
277             '../skia/skia.gyp:skia',
279             # For grip/generated_resources.h and grit/chromium_strings.h
280             # TODO(kaiwang): Remove this dependency on chrome.
281             '../chrome/chrome_resources.gyp:chrome_strings',
282           ],
283           'sources': [
284             'autofill/renderer/autofill_agent.cc',
285             'autofill/renderer/autofill_agent.h',
286             'autofill/renderer/form_autofill_util.cc',
287             'autofill/renderer/form_autofill_util.h',
288             'autofill/renderer/form_cache.cc',
289             'autofill/renderer/form_cache.h',
290             'autofill/renderer/page_click_listener.h',
291             'autofill/renderer/page_click_tracker.cc',
292             'autofill/renderer/page_click_tracker.h',
293             'autofill/renderer/password_autofill_agent.cc',
294             'autofill/renderer/password_autofill_agent.h',
295             'autofill/renderer/password_generation_manager.cc',
296             'autofill/renderer/password_generation_manager.h',
297           ],
298           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
299           'msvs_disabled_warnings': [4267, ],
300         },
301       ],
302     }],
303     ['OS == "android"', {
304       'targets': [
305         {
306           'target_name': 'autofill_java',
307           'type': 'none',
308           'dependencies': [
309             '../base/base.gyp:base',
310             '../content/content.gyp:content_java',
311           ],
312           'variables': {
313             'java_in_dir': 'autofill/browser/android/java',
314           },
315           'includes': [ '../build/java.gypi' ],
316         },
317         {
318           'target_name': 'autofill_jni_headers',
319           'type': 'none',
320           'sources': [
321             'autofill/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java',
322           ],
323           'variables': {
324             'jni_gen_package': 'autofill',
325           },
326           'includes': [ '../build/jni_generator.gypi' ],
327         },
328       ],
329     }],
330   ],