aboutsummaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-09-14 17:54:50 +0100
committergingerBill <bill@gingerbill.org>2021-09-14 17:54:50 +0100
commit7189625cf5748d806fbc659ea71f8bbc8b23dce6 (patch)
treebc638e706e37789fcac09a1a876ad4d3a2fac23c /build.bat
parentc2707618d926355ec724b7cb6ac9345cfed10505 (diff)
Add stb libraries (image+image_write, rect_pack, truetype)
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat9
1 files changed, 6 insertions, 3 deletions
diff --git a/build.bat b/build.bat
index e52701ab0..61c9afccc 100644
--- a/build.bat
+++ b/build.bat
@@ -3,7 +3,7 @@
setlocal EnableDelayedExpansion
for /f "usebackq tokens=1,2 delims=,=- " %%i in (`wmic os get LocalDateTime /value`) do @if %%i==LocalDateTime (
- set CURR_DATE_TIME=%%j
+ set CURR_DATE_TIME=%%j
)
set curr_year=%CURR_DATE_TIME:~0,4%
@@ -23,9 +23,9 @@ if "%1" == "1" (
:: Normal = 0, CI Nightly = 1
if "%2" == "1" (
- set nightly=1
+ set nightly=1
) else (
- set nightly=0
+ set nightly=0
)
set odin_version_raw="dev-%curr_year%-%curr_month%"
@@ -69,8 +69,11 @@ del *.pdb > NUL 2> NUL
del *.ilk > NUL 2> NUL
cl %compiler_settings% "src\main.cpp" "src\libtommath.cpp" /link %linker_settings% -OUT:%exe_name%
+if %errorlevel% neq 0 goto end_of_build
+call build_vendor.bat
if %errorlevel% neq 0 goto end_of_build
+
if %release_mode% EQU 0 odin run examples/demo
del *.obj > NUL 2> NUL