build(rust): add a build script for debug (dev), make build scripts show running commands

This commit is contained in:
dusk 2024-09-29 04:09:36 +03:00
parent d1f6e18b94
commit ea13a6eb56
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
2 changed files with 12 additions and 0 deletions

10
rust/build-debug.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -x
cargo build
cd ..
cp -f rust/target/debug/libboids.so addons/boids/lib/boids.x86.so
cp -f rust/target/debug/boids.dll addons/boids/lib/boids.x86.dll

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -x
cross build --release --target x86_64-unknown-linux-gnu
cross build --release --target x86_64-pc-windows-gnu
cross +nightly build -Zbuild-std --release --target wasm32-unknown-emscripten