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

Side by Side Diff: skia/BUILD.gn

Issue 409683003: GN chrome/common build, rename enable_printing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fir Android 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
11 skia_support_gpu = !is_ios 11 skia_support_gpu = !is_ios
12 skia_support_pdf = !is_ios && enable_printing != 0 12 skia_support_pdf = !is_ios && printing_mode != 0
13 13
14 # The list of Skia defines that are to be set for chromium. 14 # The list of Skia defines that are to be set for chromium.
15 gypi_skia_defines = exec_script( 15 gypi_skia_defines = exec_script(
16 "//build/gypi_to_gn.py", 16 "//build/gypi_to_gn.py",
17 [ rebase_path("//third_party/skia/gyp/skia_for_chromium_defines.gypi"), 17 [ rebase_path("//third_party/skia/gyp/skia_for_chromium_defines.gypi"),
18 "--replace=<(skia_include_path)=//third_party/skia/include", 18 "--replace=<(skia_include_path)=//third_party/skia/include",
19 "--replace=<(skia_src_path)=//third_party/skia/src" ], 19 "--replace=<(skia_src_path)=//third_party/skia/src" ],
20 "scope", 20 "scope",
21 [ "//third_party/skia/gyp/skia_for_chromium_defines.gypi" ]) 21 [ "//third_party/skia/gyp/skia_for_chromium_defines.gypi" ])
22 22
(...skipping 218 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 # Fixup Chrome sources. 400 # Fixup Chrome sources.
409 if (is_posix) { 401 if (is_posix) {
410 sources -= [ "ext/SkThread_chrome.cc" ] 402 sources -= [ "ext/SkThread_chrome.cc" ]
411 } 403 }
412 if (is_ios) { 404 if (is_ios) {
413 sources -= [ "ext/vector_platform_device_skia.cc" ] 405 sources -= [ "ext/vector_platform_device_skia.cc" ]
414 } 406 }
415 if (is_win) { 407 if (is_win) {
416 sources -= [ "ext/SkThread_chrome.cc" ] 408 sources -= [ "ext/SkThread_chrome.cc" ]
417 } 409 }
418 if (is_android && enable_printing == 0) { 410 if (is_android && printing_mode == 0) {
419 sources -= [ 411 sources -= [
420 "ext/skia_utils_base.cc", 412 "ext/skia_utils_base.cc",
421 "ext/vector_platform_device_skia.cc" 413 "ext/vector_platform_device_skia.cc"
422 ] 414 ]
423 } 415 }
424 416
425 # Fixup skia library sources. 417 # Fixup skia library sources.
426 if (is_win) { 418 if (is_win) {
427 sources -= [ 419 sources -= [
428 "//third_party/skia/src/ports/SkOSFile_posix.cpp", 420 "//third_party/skia/src/ports/SkOSFile_posix.cpp",
(...skipping 33 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