usdpl-rs/usdpl-front/build.sh

23 lines
818 B
Bash
Raw Normal View History

2022-06-08 01:05:04 +01:00
#!/bin/bash
if [ -n "$1" ]; then
if [ "$1" == "--help" ]; then
echo "Usage:
$0 [decky|crankshaft|<nothing>]"
exit 0
elif [ "$1" == "decky" ]; then
echo "Building WASM module for decky framework"
RUSTFLAGS="--cfg aes_compact" wasm-pack build --target web --features decky,$2
elif [ "$1" == "crankshaft" ]; then
echo "WARNING: crankshaft support is unimplemented"
RUSTFLAGS="--cfg aes_compact" wasm-pack build --target web --features crankshaft,$2
else
echo "Unsupported plugin framework \`$1\`"
exit 1
fi
else
echo "WARNING: Building for any plugin framework, which may not work for every framework"
RUSTFLAGS="--cfg aes_compact" wasm-pack build --target web --features debug,$2
fi
2022-06-08 01:05:04 +01:00
python3 ./scripts/generate_embedded_wasm.py