use raygui

This commit is contained in:
Fabien Freling 2022-02-15 13:17:14 +01:00
parent 8d91216f24
commit 81463d9eb0
9 changed files with 4589 additions and 83 deletions

View file

@ -3,6 +3,9 @@ exe_cli := "./packing_cli"
exe_gui := "./packing_gui"
build_sh := "build.sh"
params := "lenna.png 0 0 64 64 100 100 200 164 80 200 150 420"
build-raylib:
cd src/3rd-party/raylib-4.0.0/src && \
make CC=clang \
@ -17,10 +20,10 @@ build-gui: build-raylib
tup {{exe_gui}}
run-cli: build-cli
{{exe_cli}} lenna.png 0 0 64 64 100 100 200 164 80 200 150 420
{{exe_cli}} {{params}}
run-gui: build-gui
nixGL {{exe_gui}} lenna.png 0 0 64 64 100 100 200 164 80 200 150 420
nixGL {{exe_gui}} {{params}}
generate-build:
git clean -xf src/
@ -28,7 +31,7 @@ generate-build:
tup generate {{build_sh}}
debug: build-cli
lldb {{exe_cli}}
lldb {{exe_cli}} {{params}}
archive: generate-build
git archive --add-file={{build_sh}} --output={{name}}.zip --prefix={{name}}/ HEAD