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_printing != 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 # Fixup Chrome sources. | 408 # Fixup Chrome sources. |
409 if (is_posix) { | 409 if (is_posix) { |
410 sources -= [ "ext/SkThread_chrome.cc" ] | 410 sources -= [ "ext/SkThread_chrome.cc" ] |
411 } | 411 } |
412 if (is_ios) { | 412 if (is_ios) { |
413 sources -= [ "ext/vector_platform_device_skia.cc" ] | 413 sources -= [ "ext/vector_platform_device_skia.cc" ] |
414 } | 414 } |
415 if (is_win) { | 415 if (is_win) { |
416 sources -= [ "ext/SkThread_chrome.cc" ] | 416 sources -= [ "ext/SkThread_chrome.cc" ] |
417 } | 417 } |
418 if (is_android && printing_mode == 0) { | 418 if (is_android && enable_printing == 0) { |
419 sources -= [ | 419 sources -= [ |
420 "ext/skia_utils_base.cc", | 420 "ext/skia_utils_base.cc", |
421 "ext/vector_platform_device_skia.cc" | 421 "ext/vector_platform_device_skia.cc" |
422 ] | 422 ] |
423 } | 423 } |
424 | 424 |
425 # Fixup skia library sources. | 425 # Fixup skia library sources. |
426 if (is_win) { | 426 if (is_win) { |
427 sources -= [ | 427 sources -= [ |
428 "//third_party/skia/src/ports/SkOSFile_posix.cpp", | 428 "//third_party/skia/src/ports/SkOSFile_posix.cpp", |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 ":skia_config", | 683 ":skia_config", |
684 "//build/config/compiler:no_chromium_code" | 684 "//build/config/compiler:no_chromium_code" |
685 ] | 685 ] |
686 | 686 |
687 deps = [ | 687 deps = [ |
688 "//base", | 688 "//base", |
689 ] | 689 ] |
690 | 690 |
691 visibility = ":skia" | 691 visibility = ":skia" |
692 } | 692 } |
OLD | NEW |