103 lines
2.6 KiB
JSON
103 lines
2.6 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "CMake: Configure",
|
|
"type": "shell",
|
|
"command": "cmake",
|
|
"args": [
|
|
"-B",
|
|
"build",
|
|
"-S",
|
|
".",
|
|
"-G",
|
|
"Unix Makefiles"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "CMake: Build",
|
|
"type": "shell",
|
|
"command": "cmake",
|
|
"args": [
|
|
"--build",
|
|
"build",
|
|
"--config",
|
|
"Debug"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"dependsOn": ["CMake: Configure"],
|
|
"problemMatcher": ["$gcc"]
|
|
},
|
|
{
|
|
"label": "CMake: Clean",
|
|
"type": "shell",
|
|
"command": "cmake",
|
|
"args": [
|
|
"--build",
|
|
"build",
|
|
"--target",
|
|
"clean"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Run Game",
|
|
"type": "shell",
|
|
"windows": {
|
|
"command": "${workspaceFolder}/build/bin/StrategyGame.exe"
|
|
},
|
|
"linux": {
|
|
"command": "${workspaceFolder}/build/bin/StrategyGame"
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"dependsOn": ["CMake: Build"],
|
|
"group": {
|
|
"kind": "test",
|
|
"isDefault": true
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Clean Build Directory",
|
|
"type": "shell",
|
|
"windows": {
|
|
"command": "Remove-Item",
|
|
"args": [
|
|
"-Path",
|
|
"build",
|
|
"-Recurse",
|
|
"-Force",
|
|
"-ErrorAction",
|
|
"SilentlyContinue"
|
|
]
|
|
},
|
|
"linux": {
|
|
"command": "rm",
|
|
"args": [
|
|
"-rf",
|
|
"build"
|
|
]
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|