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