shithub: aubio

ref: e00515a9d7d03b30af0d55f8b217e3fff28a0fdf
dir: /scripts/build_emscripten/

View raw version
#! /usr/bin/env 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