Skip to content

Commit

Permalink
Add tasks.json for VS Code
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Sep 11, 2018
1 parent 4973f2e commit a41b316
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"version": "2.0.0",
"windows": {
"command": "C:\\msys64\\usr\\bin\\bash.exe",
"args": ["-lc", "([ -f build/build.ninja ] || meson build) && ninja -C build | cat"]
},
"linux": {
"args": ["-lc", "cd \"\"${workspaceRoot}\"\" && ([ -f build/build.ninja ] || meson build) && ninja -C build && cd build && $@"],
"command": "/bin/bash"
},
"osx": {
"args": ["-lc", "cd \"\"${workspaceRoot}\"\" && ([ -f build/build.ninja ] || meson build) && ninja -C build && cd build && $@"],
"command": "/bin/bash"
},
"options": {
"env": {
"LANG": "C.UTF-8",
"PYTHONUNBUFFERD": "1",
"MSYSTEM": "MINGW64",
"CHERE_INVOKING": "1"
}
},
"tasks": [
{
"label": "build",
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceRoot}/build"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error|fatal error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "test",
"args": [
"./unittest"
],
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceRoot}/build/"
],
"pattern": {
"regexp": "^(.*?)[:\\(](\\d+)(:(\\d+))?\\)?:\\s+(warning|error|fatal error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 4,
"severity": 5,
"message": 6
}
},
"group": {
"kind": "test",
"isDefault": true
}
}
]
}

0 comments on commit a41b316

Please sign in to comment.