mirror of
https://github.com/jhasse/poly2tri.git
synced 2024-11-05 22:09:52 +01:00
Add tasks.json for VS Code
This commit is contained in:
parent
4973f2e77e
commit
a41b316ace
72
.vscode/tasks.json
vendored
Normal file
72
.vscode/tasks.json
vendored
Normal file
@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user