Skip to content

Commit

Permalink
Add vscode configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jun 16, 2024
1 parent b72d4a6 commit 22e0493
Show file tree
Hide file tree
Showing 4 changed files with 236 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*.app/

# Visual Studio files
.vscode/
.vs/
ipch/
[Oo]bj
Expand Down
30 changes: 30 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Build and debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/platforms/linux/gearsystem",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/platforms/linux",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "Build (DEBUG)",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}
67 changes: 67 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"files.exclude": {
"**/*.o": true,
"**/*.so": true
},
"cmake.configureOnOpen": false,
"files.associations": {
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"chrono": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"concepts": "cpp",
"condition_variable": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"list": "cpp",
"map": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"random": "cpp",
"ratio": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"mutex": "cpp",
"new": "cpp",
"numbers": "cpp",
"ostream": "cpp",
"semaphore": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"stop_token": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"cinttypes": "cpp",
"typeinfo": "cpp"
}
}
139 changes: 139 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Clean",
"command": "make -f ${workspaceFolder}/platforms/linux/Makefile clean",
"presentation": {
"reveal": "silent",
"panel": "dedicated",
"showReuseMessage": false,
"close": false,
"clear": true,
"revealProblems": "onProblem"
},
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
"group": "build"
},
{
"type": "shell",
"label": "Build (RELEASE)",
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile",
"presentation": {
"reveal": "silent",
"panel": "dedicated",
"showReuseMessage": false,
"close": false,
"clear": true
},
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
"group": "build"
},
{
"type": "shell",
"label": "Clean + Build (RELEASE)",
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile",
"presentation": {
"reveal": "silent",
"panel": "dedicated",
"showReuseMessage": false,
"close": false,
"clear": true,
"revealProblems": "onProblem"
},
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
"group": "build",
"dependsOn": "Clean"
},
{
"type": "shell",
"label": "Build (DEBUG)",
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile DEBUG=1",
"presentation": {
"reveal": "silent",
"panel": "dedicated",
"showReuseMessage": false,
"close": false,
"clear": true,
"revealProblems": "onProblem"
},
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
"group": "build"
},
{
"type": "shell",
"label": "Clean + Build (DEBUG)",
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile DEBUG=1",
"presentation": {
"reveal": "silent",
"panel": "dedicated",
"showReuseMessage": false,
"close": false,
"clear": true,
"revealProblems": "onProblem"
},
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": "Clean"
}
]
}

0 comments on commit 22e0493

Please sign in to comment.