aboutsummaryrefslogtreecommitdiff
path: root/msvc-14/msvc-14u2-64
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-29 03:23:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-11-29 19:59:24 +0300
commit1e9c3d01783d0c4c8f4d38baa662fa2b836a710b (patch)
tree3b470678b1b36dc88ab7a6ef9cc4ae91e60b2f5c /msvc-14/msvc-14u2-64
parent6513bb7b269ea8b39dfed0e86a2df9a01ee23416 (diff)
Add Windows 10 SDK discovery
Diffstat (limited to 'msvc-14/msvc-14u2-64')
-rwxr-xr-xmsvc-14/msvc-14u2-649
1 files changed, 7 insertions, 2 deletions
diff --git a/msvc-14/msvc-14u2-64 b/msvc-14/msvc-14u2-64
index 5ac895b..78d65d8 100755
--- a/msvc-14/msvc-14u2-64
+++ b/msvc-14/msvc-14u2-64
@@ -8,11 +8,16 @@ if [ -z "$MSVC_INSTALLDIR" ]; then
MSVC_INSTALLDIR="Microsoft Visual Studio 14.0"
fi
+if [ -z "$MSVC_SDKVERSION" ]; then
+ source "$src_dir/msvc-common/msvc-sdk-common"
+ MSVC_SDKVERSION="$(windows10_sdkversion)"
+fi
+
# SDK
#
SDK="C:\\Program Files (x86)\\Windows Kits\\10"
SDKBIN="$SDK\\bin\\x64"
-SDKVER="10.0.10586.0"
+SDKVER="$MSVC_SDKVERSION.0" # Originally "10.0.10586".
INCLUDE="$SDK\\include\\$SDKVER\\shared;$SDK\\include\\$SDKVER\\um;$SDK\\include\\$SDKVER\\winrt"
LIB="$SDK\\lib\\$SDKVER\\um\\x64"
@@ -20,7 +25,7 @@ LIB="$SDK\\lib\\$SDKVER\\um\\x64"
# CRT
#
CRT="C:\\Program Files (x86)\\Windows Kits\\10"
-CRTVER="10.0.10586.0"
+CRTVER="$MSVC_SDKVERSION.0" # Originally "10.0.10586".
INCLUDE="$CRT\\include\\$CRTVER\\ucrt;$INCLUDE"
LIB="$CRT\\lib\\$CRTVER\\ucrt\\x64;$LIB"