From 1d8222a395575822e35043a849bd35b771029bd1 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 13 Feb 2024 00:04:07 -0300 Subject: [PATCH] Make HTML5 work again --- .gitignore | 2 +- compile.hxml => compile-common.hxml | 2 -- compile-hl.hxml | 5 +++++ compile-js.hxml | 3 +++ makefile | 11 +++++++---- 5 files changed, 16 insertions(+), 7 deletions(-) rename compile.hxml => compile-common.hxml (75%) create mode 100644 compile-hl.hxml create mode 100644 compile-js.hxml diff --git a/.gitignore b/.gitignore index d53c698..5b450d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -**/*.hl +/bin/* diff --git a/compile.hxml b/compile-common.hxml similarity index 75% rename from compile.hxml rename to compile-common.hxml index 3481b3c..1268fc3 100644 --- a/compile.hxml +++ b/compile-common.hxml @@ -1,8 +1,6 @@ -cp src --macro Init.setup() -lib heaps --lib hlsdl -lib hxyarn --hl rewild.hl -main Main -lib domkit diff --git a/compile-hl.hxml b/compile-hl.hxml new file mode 100644 index 0000000..5b3982b --- /dev/null +++ b/compile-hl.hxml @@ -0,0 +1,5 @@ +compile-common.hxml + +-D windowTitle=StoneInAGlasshouse +-lib hlsdl +-hl bin/rewild.hl diff --git a/compile-js.hxml b/compile-js.hxml new file mode 100644 index 0000000..42baf65 --- /dev/null +++ b/compile-js.hxml @@ -0,0 +1,3 @@ +compile-common.hxml + +-js bin/rewild.js diff --git a/makefile b/makefile index fc16964..3161a89 100644 --- a/makefile +++ b/makefile @@ -1,12 +1,15 @@ .PHONY: watch -default: rewild.hl +default: bin/rewild.hl -rewild.hl: **/*.hx - haxe compile.hxml +bin/rewild.hl: **/*.hx + haxe compile-hl.hxml + +bin/rewild.js: **/*.hx + haxe compile-js.hxml clean: - rm rewild.hl + rm -f bin/rewild.hl bin/rewild.js watch: @inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make; done