-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
28 lines (17 loc) · 915 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cargo component build -r -p guest-mul
cp target/wasm32-wasi/release/guest_mul.wasm ./wasm-audio-plugin
cargo component build -r -p guest-sin
cp target/wasm32-wasi/release/guest_sin.wasm ./wasm-audio-plugin
cargo component build -r -p guest-techno
cp target/wasm32-wasi/release/guest_techno.wasm ./wasm-audio-plugin
cargo component build -r -p guest-reverb
cp target/wasm32-wasi/release/guest_reverb.wasm ./wasm-audio-plugin
# jco componentize ./guest-mul/mul.js --wit ./guest-mul/wit/world.wit -o ./wasm-audio-plugin/mul-js.wasm
# jco componentize ./guest-sin/sin.js --wit ./guest-sin/wit/world.wit -o ./wasm-audio-plugin/sin-js.wasm
cd wasm-audio-plugin
# jco opt sin-js.wasm -o sin-js-opt.wasm
# jco opt mul-js.wasm -o mul-js-opt.wasm
jco opt guest_mul.wasm -o mul-opt.wasm
jco opt guest_sin.wasm -o sin-opt.wasm
jco opt guest_techno.wasm -o techno-opt.wasm
jco opt guest_reverb.wasm -o reverb-opt.wasm