Files
autosample/.vscode/tasks.json

78 lines
2.4 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "bootstrap",
"type": "shell",
"command": "cc",
"args": ["build.c", "-o", "build"],
"windows": {
"command": "cl",
"args": ["/nologo", "build.c"]
},
"group": "build",
"problemMatcher": [],
"detail": "One-time bootstrap: compile build.c"
},
{
"label": "build",
"type": "shell",
"command": "${workspaceFolder}/build",
"windows": {
"command": "${workspaceFolder}/build.exe"
},
"group": "build",
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
"regexp": "^(.+?):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"detail": "Build autosample (release)"
},
{
"label": "build-debug",
"type": "shell",
"command": "${workspaceFolder}/build",
"args": ["debug"],
"windows": {
"command": "${workspaceFolder}/build.exe",
"args": ["debug"]
},
"group": "build",
"problemMatcher": {
"owner": "c",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
"regexp": "^(.+?):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"detail": "Build autosample (debug)"
},
{
"label": "clean",
"type": "shell",
"command": "${workspaceFolder}/build",
"args": ["clean"],
"windows": {
"command": "${workspaceFolder}/build.exe",
"args": ["clean"]
},
"group": "build",
"problemMatcher": [],
"detail": "Clean build artifacts via build.c"
}
]
}