113 lines
3.2 KiB
JSON
113 lines
3.2 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "clear",
|
|
"type": "shell",
|
|
"command": "rm -r ${workspaceRoot}/build && mkdir ${workspaceRoot}/build"
|
|
},
|
|
{
|
|
"label": "cmake",
|
|
"type": "shell",
|
|
"command": "cmake",
|
|
"args": [".."],
|
|
"options": {
|
|
"cwd": "${workspaceRoot}/build"
|
|
}
|
|
},
|
|
{
|
|
"label": "cmake info",
|
|
"type": "shell",
|
|
"command": "cmake",
|
|
"args": ["-DCMAKE_BUILD_TYPE=RelWithDebInfo", ".."],
|
|
"options": {
|
|
"cwd": "${workspaceRoot}/build"
|
|
}
|
|
},
|
|
{
|
|
"label": "cmake debug",
|
|
"type": "shell",
|
|
"command": "cmake",
|
|
"args": ["-DCMAKE_BUILD_TYPE=Debug", ".."],
|
|
"options": {
|
|
"cwd": "${workspaceRoot}/build"
|
|
}
|
|
},
|
|
{
|
|
"label": "make",
|
|
"type": "shell",
|
|
"command": "make",
|
|
"options": {
|
|
"cwd": "${workspaceRoot}/build"
|
|
}
|
|
},
|
|
{
|
|
"label": "exec",
|
|
"type": "shell",
|
|
"command": "./univerxel",
|
|
"options": {
|
|
"cwd": "${workspaceRoot}/build"
|
|
}
|
|
},
|
|
{
|
|
"label": "exec memcheck",
|
|
"type": "shell",
|
|
"command": "valgrind --leak-check=full --show-leak-kinds=all --fair-sched=yes ./univerxel",
|
|
"options": {
|
|
"cwd": "${workspaceRoot}/build"
|
|
}
|
|
},
|
|
{
|
|
"label": "exec helgrind",
|
|
"type": "shell",
|
|
"command": "valgrind --tool=helgrind --fair-sched=yes ./univerxel",
|
|
"options": {
|
|
"cwd": "${workspaceRoot}/build"
|
|
}
|
|
},
|
|
{
|
|
"label": "exec callgrind",
|
|
"type": "shell",
|
|
"command": "valgrind --tool=callgrind --dump-instr=yes --simulate-cache=yes --fair-sched=yes ./univerxel",
|
|
"options": {
|
|
"cwd": "${workspaceRoot}/build"
|
|
}
|
|
},
|
|
{
|
|
"label": "Build",
|
|
"group": "build",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": ["cmake", "make"]
|
|
},
|
|
{
|
|
"label": "Build info",
|
|
"group": "build",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": ["cmake info", "make"]
|
|
},
|
|
{
|
|
"label": "Build debug",
|
|
"group": "build",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": ["cmake debug", "make"]
|
|
},
|
|
{
|
|
"label": "Rebuild",
|
|
"group": "build",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": ["clear", "Build"]
|
|
},
|
|
{
|
|
"label": "Run",
|
|
"group": "build",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": ["Build", "exec"]
|
|
},
|
|
{
|
|
"label": "Run valgrind",
|
|
"group": "build",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": ["Build debug", "exec memcheck"]
|
|
}
|
|
]
|
|
} |