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