| OLD | NEW |
| 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 && printing_mode != 0 | 12 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview) |
| 13 | 13 |
| 14 # The list of Skia defines that are to be set for blink. | 14 # The list of Skia defines that are to be set for blink. |
| 15 gypi_blink_skia_defines = exec_script( | 15 gypi_blink_skia_defines = exec_script( |
| 16 "//build/gypi_to_gn.py", | 16 "//build/gypi_to_gn.py", |
| 17 [ rebase_path("//third_party/WebKit/public/blink_skia_config.gypi"), | 17 [ rebase_path("//third_party/WebKit/public/blink_skia_config.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/WebKit/public/blink_skia_config.gypi" ]) | 21 [ "//third_party/WebKit/public/blink_skia_config.gypi" ]) |
| 22 | 22 |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 # Fixup Chrome sources. | 425 # Fixup Chrome sources. |
| 426 if (is_posix) { | 426 if (is_posix) { |
| 427 sources -= [ "ext/SkThread_chrome.cc" ] | 427 sources -= [ "ext/SkThread_chrome.cc" ] |
| 428 } | 428 } |
| 429 if (is_ios) { | 429 if (is_ios) { |
| 430 sources -= [ "ext/vector_platform_device_skia.cc" ] | 430 sources -= [ "ext/vector_platform_device_skia.cc" ] |
| 431 } | 431 } |
| 432 if (is_win) { | 432 if (is_win) { |
| 433 sources -= [ "ext/SkThread_chrome.cc" ] | 433 sources -= [ "ext/SkThread_chrome.cc" ] |
| 434 } | 434 } |
| 435 if (is_android && printing_mode == 0) { | 435 if (is_android && (!enable_basic_printing && !enable_print_preview)) { |
| 436 sources -= [ | 436 sources -= [ |
| 437 "ext/skia_utils_base.cc", | 437 "ext/skia_utils_base.cc", |
| 438 "ext/vector_platform_device_skia.cc" | 438 "ext/vector_platform_device_skia.cc" |
| 439 ] | 439 ] |
| 440 } | 440 } |
| 441 | 441 |
| 442 # Fixup skia library sources. | 442 # Fixup skia library sources. |
| 443 if (is_win) { | 443 if (is_win) { |
| 444 sources -= [ | 444 sources -= [ |
| 445 "//third_party/skia/src/ports/SkOSFile_posix.cpp", | 445 "//third_party/skia/src/ports/SkOSFile_posix.cpp", |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 ":skia_library_config", | 718 ":skia_library_config", |
| 719 "//build/config/compiler:no_chromium_code" | 719 "//build/config/compiler:no_chromium_code" |
| 720 ] | 720 ] |
| 721 | 721 |
| 722 deps = [ | 722 deps = [ |
| 723 "//base", | 723 "//base", |
| 724 ] | 724 ] |
| 725 | 725 |
| 726 visibility = [ ":skia" ] | 726 visibility = [ ":skia" ] |
| 727 } | 727 } |
| OLD | NEW |