27 lines
778 B
Makefile
27 lines
778 B
Makefile
alias b := build
|
|
alias r := run
|
|
alias t := test
|
|
alias fmt := format
|
|
|
|
build:
|
|
zig build
|
|
|
|
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
|
|
|
|
run: build
|
|
nixGL zig build run
|
|
|
|
test:
|
|
zig build test
|
|
|
|
format:
|
|
fd -e zig -X zig fmt {}
|
|
fd -e nix -X nix fmt {}
|
|
|
|
update-deps:
|
|
# We cannot easily add header-only C library with package manager
|
|
curl https://raw.githubusercontent.com/raysan5/raygui/master/src/raygui.h --remote-name --output-dir 3rd-party/
|
|
curl https://raw.githubusercontent.com/raysan5/raygui/master/examples/custom_file_dialog/gui_window_file_dialog.h --remote-name --output-dir 3rd-party/
|