mirror of
https://github.com/simplysanatori/LegendFrame.git
synced 2026-10-29 04:02:42 +01:00
20 lines
553 B
Batchfile
20 lines
553 B
Batchfile
@echo off
|
|
setlocal
|
|
rem Builds and runs the projection maths tests. No game, no device, no headset.
|
|
set "ROOT=%~dp0"
|
|
set "OUT=%ROOT%build\test"
|
|
if not exist "%OUT%" mkdir "%OUT%"
|
|
call "%ROOT%msvc.bat"
|
|
if errorlevel 1 exit /b 1
|
|
cl /nologo /EHsc /MT /O2 /W4 /std:c++17 /D_CRT_SECURE_NO_WARNINGS ^
|
|
/Fo"%OUT%\\" /Fe"%OUT%\mathtest.exe" ^
|
|
"%ROOT%src\test\mathtest.cpp" "%ROOT%src\vr\vr_math.cpp" ^
|
|
"%ROOT%src\vr\vr_gesture.cpp" ^
|
|
/link /MACHINE:X86
|
|
if errorlevel 1 (
|
|
echo BUILD FAILED
|
|
exit /b 1
|
|
)
|
|
"%OUT%\mathtest.exe"
|
|
exit /b %ERRORLEVEL%
|