-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.cmd
More file actions
32 lines (26 loc) · 1009 Bytes
/
setup.cmd
File metadata and controls
32 lines (26 loc) · 1009 Bytes
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
pushd %~dp0
git lfs pull
git submodule update --init
git submodule foreach --quiet git lfs pull
for /f "usebackq tokens=*" %%i in (`"%~dp0bin\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Workload.NativeDesktop -property installationPath`) do (
set _vcvarsall="%%i\VC\Auxiliary\Build\vcvarsall.bat"
)
if not exist %_vcvarsall% (
if defined VSINSTALLDIR (
set _vcvarsall="%VSINSTALLDIR%VC\vcvarsall.bat"
) else (
set _vcvarsall="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
)
if not exist %_vcvarsall% (
set _vcvarsall="C:\Program Files (x86)\Microsoft Visual C++ Build Tools\vcbuildtools.bat"
if not exist %_vcvarsall% (
echo Failed to locate vcvarsall.bat!
pause
exit /b 1
)
)
)
call %_vcvarsall% x64
set PATH="%~dp0stage";"%~dp0bin";%PATH%
powershell -Command "Invoke-WebRequest https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/gl.xml -OutFile gl.xml"
popd