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