Add ability for NetLogLogger to gather data from more than just NetLog
[chromium-blink-merge.git] / components / autofill.gypi
blobab0515871264dcceab9fb6cc9e284d184f6e4193
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         'signin_core_common',
105         'webdata_common',
106       ],
107       'sources': [
108         'autofill/core/browser/address.cc',
109         'autofill/core/browser/address.h',
110         'autofill/core/browser/address_field.cc',
111         'autofill/core/browser/address_field.h',
112         'autofill/core/browser/address_i18n.cc',
113         'autofill/core/browser/address_i18n.h',
114         'autofill/core/browser/autocomplete_history_manager.cc',
115         'autofill/core/browser/autocomplete_history_manager.h',
116         'autofill/core/browser/autofill-inl.h',
117         'autofill/core/browser/autofill_cc_infobar_delegate.cc',
118         'autofill/core/browser/autofill_cc_infobar_delegate.h',
119         'autofill/core/browser/autofill_client.h',
120         'autofill/core/browser/autofill_country.cc',
121         'autofill/core/browser/autofill_country.h',
122         'autofill/core/browser/autofill_data_model.cc',
123         'autofill/core/browser/autofill_data_model.h',
124         'autofill/core/browser/autofill_download_manager.cc',
125         'autofill/core/browser/autofill_download_manager.h',
126         'autofill/core/browser/autofill_driver.h',
127         'autofill/core/browser/autofill_external_delegate.cc',
128         'autofill/core/browser/autofill_external_delegate.h',
129         'autofill/core/browser/autofill_field.cc',
130         'autofill/core/browser/autofill_field.h',
131         'autofill/core/browser/autofill_ie_toolbar_import_win.cc',
132         'autofill/core/browser/autofill_ie_toolbar_import_win.h',
133         'autofill/core/browser/autofill_manager.cc',
134         'autofill/core/browser/autofill_manager.h',
135         'autofill/core/browser/autofill_manager_test_delegate.h',
136         'autofill/core/browser/autofill_metrics.cc',
137         'autofill/core/browser/autofill_metrics.h',
138         'autofill/core/browser/autofill_popup_delegate.h',
139         'autofill/core/browser/autofill_profile.cc',
140         'autofill/core/browser/autofill_profile.h',
141         'autofill/core/browser/autofill_regex_constants.cc.utf8',
142         'autofill/core/browser/autofill_regex_constants.h',
143         'autofill/core/browser/autofill_regexes.cc',
144         'autofill/core/browser/autofill_regexes.h',
145         'autofill/core/browser/autofill_scanner.cc',
146         'autofill/core/browser/autofill_scanner.h',
147         'autofill/core/browser/autofill_server_field_info.h',
148         'autofill/core/browser/autofill_sync_constants.cc',
149         'autofill/core/browser/autofill_sync_constants.h',
150         'autofill/core/browser/autofill_type.cc',
151         'autofill/core/browser/autofill_type.h',
152         'autofill/core/browser/autofill_xml_parser.cc',
153         'autofill/core/browser/autofill_xml_parser.h',
154         'autofill/core/browser/card_unmask_delegate.cc',
155         'autofill/core/browser/card_unmask_delegate.h',
156         'autofill/core/browser/contact_info.cc',
157         'autofill/core/browser/contact_info.h',
158         'autofill/core/browser/credit_card.cc',
159         'autofill/core/browser/credit_card.h',
160         'autofill/core/browser/credit_card_field.cc',
161         'autofill/core/browser/credit_card_field.h',
162         'autofill/core/browser/detail_input.cc',
163         'autofill/core/browser/detail_input.h',
164         'autofill/core/browser/dialog_section.h',
165         'autofill/core/browser/email_field.cc',
166         'autofill/core/browser/email_field.h',
167         'autofill/core/browser/field_types.h',
168         'autofill/core/browser/form_field.cc',
169         'autofill/core/browser/form_field.h',
170         'autofill/core/browser/form_group.cc',
171         'autofill/core/browser/form_group.h',
172         'autofill/core/browser/form_structure.cc',
173         'autofill/core/browser/form_structure.h',
174         'autofill/core/browser/name_field.cc',
175         'autofill/core/browser/name_field.h',
176         'autofill/core/browser/password_generator.cc',
177         'autofill/core/browser/password_generator.h',
178         'autofill/core/browser/personal_data_manager.cc',
179         'autofill/core/browser/personal_data_manager.h',
180         'autofill/core/browser/personal_data_manager_mac.mm',
181         'autofill/core/browser/personal_data_manager_observer.h',
182         'autofill/core/browser/phone_field.cc',
183         'autofill/core/browser/phone_field.h',
184         'autofill/core/browser/phone_number.cc',
185         'autofill/core/browser/phone_number.h',
186         'autofill/core/browser/phone_number_i18n.cc',
187         'autofill/core/browser/phone_number_i18n.h',
188         'autofill/core/browser/popup_item_ids.h',
189         'autofill/core/browser/server_field_types_util.cc',
190         'autofill/core/browser/server_field_types_util.h',
191         'autofill/core/browser/state_names.cc',
192         'autofill/core/browser/state_names.h',
193         'autofill/core/browser/suggestion.cc',
194         'autofill/core/browser/suggestion.h',
195         'autofill/core/browser/validation.cc',
196         'autofill/core/browser/validation.h',
197         'autofill/core/browser/wallet/real_pan_wallet_client.cc',
198         'autofill/core/browser/wallet/real_pan_wallet_client.h',
199         'autofill/core/browser/webdata/autocomplete_syncable_service.cc',
200         'autofill/core/browser/webdata/autocomplete_syncable_service.h',
201         'autofill/core/browser/webdata/autofill_change.cc',
202         'autofill/core/browser/webdata/autofill_change.h',
203         'autofill/core/browser/webdata/autofill_entry.cc',
204         'autofill/core/browser/webdata/autofill_entry.h',
205         'autofill/core/browser/webdata/autofill_profile_syncable_service.cc',
206         'autofill/core/browser/webdata/autofill_profile_syncable_service.h',
207         'autofill/core/browser/webdata/autofill_table.cc',
208         'autofill/core/browser/webdata/autofill_table.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',
219         # This file is generated by the autofill_regexes action.
220         '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc',
221       ],
222       'variables': {
223         'conditions': [
224           ['android_webview_build == 1', {
225             # Android WebView doesn't support sync.
226             'autofill_enable_sync%': 0,
227           }, {
228             'autofill_enable_sync%': 1,
229           }],
230         ],
231       },
232       'conditions': [
233         ['autofill_enable_sync == 1', {
234           'defines': [
235             'AUTOFILL_ENABLE_SYNC',
236           ],
237           'dependencies': [
238             '../sync/sync.gyp:sync',
239           ],
240           'direct_dependent_settings': {
241             'defines': [
242               'AUTOFILL_ENABLE_SYNC',
243             ],
244           },
245         }, { # 'autofill_enable_sync == 0'
246           'sources!': [
247             'autofill/core/browser/webdata/autocomplete_syncable_service.cc',
248             'autofill/core/browser/webdata/autocomplete_syncable_service.h',
249             'autofill/core/browser/webdata/autofill_profile_syncable_service.cc',
250             'autofill/core/browser/webdata/autofill_profile_syncable_service.h',
251             'autofill/core/browser/webdata/autofill_wallet_syncable_service.cc',
252             'autofill/core/browser/webdata/autofill_wallet_syncable_service.h',
253           ],
254         }],
255       ],
257       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
258       'msvs_disabled_warnings': [4267, ],
259     },
261     {
262       # GN version: //components/autofill/core/browser:test_support
263       'target_name': 'autofill_core_test_support',
264       'type': 'static_library',
265       'dependencies': [
266         '../base/base.gyp:base',
267         '../base/base.gyp:base_prefs',
268         '../base/base.gyp:test_support_base',
269         '../skia/skia.gyp:skia',
270         '../testing/gtest.gyp:gtest',
271         'autofill_core_common',
272         'autofill_core_browser',
273         'os_crypt',
274         'pref_registry',
275       ],
276       'sources': [
277         'autofill/core/browser/autofill_test_utils.cc',
278         'autofill/core/browser/autofill_test_utils.h',
279         'autofill/core/browser/data_driven_test.cc',
280         'autofill/core/browser/data_driven_test.h',
281         'autofill/core/browser/suggestion_test_helpers.h',
282         'autofill/core/browser/test_autofill_client.cc',
283         'autofill/core/browser/test_autofill_client.h',
284         'autofill/core/browser/test_autofill_driver.cc',
285         'autofill/core/browser/test_autofill_driver.h',
286         'autofill/core/browser/test_autofill_external_delegate.cc',
287         'autofill/core/browser/test_autofill_external_delegate.h',
288         'autofill/core/browser/test_personal_data_manager.cc',
289         'autofill/core/browser/test_personal_data_manager.h',
290       ],
291     },
292   ],
293   'conditions': [
294     ['OS != "ios"', {
295       'targets': [
296         {
297           # GN version: //content/autofill/content/common
298           'target_name': 'autofill_content_common',
299           'type': 'static_library',
300           'dependencies': [
301             'autofill_core_common',
302             '../base/base.gyp:base',
303             '../content/content.gyp:content_common',
304             '../ipc/ipc.gyp:ipc',
305             '../third_party/WebKit/public/blink.gyp:blink_minimal',
306             '../ui/gfx/gfx.gyp:gfx',
307             '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
308             '../url/url.gyp:url_lib',
309           ],
310           'include_dirs': [
311             '..',
312           ],
313           'sources': [
314             'autofill/content/common/autofill_message_generator.cc',
315             'autofill/content/common/autofill_message_generator.h',
316             'autofill/content/common/autofill_messages.h',
317             'autofill/content/common/autofill_param_traits_macros.h',
318           ],
319         },
321         {
322           # Protobuf compiler / generate rule for Autofill's risk integration.
323           # GN version: //components/autofill/content/browser:risk_proto
324           'target_name': 'autofill_content_risk_proto',
325           'type': 'static_library',
326           'sources': [
327             'autofill/content/browser/risk/proto/fingerprint.proto',
328           ],
329           'variables': {
330             'proto_in_dir': 'autofill/content/browser/risk/proto',
331             'proto_out_dir': 'components/autofill/content/browser/risk/proto',
332           },
333           'includes': [ '../build/protoc.gypi' ]
334         },
335        {
336          # GN version: //components/autofill/content/browser:test_support
337          'target_name': 'autofill_content_test_support',
338          'type': 'static_library',
339          'dependencies': [
340             '../testing/gmock.gyp:gmock',
341          ],
342          'sources': [
343            'autofill/content/browser/wallet/mock_wallet_client.cc',
344            'autofill/content/browser/wallet/mock_wallet_client.h',
345            'autofill/content/browser/wallet/wallet_test_util.cc',
346            'autofill/content/browser/wallet/wallet_test_util.h',
347          ],
348          'include_dirs': [ '..' ],
349        },
350        {
351           # GN version: //components/autofill/content/browser
352           'target_name': 'autofill_content_browser',
353           'type': 'static_library',
354           'include_dirs': [
355             '..',
356           ],
357           'dependencies': [
358             '../base/base.gyp:base',
359             '../base/base.gyp:base_i18n',
360             '../base/base.gyp:base_prefs',
361             '../content/content.gyp:content_browser',
362             '../content/content.gyp:content_common',
363             '../google_apis/google_apis.gyp:google_apis',
364             '../ipc/ipc.gyp:ipc',
365             '../net/net.gyp:net',
366             '../skia/skia.gyp:skia',
367             '../sql/sql.gyp:sql',
368             '../third_party/icu/icu.gyp:icui18n',
369             '../third_party/icu/icu.gyp:icuuc',
370             '../third_party/libjingle/libjingle.gyp:libjingle',
371             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
372             '../ui/base/ui_base.gyp:ui_base',
373             '../ui/gfx/gfx.gyp:gfx',
374             '../ui/gfx/gfx.gyp:gfx_geometry',
375             '../url/url.gyp:url_lib',
376             'autofill_content_common',
377             'autofill_content_risk_proto',
378             'autofill_core_browser',
379             'autofill_core_common',
380             'autofill_regexes',
381             'components_resources.gyp:components_resources',
382             'components_strings.gyp:components_strings',
383             'os_crypt',
384             'user_prefs',
385             'webdata_common',
386           ],
387           'sources': [
388             'autofill/content/browser/content_autofill_driver.cc',
389             'autofill/content/browser/content_autofill_driver.h',
390             'autofill/content/browser/content_autofill_driver_factory.cc',
391             'autofill/content/browser/content_autofill_driver_factory.h',
392             'autofill/content/browser/request_autocomplete_manager.cc',
393             'autofill/content/browser/request_autocomplete_manager.h',
394             'autofill/content/browser/risk/fingerprint.cc',
395             'autofill/content/browser/risk/fingerprint.h',
396             'autofill/content/browser/wallet/form_field_error.cc',
397             'autofill/content/browser/wallet/form_field_error.h',
398             'autofill/content/browser/wallet/full_wallet.cc',
399             'autofill/content/browser/wallet/full_wallet.h',
400             'autofill/content/browser/wallet/gaia_account.cc',
401             'autofill/content/browser/wallet/gaia_account.h',
402             'autofill/content/browser/wallet/instrument.cc',
403             'autofill/content/browser/wallet/instrument.h',
404             'autofill/content/browser/wallet/required_action.cc',
405             'autofill/content/browser/wallet/required_action.h',
406             'autofill/content/browser/wallet/wallet_address.cc',
407             'autofill/content/browser/wallet/wallet_address.h',
408             'autofill/content/browser/wallet/wallet_client.cc',
409             'autofill/content/browser/wallet/wallet_client.h',
410             'autofill/content/browser/wallet/wallet_client_delegate.h',
411             'autofill/content/browser/wallet/wallet_items.cc',
412             'autofill/content/browser/wallet/wallet_items.h',
413             'autofill/content/browser/wallet/wallet_service_url.cc',
414             'autofill/content/browser/wallet/wallet_service_url.h',
415             'autofill/content/browser/wallet/wallet_signin_helper.cc',
416             'autofill/content/browser/wallet/wallet_signin_helper.h',
417           ],
419           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
420           'msvs_disabled_warnings': [4267, ],
421         },
423         {
424           # GN version: //components/autofill/content/renderer
425           'target_name': 'autofill_content_renderer',
426           'type': 'static_library',
427           'include_dirs': [
428             '..',
429           ],
430           'dependencies': [
431             '../base/base.gyp:base',
432             '../content/content.gyp:content_common',
433             '../content/content.gyp:content_renderer',
434             '../google_apis/google_apis.gyp:google_apis',
435             '../ipc/ipc.gyp:ipc',
436             '../net/net.gyp:net',
437             '../skia/skia.gyp:skia',
438             '../third_party/WebKit/public/blink.gyp:blink',
439             '../ui/base/ui_base.gyp:ui_base',
440             'autofill_content_common',
441             'autofill_core_common',
442             'components_strings.gyp:components_strings',
443           ],
444           'sources': [
445             'autofill/content/renderer/autofill_agent.cc',
446             'autofill/content/renderer/autofill_agent.h',
447             'autofill/content/renderer/form_autofill_util.cc',
448             'autofill/content/renderer/form_autofill_util.h',
449             'autofill/content/renderer/form_cache.cc',
450             'autofill/content/renderer/form_cache.h',
451             'autofill/content/renderer/page_click_listener.h',
452             'autofill/content/renderer/page_click_tracker.cc',
453             'autofill/content/renderer/page_click_tracker.h',
454             'autofill/content/renderer/password_autofill_agent.cc',
455             'autofill/content/renderer/password_autofill_agent.h',
456             'autofill/content/renderer/password_form_conversion_utils.cc',
457             'autofill/content/renderer/password_form_conversion_utils.h',
458             'autofill/content/renderer/password_generation_agent.cc',
459             'autofill/content/renderer/password_generation_agent.h',
460             'autofill/content/renderer/renderer_save_password_progress_logger.cc',
461             'autofill/content/renderer/renderer_save_password_progress_logger.h',
462           ],
463           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
464           'msvs_disabled_warnings': [4267, ],
465         },
466       ],
467     }],
468     ['OS == "ios"', {
469       'targets': [
470         {
471           'target_name': 'autofill_ios_browser',
472           'type': 'static_library',
473           'include_dirs': [
474             '..',
475           ],
476           'dependencies': [
477             'autofill_core_browser',
478             '../ios/provider/ios_provider_web.gyp:ios_provider_web',
479             '../ios/web/ios_web.gyp:ios_web',
480           ],
481           'sources': [
482             'autofill/ios/browser/autofill_driver_ios.h',
483             'autofill/ios/browser/autofill_driver_ios.mm',
484             'autofill/ios/browser/autofill_driver_ios_bridge.h',
485           ],
486         },
487       ],
488     }],
489   ],