Skip to content

Commit 22e0493

Browse files
committed
Add vscode configuration
1 parent b72d4a6 commit 22e0493

File tree

4 files changed

+236
-1
lines changed

4 files changed

+236
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*.app/
55

66
# Visual Studio files
7-
.vscode/
87
.vs/
98
ipch/
109
[Oo]bj

.vscode/launch.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Build and debug",
6+
"type": "cppdbg",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/platforms/linux/gearsystem",
9+
"args": [],
10+
"stopAtEntry": false,
11+
"cwd": "${workspaceFolder}/platforms/linux",
12+
"environment": [],
13+
"externalConsole": false,
14+
"MIMode": "gdb",
15+
"preLaunchTask": "Build (DEBUG)",
16+
"setupCommands": [
17+
{
18+
"description": "Enable pretty-printing for gdb",
19+
"text": "-enable-pretty-printing",
20+
"ignoreFailures": true
21+
},
22+
{
23+
"description": "Set Disassembly Flavor to Intel",
24+
"text": "-gdb-set disassembly-flavor intel",
25+
"ignoreFailures": true
26+
}
27+
]
28+
}
29+
]
30+
}

.vscode/settings.json

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"files.exclude": {
3+
"**/*.o": true,
4+
"**/*.so": true
5+
},
6+
"cmake.configureOnOpen": false,
7+
"files.associations": {
8+
"array": "cpp",
9+
"atomic": "cpp",
10+
"bit": "cpp",
11+
"*.tcc": "cpp",
12+
"cctype": "cpp",
13+
"chrono": "cpp",
14+
"clocale": "cpp",
15+
"cmath": "cpp",
16+
"compare": "cpp",
17+
"concepts": "cpp",
18+
"condition_variable": "cpp",
19+
"cstdarg": "cpp",
20+
"cstddef": "cpp",
21+
"cstdint": "cpp",
22+
"cstdio": "cpp",
23+
"cstdlib": "cpp",
24+
"ctime": "cpp",
25+
"cwchar": "cpp",
26+
"cwctype": "cpp",
27+
"deque": "cpp",
28+
"list": "cpp",
29+
"map": "cpp",
30+
"string": "cpp",
31+
"unordered_map": "cpp",
32+
"vector": "cpp",
33+
"exception": "cpp",
34+
"algorithm": "cpp",
35+
"functional": "cpp",
36+
"iterator": "cpp",
37+
"memory": "cpp",
38+
"memory_resource": "cpp",
39+
"numeric": "cpp",
40+
"random": "cpp",
41+
"ratio": "cpp",
42+
"string_view": "cpp",
43+
"system_error": "cpp",
44+
"tuple": "cpp",
45+
"type_traits": "cpp",
46+
"utility": "cpp",
47+
"fstream": "cpp",
48+
"initializer_list": "cpp",
49+
"iomanip": "cpp",
50+
"iosfwd": "cpp",
51+
"iostream": "cpp",
52+
"istream": "cpp",
53+
"limits": "cpp",
54+
"mutex": "cpp",
55+
"new": "cpp",
56+
"numbers": "cpp",
57+
"ostream": "cpp",
58+
"semaphore": "cpp",
59+
"sstream": "cpp",
60+
"stdexcept": "cpp",
61+
"stop_token": "cpp",
62+
"streambuf": "cpp",
63+
"thread": "cpp",
64+
"cinttypes": "cpp",
65+
"typeinfo": "cpp"
66+
}
67+
}

.vscode/tasks.json

+139
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "shell",
6+
"label": "Clean",
7+
"command": "make -f ${workspaceFolder}/platforms/linux/Makefile clean",
8+
"presentation": {
9+
"reveal": "silent",
10+
"panel": "dedicated",
11+
"showReuseMessage": false,
12+
"close": false,
13+
"clear": true,
14+
"revealProblems": "onProblem"
15+
},
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+
],
28+
"group": "build"
29+
},
30+
{
31+
"type": "shell",
32+
"label": "Build (RELEASE)",
33+
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile",
34+
"presentation": {
35+
"reveal": "silent",
36+
"panel": "dedicated",
37+
"showReuseMessage": false,
38+
"close": false,
39+
"clear": true
40+
},
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+
],
53+
"group": "build"
54+
},
55+
{
56+
"type": "shell",
57+
"label": "Clean + Build (RELEASE)",
58+
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile",
59+
"presentation": {
60+
"reveal": "silent",
61+
"panel": "dedicated",
62+
"showReuseMessage": false,
63+
"close": false,
64+
"clear": true,
65+
"revealProblems": "onProblem"
66+
},
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+
],
79+
"group": "build",
80+
"dependsOn": "Clean"
81+
},
82+
{
83+
"type": "shell",
84+
"label": "Build (DEBUG)",
85+
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile DEBUG=1",
86+
"presentation": {
87+
"reveal": "silent",
88+
"panel": "dedicated",
89+
"showReuseMessage": false,
90+
"close": false,
91+
"clear": true,
92+
"revealProblems": "onProblem"
93+
},
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+
"group": "build"
107+
},
108+
{
109+
"type": "shell",
110+
"label": "Clean + Build (DEBUG)",
111+
"command": "make -j8 -f ${workspaceFolder}/platforms/linux/Makefile DEBUG=1",
112+
"presentation": {
113+
"reveal": "silent",
114+
"panel": "dedicated",
115+
"showReuseMessage": false,
116+
"close": false,
117+
"clear": true,
118+
"revealProblems": "onProblem"
119+
},
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+
],
132+
"group": {
133+
"kind": "build",
134+
"isDefault": true
135+
},
136+
"dependsOn": "Clean"
137+
}
138+
]
139+
}

0 commit comments

Comments
 (0)