Compare commits
5 Commits
5474c073f5
...
fa180e90fd
Author | SHA1 | Date | |
---|---|---|---|
fa180e90fd | |||
ca5733d61d | |||
4c5176ca48 | |||
848d528d51 | |||
1f74a1acfb |
@ -1,16 +1,16 @@
|
|||||||
[configuration]
|
[configuration]
|
||||||
entry_symbol = "gdext_rust_init"
|
entry_symbol = "gdext_rust_init"
|
||||||
compatibility_minimum = 4.2
|
compatibility_minimum = 4.3
|
||||||
reloadable = true
|
reloadable = true
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
linux.debug.x86_64 = "res://rust/target/debug/libboids.so"
|
linux.debug.x86_64 = "res://addons/boids/lib/boids.x86.so"
|
||||||
windows.debug.x86_64 = "res://rust/target/debug/boids.dll"
|
windows.debug.x86_64 = "res://addons/boids/lib/boids.x86.dll"
|
||||||
linux.release.x86_64 = "res://addons/boids/lib/libboids.x86.so"
|
web.debug.wasm32 = "res://addons/boids/lib/boids.wasm"
|
||||||
|
linux.release.x86_64 = "res://addons/boids/lib/boids.x86.so"
|
||||||
windows.release.x86_64 = "res://addons/boids/lib/boids.x86.dll"
|
windows.release.x86_64 = "res://addons/boids/lib/boids.x86.dll"
|
||||||
macos.release = "res://addons/boids/lib/libboids.x86.dylib"
|
macos.release = "res://addons/boids/lib/boids.x86.dylib"
|
||||||
macos.release.arm64 = "res://addons/boids/lib/libboids.arm64.dylib"
|
macos.release.arm64 = "res://addons/boids/lib/boids.arm64.dylib"
|
||||||
web.debug.wasm32 = "res://rust/target/wasm32-unknown-emscripten/debug/boids.wasm"
|
|
||||||
web.release.wasm32 = "res://addons/boids/lib/boids.wasm"
|
web.release.wasm32 = "res://addons/boids/lib/boids.wasm"
|
||||||
|
|
||||||
[icons]
|
[icons]
|
||||||
|
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.
@ -3,5 +3,5 @@
|
|||||||
name="Boids"
|
name="Boids"
|
||||||
description="Addon that implements 2D/3D boids / flocking in Godot."
|
description="Addon that implements 2D/3D boids / flocking in Godot."
|
||||||
author="yusdacra"
|
author="yusdacra"
|
||||||
version="0.1"
|
version="0.1.1"
|
||||||
script="boids.gd"
|
script="boids.gd"
|
||||||
|
@ -19,5 +19,9 @@ indexmap = "2.4.0"
|
|||||||
[target.wasm32-unknown-emscripten.dependencies]
|
[target.wasm32-unknown-emscripten.dependencies]
|
||||||
godot = { git = "https://github.com/godot-rust/gdext", branch = "master", features = ["api-4-3", "register-docs", "experimental-wasm", "lazy-function-tables"] }
|
godot = { git = "https://github.com/godot-rust/gdext", branch = "master", features = ["api-4-3", "register-docs", "experimental-wasm", "lazy-function-tables"] }
|
||||||
|
|
||||||
[profile.dev]
|
[profile.release]
|
||||||
opt-level = 1
|
opt-level = 3
|
||||||
|
strip = "debuginfo"
|
||||||
|
lto = "thin"
|
||||||
|
incremental = true
|
||||||
|
codegen-units = 256
|
||||||
|
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
|
||||||
|
|
||||||
|
cp -f target/x86_64-unknown-linux-gnu/release/libboids.so ../addons/boids/lib/boids.x86.so
|
||||||
|
cp -f target/x86_64-pc-windows-gnu/release/boids.dll ../addons/boids/lib/boids.x86.dll
|
||||||
|
cp -f target/wasm32-unknown-emscripten/release/boids.wasm ../addons/boids/lib/boids.wasm
|
Loading…
Reference in New Issue
Block a user