snakePlus/.vscode/tasks.json
2022-09-26 23:22:38 +02:00

130 lines
3.5 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run new build",
"type": "shell",
"command": "cd ${workspaceFolder} && pwd && make run",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
}
},
{
"label": "Copy new build to SD",
"type": "shell",
"command": "cd ${workspaceFolder} && pwd && make install",
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": false
}
},
{
"label": "make debug",
"type": "process",
"command": "make",
"args": [
"DEBUG=1"
],
"problemMatcher": []
},
{
"label": "make release",
"type": "process",
"command": "make",
"args": [
"DEBUG=0"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "clean",
"type": "process",
"command": "make",
"args": [
"clean"
],
"problemMatcher": []
},
{
"label": "run",
"type": "shell",
"isBackground": true,
"command": "desmume-cli",
"args": [
"${workspaceFolder}/${workspaceFolderBasename}.nds"
],
"presentation": {
"clear": true,
"reveal": "always"
},
"problemMatcher": []
},
{
"label": "gdb-debug",
"type": "shell",
"dependsOn": [
"make debug"
],
"isBackground": true,
"command": "desmume-cli",
"args": [
"${workspaceFolder}/${workspaceFolderBasename}.nds",
"--arm9gdb",
"20000"
],
"presentation": {
"clear": true,
"reveal": "always"
},
"problemMatcher": [
{
"pattern": [
{
"regexp": ".",
"file": 1,
"location": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": ".",
"endsPattern": ".",
}
}
]
},
{
"label": "stop-emulation",
"type": "shell",
"command": "pkill",
"args": [
"--signal",
"9",
"desmume-cli"
],
"problemMatcher": []
}
]
}