fix: add VSCode config files for Linux project
This commit is contained in:
7
projekt_linux/.vscode/launch.json
vendored
7
projekt_linux/.vscode/launch.json
vendored
@ -5,16 +5,16 @@
|
|||||||
"name": "(gdb) Launch",
|
"name": "(gdb) Launch",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/boat_sim.exe",
|
"program": "${workspaceFolder}/./boat_sim",
|
||||||
"args": [],
|
"args": [],
|
||||||
"stopAtEntry": true,
|
"stopAtEntry": true,
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"environment": [],
|
"environment": [],
|
||||||
"externalConsole": false,
|
"externalConsole": false,
|
||||||
"preLaunchTask": "Make",
|
"preLaunchTask": "Build",
|
||||||
"windows": {
|
"windows": {
|
||||||
"MIMode": "gdb",
|
"MIMode": "gdb",
|
||||||
"miDebuggerPath": "${workspaceFolder}/../mingw64/bin/gdb.exe",
|
"miDebuggerPath": "gdb",
|
||||||
"setupCommands": [
|
"setupCommands": [
|
||||||
{
|
{
|
||||||
"description": "Enable pretty-printing for gdb",
|
"description": "Enable pretty-printing for gdb",
|
||||||
@ -36,3 +36,4 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
15
projekt_linux/.vscode/tasks.json
vendored
15
projekt_linux/.vscode/tasks.json
vendored
@ -2,9 +2,9 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "Make",
|
"label": "Build",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "${workspaceFolder}/../mingw64/bin/mingw32-make.exe", // Or "mingw32-make" if you are using MinGW on Windows and "make" is not in your PATH
|
"command": "make", // Or "mingw32-make" if you are using MinGW on Windows and "make" is not in your PATH
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
},
|
},
|
||||||
@ -17,24 +17,23 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Clean Object Files (Windows)",
|
"label": "Clean (Linux)",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "${workspaceFolder}/../mingw64/bin/mingw32-make.exe clean",
|
"command": "make clean",
|
||||||
"args": [
|
"args": [
|
||||||
"build/*.o"
|
|
||||||
],
|
],
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"group": "cleanup",
|
"group": "cleanup",
|
||||||
"detail": "Deletes all object files (*.o) in the current directory"
|
"detail": "Deletes all object files (*.o) in the build"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Run",
|
"label": "Run",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "${workspaceFolder}/../mingw64/bin/mingw32-make.exe run",
|
"command": "make run",
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
},
|
},
|
||||||
"dependsOn": "Make"
|
"dependsOn": "Build"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user