build (333B)
1 #!/usr/bin/env bash 2 mkdir -p build include 3 4 ln -sf ../raylib/src/raylib.h include/raylib.h 5 6 emcc -o build/game.html \ 7 src/game.c \ 8 -Os \ 9 -Wall \ 10 ./raylib/libraylib.a \ 11 -I. \ 12 -Iinclude \ 13 -L. \ 14 -L./raylib/libraylib.a \ 15 --preload-file assets \ 16 -s USE_GLFW=3 \ 17 --shell-file raylib/src/shell.html \ 18 -DPLATFORM_WEB