sync makefile with the template

This commit is contained in:
unset
2025-01-25 16:03:06 +01:00
parent b0d4f7254e
commit a25e65795a
6 changed files with 152 additions and 74 deletions

23
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,23 @@
{
"version": "2.0.0",
"configurations": [
{
"name": "(lldb) C Launch",
"type": "lldb",
"request": "launch",
"program": "",
"linux": {
"program": "${workspaceFolder}/bin/linux-x86_64/breakout_clone",
"cwd": "${workspaceFolder}/bin/linux-x86_64",
"preLaunchTask": "build linux-x86_64",
},
"windows": {
"program": "${workspaceFolder}/bin/win-x86_64/breakout_clone",
"cwd": "${workspaceFolder}/bin/win-x86_64",
"preLaunchTask": "build win-x86_64",
},
"args": [],
"cwd": "${workspaceFolder}",
}
]
}

53
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,53 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "build linux-x86_64",
"command": "make",
"args": [
"linux-x86_64"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": true
},
"detail": "builds the program for linux x86_64"
},
{
"type": "shell",
"label": "build win-x86_64",
"command": "make",
"args": [
"win-x86_64"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": false
},
"detail": "builds the program for windows x86_64"
},
{
"type": "shell",
"label": "build web",
"command": "make",
"args": [
"web"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": false
},
"detail": "builds the program for web using emscripten"
}
]
}