Revert 227675 "reland "views: change WrenchMenu to use each mode..."
[chromium-blink-merge.git] / components / autofill.gypi
blob81497e751022ab486bfad1a934b1ae6cada5e962
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     },
25   ],
26   'conditions': [
27     ['OS != "ios"', {
28       'targets': [
29         {
30           'target_name': 'autofill_core_common',
31           'type': 'static_library',
32           'dependencies': [
33             '../base/base.gyp:base',
34             '../content/content.gyp:content_common',
35             '../ipc/ipc.gyp:ipc',
36             '../third_party/WebKit/public/blink.gyp:blink_minimal',
37             '../ui/events/events.gyp:events',
38             '../ui/gfx/gfx.gyp:gfx',
39             '../ui/ui.gyp:ui',
40             '../url/url.gyp:url_lib',
41           ],
42           'conditions': [
43             ['OS == "android"', {
44               'dependencies': [
45                 'autofill_jni_headers',
46               ],
47             }],
48           ],
49           'include_dirs': [
50             '..',
51             '<(SHARED_INTERMEDIATE_DIR)/autofill'
52           ],
53           'sources': [
54             'autofill/core/browser/android/auxiliary_profile_loader_android.cc',
55             'autofill/core/browser/android/auxiliary_profile_loader_android.h',
56             'autofill/core/browser/android/auxiliary_profiles_android.cc',
57             'autofill/core/browser/android/auxiliary_profiles_android.h',
58             'autofill/core/browser/android/component_jni_registrar.cc',
59             'autofill/core/browser/android/component_jni_registrar.h',
60             'autofill/core/browser/android/personal_data_manager_android.cc',
61             'autofill/core/common/autofill_constants.cc',
62             'autofill/core/common/autofill_constants.h',
63             'autofill/core/common/autofill_messages.h',
64             'autofill/core/common/autofill_message_generator.cc',
65             'autofill/core/common/autofill_message_generator.h',
66             'autofill/core/common/autofill_param_traits_macros.h',
67             'autofill/core/common/autofill_pref_names.cc',
68             'autofill/core/common/autofill_pref_names.h',
69             'autofill/core/common/autofill_switches.cc',
70             'autofill/core/common/autofill_switches.h',
71             'autofill/core/common/form_data.cc',
72             'autofill/core/common/form_data.h',
73             'autofill/core/common/form_data_predictions.cc',
74             'autofill/core/common/form_data_predictions.h',
75             'autofill/core/common/form_field_data.cc',
76             'autofill/core/common/form_field_data.h',
77             'autofill/core/common/form_field_data_predictions.cc',
78             'autofill/core/common/form_field_data_predictions.h',
79             'autofill/core/common/password_form.cc',
80             'autofill/core/common/password_form.h',
81             'autofill/core/common/password_form_fill_data.cc',
82             'autofill/core/common/password_form_fill_data.h',
83             'autofill/core/common/password_generation_util.cc',
84             'autofill/core/common/password_generation_util.h',
85             'autofill/core/common/web_element_descriptor.cc',
86             'autofill/core/common/web_element_descriptor.h',
87           ],
88         },
90         {
91           'target_name': 'autofill_core_browser',
92           'type': 'static_library',
93           'include_dirs': [
94             '..',
95           ],
96           'dependencies': [
97             'autofill_core_common',
98             'autofill_regexes',
99             'encryptor',
100             'user_prefs',
101             'webdata_common',
102             '../base/base.gyp:base',
103             '../base/base.gyp:base_i18n',
104             '../base/base.gyp:base_prefs',
105             '../content/content.gyp:content_browser',
106             '../content/content.gyp:content_common',
107             '../google_apis/google_apis.gyp:google_apis',
108             '../ipc/ipc.gyp:ipc',
109             '../skia/skia.gyp:skia',
110             '../sql/sql.gyp:sql',
111             '../third_party/icu/icu.gyp:icui18n',
112             '../third_party/icu/icu.gyp:icuuc',
113             '../third_party/libjingle/libjingle.gyp:libjingle',
114             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
115             '../ui/events/events.gyp:events',
116             '../ui/gfx/gfx.gyp:gfx',
117             '../ui/ui.gyp:ui',
118             '../url/url.gyp:url_lib',
119             '../webkit/webkit_resources.gyp:webkit_resources',
121             'component_strings.gyp:component_strings',
122           ],
123           'sources': [
124             'autofill/core/browser/address.cc',
125             'autofill/core/browser/address.h',
126             'autofill/core/browser/address_field.cc',
127             'autofill/core/browser/address_field.h',
128             'autofill/core/browser/autocomplete_history_manager.cc',
129             'autofill/core/browser/autocomplete_history_manager.h',
130             'autofill/core/browser/autofill-inl.h',
131             'autofill/core/browser/autofill_country.cc',
132             'autofill/core/browser/autofill_country.h',
133             'autofill/core/browser/autofill_data_model.cc',
134             'autofill/core/browser/autofill_data_model.h',
135             'autofill/core/browser/autofill_download.cc',
136             'autofill/core/browser/autofill_download.h',
137             'autofill/core/browser/autofill_download_url.cc',
138             'autofill/core/browser/autofill_download_url.h',
139             'autofill/core/browser/autofill_driver.h',
140             'autofill/core/browser/autofill_external_delegate.cc',
141             'autofill/core/browser/autofill_external_delegate.h',
142             'autofill/core/browser/autofill_field.cc',
143             'autofill/core/browser/autofill_field.h',
144             'autofill/core/browser/autofill_ie_toolbar_import_win.cc',
145             'autofill/core/browser/autofill_ie_toolbar_import_win.h',
146             'autofill/core/browser/autofill_manager.cc',
147             'autofill/core/browser/autofill_manager.h',
148             'autofill/core/browser/autofill_manager_delegate.h',
149             'autofill/core/browser/autofill_manager_test_delegate.h',
150             'autofill/core/browser/autofill_metrics.cc',
151             'autofill/core/browser/autofill_metrics.h',
152             'autofill/core/browser/autofill_popup_delegate.h',
153             'autofill/core/browser/autofill_profile.cc',
154             'autofill/core/browser/autofill_profile.h',
155             'autofill/core/browser/autofill_regex_constants.cc.utf8',
156             'autofill/core/browser/autofill_regex_constants.h',
157             'autofill/core/browser/autofill_regexes.cc',
158             'autofill/core/browser/autofill_regexes.h',
159             'autofill/core/browser/autofill_scanner.cc',
160             'autofill/core/browser/autofill_scanner.h',
161             'autofill/core/browser/autofill_server_field_info.h',
162             'autofill/core/browser/autofill_type.cc',
163             'autofill/core/browser/autofill_type.h',
164             'autofill/core/browser/autofill_xml_parser.cc',
165             'autofill/core/browser/autofill_xml_parser.h',
166             'autofill/core/browser/contact_info.cc',
167             'autofill/core/browser/contact_info.h',
168             'autofill/core/browser/credit_card.cc',
169             'autofill/core/browser/credit_card.h',
170             'autofill/core/browser/credit_card_field.cc',
171             'autofill/core/browser/credit_card_field.h',
172             'autofill/core/browser/email_field.cc',
173             'autofill/core/browser/email_field.h',
174             'autofill/core/browser/field_types.h',
175             'autofill/core/browser/form_field.cc',
176             'autofill/core/browser/form_field.h',
177             'autofill/core/browser/form_group.cc',
178             'autofill/core/browser/form_group.h',
179             'autofill/core/browser/form_structure.cc',
180             'autofill/core/browser/form_structure.h',
181             'autofill/core/browser/name_field.cc',
182             'autofill/core/browser/name_field.h',
183             'autofill/core/browser/password_autofill_manager.cc',
184             'autofill/core/browser/password_autofill_manager.h',
185             'autofill/core/browser/password_generator.cc',
186             'autofill/core/browser/password_generator.h',
187             'autofill/core/browser/personal_data_manager.cc',
188             'autofill/core/browser/personal_data_manager.h',
189             'autofill/core/browser/personal_data_manager_mac.mm',
190             'autofill/core/browser/personal_data_manager_observer.h',
191             'autofill/core/browser/phone_field.cc',
192             'autofill/core/browser/phone_field.h',
193             'autofill/core/browser/phone_number.cc',
194             'autofill/core/browser/phone_number.h',
195             'autofill/core/browser/phone_number_i18n.cc',
196             'autofill/core/browser/phone_number_i18n.h',
197             'autofill/core/browser/state_names.cc',
198             'autofill/core/browser/state_names.h',
199             'autofill/core/browser/validation.cc',
200             'autofill/core/browser/validation.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_table.cc',
206             'autofill/core/browser/webdata/autofill_table.h',
207             'autofill/core/browser/webdata/autofill_webdata.h',
208             'autofill/core/browser/webdata/autofill_webdata_backend.h',
209             'autofill/core/browser/webdata/autofill_webdata_backend_impl.cc',
210             'autofill/core/browser/webdata/autofill_webdata_backend_impl.h',
211             'autofill/core/browser/webdata/autofill_webdata_service.cc',
212             'autofill/core/browser/webdata/autofill_webdata_service.h',
213             'autofill/core/browser/webdata/autofill_webdata_service_observer.h',
215             # This file is generated by the autofill_regexes action.
216             '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc',
217           ],
219           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
220           'msvs_disabled_warnings': [4267, ],
221         },
223         {
224           'target_name': 'autofill_core_test_support',
225           'type': 'static_library',
226           'dependencies': [
227             'autofill_core_common',
228             'autofill_core_browser',
229             '../skia/skia.gyp:skia',
230             '../testing/gtest.gyp:gtest',
231           ],
232           'sources': [
233             'autofill/core/browser/android/test_auxiliary_profile_loader_android.cc',
234             'autofill/core/browser/android/test_auxiliary_profile_loader_android.h',
235             'autofill/core/browser/autofill_common_test.cc',
236             'autofill/core/browser/autofill_common_test.h',
237             'autofill/core/browser/data_driven_test.cc',
238             'autofill/core/browser/data_driven_test.h',
239             'autofill/core/browser/test_autofill_driver.cc',
240             'autofill/core/browser/test_autofill_driver.h',
241             'autofill/core/browser/test_autofill_external_delegate.cc',
242             'autofill/core/browser/test_autofill_external_delegate.h',
243             'autofill/core/browser/test_autofill_manager_delegate.cc',
244             'autofill/core/browser/test_autofill_manager_delegate.h',
245             'autofill/core/browser/test_personal_data_manager.cc',
246             'autofill/core/browser/test_personal_data_manager.h',
247           ],
248         },
250         {
251           # Protobuf compiler / generate rule for Autofill's risk integration.
252           'target_name': 'autofill_content_risk_proto',
253           'type': 'static_library',
254           'sources': [
255             'autofill/content/browser/risk/proto/fingerprint.proto',
256           ],
257           'variables': {
258             'proto_in_dir': 'autofill/content/browser/risk/proto',
259             'proto_out_dir': 'components/autofill/content/browser/risk/proto',
260           },
261           'includes': [ '../build/protoc.gypi' ]
262         },
263        {
264          'target_name': 'autofill_content_test_support',
265          'type': 'static_library',
266          'dependencies': [
267             '../testing/gmock.gyp:gmock',
268          ],
269          'sources': [
270            'autofill/content/browser/wallet/mock_wallet_client.cc',
271            'autofill/content/browser/wallet/mock_wallet_client.h',
272            'autofill/content/browser/wallet/wallet_test_util.cc',
273            'autofill/content/browser/wallet/wallet_test_util.h',
274          ],
275          'include_dirs': [ '..' ],
276        },
277        {
278           'target_name': 'autofill_content_browser',
279           'type': 'static_library',
280           'include_dirs': [
281             '..',
282           ],
283           'dependencies': [
284             'autofill_content_risk_proto',
285             'autofill_core_browser',
286             'autofill_core_common',
287             'autofill_regexes',
288             'encryptor',
289             'user_prefs',
290             'webdata_common',
291             '../base/base.gyp:base',
292             '../base/base.gyp:base_i18n',
293             '../base/base.gyp:base_prefs',
294             '../content/content.gyp:content_browser',
295             '../content/content.gyp:content_common',
296             '../google_apis/google_apis.gyp:google_apis',
297             '../ipc/ipc.gyp:ipc',
298             '../skia/skia.gyp:skia',
299             '../sql/sql.gyp:sql',
300             '../third_party/icu/icu.gyp:icui18n',
301             '../third_party/icu/icu.gyp:icuuc',
302             '../third_party/libjingle/libjingle.gyp:libjingle',
303             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
304             '../ui/events/events.gyp:events',
305             '../ui/gfx/gfx.gyp:gfx',
306             '../ui/ui.gyp:ui',
307             '../url/url.gyp:url_lib',
308             '../webkit/webkit_resources.gyp:webkit_resources',
310             'component_strings.gyp:component_strings',
311           ],
312           'sources': [
313             'autofill/content/browser/autofill_driver_impl.cc',
314             'autofill/content/browser/autofill_driver_impl.h',
315             'autofill/content/browser/risk/fingerprint.cc',
316             'autofill/content/browser/risk/fingerprint.h',
317             'autofill/content/browser/wallet/form_field_error.cc',
318             'autofill/content/browser/wallet/form_field_error.h',
319             'autofill/content/browser/wallet/full_wallet.cc',
320             'autofill/content/browser/wallet/full_wallet.h',
321             'autofill/content/browser/wallet/instrument.cc',
322             'autofill/content/browser/wallet/instrument.h',
323             'autofill/content/browser/wallet/required_action.cc',
324             'autofill/content/browser/wallet/required_action.h',
325             'autofill/content/browser/wallet/wallet_address.cc',
326             'autofill/content/browser/wallet/wallet_address.h',
327             'autofill/content/browser/wallet/wallet_client.cc',
328             'autofill/content/browser/wallet/wallet_client.h',
329             'autofill/content/browser/wallet/wallet_client_delegate.h',
330             'autofill/content/browser/wallet/wallet_items.cc',
331             'autofill/content/browser/wallet/wallet_items.h',
332             'autofill/content/browser/wallet/wallet_service_url.cc',
333             'autofill/content/browser/wallet/wallet_service_url.h',
334             'autofill/content/browser/wallet/wallet_signin_helper.cc',
335             'autofill/content/browser/wallet/wallet_signin_helper.h',
336           ],
338           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
339           'msvs_disabled_warnings': [4267, ],
340         },
342         {
343           'target_name': 'autofill_content_renderer',
344           'type': 'static_library',
345           'include_dirs': [
346             '..',
347           ],
348           'dependencies': [
349             'autofill_core_common',
350             '../base/base.gyp:base',
351             '../content/content.gyp:content_renderer',
352             '../content/content.gyp:content_common',
353             '../ipc/ipc.gyp:ipc',
354             '../skia/skia.gyp:skia',
356             'component_strings.gyp:component_strings',
357           ],
358           'sources': [
359             'autofill/content/renderer/autofill_agent.cc',
360             'autofill/content/renderer/autofill_agent.h',
361             'autofill/content/renderer/form_autofill_util.cc',
362             'autofill/content/renderer/form_autofill_util.h',
363             'autofill/content/renderer/form_cache.cc',
364             'autofill/content/renderer/form_cache.h',
365             'autofill/content/renderer/page_click_listener.h',
366             'autofill/content/renderer/page_click_tracker.cc',
367             'autofill/content/renderer/page_click_tracker.h',
368             'autofill/content/renderer/password_autofill_agent.cc',
369             'autofill/content/renderer/password_autofill_agent.h',
370             'autofill/content/renderer/password_form_conversion_utils.cc',
371             'autofill/content/renderer/password_form_conversion_utils.h',
372             'autofill/content/renderer/password_generation_agent.cc',
373             'autofill/content/renderer/password_generation_agent.h',
374           ],
375           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
376           'msvs_disabled_warnings': [4267, ],
377         },
378       ],
379     }],
380     ['OS == "android"', {
381       'targets': [
382         {
383           'target_name': 'autofill_java',
384           'type': 'none',
385           'dependencies': [
386             '../base/base.gyp:base',
387             '../content/content.gyp:content_java',
388           ],
389           'variables': {
390             'java_in_dir': 'autofill/core/browser/android/java',
391           },
392           'includes': [ '../build/java.gypi' ],
393         },
394         {
395           'target_name': 'autofill_jni_headers',
396           'type': 'none',
397           'sources': [
398             'autofill/core/browser/android/java/src/org/chromium/components/browser/autofill/PersonalAutofillPopulator.java',
399           ],
400           'variables': {
401             'jni_gen_package': 'autofill',
402           },
403           'includes': [ '../build/jni_generator.gypi' ],
404         },
405       ],
406     }],
407   ],