94 lines
2.1 KiB
JSON
94 lines
2.1 KiB
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "client_build",
|
|
"type": "shell",
|
|
"command": ".\\tools\\buildspark.cmd",
|
|
"problemMatcher": "$msCompile",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared"
|
|
},
|
|
"group": "build"
|
|
},
|
|
{
|
|
"label": "server_build",
|
|
"type": "shell",
|
|
"command": ".\\tools\\buildsparkd.cmd",
|
|
"problemMatcher": {
|
|
"base": "$gcc",
|
|
"owner": "cpp",
|
|
"fileLocation": [
|
|
"relative",
|
|
"${workspaceFolder}"
|
|
],
|
|
"pattern": {
|
|
"regexp": "(.?)(home)(.?)(bts)(.?)(spark)(.?)(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)",
|
|
"file": 8,
|
|
"line": 9,
|
|
"column": 10,
|
|
"severity": 11,
|
|
"message": 12
|
|
}
|
|
},
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "new"
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
}
|
|
},
|
|
{
|
|
"label": "linux_build",
|
|
"type": "shell",
|
|
"command": "docker exec -i ${USER}s_docker bash -c \"cd build/${input:compiler}/${input:build_configuration} && ninja\"",
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "dedicated",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
}
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "build_configuration",
|
|
"type": "pickString",
|
|
"default": "debug",
|
|
"description": "Configuration:",
|
|
"options": [
|
|
"debug",
|
|
"release"
|
|
]
|
|
},
|
|
{
|
|
"id": "compiler",
|
|
"type": "pickString",
|
|
"default": "gcc",
|
|
"description": "Compiler",
|
|
"options": [
|
|
"clang",
|
|
"gcc"
|
|
]
|
|
}
|
|
]
|
|
}
|