You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
3.3 KiB
132 lines
3.3 KiB
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Build Project",
|
|
"type": "shell",
|
|
"command": "zig build",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
},
|
|
{
|
|
"label": "Build and Run Project",
|
|
"type": "shell",
|
|
"command": "zig build run",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"clear": true
|
|
}
|
|
},
|
|
{
|
|
"label": "Pooooooooop",
|
|
"type": "shell",
|
|
"command": "zig build ${input:zigTarget}",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"clear": true
|
|
}
|
|
},
|
|
{
|
|
"label": "Build and Run Project (release-fast)",
|
|
"type": "shell",
|
|
"command": "zig build run -Drelease-fast",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"clear": true
|
|
}
|
|
},
|
|
{
|
|
"label": "Build and Run Project (release-small)",
|
|
"type": "shell",
|
|
"command": "zig build run -Drelease-small",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"clear": true
|
|
}
|
|
},
|
|
{
|
|
"label": "Test Project",
|
|
"type": "shell",
|
|
"command": "zig build test",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"clear": true
|
|
}
|
|
},
|
|
{
|
|
"label": "Build and Run Current File",
|
|
"type": "shell",
|
|
"command": "zig run ${file}",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"presentation": {
|
|
"clear": true
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
}
|
|
},
|
|
{
|
|
"label": "Build and Run Tests in Current File",
|
|
"type": "shell",
|
|
"command": "zig test ${file}",
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
"presentation": {
|
|
"clear": true
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
}
|
|
},
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "zigTarget",
|
|
"description": "choose which target to run",
|
|
"type": "pickString",
|
|
"options": [
|
|
"run",
|
|
"group_sort"
|
|
],
|
|
"default": "run"
|
|
}
|
|
],
|
|
} |