Remove obsolete DEPS override in c/b/history.
[chromium-blink-merge.git] / components / autofill.gypi
blobd449e9cbee87f0b0321ed27179a71cb7e5e085f2
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       # GN version: //components/autofill/core/common
9       'target_name': 'autofill_core_common',
10       'type': 'static_library',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../base/base.gyp:base_i18n',
14         '../ui/base/ui_base.gyp:ui_base',
15         '../ui/gfx/gfx.gyp:gfx',
16         '../url/url.gyp:url_lib',
17       ],
18       'include_dirs': [
19         '..',
20       ],
21       'sources': [
22         'autofill/core/common/autofill_constants.cc',
23         'autofill/core/common/autofill_constants.h',
24         'autofill/core/common/autofill_data_validation.cc',
25         'autofill/core/common/autofill_data_validation.h',
26         'autofill/core/common/autofill_l10n_util.cc',
27         'autofill/core/common/autofill_l10n_util.h',
28         'autofill/core/common/autofill_pref_names.cc',
29         'autofill/core/common/autofill_pref_names.h',
30         'autofill/core/common/autofill_regexes.cc',
31         'autofill/core/common/autofill_regexes.h',
32         'autofill/core/common/autofill_switches.cc',
33         'autofill/core/common/autofill_switches.h',
34         'autofill/core/common/autofill_util.cc',
35         'autofill/core/common/autofill_util.h',
36         'autofill/core/common/form_data.cc',
37         'autofill/core/common/form_data.h',
38         'autofill/core/common/form_data_predictions.cc',
39         'autofill/core/common/form_data_predictions.h',
40         'autofill/core/common/form_field_data.cc',
41         'autofill/core/common/form_field_data.h',
42         'autofill/core/common/form_field_data_predictions.cc',
43         'autofill/core/common/form_field_data_predictions.h',
44         'autofill/core/common/password_form.cc',
45         'autofill/core/common/password_form.h',
46         'autofill/core/common/password_form_fill_data.cc',
47         'autofill/core/common/password_form_fill_data.h',
48         'autofill/core/common/password_form_field_prediction_map.h',
49         'autofill/core/common/password_generation_util.cc',
50         'autofill/core/common/password_generation_util.h',
51         'autofill/core/common/save_password_progress_logger.cc',
52         'autofill/core/common/save_password_progress_logger.h',
53         'autofill/core/common/web_element_descriptor.cc',
54         'autofill/core/common/web_element_descriptor.h',
55       ],
57       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
58       'msvs_disabled_warnings': [4267, ],
59     },
61     {
62       # GN version: //components/autofill/core/browser
63       'target_name': 'autofill_core_browser',
64       'type': 'static_library',
65       'include_dirs': [
66         '..',
67       ],
68       'dependencies': [
69         '../base/base.gyp:base',
70         '../base/base.gyp:base_i18n',
71         '../base/base.gyp:base_prefs',
72         '../google_apis/google_apis.gyp:google_apis',
73         '../net/net.gyp:net',
74         '../skia/skia.gyp:skia',
75         '../sql/sql.gyp:sql',
76         '../sync/sync.gyp:sync',
77         '../third_party/fips181/fips181.gyp:fips181',
78         '../third_party/icu/icu.gyp:icui18n',
79         '../third_party/icu/icu.gyp:icuuc',
80         '../third_party/libjingle/libjingle.gyp:libjingle',
81         '../third_party/libaddressinput/libaddressinput.gyp:libaddressinput_util',
82         '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
83         '../ui/base/ui_base.gyp:ui_base',
84         '../ui/gfx/gfx.gyp:gfx',
85         '../ui/gfx/gfx.gyp:gfx_geometry',
86         '../url/url.gyp:url_lib',
87         'autofill_core_common',
88         'components_resources.gyp:components_resources',
89         'components_strings.gyp:components_strings',
90         'infobars_core',
91         'keyed_service_core',
92         'os_crypt',
93         'pref_registry',
94         'rappor',
95         'signin_core_browser',
96         'signin_core_common',
97         'variations_http_provider',
98         'webdata_common',
99       ],
100       'sources': [
101         'autofill/core/browser/address.cc',
102         'autofill/core/browser/address.h',
103         'autofill/core/browser/address_field.cc',
104         'autofill/core/browser/address_field.h',
105         'autofill/core/browser/address_i18n.cc',
106         'autofill/core/browser/address_i18n.h',
107         'autofill/core/browser/autocomplete_history_manager.cc',
108         'autofill/core/browser/autocomplete_history_manager.h',
109         'autofill/core/browser/autofill-inl.h',
110         'autofill/core/browser/autofill_cc_infobar_delegate.cc',
111         'autofill/core/browser/autofill_cc_infobar_delegate.h',
112         'autofill/core/browser/autofill_client.h',
113         'autofill/core/browser/autofill_country.cc',
114         'autofill/core/browser/autofill_country.h',
115         'autofill/core/browser/autofill_data_model.cc',
116         'autofill/core/browser/autofill_data_model.h',
117         'autofill/core/browser/autofill_download_manager.cc',
118         'autofill/core/browser/autofill_download_manager.h',
119         'autofill/core/browser/autofill_driver.h',
120         'autofill/core/browser/autofill_experiments.cc',
121         'autofill/core/browser/autofill_experiments.h',
122         'autofill/core/browser/autofill_external_delegate.cc',
123         'autofill/core/browser/autofill_external_delegate.h',
124         'autofill/core/browser/autofill_field.cc',
125         'autofill/core/browser/autofill_field.h',
126         'autofill/core/browser/autofill_ie_toolbar_import_win.cc',
127         'autofill/core/browser/autofill_ie_toolbar_import_win.h',
128         'autofill/core/browser/autofill_manager.cc',
129         'autofill/core/browser/autofill_manager.h',
130         'autofill/core/browser/autofill_manager_test_delegate.h',
131         'autofill/core/browser/autofill_metrics.cc',
132         'autofill/core/browser/autofill_metrics.h',
133         'autofill/core/browser/autofill_popup_delegate.h',
134         'autofill/core/browser/autofill_profile.cc',
135         'autofill/core/browser/autofill_profile.h',
136         'autofill/core/browser/autofill_regex_constants.cc',
137         'autofill/core/browser/autofill_regex_constants.h',
138         'autofill/core/browser/autofill_scanner.cc',
139         'autofill/core/browser/autofill_scanner.h',
140         'autofill/core/browser/autofill_server_field_info.h',
141         'autofill/core/browser/autofill_sync_constants.cc',
142         'autofill/core/browser/autofill_sync_constants.h',
143         'autofill/core/browser/autofill_type.cc',
144         'autofill/core/browser/autofill_type.h',
145         'autofill/core/browser/autofill_xml_parser.cc',
146         'autofill/core/browser/autofill_xml_parser.h',
147         'autofill/core/browser/card_unmask_delegate.cc',
148         'autofill/core/browser/card_unmask_delegate.h',
149         'autofill/core/browser/contact_info.cc',
150         'autofill/core/browser/contact_info.h',
151         'autofill/core/browser/credit_card.cc',
152         'autofill/core/browser/credit_card.h',
153         'autofill/core/browser/credit_card_field.cc',
154         'autofill/core/browser/credit_card_field.h',
155         'autofill/core/browser/detail_input.cc',
156         'autofill/core/browser/detail_input.h',
157         'autofill/core/browser/dialog_section.h',
158         'autofill/core/browser/email_field.cc',
159         'autofill/core/browser/email_field.h',
160         'autofill/core/browser/field_types.h',
161         'autofill/core/browser/form_field.cc',
162         'autofill/core/browser/form_field.h',
163         'autofill/core/browser/form_group.cc',
164         'autofill/core/browser/form_group.h',
165         'autofill/core/browser/form_structure.cc',
166         'autofill/core/browser/form_structure.h',
167         'autofill/core/browser/name_field.cc',
168         'autofill/core/browser/name_field.h',
169         'autofill/core/browser/options_util.cc',
170         'autofill/core/browser/options_util.h',
171         'autofill/core/browser/password_generator.cc',
172         'autofill/core/browser/password_generator.h',
173         'autofill/core/browser/personal_data_manager.cc',
174         'autofill/core/browser/personal_data_manager.h',
175         'autofill/core/browser/personal_data_manager_mac.mm',
176         'autofill/core/browser/personal_data_manager_observer.h',
177         'autofill/core/browser/phone_field.cc',
178         'autofill/core/browser/phone_field.h',
179         'autofill/core/browser/phone_number.cc',
180         'autofill/core/browser/phone_number.h',
181         'autofill/core/browser/phone_number_i18n.cc',
182         'autofill/core/browser/phone_number_i18n.h',
183         'autofill/core/browser/popup_item_ids.h',
184         'autofill/core/browser/server_field_types_util.cc',
185         'autofill/core/browser/server_field_types_util.h',
186         'autofill/core/browser/state_names.cc',
187         'autofill/core/browser/state_names.h',
188         'autofill/core/browser/suggestion.cc',
189         'autofill/core/browser/suggestion.h',
190         'autofill/core/browser/ui/card_unmask_prompt_controller.h',
191         'autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc',
192         'autofill/core/browser/ui/card_unmask_prompt_controller_impl.h',
193         'autofill/core/browser/ui/card_unmask_prompt_view.h',
194         'autofill/core/browser/validation.cc',
195         'autofill/core/browser/validation.h',
196         'autofill/core/browser/wallet/real_pan_wallet_client.cc',
197         'autofill/core/browser/wallet/real_pan_wallet_client.h',
198         'autofill/core/browser/webdata/autocomplete_syncable_service.cc',
199         'autofill/core/browser/webdata/autocomplete_syncable_service.h',
200         'autofill/core/browser/webdata/autofill_change.cc',
201         'autofill/core/browser/webdata/autofill_change.h',
202         'autofill/core/browser/webdata/autofill_entry.cc',
203         'autofill/core/browser/webdata/autofill_entry.h',
204         'autofill/core/browser/webdata/autofill_profile_syncable_service.cc',
205         'autofill/core/browser/webdata/autofill_profile_syncable_service.h',
206         'autofill/core/browser/webdata/autofill_table.cc',
207         'autofill/core/browser/webdata/autofill_table.h',
208         'autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.cc',
209         'autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.h',
210         'autofill/core/browser/webdata/autofill_wallet_syncable_service.cc',
211         'autofill/core/browser/webdata/autofill_wallet_syncable_service.h',
212         'autofill/core/browser/webdata/autofill_webdata.h',
213         'autofill/core/browser/webdata/autofill_webdata_backend.h',
214         'autofill/core/browser/webdata/autofill_webdata_backend_impl.cc',
215         'autofill/core/browser/webdata/autofill_webdata_backend_impl.h',
216         'autofill/core/browser/webdata/autofill_webdata_service.cc',
217         'autofill/core/browser/webdata/autofill_webdata_service.h',
218         'autofill/core/browser/webdata/autofill_webdata_service_observer.h',
219       ],
221       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
222       'msvs_disabled_warnings': [4267, ],
223     },
225     {
226       # GN version: //components/autofill/core/browser:test_support
227       'target_name': 'autofill_core_test_support',
228       'type': 'static_library',
229       'dependencies': [
230         '../base/base.gyp:base',
231         '../base/base.gyp:base_prefs',
232         '../base/base.gyp:test_support_base',
233         '../skia/skia.gyp:skia',
234         '../testing/gtest.gyp:gtest',
235         'autofill_core_common',
236         'autofill_core_browser',
237         'os_crypt',
238         'pref_registry',
239         'rappor',
240         'signin_core_browser_test_support',
241       ],
242       'sources': [
243         'autofill/core/browser/autofill_test_utils.cc',
244         'autofill/core/browser/autofill_test_utils.h',
245         'autofill/core/browser/data_driven_test.cc',
246         'autofill/core/browser/data_driven_test.h',
247         'autofill/core/browser/suggestion_test_helpers.h',
248         'autofill/core/browser/test_autofill_client.cc',
249         'autofill/core/browser/test_autofill_client.h',
250         'autofill/core/browser/test_autofill_driver.cc',
251         'autofill/core/browser/test_autofill_driver.h',
252         'autofill/core/browser/test_autofill_external_delegate.cc',
253         'autofill/core/browser/test_autofill_external_delegate.h',
254         'autofill/core/browser/test_personal_data_manager.cc',
255         'autofill/core/browser/test_personal_data_manager.h',
256       ],
257     },
258   ],
259   'conditions': [
260     ['OS != "ios"', {
261       'targets': [
262         {
263           # GN version: //content/autofill/content/common
264           'target_name': 'autofill_content_common',
265           'type': 'static_library',
266           'dependencies': [
267             'autofill_core_common',
268             '../base/base.gyp:base',
269             '../content/content.gyp:content_common',
270             '../ipc/ipc.gyp:ipc',
271             '../third_party/WebKit/public/blink.gyp:blink_minimal',
272             '../ui/gfx/gfx.gyp:gfx',
273             '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
274             '../url/url.gyp:url_lib',
275           ],
276           'include_dirs': [
277             '..',
278           ],
279           'sources': [
280             'autofill/content/common/autofill_message_generator.cc',
281             'autofill/content/common/autofill_message_generator.h',
282             'autofill/content/common/autofill_messages.h',
283             'autofill/content/common/autofill_param_traits_macros.h',
284           ],
285         },
287         {
288           # Protobuf compiler / generate rule for Autofill's risk integration.
289           # GN version: //components/autofill/content/browser:risk_proto
290           'target_name': 'autofill_content_risk_proto',
291           'type': 'static_library',
292           'sources': [
293             'autofill/content/browser/risk/proto/fingerprint.proto',
294           ],
295           'variables': {
296             'proto_in_dir': 'autofill/content/browser/risk/proto',
297             'proto_out_dir': 'components/autofill/content/browser/risk/proto',
298           },
299           'includes': [ '../build/protoc.gypi' ]
300         },
301        {
302          # GN version: //components/autofill/content/browser/wallet:test_support
303          # GN version: //components/autofill/content/renderer:test_support
304          'target_name': 'autofill_content_test_support',
305          'type': 'static_library',
306          'dependencies': [
307            'autofill_content_browser',
308            'autofill_content_renderer',
309            '../base/base.gyp:base',
310            '../ipc/ipc.gyp:ipc',
311            '../skia/skia.gyp:skia',
312            '../testing/gmock.gyp:gmock',
313          ],
314          'sources': [
315            'autofill/content/browser/wallet/mock_wallet_client.cc',
316            'autofill/content/browser/wallet/mock_wallet_client.h',
317            'autofill/content/browser/wallet/wallet_test_util.cc',
318            'autofill/content/browser/wallet/wallet_test_util.h',
319            'autofill/content/renderer/test_password_autofill_agent.cc',
320            'autofill/content/renderer/test_password_autofill_agent.h',
321            'autofill/content/renderer/test_password_generation_agent.cc',
322            'autofill/content/renderer/test_password_generation_agent.h',
323          ],
324          'include_dirs': [ '..' ],
325        },
326        {
327           # GN version: //components/autofill/content/browser
328           'target_name': 'autofill_content_browser',
329           'type': 'static_library',
330           'include_dirs': [
331             '..',
332           ],
333           'dependencies': [
334             '../base/base.gyp:base',
335             '../base/base.gyp:base_i18n',
336             '../base/base.gyp:base_prefs',
337             '../content/content.gyp:content_browser',
338             '../content/content.gyp:content_common',
339             '../google_apis/google_apis.gyp:google_apis',
340             '../ipc/ipc.gyp:ipc',
341             '../net/net.gyp:net',
342             '../skia/skia.gyp:skia',
343             '../sql/sql.gyp:sql',
344             '../third_party/icu/icu.gyp:icui18n',
345             '../third_party/icu/icu.gyp:icuuc',
346             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
347             '../ui/base/ui_base.gyp:ui_base',
348             '../ui/gfx/gfx.gyp:gfx',
349             '../ui/gfx/gfx.gyp:gfx_geometry',
350             '../url/url.gyp:url_lib',
351             'autofill_content_common',
352             'autofill_content_risk_proto',
353             'autofill_core_browser',
354             'autofill_core_common',
355             'components_resources.gyp:components_resources',
356             'components_strings.gyp:components_strings',
357             'os_crypt',
358             'user_prefs',
359             'webdata_common',
360           ],
361           'sources': [
362             'autofill/content/browser/content_autofill_driver.cc',
363             'autofill/content/browser/content_autofill_driver.h',
364             'autofill/content/browser/content_autofill_driver_factory.cc',
365             'autofill/content/browser/content_autofill_driver_factory.h',
366             'autofill/content/browser/request_autocomplete_manager.cc',
367             'autofill/content/browser/request_autocomplete_manager.h',
368             'autofill/content/browser/risk/fingerprint.cc',
369             'autofill/content/browser/risk/fingerprint.h',
370             'autofill/content/browser/wallet/form_field_error.cc',
371             'autofill/content/browser/wallet/form_field_error.h',
372             'autofill/content/browser/wallet/full_wallet.cc',
373             'autofill/content/browser/wallet/full_wallet.h',
374             'autofill/content/browser/wallet/gaia_account.cc',
375             'autofill/content/browser/wallet/gaia_account.h',
376             'autofill/content/browser/wallet/instrument.cc',
377             'autofill/content/browser/wallet/instrument.h',
378             'autofill/content/browser/wallet/required_action.cc',
379             'autofill/content/browser/wallet/required_action.h',
380             'autofill/content/browser/wallet/wallet_address.cc',
381             'autofill/content/browser/wallet/wallet_address.h',
382             'autofill/content/browser/wallet/wallet_client.cc',
383             'autofill/content/browser/wallet/wallet_client.h',
384             'autofill/content/browser/wallet/wallet_client_delegate.h',
385             'autofill/content/browser/wallet/wallet_items.cc',
386             'autofill/content/browser/wallet/wallet_items.h',
387             'autofill/content/browser/wallet/wallet_service_url.cc',
388             'autofill/content/browser/wallet/wallet_service_url.h',
389             'autofill/content/browser/wallet/wallet_signin_helper.cc',
390             'autofill/content/browser/wallet/wallet_signin_helper.h',
391           ],
393           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
394           'msvs_disabled_warnings': [4267, ],
395         },
397         {
398           # GN version: //components/autofill/content/renderer
399           'target_name': 'autofill_content_renderer',
400           'type': 'static_library',
401           'include_dirs': [
402             '..',
403           ],
404           'dependencies': [
405             '../base/base.gyp:base',
406             '../content/content.gyp:content_common',
407             '../content/content.gyp:content_renderer',
408             '../google_apis/google_apis.gyp:google_apis',
409             '../ipc/ipc.gyp:ipc',
410             '../net/net.gyp:net',
411             '../skia/skia.gyp:skia',
412             '../third_party/icu/icu.gyp:icui18n',
413             '../third_party/icu/icu.gyp:icuuc',
414             '../third_party/WebKit/public/blink.gyp:blink',
415             '../ui/base/ui_base.gyp:ui_base',
416             'autofill_content_common',
417             'autofill_core_common',
418             'components_strings.gyp:components_strings',
419           ],
420           'sources': [
421             'autofill/content/renderer/autofill_agent.cc',
422             'autofill/content/renderer/autofill_agent.h',
423             'autofill/content/renderer/form_autofill_util.cc',
424             'autofill/content/renderer/form_autofill_util.h',
425             'autofill/content/renderer/form_cache.cc',
426             'autofill/content/renderer/form_cache.h',
427             'autofill/content/renderer/page_click_listener.h',
428             'autofill/content/renderer/page_click_tracker.cc',
429             'autofill/content/renderer/page_click_tracker.h',
430             'autofill/content/renderer/password_autofill_agent.cc',
431             'autofill/content/renderer/password_autofill_agent.h',
432             'autofill/content/renderer/password_form_conversion_utils.cc',
433             'autofill/content/renderer/password_form_conversion_utils.h',
434             'autofill/content/renderer/password_generation_agent.cc',
435             'autofill/content/renderer/password_generation_agent.h',
436             'autofill/content/renderer/renderer_save_password_progress_logger.cc',
437             'autofill/content/renderer/renderer_save_password_progress_logger.h',
438           ],
439           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
440           'msvs_disabled_warnings': [4267, ],
441         },
442       ],
443     }],
444     ['OS == "ios"', {
445       'targets': [
446         {
447           'target_name': 'autofill_ios_browser',
448           'type': 'static_library',
449           'include_dirs': [
450             '..',
451           ],
452           'dependencies': [
453             'autofill_core_browser',
454             'autofill_core_common',
455             'autofill_ios_injected_js',
456             '../ios/provider/ios_provider_web.gyp:ios_provider_web',
457             '../ios/web/ios_web.gyp:ios_web',
458           ],
459           'sources': [
460             'autofill/ios/browser/autofill_client_ios_bridge.h',
461             'autofill/ios/browser/autofill_driver_ios.h',
462             'autofill/ios/browser/autofill_driver_ios.mm',
463             'autofill/ios/browser/autofill_driver_ios_bridge.h',
464             'autofill/ios/browser/credit_card_util.h',
465             'autofill/ios/browser/credit_card_util.mm',
466             'autofill/ios/browser/autofill_field_trial_ios.cc',
467             'autofill/ios/browser/autofill_field_trial_ios.h',
468             'autofill/ios/browser/form_suggestion.h',
469             'autofill/ios/browser/form_suggestion.mm',
470             'autofill/ios/browser/js_autofill_manager.h',
471             'autofill/ios/browser/js_autofill_manager.mm',
472             'autofill/ios/browser/js_suggestion_manager.h',
473             'autofill/ios/browser/js_suggestion_manager.mm',
474             'autofill/ios/browser/personal_data_manager_observer_bridge.h',
475             'autofill/ios/browser/personal_data_manager_observer_bridge.mm',
476           ],
477         },
478         {
479           'target_name': 'autofill_ios_injected_js',
480           'type': 'none',
481           'sources': [
482             'autofill/ios/browser/resources/autofill_controller.js',
483             'autofill/ios/browser/resources/suggestion_controller.js',
484           ],
485           'link_settings': {
486             'mac_bundle_resources': [
487               '<(SHARED_INTERMEDIATE_DIR)/autofill_controller.js',
488               '<(SHARED_INTERMEDIATE_DIR)/suggestion_controller.js',
489             ],
490           },
491           'includes': [
492             '../ios/web/js_compile_checked.gypi',
493           ],
494         },
495       ],
496     }],
497   ],