Sha256: dff737a4d8d3d6fa390a4f391213ac2b6f68eb8ce34cfc5383a15b8fd17f4f60

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

#! /bin/sh

export PREFIX="$(pwd)/libsodium-js"
export EXPORTED_FUNCTIONS='["_sodium_version_string"]'
export OPTFLAGS="--llvm-lto 3 -Oz"
export CFLAGS="$OPTFLAGS --pre-js=test/default/pre.js "
export LDFLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS}"

emconfigure ./configure --disable-shared --prefix="$PREFIX" && \
emmake make clean &&
emmake make install &&
emcc --closure 1 $OPTFLAGS $LDFLAGS \
  "${PREFIX}/lib/libsodium.a" -o "${PREFIX}/lib/libsodium.js"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rbnacl-libsodium-0.6.0 vendor/libsodium/dist-build/emscripten.sh
rbnacl-libsodium-0.5.0.1 vendor/libsodium/dist-build/emscripten.sh
rbnacl-libsodium-0.5.0.1.pre vendor/libsodium/dist-build/emscripten.sh
rbnacl-libsodium-0.5.0 vendor/libsodium/dist-build/emscripten.sh