Emscripten: add a file to mark that the build completed, for libsodium.js

This commit is contained in:
Frank Denis 2015-01-15 10:59:06 +01:00
parent 820a2b70e3
commit cd67cb17e5
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -55,6 +55,7 @@ src/curvecp/curvecpserver
src/libsodium/*.def
src/libsodium/include/sodium/version.h
stamp-*
test/js.done
test/default/*.res
test/default/*.trs
test/default/aead_chacha20poly1305

View File

@ -7,6 +7,8 @@ export TOTAL_MEMORY=33554432
export JS_EXPORTS_FLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS}"
export LDFLAGS="-s TOTAL_MEMORY=${TOTAL_MEMORY}"
rm -f test/js.done
emconfigure ./configure --enable-minimal --disable-shared --prefix="$PREFIX" \
CFLAGS="-O3" && \
emmake make clean && \
@ -45,4 +47,6 @@ echo 'sodium_utils2 and sodium_utils3 are expected to fail in Javascript.'
mv -f "${file}.tmp" "$file"
done
)
make $MAKE_FLAGS check && echo 'Done.'
make $MAKE_FLAGS check
echo 'Done.'
touch -r "${PREFIX}/lib/libsodium.js" test/js.done