build tasks
This commit is contained in:
parent
9989fab018
commit
9ad1f47e9d
2
.vscode/extensions.json
vendored
2
.vscode/extensions.json
vendored
@ -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
12
.vscode/settings.json
vendored
@ -1,4 +1,14 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
102
.vscode/tasks.json
vendored
102
.vscode/tasks.json
vendored
@ -1,51 +1,55 @@
|
||||
{
|
||||
"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"
|
||||
},
|
||||
"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",
|
||||
"group": "build"
|
||||
},
|
||||
{
|
||||
"label": "godot-rust: Build Release",
|
||||
"detail": "Builds release rust game library",
|
||||
"type": "shell",
|
||||
"command": "cargo build --release",
|
||||
"group": "build"
|
||||
},
|
||||
{
|
||||
"label": "godot-rust: Clean",
|
||||
"detail": "Removes all artifacts of rust game library and its dependencies",
|
||||
"type": "shell",
|
||||
"command": "cargo clean",
|
||||
"group": "build"
|
||||
}
|
||||
]
|
||||
}
|
||||
//Build Operations
|
||||
{
|
||||
"label": "godot-rust: Build Debug",
|
||||
"detail": "Builds debug rust game library",
|
||||
"type": "shell",
|
||||
"command": "cargo build",
|
||||
"group": { "kind": "build", "isDefault": true },
|
||||
"options": { "cwd": "${workspaceFolder}/rust" },
|
||||
"icon": { "id": "debug-alt" },
|
||||
"isBackground": false
|
||||
},
|
||||
{
|
||||
"label": "godot-rust: Build Release",
|
||||
"detail": "Builds release rust game library",
|
||||
"type": "shell",
|
||||
"command": "cargo build --release",
|
||||
"group": "build",
|
||||
"options": { "cwd": "${workspaceFolder}/rust" },
|
||||
"icon": { "id": "run" },
|
||||
"isBackground": false
|
||||
},
|
||||
{
|
||||
"label": "godot-rust: Clean",
|
||||
"detail": "Removes all artifacts of rust game library and its dependencies",
|
||||
"type": "shell",
|
||||
"command": "cargo clean",
|
||||
"group": "build",
|
||||
"options": { "cwd": "${workspaceFolder}/rust" },
|
||||
"isBackground": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user