blob: 2da3d2cb79648f90d6ae6ce1109a63a28814784f [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
mtklein6ef69992016-09-14 06:12:09 -070047skia_vk_sources = _gpu_gypi.skgpu_vk_sources
brettwb9447282016-09-01 14:24:39 -070048
49# Opts.
50#
51# Unlike the other variables here, this is a "scope" consisting of many
52# sub-lists.
53skia_opts = exec_script("gypi_to_gn.py",
54 [
55 rebase_path("../gyp/opts.gypi"),
56 "--replace=<(skia_include_path)=$_path_to_include",
57 "--replace=<(skia_src_path)=$_path_to_src",
58 ],
59 "scope",
60 [ "../gyp/opts.gypi" ])
61
62# PDF.
63_pdf_gypi = exec_script("gypi_to_gn.py",
64 [
65 rebase_path("../gyp/pdf.gypi"),
66 "--replace=<(skia_include_path)=$_path_to_include",
67 "--replace=<(skia_src_path)=$_path_to_src",
68 ],
69 "scope",
70 [ "../gyp/pdf.gypi" ])
71skia_pdf_sources = _pdf_gypi.sources
72
brettw45d1b442016-09-06 12:43:55 -070073_sources_gypi = exec_script("gypi_to_gn.py",
mtklein1bd72ba2016-09-16 07:45:52 -070074 [ rebase_path("../gyp/skia_sources.gypi") ],
75 "scope",
76 [ "../gyp/skia_sources.gypi" ])
brettw45d1b442016-09-06 12:43:55 -070077skia_sksl_sources = get_path_info(_sources_gypi.sksl_sources, "abspath")
78skia_utils_sources = get_path_info(_sources_gypi.utils_sources, "abspath")
brettwb9447282016-09-01 14:24:39 -070079
80# Skia Chromium defines. These flags will be defined in chromium If these
81# become 'permanent', they should be moved into Chrome's skia build file.
82skia_for_chromium_defines = [ "SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS" ]
mtklein1bd72ba2016-09-16 07:45:52 -070083
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" ])
90skia_android_framework_defines =
91 _android_framework_defines.skia_for_android_framework_defines