blob: 41e6f9037ac3fab4b0d82faff9d8fb9ab190ecac [file] [log] [blame]
Bram Moolenaar73f44392017-10-07 18:38:43 +02001@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
Bram Moolenaara87f8fd2018-09-18 22:58:41 +020010rem 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
Bram Moolenaar73f44392017-10-07 18:38:43 +020014@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%
Bram Moolenaara87f8fd2018-09-18 22:58:41 +020030if /i "%Platform%"=="x64" (
Bram Moolenaar73f44392017-10-07 18:38:43 +020031 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_