feat: add linux library

This commit is contained in:
dusk 2024-09-13 00:37:47 +09:00
parent c9d4d04979
commit 1f74a1acfb
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
5 changed files with 10 additions and 1 deletions

BIN
addons/boids/lib/boids.wasm Normal file → Executable file

Binary file not shown.

BIN
addons/boids/lib/boids.x86.dll Normal file → Executable file

Binary file not shown.

BIN
addons/boids/lib/boids.x86.so Executable file

Binary file not shown.

View File

@ -4,4 +4,4 @@ rustflags = [
"-C", "link-args=-pthread", # was -sUSE_PTHREADS=1 in earlier emscripten versions
"-C", "target-feature=+atomics,+bulk-memory,+mutable-globals",
"-Zlink-native-libraries=no"
]
]

9
rust/build.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
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
mv target/x86_64-unknown-linux-gnu/release/libboids.so ../addons/boids/lib/boids.x86.so
mv target/x86_64-pc-windows-gnu/release/boids.dll ../addons/boids/lib/boids.x86.dll
mv target/wasm32-unknown-emscripten/release/boids.wasm ../addons/boids/lib/boids.wasm