Added build.bat

This commit is contained in:
rxi 2020-10-03 13:38:04 +01:00
parent de5cb4fa52
commit b2ddc140d6
1 changed files with 16 additions and 0 deletions

16
build.bat Normal file
View File

@ -0,0 +1,16 @@
@echo off
rem download this:
rem https://nuwen.net/mingw.html
echo compiling (windows)...
windres res.rc -O coff -o res.res
gcc src/*.c src/api/*.c src/lib/lua52/*.c src/lib/stb/*.c^
-O3 -s -std=gnu11 -fno-strict-aliasing -Isrc -DLUA_USE_POPEN^
-Iwinlib/SDL2-2.0.10/x86_64-w64-mingw32/include^
-lmingw32 -lm -lSDL2main -lSDL2 -Lwinlib/SDL2-2.0.10/x86_64-w64-mingw32/lib^
-mwindows res.res^
-o lite.exe
echo done