QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / components / autofill.gypi
blob65b9c14d2b8e9ae4390581df4481b8859f8c4acb
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_observer.h',
176         'autofill/core/browser/phone_field.cc',
177         'autofill/core/browser/phone_field.h',
178         'autofill/core/browser/phone_number.cc',
179         'autofill/core/browser/phone_number.h',
180         'autofill/core/browser/phone_number_i18n.cc',
181         'autofill/core/browser/phone_number_i18n.h',
182         'autofill/core/browser/popup_item_ids.h',
183         'autofill/core/browser/server_field_types_util.cc',
184         'autofill/core/browser/server_field_types_util.h',
185         'autofill/core/browser/state_names.cc',
186         'autofill/core/browser/state_names.h',
187         'autofill/core/browser/suggestion.cc',
188         'autofill/core/browser/suggestion.h',
189         'autofill/core/browser/ui/card_unmask_prompt_controller.h',
190         'autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc',
191         'autofill/core/browser/ui/card_unmask_prompt_controller_impl.h',
192         'autofill/core/browser/ui/card_unmask_prompt_view.h',
193         'autofill/core/browser/validation.cc',
194         'autofill/core/browser/validation.h',
195         'autofill/core/browser/wallet/real_pan_wallet_client.cc',
196         'autofill/core/browser/wallet/real_pan_wallet_client.h',
197         'autofill/core/browser/webdata/autocomplete_syncable_service.cc',
198         'autofill/core/browser/webdata/autocomplete_syncable_service.h',
199         'autofill/core/browser/webdata/autofill_change.cc',
200         'autofill/core/browser/webdata/autofill_change.h',
201         'autofill/core/browser/webdata/autofill_entry.cc',
202         'autofill/core/browser/webdata/autofill_entry.h',
203         'autofill/core/browser/webdata/autofill_profile_syncable_service.cc',
204         'autofill/core/browser/webdata/autofill_profile_syncable_service.h',
205         'autofill/core/browser/webdata/autofill_table.cc',
206         'autofill/core/browser/webdata/autofill_table.h',
207         'autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.cc',
208         'autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.h',
209         'autofill/core/browser/webdata/autofill_wallet_syncable_service.cc',
210         'autofill/core/browser/webdata/autofill_wallet_syncable_service.h',
211         'autofill/core/browser/webdata/autofill_webdata.h',
212         'autofill/core/browser/webdata/autofill_webdata_backend.h',
213         'autofill/core/browser/webdata/autofill_webdata_backend_impl.cc',
214         'autofill/core/browser/webdata/autofill_webdata_backend_impl.h',
215         'autofill/core/browser/webdata/autofill_webdata_service.cc',
216         'autofill/core/browser/webdata/autofill_webdata_service.h',
217         'autofill/core/browser/webdata/autofill_webdata_service_observer.h',
218       ],
220       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
221       'msvs_disabled_warnings': [4267, ],
222     },
224     {
225       # GN version: //components/autofill/core/browser:test_support
226       'target_name': 'autofill_core_test_support',
227       'type': 'static_library',
228       'dependencies': [
229         '../base/base.gyp:base',
230         '../base/base.gyp:base_prefs',
231         '../base/base.gyp:test_support_base',
232         '../skia/skia.gyp:skia',
233         '../testing/gtest.gyp:gtest',
234         'autofill_core_common',
235         'autofill_core_browser',
236         'os_crypt',
237         'pref_registry',
238         'rappor',
239         'signin_core_browser_test_support',
240       ],
241       'sources': [
242         'autofill/core/browser/autofill_test_utils.cc',
243         'autofill/core/browser/autofill_test_utils.h',
244         'autofill/core/browser/data_driven_test.cc',
245         'autofill/core/browser/data_driven_test.h',
246         'autofill/core/browser/suggestion_test_helpers.h',
247         'autofill/core/browser/test_autofill_client.cc',
248         'autofill/core/browser/test_autofill_client.h',
249         'autofill/core/browser/test_autofill_driver.cc',
250         'autofill/core/browser/test_autofill_driver.h',
251         'autofill/core/browser/test_autofill_external_delegate.cc',
252         'autofill/core/browser/test_autofill_external_delegate.h',
253         'autofill/core/browser/test_personal_data_manager.cc',
254         'autofill/core/browser/test_personal_data_manager.h',
255       ],
256     },
257   ],
258   'conditions': [
259     ['OS != "ios"', {
260       'targets': [
261         {
262           # GN version: //content/autofill/content/common
263           'target_name': 'autofill_content_common',
264           'type': 'static_library',
265           'dependencies': [
266             'autofill_core_common',
267             '../base/base.gyp:base',
268             '../content/content.gyp:content_common',
269             '../ipc/ipc.gyp:ipc',
270             '../third_party/WebKit/public/blink.gyp:blink_minimal',
271             '../ui/gfx/gfx.gyp:gfx',
272             '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
273             '../url/url.gyp:url_lib',
274           ],
275           'include_dirs': [
276             '..',
277           ],
278           'sources': [
279             'autofill/content/common/autofill_message_generator.cc',
280             'autofill/content/common/autofill_message_generator.h',
281             'autofill/content/common/autofill_messages.h',
282             'autofill/content/common/autofill_param_traits_macros.h',
283           ],
284         },
286         {
287           # Protobuf compiler / generate rule for Autofill's risk integration.
288           # GN version: //components/autofill/content/browser:risk_proto
289           'target_name': 'autofill_content_risk_proto',
290           'type': 'static_library',
291           'sources': [
292             'autofill/content/browser/risk/proto/fingerprint.proto',
293           ],
294           'variables': {
295             'proto_in_dir': 'autofill/content/browser/risk/proto',
296             'proto_out_dir': 'components/autofill/content/browser/risk/proto',
297           },
298           'includes': [ '../build/protoc.gypi' ]
299         },
300        {
301          # GN version: //components/autofill/content/browser/wallet:test_support
302          # GN version: //components/autofill/content/renderer:test_support
303          'target_name': 'autofill_content_test_support',
304          'type': 'static_library',
305          'dependencies': [
306            'autofill_content_browser',
307            'autofill_content_renderer',
308            '../base/base.gyp:base',
309            '../ipc/ipc.gyp:ipc',
310            '../skia/skia.gyp:skia',
311            '../testing/gmock.gyp:gmock',
312          ],
313          'sources': [
314            'autofill/content/browser/wallet/wallet_test_util.cc',
315            'autofill/content/browser/wallet/wallet_test_util.h',
316            'autofill/content/renderer/test_password_autofill_agent.cc',
317            'autofill/content/renderer/test_password_autofill_agent.h',
318            'autofill/content/renderer/test_password_generation_agent.cc',
319            'autofill/content/renderer/test_password_generation_agent.h',
320          ],
321          'include_dirs': [ '..' ],
322        },
323        {
324           # GN version: //components/autofill/content/browser
325           'target_name': 'autofill_content_browser',
326           'type': 'static_library',
327           'include_dirs': [
328             '..',
329           ],
330           'dependencies': [
331             '../base/base.gyp:base',
332             '../base/base.gyp:base_i18n',
333             '../base/base.gyp:base_prefs',
334             '../content/content.gyp:content_browser',
335             '../content/content.gyp:content_common',
336             '../google_apis/google_apis.gyp:google_apis',
337             '../ipc/ipc.gyp:ipc',
338             '../net/net.gyp:net',
339             '../skia/skia.gyp:skia',
340             '../sql/sql.gyp:sql',
341             '../third_party/icu/icu.gyp:icui18n',
342             '../third_party/icu/icu.gyp:icuuc',
343             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
344             '../ui/base/ui_base.gyp:ui_base',
345             '../ui/gfx/gfx.gyp:gfx',
346             '../ui/gfx/gfx.gyp:gfx_geometry',
347             '../url/url.gyp:url_lib',
348             'autofill_content_common',
349             'autofill_content_risk_proto',
350             'autofill_core_browser',
351             'autofill_core_common',
352             'components_resources.gyp:components_resources',
353             'components_strings.gyp:components_strings',
354             'os_crypt',
355             'user_prefs',
356             'webdata_common',
357           ],
358           'sources': [
359             'autofill/content/browser/content_autofill_driver.cc',
360             'autofill/content/browser/content_autofill_driver.h',
361             'autofill/content/browser/content_autofill_driver_factory.cc',
362             'autofill/content/browser/content_autofill_driver_factory.h',
363             'autofill/content/browser/request_autocomplete_manager.cc',
364             'autofill/content/browser/request_autocomplete_manager.h',
365             'autofill/content/browser/risk/fingerprint.cc',
366             'autofill/content/browser/risk/fingerprint.h',
367             'autofill/content/browser/wallet/full_wallet.cc',
368             'autofill/content/browser/wallet/full_wallet.h',
369             'autofill/content/browser/wallet/wallet_address.cc',
370             'autofill/content/browser/wallet/wallet_address.h',
371             'autofill/content/browser/wallet/wallet_service_url.cc',
372             'autofill/content/browser/wallet/wallet_service_url.h',
373           ],
375           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
376           'msvs_disabled_warnings': [4267, ],
377         },
379         {
380           # GN version: //components/autofill/content/renderer
381           'target_name': 'autofill_content_renderer',
382           'type': 'static_library',
383           'include_dirs': [
384             '..',
385           ],
386           'dependencies': [
387             '../base/base.gyp:base',
388             '../content/content.gyp:content_common',
389             '../content/content.gyp:content_renderer',
390             '../google_apis/google_apis.gyp:google_apis',
391             '../ipc/ipc.gyp:ipc',
392             '../net/net.gyp:net',
393             '../skia/skia.gyp:skia',
394             '../third_party/icu/icu.gyp:icui18n',
395             '../third_party/icu/icu.gyp:icuuc',
396             '../third_party/WebKit/public/blink.gyp:blink',
397             '../ui/base/ui_base.gyp:ui_base',
398             'autofill_content_common',
399             'autofill_core_common',
400             'components_strings.gyp:components_strings',
401           ],
402           'sources': [
403             'autofill/content/renderer/autofill_agent.cc',
404             'autofill/content/renderer/autofill_agent.h',
405             'autofill/content/renderer/form_autofill_util.cc',
406             'autofill/content/renderer/form_autofill_util.h',
407             'autofill/content/renderer/form_cache.cc',
408             'autofill/content/renderer/form_cache.h',
409             'autofill/content/renderer/page_click_listener.h',
410             'autofill/content/renderer/page_click_tracker.cc',
411             'autofill/content/renderer/page_click_tracker.h',
412             'autofill/content/renderer/password_autofill_agent.cc',
413             'autofill/content/renderer/password_autofill_agent.h',
414             'autofill/content/renderer/password_form_conversion_utils.cc',
415             'autofill/content/renderer/password_form_conversion_utils.h',
416             'autofill/content/renderer/password_generation_agent.cc',
417             'autofill/content/renderer/password_generation_agent.h',
418             'autofill/content/renderer/renderer_save_password_progress_logger.cc',
419             'autofill/content/renderer/renderer_save_password_progress_logger.h',
420           ],
421           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
422           'msvs_disabled_warnings': [4267, ],
423         },
424       ],
425     }],
426     ['OS == "ios"', {
427       'targets': [
428         {
429           'target_name': 'autofill_ios_browser',
430           'type': 'static_library',
431           'include_dirs': [
432             '..',
433           ],
434           'dependencies': [
435             'autofill_core_browser',
436             'autofill_core_common',
437             'autofill_ios_injected_js',
438             '../ios/provider/ios_provider_web.gyp:ios_provider_web',
439             '../ios/web/ios_web.gyp:ios_web',
440           ],
441           'sources': [
442             'autofill/ios/browser/autofill_client_ios_bridge.h',
443             'autofill/ios/browser/autofill_driver_ios.h',
444             'autofill/ios/browser/autofill_driver_ios.mm',
445             'autofill/ios/browser/autofill_driver_ios_bridge.h',
446             'autofill/ios/browser/credit_card_util.h',
447             'autofill/ios/browser/credit_card_util.mm',
448             'autofill/ios/browser/autofill_field_trial_ios.cc',
449             'autofill/ios/browser/autofill_field_trial_ios.h',
450             'autofill/ios/browser/form_suggestion.h',
451             'autofill/ios/browser/form_suggestion.mm',
452             'autofill/ios/browser/js_autofill_manager.h',
453             'autofill/ios/browser/js_autofill_manager.mm',
454             'autofill/ios/browser/js_suggestion_manager.h',
455             'autofill/ios/browser/js_suggestion_manager.mm',
456             'autofill/ios/browser/personal_data_manager_observer_bridge.h',
457             'autofill/ios/browser/personal_data_manager_observer_bridge.mm',
458           ],
459         },
460         {
461           'target_name': 'autofill_ios_injected_js',
462           'type': 'none',
463           'sources': [
464             'autofill/ios/browser/resources/autofill_controller.js',
465             'autofill/ios/browser/resources/suggestion_controller.js',
466           ],
467           'link_settings': {
468             'mac_bundle_resources': [
469               '<(SHARED_INTERMEDIATE_DIR)/autofill_controller.js',
470               '<(SHARED_INTERMEDIATE_DIR)/suggestion_controller.js',
471             ],
472           },
473           'includes': [
474             '../ios/web/js_compile_checked.gypi',
475           ],
476         },
477       ],
478     }],
479   ],