shithub: aubio

ref: 67c06d8d82bb776a5c804438799d23cdc2f3b10c
dir: /scripts/build_emscripten/

View raw version
#! /bin/bash

function checkprog() {
  type $1 >/dev/null 2>&1 || { echo >&2 "$1 required but not found, aborting."; exit 1; }
}

checkprog emcc
checkprog emconfigure
checkprog emmake

# clean
./waf distclean

# configure
emconfigure ./waf configure --with-target-platform emscripten $*

# build
emmake ./waf build