aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILDCONFIG.gn
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-06-27 09:56:09 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-27 14:20:05 +0000
commitccf59917d3fe7aaf59de714acfbd0596503f324f (patch)
treecc97719c47276c9dcbf0ec09effd580c4e7450dd /gn/BUILDCONFIG.gn
parentc3aef18419c1bb16951370e11758c7ef131fa10b (diff)
sksl fragment processor support
Bug: skia: Change-Id: Ia3b0305c2b0c78074303831f628fb01852b90d34 Reviewed-on: https://skia-review.googlesource.com/17843 Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Ben Wagner <benjaminwagner@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'gn/BUILDCONFIG.gn')
-rw-r--r--gn/BUILDCONFIG.gn20
1 files changed, 18 insertions, 2 deletions
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn
index 2b3ae33292..43f66f8832 100644
--- a/gn/BUILDCONFIG.gn
+++ b/gn/BUILDCONFIG.gn
@@ -17,9 +17,21 @@ declare_args() {
ndk_api = 21
}
sanitize = ""
+
+ ar = "ar"
+ cc = "cc"
+ cxx = "c++"
+
+ msvc = 2015
}
declare_args() {
is_debug = !is_official_build
+
+ if (msvc == 2015) {
+ windk = "C:/Program Files (x86)/Microsoft Visual Studio 14.0"
+ } else {
+ windk = "C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional"
+ }
}
assert(!(is_debug && is_official_build))
@@ -164,8 +176,12 @@ set_defaults("component") {
if (is_win) {
# Windows tool chain
- set_default_toolchain("//gn:msvc")
+ set_default_toolchain("//gn/toolchain:msvc")
+ default_toolchain_name = "msvc"
+ host_toolchain = "msvc"
} else {
# GCC-like toolchains, including Clang.
- set_default_toolchain("//gn:gcc_like")
+ set_default_toolchain("//gn/toolchain:gcc_like")
+ default_toolchain_name = "gcc_like"
+ host_toolchain = "gcc_like_host"
}