Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: components/translate.gypi

Issue 461633002: Refactor language detection logic to allow non-static CLD data sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make some of the harness factory methods private Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/components_tests.gyp ('k') | components/translate/content/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 ], 101 ],
102 'include_dirs': [ 102 'include_dirs': [
103 '..', 103 '..',
104 ], 104 ],
105 'sources': [ 105 'sources': [
106 # Note: sources list duplicated in GN build. 106 # Note: sources list duplicated in GN build.
107 'translate/core/language_detection/language_detection_util.cc', 107 'translate/core/language_detection/language_detection_util.cc',
108 'translate/core/language_detection/language_detection_util.h', 108 'translate/core/language_detection/language_detection_util.h',
109 ], 109 ],
110 'conditions': [ 110 'conditions': [
111 ['cld_version==0 or cld_version==1', { 111 ['cld_version==1', {
112 'dependencies': [ 112 'dependencies': [
113 '<(DEPTH)/third_party/cld/cld.gyp:cld', 113 '<(DEPTH)/third_party/cld/cld.gyp:cld',
114 ], 114 ],
115 }], 115 }],
116 ['cld_version==0 or cld_version==2', { 116 ['cld_version==0 or cld_version==2', {
117 'dependencies': [ 117 'dependencies': [
118 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', 118 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
119 ], 119 ],
120 }], 120 }],
121 ], 121 ],
122 }, 122 },
123 ], 123 ],
124 'conditions': [ 124 'conditions': [
125 ['OS != "ios"', { 125 ['OS != "ios"', {
126 'targets': [ 126 'targets': [
127 { 127 {
128 # GN version: //components/translate/content/browser 128 # GN version: //components/translate/content/browser
129 'target_name': 'translate_content_browser', 129 'target_name': 'translate_content_browser',
130 'type': 'static_library', 130 'type': 'static_library',
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"', {
147 'sources': [
148 'translate/content/browser/data_file_browser_cld_data_provider.c c',
149 'translate/content/browser/data_file_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 ], 151 ],
159 }, 152 },
160 { 153 {
161 # GN version: //components/translate/content/common 154 # GN version: //components/translate/content/common
162 'target_name': 'translate_content_common', 155 'target_name': 'translate_content_common',
163 'type': 'static_library', 156 'type': 'static_library',
164 'dependencies': [ 157 'dependencies': [
165 'translate_core_common', 158 'translate_core_common',
166 'translate_core_language_detection', 159 'translate_core_language_detection',
167 '../base/base.gyp:base', 160 '../base/base.gyp:base',
168 '../content/content.gyp:content_common', 161 '../content/content.gyp:content_common',
169 '../ipc/ipc.gyp:ipc', 162 '../ipc/ipc.gyp:ipc',
170 ], 163 ],
171 'include_dirs': [ 164 'include_dirs': [
172 '..', 165 '..',
173 ], 166 ],
174 'sources': [ 167 'sources': [
175 # Note: sources list duplicated in GN build. 168 # Note: sources list duplicated in GN build.
176 'translate/content/common/translate_messages.cc', 169 'translate/content/common/translate_messages.cc',
177 'translate/content/common/translate_messages.h', 170 'translate/content/common/translate_messages.h',
171 'translate/content/common/cld_data_source.cc',
178 'translate/content/common/cld_data_source.h', 172 'translate/content/common/cld_data_source.h',
179 ], 173 'translate/content/common/data_file_cld_data_provider_messages.cc',
180 'conditions': [ 174 '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 ], 175 ],
203 }, 176 },
204 { 177 {
205 # GN version: //components/translate/content/renderer 178 # GN version: //components/translate/content/renderer
206 'target_name': 'translate_content_renderer', 179 'target_name': 'translate_content_renderer',
207 'type': 'static_library', 180 'type': 'static_library',
208 'dependencies': [ 181 'dependencies': [
209 'translate_content_common', 182 'translate_content_common',
210 'translate_core_common', 183 'translate_core_common',
211 'translate_core_language_detection', 184 'translate_core_language_detection',
212 '../base/base.gyp:base', 185 '../base/base.gyp:base',
213 '../content/content.gyp:content_common', 186 '../content/content.gyp:content_common',
214 '../content/content.gyp:content_renderer', 187 '../content/content.gyp:content_renderer',
215 '../ipc/ipc.gyp:ipc', 188 '../ipc/ipc.gyp:ipc',
216 '../third_party/WebKit/public/blink.gyp:blink', 189 '../third_party/WebKit/public/blink.gyp:blink',
217 '../url/url.gyp:url_lib', 190 '../url/url.gyp:url_lib',
218 '../v8/tools/gyp/v8.gyp:v8', 191 '../v8/tools/gyp/v8.gyp:v8',
219 ], 192 ],
220 'include_dirs': [ 193 'include_dirs': [
221 '..', 194 '..',
222 ], 195 ],
223 'sources': [ 196 'sources': [
224 # Note: sources list duplicated in GN build. 197 # Note: sources list duplicated in GN build.
198 'translate/content/renderer/renderer_cld_data_provider.cc',
225 'translate/content/renderer/renderer_cld_data_provider.h', 199 'translate/content/renderer/renderer_cld_data_provider.h',
200 'translate/content/renderer/renderer_cld_utils.cc',
201 'translate/content/renderer/renderer_cld_utils.h',
226 'translate/content/renderer/translate_helper.cc', 202 'translate/content/renderer/translate_helper.cc',
227 'translate/content/renderer/translate_helper.h', 203 'translate/content/renderer/translate_helper.h',
204 'translate/content/renderer/data_file_renderer_cld_data_provider.cc' ,
205 'translate/content/renderer/data_file_renderer_cld_data_provider.h',
228 ], 206 ],
229 'conditions': [ 207 'conditions': [
230 ['cld_version==0 or cld_version==2', { 208 ['cld_version==0 or cld_version==2', {
231 'dependencies': [ 209 'dependencies': [
232 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', 210 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
233 ], 211 ],
234 }], 212 }],
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 ], 213 ],
248 }, 214 },
249 ], 215 ],
250 }], 216 }],
251 ], 217 ],
252 } 218 }
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/translate/content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698