source: scripts/build_emscripten @ d21a4b1

feature/autosinkfeature/constantqfeature/pitchshiftfeature/pydocstringsfeature/timestretchpitchshiftsamplertimestretchyinfft+
Last change on this file since d21a4b1 was d21a4b1, checked in by Paul Brossier <piem@piem.org>, 4 years ago

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

  • Property mode set to 100755
File size: 398 bytes
Line 
1#! /bin/sh
2
3function checkprog() {
4  type $1 >/dev/null 2>&1 || { echo >&2 "$1 required but not found, aborting."; exit 1; }
5}
6
7checkprog emcc
8checkprog emconfigure
9checkprog emmake
10
11# clean
12emmake ./waf distclean
13
14# configure
15emconfigure ./waf configure --prefix=$EMSCRIPTEN/system/local/ --with-target-platform emscripten
16
17# build
18emmake ./waf --testcmd="node %s"
19
20# intall
21#emmake ./waf install
Note: See TracBrowser for help on using the repository browser.