Add google_apis_unittests, midi_unittests to GN swarming.
[chromium-blink-merge.git] / components / autofill.gypi
blobf0cc7d77ea5bb51c07e93f8a8a65f414bc52170c
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       # GN version: //components/autofill/core/common
9       'target_name': 'autofill_core_common',
10       'type': 'static_library',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../base/base.gyp:base_i18n',
14         '../ui/base/ui_base.gyp:ui_base',
15         '../ui/gfx/gfx.gyp:gfx',
16         '../url/url.gyp:url_lib',
17       ],
18       'include_dirs': [
19         '..',
20       ],
21       'sources': [
22         'autofill/core/common/autofill_constants.cc',
23         'autofill/core/common/autofill_constants.h',
24         'autofill/core/common/autofill_data_validation.cc',
25         'autofill/core/common/autofill_data_validation.h',
26         'autofill/core/common/autofill_l10n_util.cc',
27         'autofill/core/common/autofill_l10n_util.h',
28         'autofill/core/common/autofill_pref_names.cc',
29         'autofill/core/common/autofill_pref_names.h',
30         'autofill/core/common/autofill_regexes.cc',
31         'autofill/core/common/autofill_regexes.h',
32         'autofill/core/common/autofill_switches.cc',
33         'autofill/core/common/autofill_switches.h',
34         'autofill/core/common/autofill_util.cc',
35         'autofill/core/common/autofill_util.h',
36         'autofill/core/common/form_data.cc',
37         'autofill/core/common/form_data.h',
38         'autofill/core/common/form_data_predictions.cc',
39         'autofill/core/common/form_data_predictions.h',
40         'autofill/core/common/form_field_data.cc',
41         'autofill/core/common/form_field_data.h',
42         'autofill/core/common/form_field_data_predictions.cc',
43         'autofill/core/common/form_field_data_predictions.h',
44         'autofill/core/common/password_form.cc',
45         'autofill/core/common/password_form.h',
46         'autofill/core/common/password_form_fill_data.cc',
47         'autofill/core/common/password_form_fill_data.h',
48         'autofill/core/common/password_form_field_prediction_map.h',
49         'autofill/core/common/password_generation_util.cc',
50         'autofill/core/common/password_generation_util.h',
51         'autofill/core/common/save_password_progress_logger.cc',
52         'autofill/core/common/save_password_progress_logger.h',
53         'autofill/core/common/web_element_descriptor.cc',
54         'autofill/core/common/web_element_descriptor.h',
55       ],
57       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
58       'msvs_disabled_warnings': [4267, ],
59     },
61     {
62       # GN version: //components/autofill/core/browser
63       'target_name': 'autofill_core_browser',
64       'type': 'static_library',
65       'include_dirs': [
66         '..',
67       ],
68       'dependencies': [
69         '../base/base.gyp:base',
70         '../base/base.gyp:base_i18n',
71         '../base/base.gyp:base_prefs',
72         '../google_apis/google_apis.gyp:google_apis',
73         '../net/net.gyp:net',
74         '../skia/skia.gyp:skia',
75         '../sql/sql.gyp:sql',
76         '../sync/sync.gyp:sync',
77         '../third_party/fips181/fips181.gyp:fips181',
78         '../third_party/icu/icu.gyp:icui18n',
79         '../third_party/icu/icu.gyp:icuuc',
80         '../third_party/libjingle/libjingle.gyp:libjingle',
81         '../third_party/libaddressinput/libaddressinput.gyp:libaddressinput_util',
82         '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
83         '../ui/base/ui_base.gyp:ui_base',
84         '../ui/gfx/gfx.gyp:gfx',
85         '../ui/gfx/gfx.gyp:gfx_geometry',
86         '../url/url.gyp:url_lib',
87         'autofill_core_common',
88         'components_resources.gyp:components_resources',
89         'components_strings.gyp:components_strings',
90         'infobars_core',
91         'keyed_service_core',
92         'os_crypt',
93         'pref_registry',
94         'rappor',
95         'signin_core_browser',
96         'signin_core_common',
97         'variations_http_provider',
98         'webdata_common',
99       ],
100       'sources': [
101         'autofill/core/browser/address.cc',
102         'autofill/core/browser/address.h',
103         'autofill/core/browser/address_field.cc',
104         'autofill/core/browser/address_field.h',
105         'autofill/core/browser/address_i18n.cc',
106         'autofill/core/browser/address_i18n.h',
107         'autofill/core/browser/autocomplete_history_manager.cc',
108         'autofill/core/browser/autocomplete_history_manager.h',
109         'autofill/core/browser/autofill-inl.h',
110         'autofill/core/browser/autofill_cc_infobar_delegate.cc',
111         'autofill/core/browser/autofill_cc_infobar_delegate.h',
112         'autofill/core/browser/autofill_client.h',
113         'autofill/core/browser/autofill_country.cc',
114         'autofill/core/browser/autofill_country.h',
115         'autofill/core/browser/autofill_data_model.cc',
116         'autofill/core/browser/autofill_data_model.h',
117         'autofill/core/browser/autofill_download_manager.cc',
118         'autofill/core/browser/autofill_download_manager.h',
119         'autofill/core/browser/autofill_driver.h',
120         'autofill/core/browser/autofill_experiments.cc',
121         'autofill/core/browser/autofill_experiments.h',
122         'autofill/core/browser/autofill_external_delegate.cc',
123         'autofill/core/browser/autofill_external_delegate.h',
124         'autofill/core/browser/autofill_field.cc',
125         'autofill/core/browser/autofill_field.h',
126         'autofill/core/browser/autofill_ie_toolbar_import_win.cc',
127         'autofill/core/browser/autofill_ie_toolbar_import_win.h',
128         'autofill/core/browser/autofill_manager.cc',
129         'autofill/core/browser/autofill_manager.h',
130         'autofill/core/browser/autofill_manager_test_delegate.h',
131         'autofill/core/browser/autofill_metrics.cc',
132         'autofill/core/browser/autofill_metrics.h',
133         'autofill/core/browser/autofill_popup_delegate.h',
134         'autofill/core/browser/autofill_profile.cc',
135         'autofill/core/browser/autofill_profile.h',
136         'autofill/core/browser/autofill_regex_constants.cc',
137         'autofill/core/browser/autofill_regex_constants.h',
138         'autofill/core/browser/autofill_scanner.cc',
139         'autofill/core/browser/autofill_scanner.h',
140         'autofill/core/browser/autofill_server_field_info.h',
141         'autofill/core/browser/autofill_sync_constants.cc',
142         'autofill/core/browser/autofill_sync_constants.h',
143         'autofill/core/browser/autofill_type.cc',
144         'autofill/core/browser/autofill_type.h',
145         'autofill/core/browser/autofill_xml_parser.cc',
146         'autofill/core/browser/autofill_xml_parser.h',
147         'autofill/core/browser/card_unmask_delegate.cc',
148         'autofill/core/browser/card_unmask_delegate.h',
149         'autofill/core/browser/contact_info.cc',
150         'autofill/core/browser/contact_info.h',
151         'autofill/core/browser/credit_card.cc',
152         'autofill/core/browser/credit_card.h',
153         'autofill/core/browser/credit_card_field.cc',
154         'autofill/core/browser/credit_card_field.h',
155         'autofill/core/browser/detail_input.cc',
156         'autofill/core/browser/detail_input.h',
157         'autofill/core/browser/dialog_section.h',
158         'autofill/core/browser/email_field.cc',
159         'autofill/core/browser/email_field.h',
160         'autofill/core/browser/field_types.h',
161         'autofill/core/browser/form_field.cc',
162         'autofill/core/browser/form_field.h',
163         'autofill/core/browser/form_group.cc',
164         'autofill/core/browser/form_group.h',
165         'autofill/core/browser/form_structure.cc',
166         'autofill/core/browser/form_structure.h',
167         'autofill/core/browser/name_field.cc',
168         'autofill/core/browser/name_field.h',
169         'autofill/core/browser/options_util.cc',
170         'autofill/core/browser/options_util.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/popup_item_ids.h',
184         'autofill/core/browser/server_field_types_util.cc',
185         'autofill/core/browser/server_field_types_util.h',
186         'autofill/core/browser/state_names.cc',
187         'autofill/core/browser/state_names.h',
188         'autofill/core/browser/suggestion.cc',
189         'autofill/core/browser/suggestion.h',
190         'autofill/core/browser/ui/card_unmask_prompt_controller.h',
191         'autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc',
192         'autofill/core/browser/ui/card_unmask_prompt_controller_impl.h',
193         'autofill/core/browser/ui/card_unmask_prompt_view.h',
194         'autofill/core/browser/validation.cc',
195         'autofill/core/browser/validation.h',
196         'autofill/core/browser/wallet/real_pan_wallet_client.cc',
197         'autofill/core/browser/wallet/real_pan_wallet_client.h',
198         'autofill/core/browser/webdata/autocomplete_syncable_service.cc',
199         'autofill/core/browser/webdata/autocomplete_syncable_service.h',
200         'autofill/core/browser/webdata/autofill_change.cc',
201         'autofill/core/browser/webdata/autofill_change.h',
202         'autofill/core/browser/webdata/autofill_entry.cc',
203         'autofill/core/browser/webdata/autofill_entry.h',
204         'autofill/core/browser/webdata/autofill_profile_syncable_service.cc',
205         'autofill/core/browser/webdata/autofill_profile_syncable_service.h',
206         'autofill/core/browser/webdata/autofill_table.cc',
207         'autofill/core/browser/webdata/autofill_table.h',
208         'autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.cc',
209         'autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.h',
210         'autofill/core/browser/webdata/autofill_wallet_syncable_service.cc',
211         'autofill/core/browser/webdata/autofill_wallet_syncable_service.h',
212         'autofill/core/browser/webdata/autofill_webdata.h',
213         'autofill/core/browser/webdata/autofill_webdata_backend.h',
214         'autofill/core/browser/webdata/autofill_webdata_backend_impl.cc',
215         'autofill/core/browser/webdata/autofill_webdata_backend_impl.h',
216         'autofill/core/browser/webdata/autofill_webdata_service.cc',
217         'autofill/core/browser/webdata/autofill_webdata_service.h',
218         'autofill/core/browser/webdata/autofill_webdata_service_observer.h',
219       ],
221       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
222       'msvs_disabled_warnings': [4267, ],
223     },
225     {
226       # GN version: //components/autofill/core/browser:test_support
227       'target_name': 'autofill_core_test_support',
228       'type': 'static_library',
229       'dependencies': [
230         '../base/base.gyp:base',
231         '../base/base.gyp:base_prefs',
232         '../base/base.gyp:test_support_base',
233         '../skia/skia.gyp:skia',
234         '../testing/gtest.gyp:gtest',
235         'autofill_core_common',
236         'autofill_core_browser',
237         'os_crypt',
238         'pref_registry',
239         'rappor',
240         'signin_core_browser_test_support',
241       ],
242       'sources': [
243         'autofill/core/browser/autofill_test_utils.cc',
244         'autofill/core/browser/autofill_test_utils.h',
245         'autofill/core/browser/data_driven_test.cc',
246         'autofill/core/browser/data_driven_test.h',
247         'autofill/core/browser/suggestion_test_helpers.h',
248         'autofill/core/browser/test_autofill_client.cc',
249         'autofill/core/browser/test_autofill_client.h',
250         'autofill/core/browser/test_autofill_driver.cc',
251         'autofill/core/browser/test_autofill_driver.h',
252         'autofill/core/browser/test_autofill_external_delegate.cc',
253         'autofill/core/browser/test_autofill_external_delegate.h',
254         'autofill/core/browser/test_personal_data_manager.cc',
255         'autofill/core/browser/test_personal_data_manager.h',
256       ],
257     },
258   ],
259   'conditions': [
260     ['OS != "ios"', {
261       'targets': [
262         {
263           # GN version: //content/autofill/content/common
264           'target_name': 'autofill_content_common',
265           'type': 'static_library',
266           'dependencies': [
267             'autofill_core_common',
268             '../base/base.gyp:base',
269             '../content/content.gyp:content_common',
270             '../ipc/ipc.gyp:ipc',
271             '../third_party/WebKit/public/blink.gyp:blink_minimal',
272             '../ui/gfx/gfx.gyp:gfx',
273             '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
274             '../url/url.gyp:url_lib',
275           ],
276           'include_dirs': [
277             '..',
278           ],
279           'sources': [
280             'autofill/content/common/autofill_message_generator.cc',
281             'autofill/content/common/autofill_message_generator.h',
282             'autofill/content/common/autofill_messages.h',
283             'autofill/content/common/autofill_param_traits_macros.h',
284           ],
285         },
287         {
288           # Protobuf compiler / generate rule for Autofill's risk integration.
289           # GN version: //components/autofill/content/browser:risk_proto
290           'target_name': 'autofill_content_risk_proto',
291           'type': 'static_library',
292           'sources': [
293             'autofill/content/browser/risk/proto/fingerprint.proto',
294           ],
295           'variables': {
296             'proto_in_dir': 'autofill/content/browser/risk/proto',
297             'proto_out_dir': 'components/autofill/content/browser/risk/proto',
298           },
299           'includes': [ '../build/protoc.gypi' ]
300         },
301        {
302          # GN version: //components/autofill/content/browser/wallet:test_support
303          # GN version: //components/autofill/content/renderer:test_support
304          'target_name': 'autofill_content_test_support',
305          'type': 'static_library',
306          'dependencies': [
307            'autofill_content_browser',
308            'autofill_content_renderer',
309            '../base/base.gyp:base',
310            '../ipc/ipc.gyp:ipc',
311            '../skia/skia.gyp:skia',
312            '../testing/gmock.gyp:gmock',
313          ],
314          'sources': [
315            'autofill/content/browser/wallet/wallet_test_util.cc',
316            'autofill/content/browser/wallet/wallet_test_util.h',
317            'autofill/content/renderer/test_password_autofill_agent.cc',
318            'autofill/content/renderer/test_password_autofill_agent.h',
319            'autofill/content/renderer/test_password_generation_agent.cc',
320            'autofill/content/renderer/test_password_generation_agent.h',
321          ],
322          'include_dirs': [ '..' ],
323        },
324        {
325           # GN version: //components/autofill/content/browser
326           'target_name': 'autofill_content_browser',
327           'type': 'static_library',
328           'include_dirs': [
329             '..',
330           ],
331           'dependencies': [
332             '../base/base.gyp:base',
333             '../base/base.gyp:base_i18n',
334             '../base/base.gyp:base_prefs',
335             '../content/content.gyp:content_browser',
336             '../content/content.gyp:content_common',
337             '../google_apis/google_apis.gyp:google_apis',
338             '../ipc/ipc.gyp:ipc',
339             '../net/net.gyp:net',
340             '../skia/skia.gyp:skia',
341             '../sql/sql.gyp:sql',
342             '../third_party/icu/icu.gyp:icui18n',
343             '../third_party/icu/icu.gyp:icuuc',
344             '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
345             '../ui/base/ui_base.gyp:ui_base',
346             '../ui/gfx/gfx.gyp:gfx',
347             '../ui/gfx/gfx.gyp:gfx_geometry',
348             '../url/url.gyp:url_lib',
349             'autofill_content_common',
350             'autofill_content_risk_proto',
351             'autofill_core_browser',
352             'autofill_core_common',
353             'components_resources.gyp:components_resources',
354             'components_strings.gyp:components_strings',
355             'os_crypt',
356             'user_prefs',
357             'webdata_common',
358           ],
359           'sources': [
360             'autofill/content/browser/content_autofill_driver.cc',
361             'autofill/content/browser/content_autofill_driver.h',
362             'autofill/content/browser/content_autofill_driver_factory.cc',
363             'autofill/content/browser/content_autofill_driver_factory.h',
364             'autofill/content/browser/request_autocomplete_manager.cc',
365             'autofill/content/browser/request_autocomplete_manager.h',
366             'autofill/content/browser/risk/fingerprint.cc',
367             'autofill/content/browser/risk/fingerprint.h',
368             'autofill/content/browser/wallet/full_wallet.cc',
369             'autofill/content/browser/wallet/full_wallet.h',
370             'autofill/content/browser/wallet/wallet_address.cc',
371             'autofill/content/browser/wallet/wallet_address.h',
372             'autofill/content/browser/wallet/wallet_service_url.cc',
373             'autofill/content/browser/wallet/wallet_service_url.h',
374           ],
376           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
377           'msvs_disabled_warnings': [4267, ],
378         },
380         {
381           # GN version: //components/autofill/content/renderer
382           'target_name': 'autofill_content_renderer',
383           'type': 'static_library',
384           'include_dirs': [
385             '..',
386           ],
387           'dependencies': [
388             '../base/base.gyp:base',
389             '../content/content.gyp:content_common',
390             '../content/content.gyp:content_renderer',
391             '../google_apis/google_apis.gyp:google_apis',
392             '../ipc/ipc.gyp:ipc',
393             '../net/net.gyp:net',
394             '../skia/skia.gyp:skia',
395             '../third_party/icu/icu.gyp:icui18n',
396             '../third_party/icu/icu.gyp:icuuc',
397             '../third_party/WebKit/public/blink.gyp:blink',
398             '../ui/base/ui_base.gyp:ui_base',
399             'autofill_content_common',
400             'autofill_core_common',
401             'components_strings.gyp:components_strings',
402           ],
403           'sources': [
404             'autofill/content/renderer/autofill_agent.cc',
405             'autofill/content/renderer/autofill_agent.h',
406             'autofill/content/renderer/form_autofill_util.cc',
407             'autofill/content/renderer/form_autofill_util.h',
408             'autofill/content/renderer/form_cache.cc',
409             'autofill/content/renderer/form_cache.h',
410             'autofill/content/renderer/page_click_listener.h',
411             'autofill/content/renderer/page_click_tracker.cc',
412             'autofill/content/renderer/page_click_tracker.h',
413             'autofill/content/renderer/password_autofill_agent.cc',
414             'autofill/content/renderer/password_autofill_agent.h',
415             'autofill/content/renderer/password_form_conversion_utils.cc',
416             'autofill/content/renderer/password_form_conversion_utils.h',
417             'autofill/content/renderer/password_generation_agent.cc',
418             'autofill/content/renderer/password_generation_agent.h',
419             'autofill/content/renderer/renderer_save_password_progress_logger.cc',
420             'autofill/content/renderer/renderer_save_password_progress_logger.h',
421           ],
422           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
423           'msvs_disabled_warnings': [4267, ],
424         },
425       ],
426     }],
427     ['OS == "ios"', {
428       'targets': [
429         {
430           'target_name': 'autofill_ios_browser',
431           'type': 'static_library',
432           'include_dirs': [
433             '..',
434           ],
435           'dependencies': [
436             'autofill_core_browser',
437             'autofill_core_common',
438             'autofill_ios_injected_js',
439             '../ios/provider/ios_provider_web.gyp:ios_provider_web',
440             '../ios/web/ios_web.gyp:ios_web',
441           ],
442           'sources': [
443             'autofill/ios/browser/autofill_client_ios_bridge.h',
444             'autofill/ios/browser/autofill_driver_ios.h',
445             'autofill/ios/browser/autofill_driver_ios.mm',
446             'autofill/ios/browser/autofill_driver_ios_bridge.h',
447             'autofill/ios/browser/credit_card_util.h',
448             'autofill/ios/browser/credit_card_util.mm',
449             'autofill/ios/browser/autofill_field_trial_ios.cc',
450             'autofill/ios/browser/autofill_field_trial_ios.h',
451             'autofill/ios/browser/form_suggestion.h',
452             'autofill/ios/browser/form_suggestion.mm',
453             'autofill/ios/browser/js_autofill_manager.h',
454             'autofill/ios/browser/js_autofill_manager.mm',
455             'autofill/ios/browser/js_suggestion_manager.h',
456             'autofill/ios/browser/js_suggestion_manager.mm',
457             'autofill/ios/browser/personal_data_manager_observer_bridge.h',
458             'autofill/ios/browser/personal_data_manager_observer_bridge.mm',
459           ],
460         },
461         {
462           'target_name': 'autofill_ios_injected_js',
463           'type': 'none',
464           'sources': [
465             'autofill/ios/browser/resources/autofill_controller.js',
466             'autofill/ios/browser/resources/suggestion_controller.js',
467           ],
468           'link_settings': {
469             'mac_bundle_resources': [
470               '<(SHARED_INTERMEDIATE_DIR)/autofill_controller.js',
471               '<(SHARED_INTERMEDIATE_DIR)/suggestion_controller.js',
472             ],
473           },
474           'includes': [
475             '../ios/web/js_compile_checked.gypi',
476           ],
477         },
478       ],
479     }],
480   ],