@echo off

SETLOCAL EnableDelayedExpansion

REM Set configurations
call "%~dp0config.cmd"
if ERRORLEVEL 1 goto fail

REM Start building
call "%~dp0build.cmd"
if ERRORLEVEL 1 goto fail

REM Start testing
CALL "%~dp0test.cmd" x64
IF ERRORLEVEL 1 GOTO fail

:success
echo SUCCESS
exit /b 0

:fail
echo FAIL
EXIT /B %ERRORLEVEL%
