Merge pull request #2 from thearst3rd/linux

Linux Build scripts
This commit is contained in:
RandomityGuy 2022-12-30 15:43:19 +05:30 committed by GitHub
commit 033e4f041e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 0 deletions

4
.gitignore vendored
View file

@ -5,7 +5,11 @@
native
*.exe
*.obj
marblegame.hl
marblegame
settings.json
console.log
data/replays/
release
Export
node_modules

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 ..

View file

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.