blob: 8525883e7c839ea10069a6d747c36eeafc2d7a82 [file] [log] [blame]
brettwb9447282016-09-01 14:24:39 -07001# 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" ])
22skia_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" ])
34skia_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" ])
45skia_gpu_sources = _gpu_gypi.skgpu_sources
46skia_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.
52skia_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" ])
70skia_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" ])
81skia_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" ])
92skia_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.
96skia_for_chromium_defines = [ "SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS" ]