build tasks

This commit is contained in:
Joey Eamigh 2025-10-10 14:32:53 -04:00
parent 9989fab018
commit 9ad1f47e9d
No known key found for this signature in database
GPG Key ID: CE8C05DFFC53C9CB
3 changed files with 65 additions and 51 deletions

View File

@ -1,3 +1,3 @@
{ {
"recommendations": ["dsobotta.godot-rust-vscode", "geequlim.godot-tools"] "recommendations": ["dsobotta.godot-rust-vscode", "geequlim.godot-tools", "spencerwmiles.vscode-task-buttons"]
} }

12
.vscode/settings.json vendored
View File

@ -1,4 +1,14 @@
{ {
"godot-rust.environment.godotEditorPath": "/Applications/Godot.app", "godot-rust.environment.godotEditorPath": "/Applications/Godot.app",
"godot-rust.environment.godotProjectPath": "${workspaceFolder}/godot/" "godot-rust.environment.godotProjectPath": "${workspaceFolder}/godot/",
"VsCodeTaskButtons.tasks": [
{
"label": "$(debug-alt) Build",
"alignment": "left",
"task": "godot-rust: Build Debug",
"tooltip": "Builds debug rust game library",
"description": "Build (Debug)",
"color": "default"
}
]
} }

22
.vscode/tasks.json vendored
View File

@ -7,9 +7,7 @@
"detail": "Builds debug rust game library, then opens the project with Godot Editor", "detail": "Builds debug rust game library, then opens the project with Godot Editor",
"dependsOn": "godot-rust: Build Debug", "dependsOn": "godot-rust: Build Debug",
"type": "shell", "type": "shell",
"options": { "options": { "cwd": "${config:godot-rust.environment.godotProjectPath}" },
"cwd": "${config:godot-rust.environment.godotProjectPath}"
},
"command": "${config:godot-rust.environment.godotEditorPath} --editor", "command": "${config:godot-rust.environment.godotEditorPath} --editor",
"group": "build" "group": "build"
}, },
@ -18,9 +16,7 @@
"detail": "Builds release rust game library, then opens the project with Godot Editor", "detail": "Builds release rust game library, then opens the project with Godot Editor",
"dependsOn": "godot-rust: Build Release", "dependsOn": "godot-rust: Build Release",
"type": "shell", "type": "shell",
"options": { "options": { "cwd": "${config:godot-rust.environment.godotProjectPath}" },
"cwd": "${config:godot-rust.environment.godotProjectPath}"
},
"command": "${config:godot-rust.environment.godotEditorPath} --editor", "command": "${config:godot-rust.environment.godotEditorPath} --editor",
"group": "build" "group": "build"
}, },
@ -31,21 +27,29 @@
"detail": "Builds debug rust game library", "detail": "Builds debug rust game library",
"type": "shell", "type": "shell",
"command": "cargo build", "command": "cargo build",
"group": "build" "group": { "kind": "build", "isDefault": true },
"options": { "cwd": "${workspaceFolder}/rust" },
"icon": { "id": "debug-alt" },
"isBackground": false
}, },
{ {
"label": "godot-rust: Build Release", "label": "godot-rust: Build Release",
"detail": "Builds release rust game library", "detail": "Builds release rust game library",
"type": "shell", "type": "shell",
"command": "cargo build --release", "command": "cargo build --release",
"group": "build" "group": "build",
"options": { "cwd": "${workspaceFolder}/rust" },
"icon": { "id": "run" },
"isBackground": false
}, },
{ {
"label": "godot-rust: Clean", "label": "godot-rust: Clean",
"detail": "Removes all artifacts of rust game library and its dependencies", "detail": "Removes all artifacts of rust game library and its dependencies",
"type": "shell", "type": "shell",
"command": "cargo clean", "command": "cargo clean",
"group": "build" "group": "build",
"options": { "cwd": "${workspaceFolder}/rust" },
"isBackground": false
} }
] ]
} }