Update V8 to version 4.6.61.
[chromium-blink-merge.git] / components / translate.gypi
blob066bad07955cedfc6bb74fbc2c51dedb361e37df
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/data_file_renderer_cld_data_provider.cc',
199             'translate/content/renderer/data_file_renderer_cld_data_provider.h',
200             'translate/content/renderer/renderer_cld_data_provider.cc',
201             'translate/content/renderer/renderer_cld_data_provider.h',
202             'translate/content/renderer/renderer_cld_data_provider_factory.cc',
203             'translate/content/renderer/renderer_cld_data_provider_factory.h',
204             'translate/content/renderer/renderer_cld_utils.cc',
205             'translate/content/renderer/renderer_cld_utils.h',
206             'translate/content/renderer/translate_helper.cc',
207             'translate/content/renderer/translate_helper.h',
208            ],
209           'conditions': [
210             ['cld_version==2', {
211               'dependencies': [
212                 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
213               ],
214             }],
215           ],
216         },
217       ],
218     }],
219     ['OS == "ios"', {
220       'targets': [
221         {
222           'target_name': 'translate_ios_browser',
223           'type': 'static_library',
224           'include_dirs': [
225             '..',
226           ],
227           'dependencies': [
228             'translate_core_language_detection',
229             'translate_core_browser',
230             'translate_core_common',
231             'translate_ios_injected_js',
232             '../base/base.gyp:base',
233             '../ios/web/ios_web.gyp:ios_web',
234             '../url/url.gyp:url_lib',
235           ],
236           'sources': [
237             'translate/ios/browser/ios_translate_driver.h',
238             'translate/ios/browser/ios_translate_driver.mm',
239             'translate/ios/browser/js_language_detection_manager.h',
240             'translate/ios/browser/js_language_detection_manager.mm',
241             'translate/ios/browser/js_translate_manager.h',
242             'translate/ios/browser/js_translate_manager.mm',
243             'translate/ios/browser/language_detection_controller.h',
244             'translate/ios/browser/language_detection_controller.mm',
245             'translate/ios/browser/translate_controller.h',
246             'translate/ios/browser/translate_controller.mm',
247           ],
248         },
249         {
250           'target_name': 'translate_ios_injected_js',
251           'type': 'none',
252           'sources': [
253             'translate/ios/browser/resources/language_detection.js',
254             'translate/ios/browser/resources/translate_ios.js',
255           ],
256           'link_settings': {
257             'mac_bundle_resources': [
258               '<(SHARED_INTERMEDIATE_DIR)/translate_ios.js',
259               '<(SHARED_INTERMEDIATE_DIR)/language_detection.js',
260             ],
261           },
262           'includes': [
263             '../ios/web/js_compile_checked.gypi',
264           ],
265         },
266       ],
267     }],
268   ],