| 1 |
{ |
| 2 |
|
| 3 |
|
| 4 |
"version": "2.0.0", |
| 5 |
"tasks": [ |
| 6 |
{ |
| 7 |
"label": "make", |
| 8 |
"group": { |
| 9 |
"kind": "build", |
| 10 |
"isDefault": true |
| 11 |
}, |
| 12 |
"type": "shell", |
| 13 |
"command": "sh", |
| 14 |
"osx": { |
| 15 |
"args": [ |
| 16 |
"-c", |
| 17 |
"cmake --build . && echo Done" |
| 18 |
] |
| 19 |
}, |
| 20 |
"linux": { |
| 21 |
"args": [ |
| 22 |
"-c", |
| 23 |
"cmake --build . && echo Done" |
| 24 |
] |
| 25 |
}, |
| 26 |
"windows": { |
| 27 |
"args": [ |
| 28 |
"-c", |
| 29 |
"cmake --build . && echo Done" |
| 30 |
] |
| 31 |
}, |
| 32 |
"options": { |
| 33 |
"cwd": "${workspaceRoot}/build", |
| 34 |
}, |
| 35 |
"presentation": { |
| 36 |
"echo": false, |
| 37 |
"reveal": "always", |
| 38 |
"focus": false, |
| 39 |
"panel": "shared", |
| 40 |
"showReuseMessage": false, |
| 41 |
"clear": true, |
| 42 |
}, |
| 43 |
"problemMatcher": { |
| 44 |
"owner": "cpp", |
| 45 |
"fileLocation": "absolute", |
| 46 |
"pattern": { |
| 47 |
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", |
| 48 |
"file": 1, |
| 49 |
"line": 2, |
| 50 |
"column": 3, |
| 51 |
"severity": 4, |
| 52 |
"message": 5 |
| 53 |
} |
| 54 |
} |
| 55 |
}, |
| 56 |
{ |
| 57 |
"label": "cmake", |
| 58 |
"type": "shell", |
| 59 |
"command": "sh", |
| 60 |
"args": [ |
| 61 |
"-c", |
| 62 |
"mkdir build; cd build; cmake .. -GNinja -DCMAKE_BUILD_TYPE=${input:buildType} -DCPPDAP_BUILD_TESTS=1 -DCPPDAP_BUILD_EXAMPLES=1 -DCPPDAP_INSTALL_VSCODE_EXAMPLES=1 -DCPPDAP_WARNINGS_AS_ERRORS=1", |
| 63 |
], |
| 64 |
"options": { |
| 65 |
"cwd": "${workspaceRoot}" |
| 66 |
}, |
| 67 |
"problemMatcher": [], |
| 68 |
}, |
| 69 |
], |
| 70 |
"inputs": [ |
| 71 |
{ |
| 72 |
"id": "buildType", |
| 73 |
"type": "pickString", |
| 74 |
"options": [ |
| 75 |
"Debug", |
| 76 |
"Release", |
| 77 |
"MinSizeRel", |
| 78 |
"RelWithDebInfo", |
| 79 |
], |
| 80 |
"default": "Debug", |
| 81 |
"description": "The type of build", |
| 82 |
}, |
| 83 |
] |
| 84 |
} |