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