-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmake.cmd
More file actions
51 lines (40 loc) · 1.07 KB
/
Copy pathmake.cmd
File metadata and controls
51 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off
rem
rem Download make executable and add it to %Path%:
rem
rem http://www.equation.com/servlet/equation.cmd?fa=make
rem
set __VS_LOCATION=%ProgramFiles(x86)%\Microsoft Visual Studio\2019
set __VS_EDITIONS="Enterprise,Professional,Community"
set __SKIP_VCVARS=1
if "%1"=="" set __SKIP_VCVARS=0
for %%i in (%*) do (
(echo :format: :clean: :ports: | findstr /i ":%%i:" 1>nul 2>nul) || set __SKIP_VCVARS=0
)
if "%__SKIP_VCVARS%"=="1" (
goto :skip_vcvars
)
if not "%MAKE_WRAPPER_VCVARS_INITIALIZED%"=="1" (
for %%i in (%__VS_EDITIONS:"=%) do (
if exist "%__VS_LOCATION:"=%\%%i\VC\Auxiliary\Build\vcvarsall.bat" (
pushd "%__VS_LOCATION:"=%\%%i\VC\Auxiliary\Build"
goto :vcvarsall_found
)
)
echo error: missing script: "vcvarsall.bat" 1>&2
goto :cleanup
:vcvarsall_found
call vcvarsall.bat x64 && goto initialized
popd
echo error: could not initialize vcvars 1>&2
goto :cleanup
:initialized
popd
set MAKE_WRAPPER_VCVARS_INITIALIZED=1
)
:skip_vcvars
make.exe %*
:cleanup
set __SKIP_VCVARS=
set __VS_EDITIONS=
set __VS_LOCATION=