# HG changeset patch # User Chris Cannam # Date 1414657807 0 # Node ID e9d2ba7cce9594322620ae4504c0d73c7fb61a30 # Parent 2356fa4a4fd7d7059e36a26fb976729cbf0ef3ee Emscripten hacky stuff diff -r 2356fa4a4fd7 -r e9d2ba7cce95 .hgsubstate --- a/.hgsubstate Thu Oct 16 14:54:43 2014 +0100 +++ b/.hgsubstate Thu Oct 30 08:30:07 2014 +0000 @@ -1,17 +1,17 @@ 2c7803df84b8d2e1b9d19c82a63a985d4c020cec constant-q-cpp -89929e9e54fb42df57d093c2ddbc78059669feba match-vamp +e6a143e4e143eef32a6068270ba74fd0d2c79516 match-vamp ca32a96c123a2c3f7548e37a8d5f4205632bdd9d mazurka-plugins 6408759460777522101d3310de8e6852a1a1af61 nnls-chroma e83e6bb1367a5524db9c6f41cec3445eccad1a5f predomino 00cffb79d0e0d84e63914c0079601145fa6997ae pyin 6c9ab70d23861140f918024c875b7dd92bd6a04d qm-vamp-plugins 11a826034a9d67fc3ba36ceea052ccd4554f82f2 segmenter-vamp-plugin -19fd6cb033c7f00b6629a455006cf2e394886efd silvet +a3229b972463034933584aa59cf8b25323a46e2f silvet b835875739968beb870e7e09132aa361656a8a30 vamp-aubio-plugins 81146373f024be1c82371f04262cf2ae1680cb61 vamp-libxtract-plugins 8bc4ec815b6b695371dc9dda500191892ca5d2a7 vamp-onsetsds-plugin 632d90c185ecc8655f7a85ba58dc568351449dfd vamp-plugin-sdk 86d8a699dfbed931a8e53a7db42af4098f760695 vamp-plugin-tester -a3d463ea7a574737b5c899819f1f07708692dd1f vamp-tempogram +02721bb9c4f07dadfe5fd32e2ac9d6f6958749a5 vamp-tempogram a7bd1daac7f3c1472abbdc16850c2e5935113790 vamp-test-plugin 0df94e3f0fdb6eac02860655503e242a86cbb671 vampy diff -r 2356fa4a4fd7 -r e9d2ba7cce95 SCRIPTS/process.sh --- a/SCRIPTS/process.sh Thu Oct 16 14:54:43 2014 +0100 +++ b/SCRIPTS/process.sh Thu Oct 30 08:30:07 2014 +0000 @@ -32,7 +32,7 @@ echo echo "Usage: $0 [-c] [ ...]" echo - echo " one of native, linux32, linux64, mingw32, mingw64, osx32, osx64" + echo " one of native, linux32, linux64, mingw32, mingw64, osx32, osx64, emscripten" echo " -c build from clean" echo " directory to build (default is all of them)" echo @@ -124,6 +124,19 @@ archflags="-mmacosx-version-min=10.6 -arch x86_64 -arch i386" identpattern='Mach-O 64-bit .*x86_64' ;; + emscripten) + platform=emscripten + bits=32 + toolprefix= + pluginext=.so + hostwrapper= + hostext= + makewrapper=emmake + configwrapper=emconfigure + valgrind= + archflags= + identpattern='not known yet' + ;; esac; shift @@ -173,7 +186,9 @@ configure() { dir="$1" if [ -f "$dir/configure" ] ; then - ( cd "$dir" ; ./configure ) 2>&1 | tee "$reportdir/$dir.configure.txt" + ( cd "$dir" ; $configwrapper ./configure ) 2>&1 | \ + tee "$reportdir/$dir.configure.txt" + return ${PIPESTATUS[0]} fi } @@ -234,7 +249,7 @@ CXXFLAGS="-I${depincdir} -I${depincdir_generic} -I../vamp-plugin-sdk" \ LDFLAGS="-L${deplibdir} -L../vamp-plugin-sdk" \ ARCHFLAGS="$archflags" \ - make -C "$dir" -f "$mfile" $target 2>&1 | \ + $makewrapper make -C "$dir" -f "$mfile" $target 2>&1 | \ tee "$log" return ${PIPESTATUS[0]} else @@ -250,7 +265,7 @@ if configure_maybe "$dir"; then mfile=$(find_makefile "$dir") if [ -n "$mfile" ]; then - if make -C "$dir" -f "$mfile" clean; then + if $makewrapper make -C "$dir" -f "$mfile" clean; then build "$dir" else echo "Failed to 'make clean' in $dir!" | tee "$log"