| 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 && enable_printing != 0 | 12 skia_support_pdf = !is_ios && enable_printing != 0 |
| 13 | 13 |
| 14 # The list of Skia files is kept in skia_gn_files.gypi. Read it. | 14 # The list of Skia files is kept in skia_gn_files.gypi. Read it. |
| 15 gypi_values = exec_script( | 15 gypi_values = exec_script( |
| 16 "//build/gypi_to_gn.py", | 16 "//build/gypi_to_gn.py", |
| 17 [ rebase_path("skia_gn_files.gypi"), | 17 [ rebase_path("skia_gn_files.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 [ "skia_gn_files.gypi" ]) | 21 [ "skia_gn_files.gypi" ]) |
| 22 | 22 |
| 23 # External-facing config for dependent code. | 23 # External-facing config for dependent code. |
| 24 config("skia_config") { | 24 config("skia_config") { |
| 25 include_dirs = [ | 25 include_dirs = [ |
| 26 "config", | 26 "config", |
| 27 "ext", | 27 "ext", |
| 28 "//third_party/skia/include/config", | 28 "//third_party/skia/include/config", |
| 29 "//third_party/skia/include/core", | 29 "//third_party/skia/include/core", |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 ":skia_config", | 389 ":skia_config", |
| 390 "//build/config/compiler:no_chromium_code" | 390 "//build/config/compiler:no_chromium_code" |
| 391 ] | 391 ] |
| 392 | 392 |
| 393 deps = [ | 393 deps = [ |
| 394 "//base", | 394 "//base", |
| 395 ] | 395 ] |
| 396 | 396 |
| 397 visibility = ":skia" | 397 visibility = ":skia" |
| 398 } | 398 } |
| OLD | NEW |