Files
autosample/.vscode/tasks.json
2026-03-12 16:30:04 -04:00

78 lines
2.5 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": "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 (debug)"
},
{
"label": "clean",
"type": "shell",
"command": "rm",
"args": ["-rf", "build_debug", "build_release"],
"windows": {
"command": "PowerShell",
"args": ["-Command", "Remove-Item -Recurse -Force -ErrorAction SilentlyContinue build_debug, build_release"]
},
"group": "build",
"problemMatcher": [],
"detail": "Remove build directories"
}
]
}