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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 'dependencies': [ | 131 'dependencies': [ |
132 'translate_core_browser', | 132 'translate_core_browser', |
133 '../base/base.gyp:base', | 133 '../base/base.gyp:base', |
134 '../content/content.gyp:content_browser', | 134 '../content/content.gyp:content_browser', |
135 ], | 135 ], |
136 'include_dirs': [ | 136 'include_dirs': [ |
137 '..', | 137 '..', |
138 ], | 138 ], |
139 'sources': [ | 139 'sources': [ |
140 # Note: sources list duplicated in GN build. | 140 # Note: sources list duplicated in GN build. |
| 141 'translate/content/browser/browser_cld_data_provider_factory.cc', |
| 142 'translate/content/browser/browser_cld_data_provider_factory.h', |
| 143 'translate/content/browser/browser_cld_data_provider.cc', |
141 'translate/content/browser/browser_cld_data_provider.h', | 144 'translate/content/browser/browser_cld_data_provider.h', |
| 145 'translate/content/browser/browser_cld_utils.cc', |
| 146 'translate/content/browser/browser_cld_utils.h', |
142 'translate/content/browser/content_translate_driver.cc', | 147 'translate/content/browser/content_translate_driver.cc', |
143 'translate/content/browser/content_translate_driver.h', | 148 'translate/content/browser/content_translate_driver.h', |
144 ], | 149 'translate/content/browser/data_file_browser_cld_data_provider.cc', |
145 'conditions': [ | 150 'translate/content/browser/data_file_browser_cld_data_provider.h', |
146 ['cld2_data_source=="standalone" or cld2_data_source=="component"',
{ | 151 'translate/content/browser/static_browser_cld_data_provider_factory.
cc', |
147 'sources': [ | 152 'translate/content/browser/static_browser_cld_data_provider_factory.
h', |
148 'translate/content/browser/data_file_browser_cld_data_provider.c
c', | 153 'translate/content/browser/static_browser_cld_data_provider.cc', |
149 'translate/content/browser/data_file_browser_cld_data_provider.h
', | 154 'translate/content/browser/static_browser_cld_data_provider.h', |
150 ]}, | |
151 ], | |
152 ['cld2_data_source=="static"', { | |
153 'sources': [ | |
154 'translate/content/browser/static_browser_cld_data_provider.cc', | |
155 'translate/content/browser/static_browser_cld_data_provider.h', | |
156 ]}, | |
157 ], | |
158 ], | 155 ], |
159 }, | 156 }, |
160 { | 157 { |
161 # GN version: //components/translate/content/common | 158 # GN version: //components/translate/content/common |
162 'target_name': 'translate_content_common', | 159 'target_name': 'translate_content_common', |
163 'type': 'static_library', | 160 'type': 'static_library', |
164 'dependencies': [ | 161 'dependencies': [ |
165 'translate_core_common', | 162 'translate_core_common', |
166 'translate_core_language_detection', | 163 'translate_core_language_detection', |
167 '../base/base.gyp:base', | 164 '../base/base.gyp:base', |
168 '../content/content.gyp:content_common', | 165 '../content/content.gyp:content_common', |
169 '../ipc/ipc.gyp:ipc', | 166 '../ipc/ipc.gyp:ipc', |
170 ], | 167 ], |
171 'include_dirs': [ | 168 'include_dirs': [ |
172 '..', | 169 '..', |
173 ], | 170 ], |
174 'sources': [ | 171 'sources': [ |
175 # Note: sources list duplicated in GN build. | 172 # Note: sources list duplicated in GN build. |
176 'translate/content/common/translate_messages.cc', | 173 'translate/content/common/translate_messages.cc', |
177 'translate/content/common/translate_messages.h', | 174 'translate/content/common/translate_messages.h', |
| 175 'translate/content/common/cld_data_source.cc', |
178 'translate/content/common/cld_data_source.h', | 176 'translate/content/common/cld_data_source.h', |
179 ], | 177 'translate/content/common/data_file_cld_data_provider_messages.cc', |
180 'conditions': [ | 178 'translate/content/common/data_file_cld_data_provider_messages.h', |
181 ['cld2_data_source=="standalone" or cld2_data_source=="component"',
{ | |
182 'sources': [ | |
183 'translate/content/common/data_file_cld_data_provider_messages.
cc', | |
184 'translate/content/common/data_file_cld_data_provider_messages.
h', | |
185 ]}, | |
186 ], | |
187 ['cld2_data_source=="standalone"', { | |
188 'sources': [ | |
189 'translate/content/common/standalone_cld_data_source.cc', | |
190 ]}, | |
191 ], | |
192 ['cld2_data_source=="component"', { | |
193 'sources': [ | |
194 'translate/content/common/component_cld_data_source.cc', | |
195 ]}, | |
196 ], | |
197 ['cld2_data_source=="static"', { | |
198 'sources': [ | |
199 'translate/content/common/static_cld_data_source.cc', | |
200 ]}, | |
201 ], | |
202 ], | 179 ], |
203 }, | 180 }, |
204 { | 181 { |
205 # GN version: //components/translate/content/renderer | 182 # GN version: //components/translate/content/renderer |
206 'target_name': 'translate_content_renderer', | 183 'target_name': 'translate_content_renderer', |
207 'type': 'static_library', | 184 'type': 'static_library', |
208 'dependencies': [ | 185 'dependencies': [ |
209 'translate_content_common', | 186 'translate_content_common', |
210 'translate_core_common', | 187 'translate_core_common', |
211 'translate_core_language_detection', | 188 'translate_core_language_detection', |
212 '../base/base.gyp:base', | 189 '../base/base.gyp:base', |
213 '../content/content.gyp:content_common', | 190 '../content/content.gyp:content_common', |
214 '../content/content.gyp:content_renderer', | 191 '../content/content.gyp:content_renderer', |
215 '../ipc/ipc.gyp:ipc', | 192 '../ipc/ipc.gyp:ipc', |
216 '../third_party/WebKit/public/blink.gyp:blink', | 193 '../third_party/WebKit/public/blink.gyp:blink', |
217 '../url/url.gyp:url_lib', | 194 '../url/url.gyp:url_lib', |
218 '../v8/tools/gyp/v8.gyp:v8', | 195 '../v8/tools/gyp/v8.gyp:v8', |
219 ], | 196 ], |
220 'include_dirs': [ | 197 'include_dirs': [ |
221 '..', | 198 '..', |
222 ], | 199 ], |
223 'sources': [ | 200 'sources': [ |
224 # Note: sources list duplicated in GN build. | 201 # Note: sources list duplicated in GN build. |
| 202 'translate/content/renderer/renderer_cld_data_provider.cc', |
225 'translate/content/renderer/renderer_cld_data_provider.h', | 203 'translate/content/renderer/renderer_cld_data_provider.h', |
226 'translate/content/renderer/translate_helper.cc', | 204 'translate/content/renderer/translate_helper.cc', |
227 'translate/content/renderer/translate_helper.h', | 205 'translate/content/renderer/translate_helper.h', |
| 206 #'translate/content/renderer/data_file_renderer_cld_data_provider.cc
', |
| 207 #'translate/content/renderer/data_file_renderer_cld_data_provider.h'
, |
| 208 'translate/content/renderer/static_renderer_cld_data_provider.cc', |
| 209 'translate/content/renderer/static_renderer_cld_data_provider.h', |
228 ], | 210 ], |
229 'conditions': [ | 211 'conditions': [ |
230 ['cld_version==0 or cld_version==2', { | 212 ['cld_version==0 or cld_version==2', { |
231 'dependencies': [ | 213 'dependencies': [ |
232 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', | 214 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', |
233 ], | 215 ], |
234 }], | 216 }], |
235 ['cld2_data_source=="standalone" or cld2_data_source=="component"',
{ | |
236 'sources': [ | |
237 'translate/content/renderer/data_file_renderer_cld_data_provider
.cc', | |
238 'translate/content/renderer/data_file_renderer_cld_data_provider
.h', | |
239 ]}, | |
240 ], | |
241 ['cld2_data_source=="static"', { | |
242 'sources': [ | |
243 'translate/content/renderer/static_renderer_cld_data_provider.cc
', | |
244 'translate/content/renderer/static_renderer_cld_data_provider.h'
, | |
245 ]}, | |
246 ], | |
247 ], | 217 ], |
248 }, | 218 }, |
249 ], | 219 ], |
250 }], | 220 }], |
251 ], | 221 ], |
252 } | 222 } |
OLD | NEW |