shithub: aubio

Download patch

ref: d21a4b16afd6d962be45604f2681e2346695e159
parent: fb5838a58b55433e51753b2a82f59eb22d792fdd
author: Paul Brossier <piem@piem.org>
date: Tue Feb 16 10:44:44 EST 2016

scripts/build_emscripten: add script to build with emcc and co

--- /dev/null
+++ b/scripts/build_emscripten
@@ -1,0 +1,21 @@
+#! /bin/sh
+
+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
+emmake ./waf distclean
+
+# configure
+emconfigure ./waf configure --prefix=$EMSCRIPTEN/system/local/ --with-target-platform emscripten
+
+# build
+emmake ./waf --testcmd="node %s"
+
+# intall
+#emmake ./waf install