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

Side by Side Diff: ui/gfx/BUILD.gn

Issue 305993002: Update skia and ui GN builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git log Created 6 years, 6 months 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
« ui/base/BUILD.gn ('K') | « ui/events/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/android/rules.gni") 9 import("//build/config/android/rules.gni")
10 } 10 }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 "platform_font_ios.h", 149 "platform_font_ios.h",
150 "platform_font_ios.mm", 150 "platform_font_ios.mm",
151 "platform_font_mac.h", 151 "platform_font_mac.h",
152 "platform_font_mac.mm", 152 "platform_font_mac.mm",
153 "platform_font_win.cc", 153 "platform_font_win.cc",
154 "platform_font_win.h", 154 "platform_font_win.h",
155 "range/range.cc", 155 "range/range.cc",
156 "range/range.h", 156 "range/range.h",
157 "range/range_mac.mm", 157 "range/range_mac.mm",
158 "range/range_win.cc", 158 "range/range_win.cc",
159 "render_text.cc",
160 "render_text.h",
161 "render_text_mac.cc",
162 "render_text_mac.h",
163 "render_text_win.cc",
164 "render_text_win.h",
165 "scoped_canvas.h", 159 "scoped_canvas.h",
166 "scoped_cg_context_save_gstate_mac.h", 160 "scoped_cg_context_save_gstate_mac.h",
167 "scoped_ns_graphics_context_save_gstate_mac.h", 161 "scoped_ns_graphics_context_save_gstate_mac.h",
168 "scoped_ns_graphics_context_save_gstate_mac.mm", 162 "scoped_ns_graphics_context_save_gstate_mac.mm",
169 "scoped_ui_graphics_push_context_ios.h", 163 "scoped_ui_graphics_push_context_ios.h",
170 "scoped_ui_graphics_push_context_ios.mm", 164 "scoped_ui_graphics_push_context_ios.mm",
171 "screen.cc", 165 "screen.cc",
172 "screen.h", 166 "screen.h",
173 "screen_android.cc", 167 "screen_android.cc",
174 "screen_aura.cc", 168 "screen_aura.cc",
(...skipping 17 matching lines...) Expand all
192 "switches.h", 186 "switches.h",
193 "sys_color_change_listener.cc", 187 "sys_color_change_listener.cc",
194 "sys_color_change_listener.h", 188 "sys_color_change_listener.h",
195 "text_constants.h", 189 "text_constants.h",
196 "text_elider.cc", 190 "text_elider.cc",
197 "text_elider.h", 191 "text_elider.h",
198 "text_utils.cc", 192 "text_utils.cc",
199 "text_utils.h", 193 "text_utils.h",
200 "text_utils_android.cc", 194 "text_utils_android.cc",
201 "text_utils_ios.mm", 195 "text_utils_ios.mm",
202 "text_utils_skia.cc",
203 "transform.cc", 196 "transform.cc",
204 "transform.h", 197 "transform.h",
205 "transform_util.cc", 198 "transform_util.cc",
206 "transform_util.h", 199 "transform_util.h",
207 "ui_gfx_exports.cc", 200 "ui_gfx_exports.cc",
208 "utf16_indexing.cc", 201 "utf16_indexing.cc",
209 "utf16_indexing.h", 202 "utf16_indexing.h",
210 "vsync_provider.h", 203 "vsync_provider.h",
211 "win/dpi.cc", 204 "win/dpi.cc",
212 "win/dpi.h", 205 "win/dpi.h",
213 "win/hwnd_util.cc", 206 "win/hwnd_util.cc",
214 "win/hwnd_util.h", 207 "win/hwnd_util.h",
215 "win/scoped_set_map_mode.h", 208 "win/scoped_set_map_mode.h",
216 "win/singleton_hwnd.cc", 209 "win/singleton_hwnd.cc",
217 "win/singleton_hwnd.h", 210 "win/singleton_hwnd.h",
218 "win/window_impl.cc", 211 "win/window_impl.cc",
219 "win/window_impl.h", 212 "win/window_impl.h",
220 ] 213 ]
221 214
222 defines = [ "GFX_IMPLEMENTATION" ] 215 defines = [ "GFX_IMPLEMENTATION" ]
223 216
224 deps = [ 217 deps = [
225 ":gfx_export", 218 ":gfx_export",
226 "//base", 219 "//base",
227 "//base:i18n", 220 "//base:i18n",
228 "//base:base_static", 221 "//base:base_static",
229 "//base/third_party/dynamic_annotations", 222 "//base/third_party/dynamic_annotations",
230 "//skia", 223 "//skia",
224 "//third_party/harfbuzz-ng",
231 "//third_party/icu:icui18n", 225 "//third_party/icu:icui18n",
232 "//third_party/icu:icuuc", 226 "//third_party/icu:icuuc",
233 "//third_party/libpng", 227 "//third_party/libpng",
234 "//third_party/zlib", 228 "//third_party/zlib",
235 "//ui/gfx/geometry", 229 "//ui/gfx/geometry",
236 ] 230 ]
237 231
232 # Text rendering conditions (complicated so separated out).
233 if (is_android || is_ios) {
234 # We don't support RenderText on these platforms.
235 } else {
236 # These text rendering files are supported everywhere text rendering is.
237 sources += [
238 "render_text.cc",
239 "render_text.h",
240 "render_text_harfbuzz.cc",
241 "render_text_harfbuzz.h",
242 "text_utils_skia.cc",
243 ]
244 # These are the "native" rendering routines, only one should apply.
245 if (is_win) {
246 sources += [ "render_text_win.cc" ]
247 } else if (is_mac) {
248 sources += [ "render_text_mac.cc" ]
249 } else if (use_pango) {
250 sources += [ "render_text_pango.cc" ]
251 } else if (use_ozone) {
252 sources += [ "render_text_ozone.cc" ]
253 }
254 }
255
238 # iOS. 256 # iOS.
239 if (is_ios) { 257 if (is_ios) {
240 sources -= [ 258 sources -= [
241 "codec/jpeg_codec.cc", 259 "codec/jpeg_codec.cc",
242 "codec/jpeg_codec.h", 260 "codec/jpeg_codec.h",
243 ] 261 ]
244 } else { 262 } else {
245 deps += [ "//third_party:jpeg" ] 263 deps += [ "//third_party:jpeg" ]
246 } 264 }
247 265
(...skipping 17 matching lines...) Expand all
265 # deps += [ "//base:base_java" ] 283 # deps += [ "//base:base_java" ]
266 #} 284 #}
267 285
268 deps += [ ":gfx_jni_headers" ] 286 deps += [ ":gfx_jni_headers" ]
269 libs = [ 287 libs = [
270 "android", 288 "android",
271 "jnigraphics", 289 "jnigraphics",
272 ] 290 ]
273 } 291 }
274 292
275 if (is_android || is_ios) {
276 sources -= [
277 "render_text.cc",
278 "render_text.h",
279 "text_utils_skia.cc",
280 ]
281 }
282
283 # Windows. 293 # Windows.
284 if (is_win) { 294 if (is_win) {
285 cflags = [ 295 cflags = [
286 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int. 296 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int.
287 "/wd4324", # Structure was padded due to __declspec(align()), which is 297 "/wd4324", # Structure was padded due to __declspec(align()), which is
288 # uninteresting. 298 # uninteresting.
289 ] 299 ]
290 } else { 300 } else {
291 sources -= [ 301 sources -= [
292 "gdi_util.cc", 302 "gdi_util.cc",
293 "gdi_util.h", 303 "gdi_util.h",
294 "icon_util.cc", 304 "icon_util.cc",
295 "icon_util.h", 305 "icon_util.h",
296 ] 306 ]
297 } 307 }
298 308
299 # Linux. 309 # Linux.
300 if (is_linux) { 310 if (is_linux) {
301 configs += [ "//build/config/linux:fontconfig" ] 311 configs += [ "//build/config/linux:fontconfig" ]
302 } 312 }
303 313
304 # Ozone stuff. 314 # Ozone stuff.
305 if (use_ozone) { 315 if (use_ozone) {
306 sources += [ 316 sources += [
307 "platform_font_ozone.cc", 317 "platform_font_ozone.cc",
308 "render_text_ozone.cc",
309 "ozone/impl/file_surface_factory.cc", 318 "ozone/impl/file_surface_factory.cc",
310 "ozone/impl/file_surface_factory.h", 319 "ozone/impl/file_surface_factory.h",
311 "ozone/surface_factory_ozone.cc", 320 "ozone/surface_factory_ozone.cc",
312 "ozone/surface_factory_ozone.h", 321 "ozone/surface_factory_ozone.h",
313 "ozone/surface_ozone.h", 322 "ozone/surface_ozone.h",
314 "ozone/overlay_candidates_ozone.cc", 323 "ozone/overlay_candidates_ozone.cc",
315 "ozone/overlay_candidates_ozone.h", 324 "ozone/overlay_candidates_ozone.h",
316 ] 325 ]
317 } 326 }
318 if (use_ozone && ozone_platform_dri) { 327 if (use_ozone && ozone_platform_dri) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 "path_x11.cc", 359 "path_x11.cc",
351 ] 360 ]
352 } 361 }
353 362
354 if (use_pango) { 363 if (use_pango) {
355 sources += [ 364 sources += [
356 "pango_util.cc", 365 "pango_util.cc",
357 "pango_util.h", 366 "pango_util.h",
358 "platform_font_pango.cc", 367 "platform_font_pango.cc",
359 "platform_font_pango.h", 368 "platform_font_pango.h",
360 "render_text_pango.cc",
361 "render_text_pango.h",
362 ] 369 ]
363 configs += [ "//build/config/linux:pangocairo" ] 370 configs += [ "//build/config/linux:pangocairo" ]
364 } 371 }
365 } 372 }
366 373
367 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry 374 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry
368 375
369 source_set("gfx_test_support") { 376 source_set("gfx_test_support") {
370 sources = [ 377 sources = [
371 "test/gfx_util.cc", 378 "test/gfx_util.cc",
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 450
444 defines = [ "GFX_IMPLEMENTATION" ] 451 defines = [ "GFX_IMPLEMENTATION" ]
445 configs += [ "//build/config/linux:x11" ] 452 configs += [ "//build/config/linux:x11" ]
446 453
447 deps = [ 454 deps = [
448 ":gfx_export", 455 ":gfx_export",
449 "//base" 456 "//base"
450 ] 457 ]
451 } 458 }
452 } 459 }
OLDNEW
« ui/base/BUILD.gn ('K') | « ui/events/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698