Skip to content

Commit a55c675

Browse files
committed
Adding build task for VScode
1 parent e261c22 commit a55c675

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ test/STOP
1010
include
1111
build
1212
build-*
13-
.vscode
1413
lib
1514
bin/enzo-p
1615
charmrun

.vscode/tasks.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"type": "shell",
7+
"command": "./build.sh",
8+
// use options.cwd property if the Makefile is not in the project root ${workspaceRoot} dir
9+
"options": {
10+
"cwd": "${workspaceRoot}",
11+
"env": {
12+
"CELLO_ARCH": "linux_gnu",
13+
"CELLO_PREC": "single",
14+
"HDF5_LIB": "/usr/lib/x86_64-linux-gnu",
15+
"HDF5_INC": "/usr/include/hdf5/serial",
16+
"CHARM_HOME": "/home/jwise/codes/charm",
17+
"GRACKLE_HOME": "/usr/local"
18+
}
19+
},
20+
// start the build without prompting for task selection, use "group": "build" otherwise
21+
"group": {
22+
"kind": "build",
23+
"isDefault": true
24+
},
25+
"presentation": {
26+
"echo": true,
27+
"reveal": "always",
28+
"focus": false,
29+
"panel": "shared"
30+
},
31+
// arg passing example: in this case is executed make QUIET=0
32+
"args": ["QUIET=0"],
33+
// Use the standard less compilation problem matcher.
34+
"problemMatcher": {
35+
"owner": "cpp",
36+
"fileLocation": ["absolute"],
37+
"pattern": {
38+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
39+
"file": 1,
40+
"line": 2,
41+
"column": 3,
42+
"severity": 4,
43+
"message": 5
44+
}
45+
}
46+
}
47+
]
48+
}

0 commit comments

Comments
 (0)