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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 [ | 64 [ |
65 rebase_path("../gyp/pdf.gypi"), | 65 rebase_path("../gyp/pdf.gypi"), |
66 "--replace=<(skia_include_path)=$_path_to_include", | 66 "--replace=<(skia_include_path)=$_path_to_include", |
67 "--replace=<(skia_src_path)=$_path_to_src", | 67 "--replace=<(skia_src_path)=$_path_to_src", |
68 ], | 68 ], |
69 "scope", | 69 "scope", |
70 [ "../gyp/pdf.gypi" ]) | 70 [ "../gyp/pdf.gypi" ]) |
71 skia_pdf_sources = _pdf_gypi.sources | 71 skia_pdf_sources = _pdf_gypi.sources |
72 | 72 |
73 _sources_gypi = exec_script("gypi_to_gn.py", | 73 _sources_gypi = exec_script("gypi_to_gn.py", |
74 [ | 74 [ rebase_path("../gyp/skia_sources.gypi") ], |
75 rebase_path("../gyp/skia_sources.gypi"), | 75 "scope", |
76 ], | 76 [ "../gyp/skia_sources.gypi" ]) |
77 "scope", | |
78 [ "../gyp/skia_sources.gypi" ]) | |
79 skia_sksl_sources = get_path_info(_sources_gypi.sksl_sources, "abspath") | 77 skia_sksl_sources = get_path_info(_sources_gypi.sksl_sources, "abspath") |
80 skia_utils_sources = get_path_info(_sources_gypi.utils_sources, "abspath") | 78 skia_utils_sources = get_path_info(_sources_gypi.utils_sources, "abspath") |
81 | 79 |
82 # Skia Chromium defines. These flags will be defined in chromium If these | 80 # Skia Chromium defines. These flags will be defined in chromium If these |
83 # become 'permanent', they should be moved into Chrome's skia build file. | 81 # become 'permanent', they should be moved into Chrome's skia build file. |
84 skia_for_chromium_defines = [ "SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS" ] | 82 skia_for_chromium_defines = [ "SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS" ] |
| 83 |
| 84 _android_framework_defines = |
| 85 exec_script( |
| 86 "gypi_to_gn.py", |
| 87 [ rebase_path("../gyp/skia_for_android_framework_defines.gypi") ], |
| 88 "scope", |
| 89 [ "../gyp/core.gypi" ]) |
| 90 skia_android_framework_defines = |
| 91 _android_framework_defines.skia_for_android_framework_defines |
OLD | NEW |