source:
scripts/build_emscripten
@
98ceec5d
Last change on this file since 98ceec5d was 0897260, checked in by , 7 years ago | |
---|---|
|
|
File size: 315 bytes |
Rev | Line | |
---|---|---|
[0897260] | 1 | #! /bin/bash |
[d21a4b1] | 2 | |
3 | function checkprog() { | |
4 | type $1 >/dev/null 2>&1 || { echo >&2 "$1 required but not found, aborting."; exit 1; } | |
5 | } | |
6 | ||
7 | checkprog emcc | |
8 | checkprog emconfigure | |
9 | checkprog emmake | |
10 | ||
11 | # clean | |
[0897260] | 12 | ./waf distclean |
[d21a4b1] | 13 | |
14 | # configure | |
[0897260] | 15 | emconfigure ./waf configure --with-target-platform emscripten $* |
[d21a4b1] | 16 | |
17 | # build | |
[0897260] | 18 | emmake ./waf build |
Note: See TracBrowser
for help on using the repository browser.