aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/shared_sources.gni
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2016-10-26 18:37:24 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-10-26 23:23:09 +0000
commiteb94e568826b76429b999572fda58c6c5365121b (patch)
tree7f708db601e0dcd7c50b604fbff5949b85703831 /gn/shared_sources.gni
parent8508f6582fe9c8a92e81e4c434d66b9f629394bc (diff)
opts.gypi -> opts.gni
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4026 Change-Id: Ib687bd7ce87ddbbc60f95e7a30e20575971e5c59 Reviewed-on: https://skia-review.googlesource.com/4026 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gn/shared_sources.gni')
-rw-r--r--gn/shared_sources.gni35
1 files changed, 16 insertions, 19 deletions
diff --git a/gn/shared_sources.gni b/gn/shared_sources.gni
index 50367c3a94..cb81dd227f 100644
--- a/gn/shared_sources.gni
+++ b/gn/shared_sources.gni
@@ -3,32 +3,29 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# This file is used to shared GN source lists between the standalone Skia
-# and Chrome skia build. All paths produced by this header must be
-# source-absolute since it will be included in different contexts in each
-# checkout.
-_path_to_include = get_path_info("../include", "abspath")
-_path_to_src = get_path_info("../src", "abspath")
-
-# Opts.
-#
-# Unlike the other variables here, this is a "scope" consisting of many
-# sub-lists.
-skia_opts = exec_script("gypi_to_gn.py",
- [
- rebase_path("../gyp/opts.gypi"),
- "--replace=<(skia_include_path)=$_path_to_include",
- "--replace=<(skia_src_path)=$_path_to_src",
- ],
- "scope",
- [ "../gyp/opts.gypi" ])
import("core.gni")
import("effects.gni")
import("gpu.gni")
+import("opts.gni")
import("pdf.gni")
import("sksl.gni")
import("utils.gni")
+skia_opts = {
+ none_sources = none
+ armv7_sources = armv7
+ neon_sources = neon
+ arm64_sources = arm64
+ crc32_sources = crc32
+ mips_dsp_sources = mips_dsp
+ sse2_sources = sse2
+ ssse3_sources = ssse3
+ sse41_sources = sse41
+ sse42_sources = sse42
+ avx_sources = avx
+ hsw_sources = hsw
+}
+
# Skia Chromium defines. These flags will be defined in chromium If these
# become 'permanent', they should be moved into Chrome's skia build file.
skia_for_chromium_defines = [ "SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS" ]