BUILD(win): find 'Build Tools for VS 2017', doc update

Docs-Preview: https://skia.org/user/build?cl=107282
Change-Id: I23b46051dd75e496b3fe87d7f1ea637a0541e950
Reviewed-on: https://skia-review.googlesource.com/107282
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
Hal Canary 2018-02-14 11:25:31 -05:00 committed by Skia Commit-Bot
parent 7080a431a7
commit 28728e4bba
2 changed files with 10 additions and 0 deletions

View File

@ -137,6 +137,8 @@ if (target_os == "win") {
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC"
vc_2017_com_default =
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC"
vc_2017_bt_default =
"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC"
vc_2015_default = "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC"
if (win_vc == "") {
@ -150,6 +152,11 @@ if (target_os == "win") {
"trim string")) {
win_vc = vc_2017_com_default
msvc = 2017
} else if ("True" == exec_script("//gn/checkdir.py",
[ "$vc_2017_bt_default" ],
"trim string")) {
win_vc = vc_2017_bt_default
msvc = 2017
} else if ("True" == exec_script("//gn/checkdir.py",
[ "$vc_2015_default" ],
"trim string")) {

View File

@ -236,6 +236,9 @@ Skia can build on Windows with Visual Studio 2017 or Visual Studio 2015 Update 3
If GN is unable to locate either of those, it will print an error message. In that
case, you can pass your `VC` path to GN via `win_vc`.
Skia can be compiled with the free [Build Tools for Visual Studio
2017](https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017).
The bots use a packaged 2017 toolchain, which Googlers can download like this:
python infra/bots/assets/win_toolchain/download.py -t C:/toolchain