Linux build scripts

This commit is contained in:
Terry Hearst 2022-12-30 01:24:44 -05:00
parent 9a525b8a06
commit 271994e582
3 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@ native
*.exe
*.obj
marblegame.hl
marblegame
settings.json
console.log
data/replays/

6
compile-linux.hxml Normal file
View file

@ -0,0 +1,6 @@
-cp src
-lib heaps
-lib hlsdl
-D highDPI
-hl native/marblegame.c
--main Main

6
compile-linux.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
haxe compile-linux.hxml
cd native
gcc -o marblegame -g -I . -L /usr/local/lib marblegame.c /usr/local/lib/{ui.hdll,openal.hdll,fmt.hdll,sdl.hdll} -lSDL2 -lhl -lm
cp marblegame ..