2023-10-04 14:20:49 +02:00
|
|
|
alias b := build
|
|
|
|
alias r := run
|
|
|
|
alias t := test
|
|
|
|
alias fmt := format
|
|
|
|
|
|
|
|
build:
|
|
|
|
zig build
|
|
|
|
|
2023-10-06 14:33:42 +02:00
|
|
|
web-build:
|
|
|
|
# zig build-lib src/main.zig -target wasm32-freestanding -dynamic -rdynamic
|
|
|
|
zig build -Dtarget=wasm32-emscripten --sysroot /nix/store/zll7a6ns3avx509kgx0jjghz8g89l2g0-emscripten-3.1.45
|
|
|
|
|
2023-10-04 14:20:49 +02:00
|
|
|
run:
|
|
|
|
nixGL zig build run
|
|
|
|
|
|
|
|
test:
|
|
|
|
zig build test
|
|
|
|
|
|
|
|
format:
|
|
|
|
fd -e zig -X zig fmt {}
|
2023-10-04 16:07:59 +02:00
|
|
|
|
|
|
|
update-deps:
|
|
|
|
curl https://raw.githubusercontent.com/raysan5/raygui/master/src/raygui.h --output 3rd-party/raygui.h
|