Skip to content

Commit

Permalink
Add build and run tasks for VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
fruhland committed Feb 22, 2024
1 parent 21a7308 commit 48db0f0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"version": "0.2.0",
"configurations": [

{
"name": "qemu-gdb",
"type": "cppdbg",
Expand Down
33 changes: 28 additions & 5 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "clean",
"group": "build",
"type": "shell",
"isBackground": false,
"command": "cargo",
"args": [ "make", "clean" ],
"problemMatcher": []
},
{
"label": "build",
"group": "build",
"type": "shell",
"isBackground": false,
"command": "cargo",
"args": [ "make", "--no-workspace", "--profile", "development" ],
"problemMatcher": []
},
{
"label": "qemu",
"type": "shell",
"isBackground": false,
"command": "${workspaceRoot}/run.sh",
"args": [],
"problemMatcher": [],
"dependsOn": "build"
},
{
"label": "qemu-gdb",
"type": "shell",
Expand All @@ -24,11 +51,7 @@
}
}
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false
}
"dependsOn": "build"
}
]
}

0 comments on commit 48db0f0

Please sign in to comment.