Added build.bat
This commit is contained in:
parent
de5cb4fa52
commit
b2ddc140d6
|
@ -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
|
Loading…
Reference in New Issue