Remove broken closed push logic in SpdyHttpStream::SendRequest()
[chromium-blink-merge.git] / components / autofill.gypi
blob61496b55eccb9523b83096217689bbb8108fe5ba
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       # Private target only used in components/autofill.
9       'target_name': 'autofill_regexes',
10       'type': 'none',
11       'actions': [{
12         'action_name': 'autofill_regexes',
13         'inputs': [
14           '<(DEPTH)/build/escape_unicode.py',
15           'autofill/core/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/core/browser/autofill_regex_constants.cc.utf8'],
23       }],
24     },
26     {
27       'target_name': 'autofill_core_common',
28       'type': 'static_library',
29       'dependencies': [
30         '../base/base.gyp:base',
31         '../ui/base/ui_base.gyp:ui_base',
32         '../ui/gfx/gfx.gyp:gfx',
33         '../url/url.gyp:url_lib',
34       ],
35       'conditions': [
36         ['OS == "android"', {
37           'dependencies': [
38             'autofill_jni_headers',
39           ],
40         }],
41       ],
42       'include_dirs': [
43         '..',
44       ],
45       'sources': [
46         'autofill/core/browser/android/auxiliary_profile_loader_android.cc',
47         'autofill/core/browser/android/auxiliary_profile_loader_android.h',
48         'autofill/core/browser/android/auxiliary_profiles_android.cc',
49         'autofill/core/browser/android/auxiliary_profiles_android.h',
50         'autofill/core/browser/android/component_jni_registrar.cc',
51         'autofill/core/browser/android/component_jni_registrar.h',
52         'autofill/core/browser/android/personal_data_manager_android.cc',
53         'autofill/core/common/autofill_constants.cc',
54         'autofill/core/common/autofill_constants.h',
55         'autofill/core/common/autofill_data_validation.cc',
56         'autofill/core/common/autofill_data_validation.h',
57         'autofill/core/common/autofill_pref_names.cc',
58         'autofill/core/common/autofill_pref_names.h',
59         'autofill/core/common/autofill_switches.cc',
60         'autofill/core/common/autofill_switches.h',
61         'autofill/core/common/form_data.cc',
62         'autofill/core/common/form_data.h',
63         'autofill/core/common/form_data_predictions.cc',
64         'autofill/core/common/form_data_predictions.h',
65         'autofill/core/common/form_field_data.cc',
66         'autofill/core/common/form_field_data.h',
67         'autofill/core/common/form_field_data_predictions.cc',
68         'autofill/core/common/form_field_data_predictions.h',
69         'autofill/core/common/password_autofill_util.cc',
70         'autofill/core/common/password_autofill_util.h',
71         'autofill/core/common/password_form.cc',
72         'autofill/core/common/password_form.h',
73         'autofill/core/common/password_form_fill_data.cc',
74         'autofill/core/common/password_form_fill_data.h',
75         'autofill/core/common/password_generation_util.cc',
76         'autofill/core/common/password_generation_util.h',
77         'autofill/core/common/web_element_descriptor.cc',
78         'autofill/core/common/web_element_descriptor.h',
79       ],
80     },
82     {
83       'target_name': 'autofill_core_browser',
84       'type': 'static_library',
85       'include_dirs': [
86         '..',
87       ],
88       'dependencies': [
89         '../base/base.gyp:base',
90         '../base/base.gyp:base_i18n',
91         '../base/base.gyp:base_prefs',
92         '../google_apis/google_apis.gyp:google_apis',
93         '../skia/skia.gyp:skia',
94         '../sql/sql.gyp:sql',
95         '../third_party/icu/icu.gyp:icui18n',
96         '../third_party/icu/icu.gyp:icuuc',
97         '../third_party/libjingle/libjingle.gyp:libjingle',
98         '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
99         '../ui/base/ui_base.gyp:ui_base',
100         '../ui/gfx/gfx.gyp:gfx',
101         '../url/url.gyp:url_lib',
102         'autofill_core_common',
103         'autofill_regexes',
104         'component_resources.gyp:component_resources',
105         'component_strings.gyp:component_strings',
106         'encryptor',
107         'user_prefs',
108         'webdata_common',
109       ],
110       'sources': [
111         'autofill/core/browser/address.cc',
112         'autofill/core/browser/address.h',
113         'autofill/core/browser/address_field.cc',
114         'autofill/core/browser/address_field.h',
115         'autofill/core/browser/autocomplete_history_manager.cc',
116         'autofill/core/browser/autocomplete_history_manager.h',
117         'autofill/core/browser/autofill-inl.h',
118         'autofill/core/browser/autofill_country.cc',
119         'autofill/core/browser/autofill_country.h',
120         'autofill/core/browser/autofill_data_model.cc',
121         'autofill/core/browser/autofill_data_model.h',
122         'autofill/core/browser/autofill_download.cc',
123         'autofill/core/browser/autofill_download.h',
124         'autofill/core/browser/autofill_download_url.cc',
125         'autofill/core/browser/autofill_download_url.h',
126         'autofill/core/browser/autofill_driver.h',
127         'autofill/core/browser/autofill_external_delegate.cc',
128         'autofill/core/browser/autofill_external_delegate.h',
129         'autofill/core/browser/autofill_field.cc',
130         'autofill/core/browser/autofill_field.h',
131         'autofill/core/browser/autofill_ie_toolbar_import_win.cc',
132         'autofill/core/browser/autofill_ie_toolbar_import_win.h',
133         'autofill/core/browser/autofill_manager.cc',
134         'autofill/core/browser/autofill_manager.h',
135         'autofill/core/browser/autofill_manager_delegate.h',
136         'autofill/core/browser/autofill_manager_test_delegate.h',
137         'autofill/core/browser/autofill_metrics.cc',
138         'autofill/core/browser/autofill_metrics.h',
139         'autofill/core/browser/autofill_popup_delegate.h',
140         'autofill/core/browser/autofill_profile.cc',
141         'autofill/core/browser/autofill_profile.h',
142         'autofill/core/browser/autofill_regex_constants.cc.utf8',
143         'autofill/core/browser/autofill_regex_constants.h',
144         'autofill/core/browser/autofill_regexes.cc',
145         'autofill/core/browser/autofill_regexes.h',
146         'autofill/core/browser/autofill_scanner.cc',
147         'autofill/core/browser/autofill_scanner.h',
148         'autofill/core/browser/autofill_server_field_info.h',
149         'autofill/core/browser/autofill_type.cc',
150         'autofill/core/browser/autofill_type.h',
151         'autofill/core/browser/autofill_xml_parser.cc',
152         'autofill/core/browser/autofill_xml_parser.h',
153         'autofill/core/browser/contact_info.cc',
154         'autofill/core/browser/contact_info.h',
155         'autofill/core/browser/credit_card.cc',
156         'autofill/core/browser/credit_card.h',
157         'autofill/core/browser/credit_card_field.cc',
158         'autofill/core/browser/credit_card_field.h',
159         'autofill/core/browser/email_field.cc',
160         'autofill/core/browser/email_field.h',
161         'autofill/core/browser/field_types.h',
162         'autofill/core/browser/form_field.cc',
163         'autofill/core/browser/form_field.h',
164         'autofill/core/browser/form_group.cc',
165         'autofill/core/browser/form_group.h',
166         'autofill/core/browser/form_structure.cc',
167         'autofill/core/browser/form_structure.h',
168         'autofill/core/browser/name_field.cc',
169         'autofill/core/browser/name_field.h',
170         'autofill/core/browser/password_autofill_manager.cc',
171         'autofill/core/browser/password_autofill_manager.h',
172         'autofill/core/browser/password_generator.cc',
173         'autofill/core/browser/password_generator.h',
174         'autofill/core/browser/personal_data_manager.cc',
175         'autofill/core/browser/personal_data_manager.h',
176         'autofill/core/browser/personal_data_manager_mac.mm',
177         'autofill/core/browser/personal_data_manager_observer.h',
178         'autofill/core/browser/phone_field.cc',
179         'autofill/core/browser/phone_field.h',
180         'autofill/core/browser/phone_number.cc',
181         'autofill/core/browser/phone_number.h',
182         'autofill/core/browser/phone_number_i18n.cc',
183         'autofill/core/browser/phone_number_i18n.h',
184         'autofill/core/browser/state_names.cc',
185         'autofill/core/browser/state_names.h',
186         'autofill/core/browser/validation.cc',
187         'autofill/core/browser/validation.h',
188         'autofill/core/browser/webdata/autofill_change.cc',
189         'autofill/core/browser/webdata/autofill_change.h',
190         'autofill/core/browser/webdata/autofill_entry.cc',
191         'autofill/core/browser/webdata/autofill_entry.h',
192         'autofill/core/browser/webdata/autofill_profile_syncable_service.cc',
193         'autofill/core/browser/webdata/autofill_profile_syncable_service.h',
194         'autofill/core/browser/webdata/autofill_table.cc',
195         'autofill/core/browser/webdata/autofill_table.h',
196         'autofill/core/browser/webdata/autofill_webdata.h',
197         'autofill/core/browser/webdata/autofill_webdata_backend.h',
198         'autofill/core/browser/webdata/autofill_webdata_backend_impl.cc',
199         'autofill/core/browser/webdata/autofill_webdata_backend_impl.h',
200         'autofill/core/browser/webdata/autofill_webdata_service.cc',
201         'autofill/core/browser/webdata/autofill_webdata_service.h',
202         'autofill/core/browser/webdata/autofill_webdata_service_observer.h',
204         # This file is generated by the autofill_regexes action.
205         '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc',
206       ],
207       'variables': {
208         'conditions': [
209           ['android_webview_build == 1', {
210             # Android WebView doesn't support sync.
211             'autofill_enable_sync%': 0,
212           }, {
213             'autofill_enable_sync%': 1,
214           }],
215         ],
216       },
217       'conditions': [
218         ['autofill_enable_sync == 1', {
219           'defines': [
220             'AUTOFILL_ENABLE_SYNC',
221           ],
222           'dependencies': [
223             '../sync/sync.gyp:sync',
224           ],
225           'direct_dependent_settings': {
226             'defines': [
227               'AUTOFILL_ENABLE_SYNC',
228             ],
229           },
230         }, { # 'autofill_enable_sync == 0'
231           'sources!': [
232             'autofill/core/browser/webdata/autofill_profile_syncable_service.cc',
233             'autofill/core/browser/webdata/autofill_profile_syncable_service.h',
234           ],
235         }],
236       ],
238       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
239       'msvs_disabled_warnings': [4267, ],
240     },
242     {
243       'target_name': 'autofill_core_test_support',
244       'type': 'static_library',
245       'dependencies': [
246         'autofill_core_common',
247         'autofill_core_browser',
248         '../skia/skia.gyp:skia',
249         '../testing/gtest.gyp:gtest',
250       ],
251       'sources': [
252         'autofill/core/browser/android/test_auxiliary_profile_loader_android.cc',
253         'autofill/core/browser/android/test_auxiliary_profile_loader_android.h',
254         'autofill/core/browser/autofill_test_utils.cc',
255         'autofill/core/browser/autofill_test_utils.h',
256         'autofill/core/browser/data_driven_test.cc',
257         'autofill/core/browser/data_driven_test.h',
258         'autofill/core/browser/test_autofill_driver.cc',
259         'autofill/core/browser/test_autofill_driver.h',
260         'autofill/core/browser/test_autofill_external_delegate.cc',
261         'autofill/core/browser/test_autofill_external_delegate.h',
262         'autofill/core/browser/test_autofill_manager_delegate.cc',
263         'autofill/core/browser/test_autofill_manager_delegate.h',
264         'autofill/core/browser/test_personal_data_manager.cc',
265         'autofill/core/browser/test_personal_data_manager.h',
266       ],
267     },
268   ],
269   'conditions': [
270     ['OS != "ios"', {
271       'targets': [
272         {
273           'target_name': 'autofill_content_common',
274           'type': 'static_library',
275           'dependencies': [
276             'autofill_core_common',
277             '../base/base.gyp:base',
278             '../content/content.gyp:content_common',
279             '../ipc/ipc.gyp:ipc',
280             '../third_party/WebKit/public/blink.gyp:blink_minimal',
281             '../ui/gfx/gfx.gyp:gfx',
282           ],
283           'include_dirs': [
284             '..',
285           ],
286           'sources': [
287             'autofill/content/common/autofill_message_generator.cc',
288             'autofill/content/common/autofill_message_generator.h',
289             'autofill/content/common/autofill_messages.h',
290             'autofill/content/common/autofill_param_traits_macros.h',
291           ],
292         },
294         {
295           # Protobuf compiler / generate rule for Autofill's risk integration.
296           'target_name': 'autofill_content_risk_proto',
297           'type': 'static_library',
298           'sources': [
299             'autofill/content/browser/risk/proto/fingerprint.proto',
300           ],
301           'variables': {
302             'proto_in_dir': 'autofill/content/browser/risk/proto',
303             'proto_out_dir': 'components/autofill/content/browser/risk/proto',
304           },
305           'includes': [ '../build/protoc.gypi' ]
306         },
307        {
308          'target_name': 'autofill_content_test_support',
309          'type': 'static_library',
310          'dependencies': [
311             '../testing/gmock.gyp:gmock',
312          ],
313          'sources': [
314            'autofill/content/browser/wallet/mock_wallet_client.cc',
315            'autofill/content/browser/wallet/mock_wallet_client.h',
316            'autofill/content/browser/wallet/wallet_test_util.cc',
317            'autofill/content/browser/wallet/wallet_test_util.h',
318          ],
319          'include_dirs': [ '..' ],
320        },
321        {
322           'target_name': 'autofill_content_browser',
323           'type': 'static_library',
324           'include_dirs': [
325             '..',
326           ],
327           'dependencies': [
328             '../base/base.gyp:base',
329             '../base/base.gyp:base_i18n',
330             '../base/base.gyp:base_prefs',
331             '../content/content.gyp:content_browser',
332             '../content/content.gyp:content_common',
333             '../google_apis/google_apis.gyp:google_apis',
334             '../ipc/ipc.gyp:ipc',
335             '../skia/skia.gyp:skia',
336             '../sql/sql.gyp:sql',
337             '../third_party/icu/icu.gyp:icui18n',
338             '../third_party/icu/icu.gyp:icuuc',
339             '../third_party/libjingle/libjingle.gyp:libjingle',
340             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
341             '../ui/base/ui_base.gyp:ui_base',
342             '../ui/gfx/gfx.gyp:gfx',
343             '../ui/gfx/gfx.gyp:gfx_geometry',
344             '../url/url.gyp:url_lib',
345             'autofill_content_common',
346             'autofill_content_risk_proto',
347             'autofill_core_browser',
348             'autofill_core_common',
349             'autofill_regexes',
350             'component_resources.gyp:component_resources',
351             'component_strings.gyp:component_strings',
352             'encryptor',
353             'user_prefs',
354             'webdata_common',
355           ],
356           'sources': [
357             'autofill/content/browser/content_autofill_driver.cc',
358             'autofill/content/browser/content_autofill_driver.h',
359             'autofill/content/browser/request_autocomplete_manager.cc',
360             'autofill/content/browser/request_autocomplete_manager.h',
361             'autofill/content/browser/risk/fingerprint.cc',
362             'autofill/content/browser/risk/fingerprint.h',
363             'autofill/content/browser/wallet/form_field_error.cc',
364             'autofill/content/browser/wallet/form_field_error.h',
365             'autofill/content/browser/wallet/full_wallet.cc',
366             'autofill/content/browser/wallet/full_wallet.h',
367             'autofill/content/browser/wallet/gaia_account.cc',
368             'autofill/content/browser/wallet/gaia_account.h',
369             'autofill/content/browser/wallet/instrument.cc',
370             'autofill/content/browser/wallet/instrument.h',
371             'autofill/content/browser/wallet/required_action.cc',
372             'autofill/content/browser/wallet/required_action.h',
373             'autofill/content/browser/wallet/wallet_address.cc',
374             'autofill/content/browser/wallet/wallet_address.h',
375             'autofill/content/browser/wallet/wallet_client.cc',
376             'autofill/content/browser/wallet/wallet_client.h',
377             'autofill/content/browser/wallet/wallet_client_delegate.h',
378             'autofill/content/browser/wallet/wallet_items.cc',
379             'autofill/content/browser/wallet/wallet_items.h',
380             'autofill/content/browser/wallet/wallet_service_url.cc',
381             'autofill/content/browser/wallet/wallet_service_url.h',
382             'autofill/content/browser/wallet/wallet_signin_helper.cc',
383             'autofill/content/browser/wallet/wallet_signin_helper.h',
384           ],
386           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
387           'msvs_disabled_warnings': [4267, ],
388         },
390         {
391           'target_name': 'autofill_content_renderer',
392           'type': 'static_library',
393           'include_dirs': [
394             '..',
395           ],
396           'dependencies': [
397             'autofill_content_common',
398             'autofill_core_common',
399             '../base/base.gyp:base',
400             '../content/content.gyp:content_renderer',
401             '../content/content.gyp:content_common',
402             '../ipc/ipc.gyp:ipc',
403             '../skia/skia.gyp:skia',
404             '../third_party/WebKit/public/blink.gyp:blink',
406             'component_strings.gyp:component_strings',
407           ],
408           'sources': [
409             'autofill/content/renderer/autofill_agent.cc',
410             'autofill/content/renderer/autofill_agent.h',
411             'autofill/content/renderer/form_autofill_util.cc',
412             'autofill/content/renderer/form_autofill_util.h',
413             'autofill/content/renderer/form_cache.cc',
414             'autofill/content/renderer/form_cache.h',
415             'autofill/content/renderer/page_click_listener.h',
416             'autofill/content/renderer/page_click_tracker.cc',
417             'autofill/content/renderer/page_click_tracker.h',
418             'autofill/content/renderer/password_autofill_agent.cc',
419             'autofill/content/renderer/password_autofill_agent.h',
420             'autofill/content/renderer/password_form_conversion_utils.cc',
421             'autofill/content/renderer/password_form_conversion_utils.h',
422             'autofill/content/renderer/password_generation_agent.cc',
423             'autofill/content/renderer/password_generation_agent.h',
424           ],
425           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
426           'msvs_disabled_warnings': [4267, ],
427         },
428       ],
429     }],
430     ['OS == "android"', {
431       'targets': [
432         {
433           'target_name': 'autofill_java',
434           'type': 'none',
435           'dependencies': [
436             '../base/base.gyp:base',
437             '../content/content.gyp:content_java',
438           ],
439           'variables': {
440             'java_in_dir': 'autofill/core/browser/android/java',
441           },
442           'includes': [ '../build/java.gypi' ],
443         },
444         {
445           'target_name': 'autofill_jni_headers',
446           'type': 'none',
447           'sources': [
448             'autofill/core/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java',
449           ],
450           'variables': {
451             'jni_gen_package': 'autofill',
452             'jni_generator_ptr_type': 'long',
453           },
454           'includes': [ '../build/jni_generator.gypi' ],
455         },
456       ],
457     }],
458   ],