chore: Add VSCode tasks config

This commit is contained in:
Tibo De Peuter 2024-12-05 22:07:22 +01:00
parent 0308b634ab
commit 561541b10f
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

73
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,73 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "setup",
"type": "shell",
"command": "cmake -S . -B build -D GLFW_BUILD_WAYLAND=OFF -D GLFW_BUILD_X11=ON"
},
{
"label": "build",
"type": "shell",
"command": "make -C build",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [
"setup"
]
},
{
"label": "Task 0: Check if OpenGL works",
"type": "shell",
"command": "./build/shaderpipeline 0",
"problemMatcher": []
},
{
"label": "Task 1: basic model, view, projection",
"type": "shell",
"command": "./build/shaderpipeline 1",
"problemMatcher": []
},
{
"label": "Task 2: subdivide the mesh",
"type": "shell",
"command": "./build/shaderpipeline 2",
"problemMatcher": []
},
{
"label": "Task 3: make the mesh round",
"type": "shell",
"command": "./build/shaderpipeline 3",
"problemMatcher": []
},
{
"label": "Task 4: light",
"type": "shell",
"command": "./build/shaderpipeline 4",
"problemMatcher": []
},
{
"label": "Task 5: procedural color",
"type": "shell",
"command": "./build/shaderpipeline 5",
"problemMatcher": []
},
{
"label": "Task 6: procedural bump",
"type": "shell",
"command": "./build/shaderpipeline 6",
"problemMatcher": []
},
{
"label": "Task 7: get creative",
"type": "shell",
"command": "./build/shaderpipeline 7",
"problemMatcher": []
}
]
}