|
|
|
@ -28,6 +28,13 @@ If "%~2" == "rd" set "DEBINFO=1"
|
|
|
|
IF defined RELEASE (
|
|
|
|
IF defined RELEASE (
|
|
|
|
cmake --build build/ --target ALL_BUILD --config Release
|
|
|
|
cmake --build build/ --target ALL_BUILD --config Release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SET BUILD_ERRORLEVEL=!ERRORLEVEL!
|
|
|
|
|
|
|
|
IF NOT "!BUILD_ERRORLEVEL!"=="0" (
|
|
|
|
|
|
|
|
echo %ESC%[91mBUILD FAILED!%ESC%[0m %BUILD_ERRORLEVEL%
|
|
|
|
|
|
|
|
EXIT /B !BUILD_ERRORLEVEL!
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xcopy /y test_data\engine_state.json build\Release\
|
|
|
|
xcopy /y test_data\engine_state.json build\Release\
|
|
|
|
xcopy /y src\renderer\shaders\* build\Release\*
|
|
|
|
xcopy /y src\renderer\shaders\* build\Release\*
|
|
|
|
|
|
|
|
|
|
|
|
@ -35,23 +42,31 @@ xcopy /y src\renderer\shaders\* build\Release\*
|
|
|
|
) ELSE IF defined DEBINFO (
|
|
|
|
) ELSE IF defined DEBINFO (
|
|
|
|
cmake --build build/ --target ALL_BUILD --config RelWithDebInfo
|
|
|
|
cmake --build build/ --target ALL_BUILD --config RelWithDebInfo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SET BUILD_ERRORLEVEL=!ERRORLEVEL!
|
|
|
|
|
|
|
|
IF NOT "!BUILD_ERRORLEVEL!"=="0" (
|
|
|
|
|
|
|
|
echo %ESC%[91mBUILD FAILED!%ESC%[0m %BUILD_ERRORLEVEL%
|
|
|
|
|
|
|
|
EXIT /B !BUILD_ERRORLEVEL!
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xcopy /y test_data\engine_state.json build\RelWithDebInfo\
|
|
|
|
xcopy /y test_data\engine_state.json build\RelWithDebInfo\
|
|
|
|
xcopy /y src\renderer\shaders\* build\RelWithDebInfo\*
|
|
|
|
xcopy /y src\renderer\shaders\* build\RelWithDebInfo\*
|
|
|
|
|
|
|
|
|
|
|
|
) ELSE (
|
|
|
|
) ELSE (
|
|
|
|
cmake --build build/ --target ALL_BUILD --config Debug
|
|
|
|
cmake --build build/ --target ALL_BUILD --config Debug
|
|
|
|
|
|
|
|
|
|
|
|
xcopy /y test_data\engine_state.json build\Debug\
|
|
|
|
|
|
|
|
xcopy /y src\renderer\shaders\* build\Debug\*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SET BUILD_ERRORLEVEL=!ERRORLEVEL!
|
|
|
|
SET BUILD_ERRORLEVEL=!ERRORLEVEL!
|
|
|
|
IF NOT "!BUILD_ERRORLEVEL!"=="0" (
|
|
|
|
IF NOT "!BUILD_ERRORLEVEL!"=="0" (
|
|
|
|
echo %ESC%[91mBUILD FAILED!%ESC%[0m %BUILD_ERRORLEVEL%
|
|
|
|
echo %ESC%[91mBUILD FAILED!%ESC%[0m %BUILD_ERRORLEVEL%
|
|
|
|
EXIT /B !BUILD_ERRORLEVEL!
|
|
|
|
EXIT /B !BUILD_ERRORLEVEL!
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xcopy /y test_data\engine_state.json build\Debug\
|
|
|
|
|
|
|
|
xcopy /y src\renderer\shaders\* build\Debug\*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
echo %ESC%[92mBUILD SUCCEEDED!%ESC%[0m
|
|
|
|
echo %ESC%[92mBUILD SUCCEEDED!%ESC%[0m
|
|
|
|
|
|
|
|
|
|
|
|
IF defined DELGUI (
|
|
|
|
IF defined DELGUI (
|
|
|
|
|