orca/samples/pong/build.sh

16 lines
508 B
Bash
Raw Normal View History

2023-04-12 14:21:03 +00:00
#!/bin/bash
wasmFlags="--target=wasm32 \
--no-standard-libraries \
-fno-builtin \
-Wl,--no-entry \
-Wl,--export-all \
-Wl,--allow-undefined \
2023-04-14 09:48:36 +00:00
-g \
-D__ORCA__ \
-I ../../sdk -I ../../milepost/src -I ../../milepost/src/util -I ../../milepost/src/platform"
2023-04-12 14:21:03 +00:00
/usr/local/opt/llvm/bin/clang $wasmFlags -o ./module.wasm ../../sdk/graphics.c ../../sdk/orca.c src/main.c
2023-04-12 14:21:03 +00:00
python3 ../../scripts/mkapp.py --orca-dir ../.. --name Pong --icon icon.png module.wasm