-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Glecs GDExtension tweaks, rework VSCode launch and taks, update flecs…
…-rs, unittests.yml
- Loading branch information
1 parent
827d216
commit 7400294
Showing
7 changed files
with
127 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,10 @@ jobs: | |
--manifest-path \./addons/glecs/rust/glecs/Cargo.toml \ | ||
--features compile_bindings \ | ||
--target-dir ./addons/glecs/bin | ||
cargo build --release --verbose \ | ||
--manifest-path \./addons/glecs/rust/glecs/Cargo.toml \ | ||
--features compile_bindings \ | ||
--target-dir ./addons/glecs/bin | ||
- uses: croconut/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Debug Game", | ||
"preLaunchTask": "godot-rust: Build Debug", | ||
"type": "lldb", | ||
"request": "launch", | ||
"program": "${config:godot-rust.environment.godotEditorPath}", | ||
"cwd": "${config:godot-rust.environment.godotProjectPath}", | ||
"presentation": { | ||
"group": "Debug", | ||
"order": 1 | ||
} | ||
}, | ||
{ | ||
"name": "Release Game", | ||
"preLaunchTask": "godot-rust: Build Release", | ||
"type": "lldb", | ||
"request": "launch", | ||
"program": "${config:godot-rust.environment.godotEditorPath}", | ||
"cwd": "${config:godot-rust.environment.godotProjectPath}", | ||
"presentation": { | ||
"group": "Debug", | ||
"order": 2 | ||
} | ||
}, | ||
{ | ||
"name": "Attach to Game", | ||
"pid": "${command:pickMyProcess}", | ||
"type": "lldb", | ||
"request": "attach", | ||
"program": "${config:godot-rust.environment.godotEditorPath}", | ||
"port": 6007, | ||
"presentation": { | ||
"group": "Debug", | ||
"order": 3 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
//Godot Editor Operations | ||
{ | ||
"label": "godot-rust: Launch Debug Editor", | ||
"detail": "Builds debug rust game library, then opens the project with Godot Editor", | ||
"dependsOn": "godot-rust: Build Debug", | ||
"type": "shell", | ||
"options": { | ||
"cwd": "${config:godot-rust.environment.godotProjectPath}" | ||
}, | ||
"command": "${config:godot-rust.environment.godotEditorPath} --editor", | ||
"group": "build" | ||
}, | ||
{ | ||
"label": "godot-rust: Launch Release Editor", | ||
"detail": "Builds release rust game library, then opens the project with Godot Editor", | ||
"dependsOn": "godot-rust: Build Release", | ||
"type": "shell", | ||
"options": { | ||
"cwd": "${config:godot-rust.environment.godotProjectPath}" | ||
}, | ||
"command": "${config:godot-rust.environment.godotEditorPath} --editor", | ||
"group": "build" | ||
}, | ||
|
||
//Build Operations | ||
{ | ||
"label": "godot-rust: Build Debug", | ||
"detail": "Builds debug rust game library", | ||
"type": "shell", | ||
"command": "cargo build --manifest-path ./addons/glecs/rust/glecs/Cargo.toml --target-dir ./addons/glecs/bin", | ||
"group": "build" | ||
}, | ||
{ | ||
"label": "godot-rust: Build Release", | ||
"detail": "Builds release rust game library", | ||
"type": "shell", | ||
"command": "cargo build --release --manifest-path ./addons/glecs/rust/glecs/Cargo.toml --target-dir ./addons/glecs/bin", | ||
"group": "build" | ||
}, | ||
{ | ||
"label": "godot-rust: Clean", | ||
"detail": "Removes all artifacts of rust game library and its dependencies", | ||
"type": "shell", | ||
"command": "cargo clean --manifest-path ./addons/glecs/rust/glecs/Cargo.toml --target-dir ./addons/glecs/bin", | ||
"group": "build" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[configuration] | ||
entry_symbol = "gdext_rust_init" | ||
compatibility_minimum = 4.2 | ||
reloadable = true | ||
|
||
[libraries] | ||
|
||
linux.release.x86_64 = "./bin/x86_64-unknown-linux-gnu/release/libglecs.so" | ||
linux.debug.x86_64 = "./bin/x86_64-unknown-linux-gnu/debug/libglecs.so" | ||
|
||
windows.release.x86_64 = "./bin/x86_64-pc-windows-gnu/release/libglecs.dll" | ||
windows.debug.x86_64 = "./bin/x86_64-pc-windows-gnu/debug/libglecs.dll" | ||
|
||
macos.release.x86_64 = "./bin/x86_64-apple-darwin/release/libglecs.dylib" | ||
macos.debug.x86_64 = "./bin/x86_64-apple-darwin/debug/libglecs.dylib" | ||
macos.release.arm64 = "./bin/x86_64-apple-darwin/release/libglecs.dylib" | ||
macos.debug.arm64 = "./bin/x86_64-apple-darwin/debug/libglecs.dylib" |
Submodule flecs-rs
updated
4 files
+5 −4 | src/component.rs | |
+2 −1 | src/entity.rs | |
+3 −3 | src/system.rs | |
+7 −6 | src/world.rs |