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