70 lines
1.9 KiB
JSON
70 lines
1.9 KiB
JSON
|
|
{
|
||
|
|
"version": "2.0.0",
|
||
|
|
"tasks": [
|
||
|
|
{
|
||
|
|
"label": "Create Build Directory",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "mkdir -p b",
|
||
|
|
"problemMatcher": [],
|
||
|
|
"detail": "Creates the build directory."
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"label": "Configure",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "${workspaceFolder}/configure",
|
||
|
|
"options": {
|
||
|
|
"cwd": "${workspaceFolder}/b"
|
||
|
|
},
|
||
|
|
"group": {
|
||
|
|
"kind": "build",
|
||
|
|
"isDefault": true
|
||
|
|
},
|
||
|
|
"problemMatcher": ["$gcc"],
|
||
|
|
"dependsOn": ["Create Build Directory"],
|
||
|
|
"detail": "Runs the configure script to prepare the build environment."
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"label": "build",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "make",
|
||
|
|
"options": {
|
||
|
|
"cwd": "${workspaceFolder}/b"
|
||
|
|
},
|
||
|
|
"group": {
|
||
|
|
"kind": "build",
|
||
|
|
"isDefault": true
|
||
|
|
},
|
||
|
|
"problemMatcher": ["$gcc"],
|
||
|
|
"dependsOn": "Configure",
|
||
|
|
"detail": "Builds the project using make."
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"label": "clean",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "make clean",
|
||
|
|
"options": {
|
||
|
|
"cwd": "${workspaceFolder}/b"
|
||
|
|
},
|
||
|
|
"group": {
|
||
|
|
"kind": "none"
|
||
|
|
},
|
||
|
|
"problemMatcher": [],
|
||
|
|
"detail": "Cleans the build artifacts."
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"label": "test",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "make test",
|
||
|
|
"options": {
|
||
|
|
"cwd": "${workspaceFolder}/b"
|
||
|
|
},
|
||
|
|
"group": {
|
||
|
|
"kind": "test",
|
||
|
|
"isDefault": true
|
||
|
|
},
|
||
|
|
"problemMatcher": ["$gcc"],
|
||
|
|
"detail": "Runs the tests."
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|