Skip to content

Commit b1c2ffd

Browse files
authored
[WIP] VS Code, make it run by default in Windows (#7988)
Awesome!! That's amazing. So if people follow the mingw64 setup instructions this should just work?
1 parent bfbedaf commit b1c2ffd

1 file changed

Lines changed: 90 additions & 131 deletions

File tree

Lines changed: 90 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,133 +1,92 @@
11
{
2-
"version": "2.0.0",
3-
"shell":{
4-
"task": true
5-
},
6-
"tasks": [
7-
{
8-
"type": "shell",
9-
"label": "Build RELEASE",
10-
"presentation": {
11-
"reveal": "always",
12-
"panel": "shared"
13-
},
14-
"command": "make -j -s 2>&1 && make RunRelease",
15-
"group": {
16-
"kind": "build",
17-
"isDefault": true
18-
},
19-
"problemMatcher": {
20-
"owner": "cpp",
21-
"fileLocation": ["relative", "${workspaceFolder}"],
22-
"pattern": {
23-
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
24-
"file": 1,
25-
"line": 2,
26-
"column": 3,
27-
"severity": 4,
28-
"message": 5
29-
}
30-
}
31-
},
32-
{
33-
"type": "shell",
34-
"label": "Build DEBUG",
35-
"presentation": {
36-
"reveal": "always",
37-
"panel": "shared"
38-
},
39-
"command": "make Debug -j -s 2>&1 || exit 1",
40-
"group": {
41-
"kind": "build",
42-
"isDefault": true
43-
},
44-
"problemMatcher": {
45-
"owner": "cpp",
46-
"fileLocation": ["relative", "${workspaceFolder}"],
47-
"pattern": {
48-
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
49-
"file": 1,
50-
"line": 2,
51-
"column": 3,
52-
"severity": 4,
53-
"message": 5
54-
}
55-
}
56-
},
57-
{
58-
"type": "shell",
59-
"label": "Clean DEBUG",
60-
"presentation": {
61-
"reveal": "always",
62-
"panel": "shared"
63-
},
64-
"command": "make CleanDebug",
65-
"group": {
66-
"kind": "build",
67-
"isDefault": true
68-
},
69-
"problemMatcher": {
70-
"owner": "cpp",
71-
"fileLocation": ["relative", "${workspaceFolder}"],
72-
"pattern": {
73-
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
74-
"file": 1,
75-
"line": 2,
76-
"column": 3,
77-
"severity": 4,
78-
"message": 5
79-
}
80-
}
81-
},
82-
{
83-
"type": "shell",
84-
"label": "Clean RELEASE",
85-
"presentation": {
86-
"reveal": "always",
87-
"panel": "shared"
88-
},
89-
"command": "make CleanRelease",
90-
"group": {
91-
"kind": "build",
92-
"isDefault": true
93-
},
94-
"problemMatcher": {
95-
"owner": "cpp",
96-
"fileLocation": ["relative", "${workspaceFolder}"],
97-
"pattern": {
98-
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
99-
"file": 1,
100-
"line": 2,
101-
"column": 3,
102-
"severity": 4,
103-
"message": 5
104-
}
105-
}
106-
},
107-
{
108-
"type": "shell",
109-
"label": "Clean ALL",
110-
"presentation": {
111-
"reveal": "always",
112-
"panel": "shared"
113-
},
114-
"command": "make clean",
115-
"group": {
116-
"kind": "build",
117-
"isDefault": true
118-
},
119-
"problemMatcher": {
120-
"owner": "cpp",
121-
"fileLocation": ["relative", "${workspaceFolder}"],
122-
"pattern": {
123-
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
124-
"file": 1,
125-
"line": 2,
126-
"column": 3,
127-
"severity": 4,
128-
"message": 5
129-
}
130-
}
131-
}
132-
]
2+
3+
"version": "2.0.0",
4+
"shell":{
5+
"task": true
6+
},
7+
"windows" : {
8+
"options": {
9+
"shell": {
10+
"executable": "C:\\msys64\\msys2_shell.cmd",
11+
"args": [
12+
"-defterm",
13+
"-mingw64",
14+
"-no-start",
15+
"-here",
16+
"-shell bash -c"
17+
]
18+
}
19+
}
20+
},
21+
"problemMatcher": {
22+
"owner": "cpp",
23+
"fileLocation": ["relative", "${workspaceFolder}"],
24+
"pattern": {
25+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
26+
"file": 1,
27+
"line": 2,
28+
"column": 3,
29+
"severity": 4,
30+
"message": 5
31+
}
32+
},
33+
34+
"group": {
35+
"kind": "build",
36+
},
37+
38+
"presentation": {
39+
"reveal": "always",
40+
"panel": "shared"
41+
},
42+
43+
"tasks": [
44+
{
45+
"type": "shell",
46+
"label": "Build RELEASE",
47+
"command": "make -j -s 2>&1"
48+
// "windows" : {
49+
// "command" : "msbuild"
50+
// }
51+
},
52+
{
53+
"type": "shell",
54+
"label": "Run RELEASE",
55+
"command": "make RunRelease >&1",
56+
"windows" : {
57+
"command" : "bin/*.exe"
58+
}
59+
},
60+
{
61+
"label": "Build and Run Release",
62+
"dependsOn": ["Build RELEASE", "Run RELEASE"],
63+
"dependsOrder": "sequence",
64+
"group": {
65+
"kind": "build",
66+
"isDefault": true
67+
}
68+
},
69+
{
70+
"type": "shell",
71+
"label": "Build DEBUG",
72+
"command": "make Debug -j -s 2>&1 || exit 1"
73+
},
74+
75+
{
76+
"type": "shell",
77+
"label": "Clean DEBUG",
78+
"command": "make CleanDebug"
79+
},
80+
81+
{
82+
"type": "shell",
83+
"label": "Clean RELEASE",
84+
"command": "make CleanRelease"
85+
},
86+
{
87+
"type": "shell",
88+
"label": "Clean ALL",
89+
"command": "make clean"
90+
}
91+
]
13392
}

0 commit comments

Comments
 (0)