usdpl-rs/usdpl-front/build.sh

23 lines
702 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"
wasm-pack build --target web --features decky
elif [ "$1" == "crankshaft" ]; then
echo "WARNING: crankshaft support is unimplemented"
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"
wasm-pack build --target web
fi
2022-06-08 01:05:04 +01:00
python3 ./scripts/generate_embedded_wasm.py