Skip to content

Commit 19cf002

Browse files
committed
vscode settings for linux and osx
1 parent 2b3a288 commit 19cf002

File tree

4 files changed

+184
-73
lines changed

4 files changed

+184
-73
lines changed

.vscode/c_cpp_properties.json

+22-4
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,34 @@
22
"configurations": [
33
{
44
"name": "Linux",
5+
"compilerPath": "/usr/bin/gcc",
6+
"cStandard": "c99",
7+
"cppStandard": "c++11",
8+
"intelliSenseMode": "linux-gcc-x64",
59
"includePath": [
610
"${workspaceFolder}/**",
711
"/usr/include/SDL2"
812
],
9-
"defines": [],
10-
"compilerPath": "/usr/bin/gcc",
13+
"browse": {
14+
"path": ["${workspaceFolder}"]
15+
}
16+
},
17+
{
18+
"name": "Mac",
19+
"compilerPath": "/usr/bin/clang",
1120
"cStandard": "c99",
1221
"cppStandard": "c++11",
13-
"intelliSenseMode": "linux-gcc-x64"
22+
"intelliSenseMode": "macos-clang-arm64",
23+
"includePath": [
24+
"${workspaceFolder}/**",
25+
"/opt/homebrew/include/SDL2"
26+
],
27+
"macFrameworkPath": ["/System/Library/Frameworks", "/Library/Frameworks"],
28+
"browse": {
29+
"path": ["${workspaceFolder}"]
30+
}
1431
}
1532
],
16-
"version": 4
33+
"version": 4,
34+
"enableConfigurationSquiggles": true
1735
}

