-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_windows_vs2019.cmd
35 lines (31 loc) · 1.19 KB
/
build_windows_vs2019.cmd
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
@echo off
submodules\bx\tools\bin\windows\genie vs2019
echo Check Visual Studio version
IF EXIST "c:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE" (
echo Using Visual Studio 2019 Professional Path
set "VISUALSTUDIO19PATH=c:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE"
) else (
echo Using Visual Studio 2019 Community Path
set "VISUALSTUDIO19PATH=c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE"
)
IF EXIST "%VISUALSTUDIO19PATH%" (
echo Building box2d Debug in Visual Studio 2019
"%VISUALSTUDIO19PATH%\devenv" ".build\projects\vs2019\box2d.sln" /Build "Debug|x64"
echo ErrorLevel:%ERRORLEVEL%
IF %ERRORLEVEL% EQU 0 (
echo Build successful!
) else (
echo Build failed!
)
echo Building box2d Release in Visual Studio 2019
"%VISUALSTUDIO19PATH%\devenv" ".build\projects\vs2019\box2d.sln" /Build "Release|x64"
echo ErrorLevel:%ERRORLEVEL%
IF %ERRORLEVEL% EQU 0 (
echo Build successful!
) else (
echo Build failed!
)
) else (
echo Visual Studio 2019 not found! Open '.build\projects\vs2019\box2d.sln' yourself and build it with your own version (NOTE you'll need to change vs2019 above to your installed version)
)
pause