From 271994e58262333965fc8143821e5c05bbc04efb Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Fri, 30 Dec 2022 01:24:44 -0500 Subject: [PATCH] Linux build scripts --- .gitignore | 1 + compile-linux.hxml | 6 ++++++ compile-linux.sh | 6 ++++++ 3 files changed, 13 insertions(+) create mode 100644 compile-linux.hxml create mode 100755 compile-linux.sh diff --git a/.gitignore b/.gitignore index f1aa0e00..5d16b68b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ native *.exe *.obj marblegame.hl +marblegame settings.json console.log data/replays/ diff --git a/compile-linux.hxml b/compile-linux.hxml new file mode 100644 index 00000000..6e65d3c6 --- /dev/null +++ b/compile-linux.hxml @@ -0,0 +1,6 @@ +-cp src +-lib heaps +-lib hlsdl +-D highDPI +-hl native/marblegame.c +--main Main diff --git a/compile-linux.sh b/compile-linux.sh new file mode 100755 index 00000000..4854f57d --- /dev/null +++ b/compile-linux.sh @@ -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 ..