2024-11-22 16:41:06 +11:00
|
|
|
{
|
|
|
|
|
"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": {
|
2024-11-22 20:07:42 +11:00
|
|
|
"cwd": "${workspaceFolder}/b"
|
2024-11-22 16:41:06 +11:00
|
|
|
},
|
|
|
|
|
"group": {
|
2024-11-22 20:07:42 +11:00
|
|
|
"kind": "build",
|
|
|
|
|
"isDefault": true
|
2024-11-22 16:41:06 +11:00
|
|
|
},
|
|
|
|
|
"problemMatcher": ["$gcc"],
|
|
|
|
|
"dependsOn": ["Create Build Directory"],
|
|
|
|
|
"detail": "Runs the configure script to prepare the build environment."
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-11-22 20:07:42 +11:00
|
|
|
"label": "Build",
|
2024-11-22 16:41:06 +11:00
|
|
|
"type": "shell",
|
|
|
|
|
"command": "make",
|
|
|
|
|
"options": {
|
|
|
|
|
"cwd": "${workspaceFolder}/b"
|
|
|
|
|
},
|
|
|
|
|
"group": {
|
|
|
|
|
"kind": "build",
|
|
|
|
|
"isDefault": true
|
|
|
|
|
},
|
|
|
|
|
"problemMatcher": ["$gcc"],
|
2024-11-22 20:07:42 +11:00
|
|
|
"dependsOn": ["Configure"],
|
2024-11-22 16:41:06 +11:00
|
|
|
"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."
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|