xref: /vim-8.2.3635/src/msvc2015.bat (revision a87f8fd3)
1@echo off
2rem To be used on MS-Windows for Visual C++ 2015 (either Express or Community)
3rem See INSTALLpc.txt for information.
4rem
5rem Usage:
6rem   For x86 builds run this without options:
7rem     msvc2015
8rem   For x64 builds run this with "x86_amd64" option:
9rem     msvc2015 x86_amd64
10rem   This works on any editions including Express edition.
11rem   If you use Community (or Professional) edition, you can also use "x64"
12rem   option:
13rem     msvc2015 x64
14@echo on
15
16call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" %*
17
18rem Use Windows SDK 7.1A for targeting Windows XP.
19if "%ProgramFiles(x86)%"=="" (
20	set "WinSdk71=%ProgramFiles%\Microsoft SDKs\Windows\v7.1A"
21) else (
22	set "WinSdk71=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A"
23)
24if not exist "%WinSdk71%" (
25	echo Windows SDK 7.1A is not found.  Targeting Windows Vista and later.
26	goto :eof
27)
28
29set INCLUDE=%WinSdk71%\Include;%INCLUDE%
30if /i "%Platform%"=="x64" (
31	set "LIB=%WinSdk71%\Lib\x64;%LIB%"
32	set SUBSYSTEM_VER=5.02
33) else (
34	set "LIB=%WinSdk71%\Lib;%LIB%"
35	set SUBSYSTEM_VER=5.01
36)
37set CL=/D_USING_V110_SDK71_
38