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

Side by Side Diff: skia/BUILD.gn

Issue 399683005: Enable more tests in GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more android printing mode Created 6 years, 5 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | skia/skia_chrome.gypi » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 if (cpu_arch == "arm") { 7 if (cpu_arch == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 10
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 241 }
242 242
243 component("skia") { 243 component("skia") {
244 sources = [ 244 sources = [
245 # Chrome sources. 245 # Chrome sources.
246 "ext/analysis_canvas.cc", 246 "ext/analysis_canvas.cc",
247 "ext/analysis_canvas.h", 247 "ext/analysis_canvas.h",
248 "ext/benchmarking_canvas.cc", 248 "ext/benchmarking_canvas.cc",
249 "ext/benchmarking_canvas.h", 249 "ext/benchmarking_canvas.h",
250 "ext/bitmap_platform_device.h", 250 "ext/bitmap_platform_device.h",
251 "ext/bitmap_platform_device_cairo.cc",
252 "ext/bitmap_platform_device_cairo.h",
253 "ext/bitmap_platform_device_mac.cc",
254 "ext/bitmap_platform_device_mac.h",
255 #"ext/bitmap_platform_device_skia.cc",
256 #"ext/bitmap_platform_device_skia.h",
257 "ext/bitmap_platform_device_win.cc",
258 "ext/bitmap_platform_device_win.h",
259 "ext/convolver.cc", 251 "ext/convolver.cc",
260 "ext/convolver.h", 252 "ext/convolver.h",
261 "ext/event_tracer_impl.cc", 253 "ext/event_tracer_impl.cc",
262 "ext/event_tracer_impl.h", 254 "ext/event_tracer_impl.h",
263 "ext/fontmgr_default_win.cc", 255 "ext/fontmgr_default_win.cc",
264 "ext/fontmgr_default_win.h", 256 "ext/fontmgr_default_win.h",
265 "ext/google_logging.cc", 257 "ext/google_logging.cc",
266 "ext/image_operations.cc", 258 "ext/image_operations.cc",
267 "ext/image_operations.h", 259 "ext/image_operations.h",
268 "ext/lazy_pixel_ref.cc", 260 "ext/lazy_pixel_ref.cc",
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 } 454 }
463 455
464 if (!is_linux && !is_android) { 456 if (!is_linux && !is_android) {
465 sources -= [ 457 sources -= [
466 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp", 458 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp",
467 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", 459 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
468 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", 460 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
469 ] 461 ]
470 } 462 }
471 463
472 if (!use_cairo) { 464 # Select the right BitmapPlatformDevice.
473 sources -= [ 465 if (is_win) {
466 sources += [
467 "ext/bitmap_platform_device_win.cc",
468 "ext/bitmap_platform_device_win.h",
469 ]
470 } else if (is_mac) {
471 sources += [
472 "ext/bitmap_platform_device_mac.cc",
473 "ext/bitmap_platform_device_mac.h",
474 ]
475 } else if (use_cairo) {
476 sources += [
474 "ext/bitmap_platform_device_cairo.cc", 477 "ext/bitmap_platform_device_cairo.cc",
475 "ext/bitmap_platform_device_cairo.h", 478 "ext/bitmap_platform_device_cairo.h",
476 ] 479 ]
480 } else {
481 sources += [
482 "ext/bitmap_platform_device_skia.cc",
483 "ext/bitmap_platform_device_skia.h",
484 ]
477 } 485 }
478 486
479 if (is_clang) { 487 if (is_clang) {
480 # Skia won't compile with some of the more strict clang warnings. 488 # Skia won't compile with some of the more strict clang warnings.
481 # e.g. it does: 489 # e.g. it does:
482 # SkASSERT(!"sk_out_of_memory"); 490 # SkASSERT(!"sk_out_of_memory");
483 configs -= [ "//build/config/clang:extra_warnings" ] 491 configs -= [ "//build/config/clang:extra_warnings" ]
484 } 492 }
485 493
486 configs -= [ "//build/config/compiler:chromium_code" ] 494 configs -= [ "//build/config/compiler:chromium_code" ]
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 ":skia_config", 691 ":skia_config",
684 "//build/config/compiler:no_chromium_code" 692 "//build/config/compiler:no_chromium_code"
685 ] 693 ]
686 694
687 deps = [ 695 deps = [
688 "//base", 696 "//base",
689 ] 697 ]
690 698
691 visibility = ":skia" 699 visibility = ":skia"
692 } 700 }
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | skia/skia_chrome.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698