67 lines
1.7 KiB
JSON
67 lines
1.7 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Build",
|
|
"type": "shell",
|
|
"command": "qmake tiletest.pro && make -j$(nproc)",
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": ["$gcc"]
|
|
},
|
|
{
|
|
"label": "qmake",
|
|
"type": "shell",
|
|
"command": "qmake tiletest.pro",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": ["$gcc"]
|
|
},
|
|
{
|
|
"label": "make",
|
|
"type": "shell",
|
|
"command": "make -j$(nproc)",
|
|
"group": "build",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": ["$gcc"]
|
|
},
|
|
{
|
|
"label": "Clean",
|
|
"type": "shell",
|
|
"command": "make clean",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Rebuild",
|
|
"type": "shell",
|
|
"command": "make clean && qmake tiletest.pro && make -j$(nproc)",
|
|
"group": "build",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": ["$gcc"]
|
|
},
|
|
{
|
|
"label": "Run",
|
|
"type": "shell",
|
|
"command": "./tiletest",
|
|
"dependsOn": "Build",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|