OLD | NEW |
1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # This file is used to shared GN source lists between the standalone Skia | 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 | 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 | 8 # source-absolute since it will be included in different contexts in each |
9 # checkout. | 9 # checkout. |
10 _path_to_include = get_path_info("../include", "abspath") | 10 _path_to_include = get_path_info("../include", "abspath") |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 _pdf_gypi = exec_script("gypi_to_gn.py", | 62 _pdf_gypi = exec_script("gypi_to_gn.py", |
63 [ | 63 [ |
64 rebase_path("../gyp/pdf.gypi"), | 64 rebase_path("../gyp/pdf.gypi"), |
65 "--replace=<(skia_include_path)=$_path_to_include", | 65 "--replace=<(skia_include_path)=$_path_to_include", |
66 "--replace=<(skia_src_path)=$_path_to_src", | 66 "--replace=<(skia_src_path)=$_path_to_src", |
67 ], | 67 ], |
68 "scope", | 68 "scope", |
69 [ "../gyp/pdf.gypi" ]) | 69 [ "../gyp/pdf.gypi" ]) |
70 skia_pdf_sources = _pdf_gypi.sources | 70 skia_pdf_sources = _pdf_gypi.sources |
71 | 71 |
72 # SKSL. | 72 _sources_gypi = exec_script("gypi_to_gn.py", |
73 _sksl_gypi = exec_script("gypi_to_gn.py", | |
74 [ | 73 [ |
75 rebase_path("../gyp/sksl.gypi"), | 74 rebase_path("../gyp/skia_sources.gypi"), |
76 "--replace=<(skia_include_path)=$_path_to_include", | |
77 "--replace=<(skia_src_path)=$_path_to_src", | |
78 ], | 75 ], |
79 "scope", | 76 "scope", |
80 [ "../gyp/sksl.gypi" ]) | 77 [ "../gyp/skia_sources.gypi" ]) |
81 skia_sksl_sources = _sksl_gypi.sources | 78 skia_sksl_sources = get_path_info(_sources_gypi.sksl_sources, "abspath") |
82 | 79 skia_utils_sources = get_path_info(_sources_gypi.utils_sources, "abspath") |
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 | 80 |
94 # Skia Chromium defines. These flags will be defined in chromium If these | 81 # 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. | 82 # become 'permanent', they should be moved into Chrome's skia build file. |
96 skia_for_chromium_defines = [ "SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS" ] | 83 skia_for_chromium_defines = [ "SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS" ] |
OLD | NEW |