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/translate_constants.cc',
79 'translate/core/common/translate_constants.h',
80 'translate/core/common/translate_errors.h',
81 'translate/core/common/translate_metrics.cc',
82 'translate/core/common/translate_metrics.h',
83 'translate/core/common/translate_pref_names.cc',
84 'translate/core/common/translate_pref_names.h',
85 'translate/core/common/translate_switches.cc',
86 'translate/core/common/translate_switches.h',
87 'translate/core/common/translate_util.cc',
88 'translate/core/common/translate_util.h',
89 'translate/core/common/language_detection_details.cc',
90 'translate/core/common/language_detection_details.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',
111 ['cld_version==0 or cld_version==1', {
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.h',
142 'translate/content/browser/content_translate_driver.cc',
143 'translate/content/browser/content_translate_driver.h',
146 ['cld2_data_source=="standalone" or cld2_data_source=="component"', {
148 'translate/content/browser/data_file_browser_cld_data_provider.cc',
149 'translate/content/browser/data_file_browser_cld_data_provider.h',
152 ['cld2_data_source=="static"', {
154 'translate/content/browser/static_browser_cld_data_provider.cc',
155 'translate/content/browser/static_browser_cld_data_provider.h',
161 # GN version: //components/translate/content/common
162 'target_name': 'translate_content_common',
163 'type': 'static_library',
165 'translate_core_common',
166 'translate_core_language_detection',
167 '../base/base.gyp:base',
168 '../content/content.gyp:content_common',
169 '../ipc/ipc.gyp:ipc',
175 # Note: sources list duplicated in GN build.
176 'translate/content/common/translate_messages.cc',
177 'translate/content/common/translate_messages.h',
178 'translate/content/common/cld_data_source.h',
181 ['cld2_data_source=="standalone" or cld2_data_source=="component"', {
183 'translate/content/common/data_file_cld_data_provider_messages.cc',
184 'translate/content/common/data_file_cld_data_provider_messages.h',
187 ['cld2_data_source=="standalone"', {
189 'translate/content/common/standalone_cld_data_source.cc',
192 ['cld2_data_source=="component"', {
194 'translate/content/common/component_cld_data_source.cc',
197 ['cld2_data_source=="static"', {
199 'translate/content/common/static_cld_data_source.cc',
205 # GN version: //components/translate/content/renderer
206 'target_name': 'translate_content_renderer',
207 'type': 'static_library',
209 'translate_content_common',
210 'translate_core_common',
211 'translate_core_language_detection',
212 '../base/base.gyp:base',
213 '../content/content.gyp:content_common',
214 '../content/content.gyp:content_renderer',
215 '../ipc/ipc.gyp:ipc',
216 '../third_party/WebKit/public/blink.gyp:blink',
217 '../url/url.gyp:url_lib',
218 '../v8/tools/gyp/v8.gyp:v8',
224 # Note: sources list duplicated in GN build.
225 'translate/content/renderer/renderer_cld_data_provider.h',
226 'translate/content/renderer/translate_helper.cc',
227 'translate/content/renderer/translate_helper.h',
230 ['cld_version==0 or cld_version==2', {
232 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
235 ['cld2_data_source=="standalone" or cld2_data_source=="component"', {
237 'translate/content/renderer/data_file_renderer_cld_data_provider.cc',
238 'translate/content/renderer/data_file_renderer_cld_data_provider.h',
241 ['cld2_data_source=="static"', {
243 'translate/content/renderer/static_renderer_cld_data_provider.cc',
244 'translate/content/renderer/static_renderer_cld_data_provider.h',