Skip to content

Commit

Permalink
vscode settings for linux and osx
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Nov 15, 2024
1 parent 02f9b6e commit a71655b
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 73 deletions.
26 changes: 22 additions & 4 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,34 @@
"configurations": [
{
"name": "Linux",
"compilerPath": "/usr/bin/gcc",
"cStandard": "c99",
"cppStandard": "c++11",
"intelliSenseMode": "linux-gcc-x64",
"includePath": [
"${workspaceFolder}/**",
"/usr/include/SDL2"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"browse": {
"path": ["${workspaceFolder}"]
}
},
{
"name": "Mac",
"compilerPath": "/usr/bin/clang",
"cStandard": "c99",
"cppStandard": "c++11",
"intelliSenseMode": "linux-gcc-x64"
"intelliSenseMode": "macos-clang-arm64",
"includePath": [
"${workspaceFolder}/**",
"/opt/homebrew/include/SDL2"
],
"macFrameworkPath": ["/System/Library/Frameworks", "/Library/Frameworks"],
"browse": {
"path": ["${workspaceFolder}"]
}
}
],
"version": 4
"version": 4,
"enableConfigurationSquiggles": true
}
13 changes: 10 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@
"name": "Build and debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/platforms/linux/gearcoleco",
"linux": {
"program": "${workspaceFolder}/platforms/linux/gearcoleco",
"cwd": "${workspaceFolder}/platforms/linux",
"MIMode": "gdb"
},
"osx": {
"program": "${workspaceFolder}/platforms/macos/gearcoleco",
"cwd": "${workspaceFolder}/platforms/macos",
"MIMode": "lldb"
},
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/platforms/linux",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "Build (DEBUG)",
"setupCommands": [
{
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"files.exclude": {
"**/*.o": true,
"**/*.so": true,
"**/gearcoleco": true
"**/gearcoleco": true,
"**/binary_to_compressed_c": true
},
"cmake.configureOnOpen": false,
"files.associations": {
Expand Down
215 changes: 150 additions & 65 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,36 @@
{
"type": "shell",
"label": "Clean",
"command": "make -f ${workspaceFolder}/platforms/linux/Makefile clean",
"linux": {
"command": "make -f ${workspaceFolder}/platforms/linux/Makefile clean",
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
},
"osx": {
"command": "make -f ${workspaceFolder}/platforms/macos/Makefile clean",
"options": {
"cwd": "${workspaceFolder}/platforms/macos"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/macos"
]
}
],
},
"presentation": {
"reveal": "silent",
"panel": "dedicated",
Expand All @@ -13,49 +42,83 @@
"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",
"linux": {
"command": "make -j10 -f ${workspaceFolder}/platforms/linux/Makefile",
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
},
"osx": {
"command": "make -j10 -f ${workspaceFolder}/platforms/macos/Makefile",
"options": {
"cwd": "${workspaceFolder}/platforms/macos"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/macos"
]
}
],
},
"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",
"linux": {
"command": "make -j10 -f ${workspaceFolder}/platforms/linux/Makefile",
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
},
"osx": {
"command": "make -j10 -f ${workspaceFolder}/platforms/macos/Makefile",
"options": {
"cwd": "${workspaceFolder}/platforms/macos"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/macos"
]
}
],
},
"presentation": {
"reveal": "silent",
"panel": "dedicated",
Expand All @@ -64,25 +127,42 @@
"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",
"linux": {
"command": "make -j10 -f ${workspaceFolder}/platforms/linux/Makefile DEBUG=1",
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
},
"osx": {
"command": "make -j10 -f ${workspaceFolder}/platforms/macos/Makefile DEBUG=1",
"options": {
"cwd": "${workspaceFolder}/platforms/macos"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/macos"
]
}
],
},
"presentation": {
"reveal": "silent",
"panel": "dedicated",
Expand All @@ -91,24 +171,41 @@
"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",
"linux": {
"command": "make -j10 -f ${workspaceFolder}/platforms/linux/Makefile DEBUG=1",
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
},
"osx": {
"command": "make -j10 -f ${workspaceFolder}/platforms/macos/Makefile DEBUG=1",
"options": {
"cwd": "${workspaceFolder}/platforms/macos"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/macos"
]
}
],
},
"presentation": {
"reveal": "silent",
"panel": "dedicated",
Expand All @@ -117,18 +214,6 @@
"clear": true,
"revealProblems": "onProblem"
},
"options": {
"cwd": "${workspaceFolder}/platforms/linux"
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${workspaceFolder}/platforms/linux"
]
}
],
"group": {
"kind": "build",
"isDefault": true
Expand Down

0 comments on commit a71655b

Please sign in to comment.