aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-12-07 16:16:21 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-08 01:46:30 +0000
commit852ca318a16f9c455d2bed3efb2063dff0e4d068 (patch)
tree33a87ecf931b014864cb214ab88685683f033df7 /gn/BUILD.gn
parent43646533fa6fb7cd6724cf00f6b8af15ac1649ea (diff)
Updated MSVC toolchain to 2017, and further refactored GN
'windk' is no longer a thing. There are two separate variables to point at your compiler (win_vc), and SDK (win_sdk). 'msvc' is no longer a thing, either. By default, we look for 2017 and then 2015 (in the default locations). If neither is located, use an assert to let users know they should set win_vc. Then, detect if win_vc points at a 2017 or 2015 installation, and configure it automatically. Because the toolchain is now 2017, update the GN files to handle building x86 in that configuration. In fact, we only support x86 builds (with 2017 or 2015) using the toolchain assets. Keep a 2015 toolchain around as a new asset, so we can add bot coverage. Docs-Preview: https://skia.org/?cl=81841 Bug: skia: Change-Id: I8c68a6f949e54c0e798a219450bbb9406f8dc6ac Reviewed-on: https://skia-review.googlesource.com/81841 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'gn/BUILD.gn')
-rw-r--r--gn/BUILD.gn10
1 files changed, 5 insertions, 5 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index cf94889a70..4819ee151a 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -55,9 +55,9 @@ config("default") {
]
if (msvc == 2015) {
- _include_dirs = [ "$windk/VC/include" ]
+ _include_dirs = [ "$win_vc/include" ]
} else { # 2017
- _include_dirs = [ "$windk/VC/Tools/MSVC/$win_toolchain_version/include" ]
+ _include_dirs = [ "$win_vc/Tools/MSVC/$win_toolchain_version/include" ]
}
_include_dirs += [
"$win_sdk/Include/$win_sdk_version/shared",
@@ -83,13 +83,13 @@ config("default") {
]
if (msvc == 2015) {
if (target_cpu == "x86") {
- lib_dirs += [ "$windk/VC/lib" ]
+ lib_dirs += [ "$win_vc/lib" ]
} else {
- lib_dirs += [ "$windk/VC/lib/amd64" ]
+ lib_dirs += [ "$win_vc/lib/amd64" ]
}
} else { # 2017
lib_dirs +=
- [ "$windk/VC/Tools/MSVC/$win_toolchain_version/lib/$target_cpu" ]
+ [ "$win_vc/Tools/MSVC/$win_toolchain_version/lib/$target_cpu" ]
}
} else {
cflags += [