usdpl-rs/usdpl-front/build.sh

23 lines
792 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"
2022-07-24 19:45:48 +01:00
RUSTFLAGS="--cfg aes_compact" wasm-pack build --target web --features decky
elif [ "$1" == "crankshaft" ]; then
echo "WARNING: crankshaft support is unimplemented"
2022-07-24 19:45:48 +01:00
RUSTFLAGS="--cfg aes_compact" wasm-pack build --target web --features crankshaft
else
echo "Unsupported plugin framework \`$1\`"
exit 1
fi
else
echo "WARNING: Building for any plugin framework, which may not work for every framework"
2022-07-24 19:45:48 +01:00
RUSTFLAGS="--cfg aes_compact" wasm-pack build --target web
fi
2022-06-08 01:05:04 +01:00
python3 ./scripts/generate_embedded_wasm.py