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.
8 # GN version: //components/translate/core/browser
9 'target_name': 'translate_core_browser',
10 'type': 'static_library',
12 '../base/base.gyp:base',
13 '../base/base.gyp:base_i18n',
14 '../google_apis/google_apis.gyp:google_apis',
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',
21 'language_usage_metrics',
23 'translate_core_common',
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',
66 # GN version: //components/translate/core/common
67 'target_name': 'translate_core_common',
68 'type': 'static_library',
70 '../base/base.gyp:base',
71 '../url/url.gyp:url_lib',
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',
94 # GN version: //components/translate/core/language_detection
95 'target_name': 'translate_core_language_detection',
96 'type': 'static_library',
98 'translate_core_common',
99 '../base/base.gyp:base',
100 '../url/url.gyp:url_lib',
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',
113 '<(DEPTH)/third_party/cld/cld.gyp:cld',
116 ['cld_version==0 or cld_version==2', {
118 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
128 # GN version: //components/translate/content/browser
129 'target_name': 'translate_content_browser',
130 'type': 'static_library',
132 'translate_core_browser',
133 '../base/base.gyp:base',
134 '../content/content.gyp:content_browser',
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',
154 # GN version: //components/translate/content/common
155 'target_name': 'translate_content_common',
156 'type': 'static_library',
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',
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',
178 # GN version: //components/translate/content/renderer
179 'target_name': 'translate_content_renderer',
180 'type': 'static_library',
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',
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',
210 ['cld_version==0 or cld_version==2', {
212 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
222 'target_name': 'translate_ios_browser',
223 'type': 'static_library',
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',
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',
250 'target_name': 'translate_ios_injected_js',
253 'translate/ios/browser/resources/language_detection.js',
254 'translate/ios/browser/resources/translate_ios.js',
257 'mac_bundle_resources': [
258 '<(SHARED_INTERMEDIATE_DIR)/translate_ios.js',
259 '<(SHARED_INTERMEDIATE_DIR)/language_detection.js',
263 '../ios/web/js_compile.gypi',