.vscode/launch.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@
55
"name": "Build and debug",
66
"type": "cppdbg",
77
"request": "launch",
8-
"program": "${workspaceFolder}/platforms/linux/gearsystem",
8+
"linux": {
9+
"program": "${workspaceFolder}/platforms/linux/gearsystem",
10+
"cwd": "${workspaceFolder}/platforms/linux",
11+
"MIMode": "gdb"
12+
},
13+
"osx": {
14+
"program": "${workspaceFolder}/platforms/macos/gearsystem",
15+
"cwd": "${workspaceFolder}/platforms/macos",
16+
"MIMode": "lldb"
17+
},
918
"args": [],
1019
"stopAtEntry": false,
11-
"cwd": "${workspaceFolder}/platforms/linux",
1220
"environment": [],
1321
"externalConsole": false,
14-
"MIMode": "gdb",
1522
"preLaunchTask": "Build (DEBUG)",
1623
"setupCommands": [
1724
{

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"files.exclude": {
33
"**/*.o": true,
44
"**/*.so": true,
5-
"**/gearsystem": true
5+
"**/gearsystem": true,
6+
"**/binary_to_compressed_c": true
67
},
78
"cmake.configureOnOpen": false,
89
"files.associations": {

.vscode/tasks.json

+150-65
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,36 @@
44
{
55
"type": "shell",
66
"label": "Clean",
7-
"command": "make -f ${workspaceFolder}/platforms/linux/Makefile clean",
7+
"linux": {
8+
"command": "make -f ${workspaceFolder}/platforms/linux/Makefile clean",
9+
"options": {
10+
"cwd": "${workspaceFolder}/platforms/linux"
11+
},
12+
"problemMatcher": [
13+
{
14+
"base": "$gcc",
15+
"fileLocation": [
16+
"relative",
17+
"${workspaceFolder}/platforms/linux"
18+
]
19+
}
20+
],
21+
},
22+
"osx": {
23+
"command": "make -f ${workspaceFolder}/platforms/macos/Makefile clean",
24+
"options": {
25+
"cwd": "${workspaceFolder}/platforms/macos"
26+
},
27+
"problemMatcher": [
28+
{
29+
"base": "$gcc",
30+
"fileLocation": [
31+
"relative",
32+
"${workspaceFolder}/platforms/macos"
33+
]
34+
}
35+
],
36+
},
837
"presentation": {
938
"reveal": "silent",
1039
"panel": "dedicated",
@@ -13,49 +42,83 @@
1342
"clear": true,
1443
"revealProblems": "onProblem"
1544
},
16-
"options": {
17-
"cwd": "${workspaceFolder}/platforms/linux"
18-
},
19-
"problemMatcher": [
20-
{
21-
"base": "$gcc",
22-
"fileLocation": [
23-
"relative",
24-
"${workspaceFolder}/platforms/linux"
25-
]
26-
}
27-
],
2845
"group": "build"
2946
},
3047
{
3148
"type": "shell",
3249
"label": "Build (RELEASE)",
33-
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile",
50+
"linux": {
51+
"command": "make -j10 -f ${workspaceFolder}/platforms/linux/Makefile",
52+
"options": {
53+
"cwd": "${workspaceFolder}/platforms/linux"
54+
},
55+
"problemMatcher": [
56+
{
57+
"base": "$gcc",
58+
"fileLocation": [
59+
"relative",
60+
"${workspaceFolder}/platforms/linux"
61+
]
62+
}
63+
],
64+
},
65+
"osx": {
66+
"command": "make -j10 -f ${workspaceFolder}/platforms/macos/Makefile",
67+
"options": {
68+
"cwd": "${workspaceFolder}/platforms/macos"
69+
},
70+
"problemMatcher": [
71+
{
72+
"base": "$gcc",
73+
"fileLocation": [
74+
"relative",
75+
"${workspaceFolder}/platforms/macos"
76+
]
77+
}
78+
],
79+
},
3480
"presentation": {
3581
"reveal": "silent",
3682
"panel": "dedicated",
3783
"showReuseMessage": false,
3884
"close": false,
3985
"clear": true
4086
},
41-
"options": {
42-
"cwd": "${workspaceFolder}/platforms/linux"
43-
},
44-
"problemMatcher": [
45-
{
46-
"base": "$gcc",
47-
"fileLocation": [
48-
"relative",
49-
"${workspaceFolder}/platforms/linux"
50-
]
51-
}
52-
],
5387
"group": "build"
5488
},
5589
{
5690
"type": "shell",
5791
"label": "Clean + Build (RELEASE)",
58-
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile",
92+
"linux": {
93+
"command": "make -j10 -f ${workspaceFolder}/platforms/linux/Makefile",
94+
"options": {
95+
"cwd": "${workspaceFolder}/platforms/linux"
96+
},
97+
"problemMatcher": [
98+
{
99+
"base": "$gcc",
100+
"fileLocation": [
101+
"relative",
102+
"${workspaceFolder}/platforms/linux"
103+
]
104+
}
105+
],
106+
},
107+
"osx": {
108+
"command": "make -j10 -f ${workspaceFolder}/platforms/macos/Makefile",
109+
"options": {
110+
"cwd": "${workspaceFolder}/platforms/macos"
111+
},
112+
"problemMatcher": [
113+
{
114+
"base": "$gcc",
115+
"fileLocation": [
116+
"relative",
117+
"${workspaceFolder}/platforms/macos"
118+
]
119+
}
120+
],
121+
},
59122
"presentation": {
60123
"reveal": "silent",
61124
"panel": "dedicated",
@@ -64,25 +127,42 @@
64127
"clear": true,
65128
"revealProblems": "onProblem"
66129
},
67-
"options": {
68-
"cwd": "${workspaceFolder}/platforms/linux"
69-
},
70-
"problemMatcher": [
71-
{
72-
"base": "$gcc",
73-
"fileLocation": [
74-
"relative",
75-
"${workspaceFolder}/platforms/linux"
76-
]
77-
}
78-
],
79130
"group": "build",
80131
"dependsOn": "Clean"
81132
},
82133
{
83134
"type": "shell",
84135
"label": "Build (DEBUG)",
85-
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile DEBUG=1",
136+
"linux": {
137+
"command": "make -j10 -f ${workspaceFolder}/platforms/linux/Makefile DEBUG=1",
138+
"options": {
139+
"cwd": "${workspaceFolder}/platforms/linux"
140+
},
141+
"problemMatcher": [
142+
{
143+
"base": "$gcc",
144+
"fileLocation": [
145+
"relative",
146+
"${workspaceFolder}/platforms/linux"
147+
]
148+
}
149+
],
150+
},
151+
"osx": {
152+
"command": "make -j10 -f ${workspaceFolder}/platforms/macos/Makefile DEBUG=1",
153+
"options": {
154+
"cwd": "${workspaceFolder}/platforms/macos"
155+
},
156+
"problemMatcher": [
157+
{
158+
"base": "$gcc",
159+
"fileLocation": [
160+
"relative",
161+
"${workspaceFolder}/platforms/macos"
162+
]
163+
}
164+
],
165+
},
86166
"presentation": {
87167
"reveal": "silent",
88168
"panel": "dedicated",
@@ -91,24 +171,41 @@
91171
"clear": true,
92172
"revealProblems": "onProblem"
93173
},
94-
"options": {
95-
"cwd": "${workspaceFolder}/platforms/linux"
96-
},
97-
"problemMatcher": [
98-
{
99-
"base": "$gcc",
100-
"fileLocation": [
101-
"relative",
102-
"${workspaceFolder}/platforms/linux"
103-
]
104-
}
105-
],
106174
"group": "build"
107175
},
108176
{
109177
"type": "shell",
110178
"label": "Clean + Build (DEBUG)",
111-
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile DEBUG=1",
179+
"linux": {
180+
"command": "make -j10 -f ${workspaceFolder}/platforms/linux/Makefile DEBUG=1",
181+
"options": {
182+
"cwd": "${workspaceFolder}/platforms/linux"
183+
},
184+
"problemMatcher": [
185+
{
186+
"base": "$gcc",
187+
"fileLocation": [
188+
"relative",
189+
"${workspaceFolder}/platforms/linux"
190+
]
191+
}
192+
],
193+
},
194+
"osx": {
195+
"command": "make -j10 -f ${workspaceFolder}/platforms/macos/Makefile DEBUG=1",
196+
"options": {
197+
"cwd": "${workspaceFolder}/platforms/macos"
198+
},
199+
"problemMatcher": [
200+
{
201+
"base": "$gcc",
202+
"fileLocation": [
203+
"relative",
204+
"${workspaceFolder}/platforms/macos"
205+
]
206+
}
207+
],
208+
},
112209
"presentation": {
113210
"reveal": "silent",
114211
"panel": "dedicated",
@@ -117,18 +214,6 @@
117214
"clear": true,
118215
"revealProblems": "onProblem"
119216
},
120-
"options": {
121-
"cwd": "${workspaceFolder}/platforms/linux"
122-
},
123-
"problemMatcher": [
124-
{
125-
"base": "$gcc",
126-
"fileLocation": [
127-
"relative",
128-
"${workspaceFolder}/platforms/linux"
129-
]
130-
}
131-
],
132217
"group": {
133218
"kind": "build",
134219
"isDefault": true

0 commit comments

Comments
 (0)