brettw | b944728 | 2016-09-01 14:24:39 -0700 | [diff] [blame^] | 1 | # Copyright 2016 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | # This file is used to shared GN source lists between the standalone Skia |
| 7 | # and Chrome skia build. All paths produced by this header must be |
| 8 | # source-absolute since it will be included in different contexts in each |
| 9 | # checkout. |
| 10 | _path_to_include = get_path_info("../include", "abspath") |
| 11 | _path_to_src = get_path_info("../src", "abspath") |
| 12 | |
| 13 | # Core. |
| 14 | _core_gypi = exec_script("gypi_to_gn.py", |
| 15 | [ |
| 16 | rebase_path("../gyp/core.gypi"), |
| 17 | "--replace=<(skia_include_path)=$_path_to_include", |
| 18 | "--replace=<(skia_src_path)=$_path_to_src", |
| 19 | ], |
| 20 | "scope", |
| 21 | [ "../gyp/core.gypi" ]) |
| 22 | skia_core_sources = _core_gypi.sources |
| 23 | |
| 24 | # Effects. |
| 25 | _effects_gypi = |
| 26 | exec_script("gypi_to_gn.py", |
| 27 | [ |
| 28 | rebase_path("../gyp/effects.gypi"), |
| 29 | "--replace=<(skia_include_path)=$_path_to_include", |
| 30 | "--replace=<(skia_src_path)=$_path_to_src", |
| 31 | ], |
| 32 | "scope", |
| 33 | [ "../gyp/effects.gypi" ]) |
| 34 | skia_effects_sources = _effects_gypi.sources |
| 35 | |
| 36 | # GPU. |
| 37 | _gpu_gypi = exec_script("gypi_to_gn.py", |
| 38 | [ |
| 39 | rebase_path("../gyp/gpu.gypi"), |
| 40 | "--replace=<(skia_include_path)=$_path_to_include", |
| 41 | "--replace=<(skia_src_path)=$_path_to_src", |
| 42 | ], |
| 43 | "scope", |
| 44 | [ "../gyp/gpu.gypi" ]) |
| 45 | skia_gpu_sources = _gpu_gypi.skgpu_sources |
| 46 | skia_null_gpu_sources = _gpu_gypi.skgpu_null_gl_sources |
| 47 | |
| 48 | # Opts. |
| 49 | # |
| 50 | # Unlike the other variables here, this is a "scope" consisting of many |
| 51 | # sub-lists. |
| 52 | skia_opts = exec_script("gypi_to_gn.py", |
| 53 | [ |
| 54 | rebase_path("../gyp/opts.gypi"), |
| 55 | "--replace=<(skia_include_path)=$_path_to_include", |
| 56 | "--replace=<(skia_src_path)=$_path_to_src", |
| 57 | ], |
| 58 | "scope", |
| 59 | [ "../gyp/opts.gypi" ]) |
| 60 | |
| 61 | # PDF. |
| 62 | _pdf_gypi = exec_script("gypi_to_gn.py", |
| 63 | [ |
| 64 | rebase_path("../gyp/pdf.gypi"), |
| 65 | "--replace=<(skia_include_path)=$_path_to_include", |
| 66 | "--replace=<(skia_src_path)=$_path_to_src", |
| 67 | ], |
| 68 | "scope", |
| 69 | [ "../gyp/pdf.gypi" ]) |
| 70 | skia_pdf_sources = _pdf_gypi.sources |
| 71 | |
| 72 | # SKSL. |
| 73 | _sksl_gypi = exec_script("gypi_to_gn.py", |
| 74 | [ |
| 75 | rebase_path("../gyp/sksl.gypi"), |
| 76 | "--replace=<(skia_include_path)=$_path_to_include", |
| 77 | "--replace=<(skia_src_path)=$_path_to_src", |
| 78 | ], |
| 79 | "scope", |
| 80 | [ "../gyp/sksl.gypi" ]) |
| 81 | skia_sksl_sources = _sksl_gypi.sources |
| 82 | |
| 83 | # Utils. |
| 84 | _utils_gypi = exec_script("gypi_to_gn.py", |
| 85 | [ |
| 86 | rebase_path("../gyp/utils.gypi"), |
| 87 | "--replace=<(skia_include_path)=$_path_to_include", |
| 88 | "--replace=<(skia_src_path)=$_path_to_src", |
| 89 | ], |
| 90 | "scope", |
| 91 | [ "../gyp/utils.gypi" ]) |
| 92 | skia_utils_sources = _utils_gypi.sources |
| 93 | |
| 94 | # Skia Chromium defines. These flags will be defined in chromium If these |
| 95 | # become 'permanent', they should be moved into Chrome's skia build file. |
| 96 | skia_for_chromium_defines = [ "SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS" ] |