2016-08-17 18:22:52 +00:00
|
|
|
@echo off
|
2016-08-22 21:52:15 +00:00
|
|
|
|
2017-11-21 23:27:34 +00:00
|
|
|
pushd .
|
|
|
|
|
2017-04-11 21:41:02 +00:00
|
|
|
IF EXIST "%ProgramFiles(x86)%" (
|
|
|
|
set "ProgramFiles32=%ProgramFiles(x86)%"
|
|
|
|
) ELSE (
|
|
|
|
set "ProgramFiles32=%ProgramFiles%"
|
|
|
|
)
|
|
|
|
|
|
|
|
set VC14VARS=%VS140COMNTOOLS%..\..\VC\vcvarsall.bat
|
|
|
|
IF EXIST "%VC14VARS%" (
|
|
|
|
set "VS_VCVARS=%VC14VARS%"
|
|
|
|
) ELSE (
|
2017-09-09 16:15:16 +00:00
|
|
|
for %%e in (Enterprise Professional Community BuildTools) do (
|
2017-04-11 21:41:02 +00:00
|
|
|
IF EXIST "%ProgramFiles32%\Microsoft Visual Studio\2017\%%e\VC\Auxiliary\Build\vcvarsall.bat" (
|
|
|
|
set "VS_VCVARS=%ProgramFiles32%\Microsoft Visual Studio\2017\%%e\VC\Auxiliary\Build\vcvarsall.bat"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2016-08-22 21:52:15 +00:00
|
|
|
IF EXIST "%VS_VCVARS%" (
|
2017-02-03 17:59:11 +00:00
|
|
|
IF NOT DEFINED Platform (
|
2016-08-22 21:52:15 +00:00
|
|
|
IF EXIST "%ProgramFiles(x86)%" (
|
|
|
|
call "%VS_VCVARS%" x64
|
|
|
|
) ELSE (
|
|
|
|
ECHO 32-bit Windows is currently unsupported.
|
|
|
|
EXIT /B
|
|
|
|
)
|
|
|
|
)
|
|
|
|
) ELSE (
|
2017-04-11 21:41:02 +00:00
|
|
|
ECHO Visual Studio 2015 or 2017 is not installed.
|
|
|
|
ECHO Download and install Visual Studio 2015 or 2017 from https://www.visualstudio.com/
|
2016-08-22 21:52:15 +00:00
|
|
|
EXIT /B
|
|
|
|
)
|
|
|
|
|
2017-11-21 23:27:34 +00:00
|
|
|
popd
|
|
|
|
|
2016-08-17 18:22:52 +00:00
|
|
|
python mach %*
|