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