fix: rebuild libraries, fix paths again
This commit is contained in:
parent
4c5176ca48
commit
ca5733d61d
@ -1,12 +1,12 @@
|
|||||||
[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/boids.x86.editor.so"
|
linux.debug.x86_64 = "res://addons/boids/lib/boids.x86.so"
|
||||||
windows.debug.x86_64 = "res://rust/target/debug/boids.x86.editor.dll"
|
windows.debug.x86_64 = "res://addons/boids/lib/boids.x86.dll"
|
||||||
web.debug.wasm32 = "res://addons/boids/lib/boids.editor.wasm"
|
web.debug.wasm32 = "res://addons/boids/lib/boids.wasm"
|
||||||
linux.release.x86_64 = "res://addons/boids/lib/boids.x86.so"
|
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/boids.x86.dylib"
|
macos.release = "res://addons/boids/lib/boids.x86.dylib"
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
||||||
|
@ -1,17 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "$1" == "release" ]; then
|
cross build --release --target x86_64-unknown-linux-gnu
|
||||||
cross build --release --target x86_64-unknown-linux-gnu
|
cross build --release --target x86_64-pc-windows-gnu
|
||||||
cross build --release --target x86_64-pc-windows-gnu
|
cross +nightly build -Zbuild-std --release --target wasm32-unknown-emscripten
|
||||||
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
|
cp -f 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
|
cp -f 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
|
cp -f target/wasm32-unknown-emscripten/release/boids.wasm ../addons/boids/lib/boids.wasm
|
||||||
else
|
|
||||||
cross build --target x86_64-unknown-linux-gnu
|
|
||||||
cross build --target x86_64-pc-windows-gnu
|
|
||||||
cross +nightly build -Zbuild-std --target wasm32-unknown-emscripten
|
|
||||||
mv target/x86_64-unknown-linux-gnu/debug/libboids.so ../addons/boids/lib/boids.x86.editor.so
|
|
||||||
mv target/x86_64-pc-windows-gnu/debug/boids.dll ../addons/boids/lib/boids.x86.editor.dll
|
|
||||||
mv target/wasm32-unknown-emscripten/debug/boids.wasm ../addons/boids/lib/boids.editor.wasm
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user