orca/samples/pong/build.sh

15 lines
546 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-dynamic \
2023-04-14 09:48:36 +00:00
-g \
-D__ORCA__ \
2023-05-09 16:44:23 +00:00
-I ../../src -I ../../sdk -I../../milepost/ext -I ../../milepost -I ../../milepost/src -I ../../milepost/src/util -I ../../milepost/src/platform -I../.."
2023-04-12 14:21:03 +00:00
/usr/local/opt/llvm/bin/clang $wasmFlags -o ./module.wasm ../../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 --data-file data/ball.png module.wasm