OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 # GN version: //components/translate/core/browser | 8 # GN version: //components/translate/core/browser |
9 'target_name': 'translate_core_browser', | 9 'target_name': 'translate_core_browser', |
10 'type': 'static_library', | 10 'type': 'static_library', |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 ], | 104 ], |
105 }, | 105 }, |
106 { | 106 { |
107 # GN version: //components/translate/core/language_detection | 107 # GN version: //components/translate/core/language_detection |
108 'target_name': 'translate_core_language_detection', | 108 'target_name': 'translate_core_language_detection', |
109 'type': 'static_library', | 109 'type': 'static_library', |
110 'dependencies': [ | 110 'dependencies': [ |
111 'translate_core_common', | 111 'translate_core_common', |
112 '../base/base.gyp:base', | 112 '../base/base.gyp:base', |
113 '../url/url.gyp:url_lib', | 113 '../url/url.gyp:url_lib', |
| 114 '../third_party/cld_2/cld_2.gyp:cld_2', |
114 ], | 115 ], |
115 'include_dirs': [ | 116 'include_dirs': [ |
116 '..', | 117 '..', |
117 ], | 118 ], |
118 'sources': [ | 119 'sources': [ |
119 # Note: sources list duplicated in GN build. | 120 # Note: sources list duplicated in GN build. |
120 'translate/core/language_detection/language_detection_util.cc', | 121 'translate/core/language_detection/language_detection_util.cc', |
121 'translate/core/language_detection/language_detection_util.h', | 122 'translate/core/language_detection/language_detection_util.h', |
122 ], | 123 ], |
123 'conditions': [ | |
124 ['cld_version==1', { | |
125 'dependencies': [ | |
126 '<(DEPTH)/third_party/cld/cld.gyp:cld', | |
127 ], | |
128 }], | |
129 ['cld_version==2', { | |
130 'dependencies': [ | |
131 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', | |
132 ], | |
133 }], | |
134 ], | |
135 }, | 124 }, |
136 ], | 125 ], |
137 'conditions': [ | 126 'conditions': [ |
138 ['OS != "ios"', { | 127 ['OS != "ios"', { |
139 'targets': [ | 128 'targets': [ |
140 { | 129 { |
141 # GN version: //components/translate/content/browser | 130 # GN version: //components/translate/content/browser |
142 'target_name': 'translate_content_browser', | 131 'target_name': 'translate_content_browser', |
143 'type': 'static_library', | 132 'type': 'static_library', |
144 'dependencies': [ | 133 'dependencies': [ |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 'type': 'static_library', | 183 'type': 'static_library', |
195 'dependencies': [ | 184 'dependencies': [ |
196 'translate_content_common', | 185 'translate_content_common', |
197 'translate_core_common', | 186 'translate_core_common', |
198 'translate_core_language_detection', | 187 'translate_core_language_detection', |
199 '../base/base.gyp:base', | 188 '../base/base.gyp:base', |
200 '../content/content.gyp:content_common', | 189 '../content/content.gyp:content_common', |
201 '../content/content.gyp:content_renderer', | 190 '../content/content.gyp:content_renderer', |
202 '../ipc/ipc.gyp:ipc', | 191 '../ipc/ipc.gyp:ipc', |
203 '../third_party/WebKit/public/blink.gyp:blink', | 192 '../third_party/WebKit/public/blink.gyp:blink', |
| 193 '../third_party/cld_2/cld_2.gyp:cld_2', |
204 '../url/url.gyp:url_lib', | 194 '../url/url.gyp:url_lib', |
205 '../v8/tools/gyp/v8.gyp:v8', | 195 '../v8/tools/gyp/v8.gyp:v8', |
206 ], | 196 ], |
207 'include_dirs': [ | 197 'include_dirs': [ |
208 '..', | 198 '..', |
209 ], | 199 ], |
210 'sources': [ | 200 'sources': [ |
211 # Note: sources list duplicated in GN build. | 201 # Note: sources list duplicated in GN build. |
| 202 'translate/content/renderer/data_file_renderer_cld_data_provider.cc'
, |
| 203 'translate/content/renderer/data_file_renderer_cld_data_provider.h', |
212 'translate/content/renderer/renderer_cld_data_provider.cc', | 204 'translate/content/renderer/renderer_cld_data_provider.cc', |
213 'translate/content/renderer/renderer_cld_data_provider.h', | 205 'translate/content/renderer/renderer_cld_data_provider.h', |
214 'translate/content/renderer/renderer_cld_data_provider_factory.cc', | 206 'translate/content/renderer/renderer_cld_data_provider_factory.cc', |
215 'translate/content/renderer/renderer_cld_data_provider_factory.h', | 207 'translate/content/renderer/renderer_cld_data_provider_factory.h', |
216 'translate/content/renderer/renderer_cld_utils.cc', | 208 'translate/content/renderer/renderer_cld_utils.cc', |
217 'translate/content/renderer/renderer_cld_utils.h', | 209 'translate/content/renderer/renderer_cld_utils.h', |
218 'translate/content/renderer/translate_helper.cc', | 210 'translate/content/renderer/translate_helper.cc', |
219 'translate/content/renderer/translate_helper.h', | 211 'translate/content/renderer/translate_helper.h', |
220 ], | 212 ], |
221 'conditions': [ | |
222 ['cld_version==2', { | |
223 'dependencies': [ | |
224 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', | |
225 ], | |
226 'sources': [ | |
227 'translate/content/renderer/data_file_renderer_cld_data_provider
.cc', | |
228 'translate/content/renderer/data_file_renderer_cld_data_provider
.h', | |
229 ], | |
230 }], | |
231 ], | |
232 }, | 213 }, |
233 ], | 214 ], |
234 }], | 215 }], |
235 ['OS == "ios"', { | 216 ['OS == "ios"', { |
236 'targets': [ | 217 'targets': [ |
237 { | 218 { |
238 # GN version: //components/translate/ios/browser | 219 # GN version: //components/translate/ios/browser |
239 'target_name': 'translate_ios_browser', | 220 'target_name': 'translate_ios_browser', |
240 'type': 'static_library', | 221 'type': 'static_library', |
241 'include_dirs': [ | 222 'include_dirs': [ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 ], | 259 ], |
279 }, | 260 }, |
280 'includes': [ | 261 'includes': [ |
281 '../ios/web/js_compile_checked.gypi', | 262 '../ios/web/js_compile_checked.gypi', |
282 ], | 263 ], |
283 }, | 264 }, |
284 ], | 265 ], |
285 }], | 266 }], |
286 ], | 267 ], |
287 } | 268 } |
OLD | NEW |