2016-08-17 21:22:52 +03:00
|
|
|
@echo off
|
2016-08-23 00:52:15 +03:00
|
|
|
|
2017-04-12 00:41:02 +03: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 19:15:16 +03:00
|
|
|
for %%e in (Enterprise Professional Community BuildTools) do (
|
2017-04-12 00:41:02 +03: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-23 00:52:15 +03:00
|
|
|
IF EXIST "%VS_VCVARS%" (
|
2017-02-03 20:59:11 +03:00
|
|
|
IF NOT DEFINED Platform (
|
2016-08-23 00:52:15 +03:00
|
|
|
IF EXIST "%ProgramFiles(x86)%" (
|
|
|
|
call "%VS_VCVARS%" x64
|
|
|
|
) ELSE (
|
|
|
|
ECHO 32-bit Windows is currently unsupported.
|
|
|
|
EXIT /B
|
|
|
|
)
|
|
|
|
)
|
|
|
|
) ELSE (
|
2017-04-12 00:41:02 +03: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-23 00:52:15 +03:00
|
|
|
EXIT /B
|
|
|
|
)
|
|
|
|
|
2016-08-17 21:22:52 +03:00
|
|
|
python mach %*
|