50 lines
1.5 KiB
JSON
50 lines
1.5 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "bootstrap nob",
|
|
"type": "shell",
|
|
"command": "cl",
|
|
"args": ["/nologo", "nob.c"],
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile",
|
|
"detail": "One-time bootstrap: compile nob.c with cl.exe"
|
|
},
|
|
{
|
|
"label": "build",
|
|
"type": "shell",
|
|
"command": "${workspaceFolder}/nob.exe",
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile",
|
|
"detail": "Build autosample (release)"
|
|
},
|
|
{
|
|
"label": "build-debug",
|
|
"type": "shell",
|
|
"command": "${workspaceFolder}/nob.exe",
|
|
"args": ["debug"],
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile",
|
|
"detail": "Build autosample (debug)"
|
|
},
|
|
{
|
|
"label": "rebuild",
|
|
"type": "shell",
|
|
"command": "${workspaceFolder}/nob.exe",
|
|
"group": "build",
|
|
"problemMatcher": "$msCompile",
|
|
"detail": "Clean and rebuild",
|
|
"dependsOn": "clean"
|
|
},
|
|
{
|
|
"label": "clean",
|
|
"type": "shell",
|
|
"command": "if (Test-Path build) { Remove-Item -Recurse -Force build }",
|
|
"args": [],
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "Remove build directory"
|
|
}
|
|
]
|
|
}
|