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