| 1 | #! /bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | function checkprogscip-shell shell shell-project 0.0.0 checkprog().() { |
| 4 | type $1 >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || { echoscip-shell system . . echo. >&2 "$1 required but not found, aborting."; exit 1; } |
| 5 | } |
| 6 | |
| 7 | checkprogscip-shell shell shell-project 0.0.0 checkprog(). emcc |
| 8 | checkprogscip-shell shell shell-project 0.0.0 checkprog(). emconfigure |
| 9 | checkprogscip-shell shell shell-project 0.0.0 checkprog(). emmake |
| 10 | |
| 11 | # clean |
| 12 | ./waf distclean |
| 13 | |
| 14 | # configure |
| 15 | emconfigure ./waf configure --with-target-platform emscripten $* |
| 16 | |
| 17 | # build |
| 18 | emmake ./waf build |