cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / components / translate.gypi
blob50fda091ef470895d972dfe2d233f78475e5dca0
1 # Copyright 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/translate/core/browser
9       'target_name': 'translate_core_browser',
10       'type': 'static_library',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../base/base.gyp:base_i18n',
14         '../google_apis/google_apis.gyp:google_apis',
15         '../net/net.gyp:net',
16         '../ui/base/ui_base.gyp:ui_base',
17         '../url/url.gyp:url_lib',
18         'components_resources.gyp:components_resources',
19         'components_strings.gyp:components_strings',
20         'infobars_core',
21         'language_usage_metrics',
22         'pref_registry',
23         'translate_core_common',
24       ],
25       'include_dirs': [
26         '..',
27       ],
28       'sources': [
29         # Note: sources list duplicated in GN build.
30         'translate/core/browser/language_state.cc',
31         'translate/core/browser/language_state.h',
32         'translate/core/browser/options_menu_model.cc',
33         'translate/core/browser/options_menu_model.h',
34         'translate/core/browser/page_translated_details.h',
35         'translate/core/browser/translate_accept_languages.cc',
36         'translate/core/browser/translate_accept_languages.h',
37         'translate/core/browser/translate_browser_metrics.cc',
38         'translate/core/browser/translate_browser_metrics.h',
39         'translate/core/browser/translate_client.h',
40         'translate/core/browser/translate_download_manager.cc',
41         'translate/core/browser/translate_download_manager.h',
42         'translate/core/browser/translate_driver.h',
43         'translate/core/browser/translate_error_details.h',
44         'translate/core/browser/translate_event_details.cc',
45         'translate/core/browser/translate_event_details.h',
46         'translate/core/browser/translate_infobar_delegate.cc',
47         'translate/core/browser/translate_infobar_delegate.h',
48         'translate/core/browser/translate_language_list.cc',
49         'translate/core/browser/translate_language_list.h',
50         'translate/core/browser/translate_manager.cc',
51         'translate/core/browser/translate_manager.h',
52         'translate/core/browser/translate_prefs.cc',
53         'translate/core/browser/translate_prefs.h',
54         'translate/core/browser/translate_script.cc',
55         'translate/core/browser/translate_script.h',
56         'translate/core/browser/translate_step.h',
57         'translate/core/browser/translate_ui_delegate.cc',
58         'translate/core/browser/translate_ui_delegate.h',
59         'translate/core/browser/translate_url_fetcher.cc',
60         'translate/core/browser/translate_url_fetcher.h',
61         'translate/core/browser/translate_url_util.cc',
62         'translate/core/browser/translate_url_util.h',
63        ],
64     },
65     {
66       # GN version: //components/translate/core/common
67       'target_name': 'translate_core_common',
68       'type': 'static_library',
69       'dependencies': [
70         '../base/base.gyp:base',
71         '../url/url.gyp:url_lib',
72       ],
73       'include_dirs': [
74         '..',
75       ],
76       'sources': [
77         # Note: sources list duplicated in GN build.
78         'translate/core/common/language_detection_details.cc',
79         'translate/core/common/language_detection_details.h',
80         'translate/core/common/translate_constants.cc',
81         'translate/core/common/translate_constants.h',
82         'translate/core/common/translate_errors.h',
83         'translate/core/common/translate_metrics.cc',
84         'translate/core/common/translate_metrics.h',
85         'translate/core/common/translate_pref_names.cc',
86         'translate/core/common/translate_pref_names.h',
87         'translate/core/common/translate_switches.cc',
88         'translate/core/common/translate_switches.h',
89         'translate/core/common/translate_util.cc',
90         'translate/core/common/translate_util.h',
91       ],
92     },
93     {
94       # GN version: //components/translate/core/language_detection
95       'target_name': 'translate_core_language_detection',
96       'type': 'static_library',
97       'dependencies': [
98         'translate_core_common',
99         '../base/base.gyp:base',
100         '../url/url.gyp:url_lib',
101       ],
102       'include_dirs': [
103         '..',
104       ],
105       'sources': [
106         # Note: sources list duplicated in GN build.
107         'translate/core/language_detection/language_detection_util.cc',
108         'translate/core/language_detection/language_detection_util.h',
109       ],
110       'conditions': [
111         ['cld_version==1', {
112           'dependencies': [
113             '<(DEPTH)/third_party/cld/cld.gyp:cld',
114           ],
115         }],
116         ['cld_version==2', {
117           'dependencies': [
118             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
119           ],
120         }],
121       ],
122     },
123   ],
124   'conditions': [
125     ['OS != "ios"', {
126       'targets': [
127         {
128           # GN version: //components/translate/content/browser
129           'target_name': 'translate_content_browser',
130           'type': 'static_library',
131           'dependencies': [
132             'translate_core_browser',
133             '../base/base.gyp:base',
134             '../content/content.gyp:content_browser',
135           ],
136           'include_dirs': [
137             '..',
138           ],
139           'sources': [
140             # Note: sources list duplicated in GN build.
141             'translate/content/browser/browser_cld_data_provider.cc',
142             'translate/content/browser/browser_cld_data_provider.h',
143             'translate/content/browser/browser_cld_data_provider_factory.cc',
144             'translate/content/browser/browser_cld_data_provider_factory.h',
145             'translate/content/browser/browser_cld_utils.cc',
146             'translate/content/browser/browser_cld_utils.h',
147             'translate/content/browser/content_translate_driver.cc',
148             'translate/content/browser/content_translate_driver.h',
149             'translate/content/browser/data_file_browser_cld_data_provider.cc',
150             'translate/content/browser/data_file_browser_cld_data_provider.h',
151           ],
152         },
153         {
154           # GN version: //components/translate/content/common
155           'target_name': 'translate_content_common',
156           'type': 'static_library',
157           'dependencies': [
158             'translate_core_common',
159             'translate_core_language_detection',
160             '../base/base.gyp:base',
161             '../content/content.gyp:content_common',
162             '../ipc/ipc.gyp:ipc',
163           ],
164           'include_dirs': [
165             '..',
166           ],
167           'sources': [
168             # Note: sources list duplicated in GN build.
169             'translate/content/common/cld_data_source.cc',
170             'translate/content/common/cld_data_source.h',
171             'translate/content/common/data_file_cld_data_provider_messages.cc',
172             'translate/content/common/data_file_cld_data_provider_messages.h',
173             'translate/content/common/translate_messages.cc',
174             'translate/content/common/translate_messages.h',
175            ],
176         },
177         {
178           # GN version: //components/translate/content/renderer
179           'target_name': 'translate_content_renderer',
180           'type': 'static_library',
181           'dependencies': [
182             'translate_content_common',
183             'translate_core_common',
184             'translate_core_language_detection',
185             '../base/base.gyp:base',
186             '../content/content.gyp:content_common',
187             '../content/content.gyp:content_renderer',
188             '../ipc/ipc.gyp:ipc',
189             '../third_party/WebKit/public/blink.gyp:blink',
190             '../url/url.gyp:url_lib',
191             '../v8/tools/gyp/v8.gyp:v8',
192           ],
193           'include_dirs': [
194             '..',
195           ],
196           'sources': [
197             # Note: sources list duplicated in GN build.
198             'translate/content/renderer/renderer_cld_data_provider.cc',
199             'translate/content/renderer/renderer_cld_data_provider.h',
200             'translate/content/renderer/renderer_cld_data_provider_factory.cc',
201             'translate/content/renderer/renderer_cld_data_provider_factory.h',
202             'translate/content/renderer/renderer_cld_utils.cc',
203             'translate/content/renderer/renderer_cld_utils.h',
204             'translate/content/renderer/translate_helper.cc',
205             'translate/content/renderer/translate_helper.h',
206            ],
207           'conditions': [
208             ['cld_version==2', {
209               'dependencies': [
210                 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
211               ],
212               'sources': [
213                 'translate/content/renderer/data_file_renderer_cld_data_provider.cc',
214                 'translate/content/renderer/data_file_renderer_cld_data_provider.h',
215               ],
216             }],
217           ],
218         },
219       ],
220     }],
221     ['OS == "ios"', {
222       'targets': [
223         {
224           'target_name': 'translate_ios_browser',
225           'type': 'static_library',
226           'include_dirs': [
227             '..',
228           ],
229           'dependencies': [
230             'translate_core_language_detection',
231             'translate_core_browser',
232             'translate_core_common',
233             'translate_ios_injected_js',
234             '../base/base.gyp:base',
235             '../ios/web/ios_web.gyp:ios_web',
236             '../url/url.gyp:url_lib',
237           ],
238           'sources': [
239             'translate/ios/browser/ios_translate_driver.h',
240             'translate/ios/browser/ios_translate_driver.mm',
241             'translate/ios/browser/js_language_detection_manager.h',
242             'translate/ios/browser/js_language_detection_manager.mm',
243             'translate/ios/browser/js_translate_manager.h',
244             'translate/ios/browser/js_translate_manager.mm',
245             'translate/ios/browser/language_detection_controller.h',
246             'translate/ios/browser/language_detection_controller.mm',
247             'translate/ios/browser/translate_controller.h',
248             'translate/ios/browser/translate_controller.mm',
249           ],
250         },
251         {
252           'target_name': 'translate_ios_injected_js',
253           'type': 'none',
254           'sources': [
255             'translate/ios/browser/resources/language_detection.js',
256             'translate/ios/browser/resources/translate_ios.js',
257           ],
258           'link_settings': {
259             'mac_bundle_resources': [
260               '<(SHARED_INTERMEDIATE_DIR)/translate_ios.js',
261               '<(SHARED_INTERMEDIATE_DIR)/language_detection.js',
262             ],
263           },
264           'includes': [
265             '../ios/web/js_compile_checked.gypi',
266           ],
267         },
268       ],
269     }],
270   ],