feat: add linux library
This commit is contained in:
parent
c9d4d04979
commit
1f74a1acfb
BIN
addons/boids/lib/boids.wasm
Normal file → Executable file
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
BIN
addons/boids/lib/boids.x86.dll
Normal file → Executable file
Binary file not shown.
BIN
addons/boids/lib/boids.x86.so
Executable file
BIN
addons/boids/lib/boids.x86.so
Executable file
Binary file not shown.
@ -4,4 +4,4 @@ rustflags = [
|
|||||||
"-C", "link-args=-pthread", # was -sUSE_PTHREADS=1 in earlier emscripten versions
|
"-C", "link-args=-pthread", # was -sUSE_PTHREADS=1 in earlier emscripten versions
|
||||||
"-C", "target-feature=+atomics,+bulk-memory,+mutable-globals",
|
"-C", "target-feature=+atomics,+bulk-memory,+mutable-globals",
|
||||||
"-Zlink-native-libraries=no"
|
"-Zlink-native-libraries=no"
|
||||||
]
|
]
|
||||||
|
9
rust/build.sh
Executable file
9
rust/build.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user