Nicolas Capens | c871353 | 2017-04-26 11:52:47 -0400 | [diff] [blame] | 1 | { |
| 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 |
| 3 | // for the documentation about the tasks.json format |
Nicolas Capens | c871353 | 2017-04-26 11:52:47 -0400 | [diff] [blame] | 4 | // Available variables which can be used inside of strings. |
| 5 | // ${workspaceRoot}: the root folder of the team |
| 6 | // ${file}: the current opened file |
| 7 | // ${fileBasename}: the current opened file's basename |
| 8 | // ${fileDirname}: the current opened file's dirname |
| 9 | // ${fileExtname}: the current opened file's extension |
| 10 | // ${cwd}: the current working directory of the spawned process |
Ben Clayton | 9388dde | 2019-02-06 10:28:14 +0000 | [diff] [blame] | 11 | "version": "2.0.0", |
Nicolas Capens | c871353 | 2017-04-26 11:52:47 -0400 | [diff] [blame] | 12 | "tasks": [ |
| 13 | { |
Ben Clayton | 9388dde | 2019-02-06 10:28:14 +0000 | [diff] [blame] | 14 | "label": "make", |
| 15 | "group": { |
| 16 | "kind": "build", |
| 17 | "isDefault": true |
| 18 | }, |
| 19 | "type": "shell", |
| 20 | "command": "sh", |
| 21 | "osx": { |
| 22 | "args": [ |
| 23 | "-c", |
Ben Clayton | b933596 | 2019-05-22 13:49:30 +0100 | [diff] [blame] | 24 | "cmake --build . && echo Done" |
Ben Clayton | 9388dde | 2019-02-06 10:28:14 +0000 | [diff] [blame] | 25 | ] |
| 26 | }, |
| 27 | "linux": { |
| 28 | "args": [ |
| 29 | "-c", |
Ben Clayton | b933596 | 2019-05-22 13:49:30 +0100 | [diff] [blame] | 30 | "cmake --build . && echo Done" |
Ben Clayton | 9388dde | 2019-02-06 10:28:14 +0000 | [diff] [blame] | 31 | ] |
| 32 | }, |
| 33 | "windows": { |
| 34 | "args": [ |
| 35 | "-c", |
Ben Clayton | b933596 | 2019-05-22 13:49:30 +0100 | [diff] [blame] | 36 | "cmake --build . && echo Done" |
Ben Clayton | 9388dde | 2019-02-06 10:28:14 +0000 | [diff] [blame] | 37 | ] |
| 38 | }, |
| 39 | "options": { |
| 40 | "cwd": "${workspaceRoot}/build", |
| 41 | }, |
| 42 | "presentation": { |
| 43 | "echo": false, |
| 44 | "reveal": "always", |
| 45 | "focus": false, |
| 46 | "panel": "shared", |
| 47 | "showReuseMessage": false, |
| 48 | "clear": true, |
| 49 | }, |
Nicolas Capens | c871353 | 2017-04-26 11:52:47 -0400 | [diff] [blame] | 50 | "problemMatcher": { |
| 51 | "owner": "cpp", |
| 52 | "fileLocation": "absolute", |
| 53 | "pattern": { |
| 54 | "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", |
| 55 | "file": 1, |
| 56 | "line": 2, |
| 57 | "column": 3, |
| 58 | "severity": 4, |
| 59 | "message": 5 |
| 60 | } |
| 61 | } |
Ben Clayton | 9388dde | 2019-02-06 10:28:14 +0000 | [diff] [blame] | 62 | }, |
| 63 | { |
| 64 | "label": "cmake", |
| 65 | "type": "shell", |
| 66 | "command": "cmake", |
| 67 | "args": [ |
| 68 | "..", |
Ben Clayton | b933596 | 2019-05-22 13:49:30 +0100 | [diff] [blame] | 69 | "-GNinja", |
Ben Clayton | 7aafb27 | 2019-02-19 17:08:56 +0000 | [diff] [blame] | 70 | "-DCMAKE_BUILD_TYPE=${input:buildType}", |
Sean Risser | f6d3cbb | 2020-01-08 14:44:53 -0500 | [diff] [blame] | 71 | "-DSWIFTSHADER_WARNINGS_AS_ERRORS=1", |
| 72 | "-DSWIFTSHADER_DCHECK_ALWAYS_ON=1", |
Ben Clayton | 5375f47 | 2019-06-24 13:33:11 +0100 | [diff] [blame] | 73 | "-DREACTOR_VERIFY_LLVM_IR=1", |
Ben Clayton | 9388dde | 2019-02-06 10:28:14 +0000 | [diff] [blame] | 74 | ], |
| 75 | "options": { |
| 76 | "cwd": "${workspaceRoot}/build" |
| 77 | }, |
| 78 | "problemMatcher": [], |
| 79 | }, |
| 80 | { |
| 81 | "label": "Push branch for review", |
| 82 | "type": "shell", |
| 83 | "command": "git", |
| 84 | "args": [ |
| 85 | "push", |
| 86 | "origin", |
| 87 | "HEAD:refs/for/master" |
| 88 | ], |
| 89 | "options": { |
| 90 | "cwd": "${workspaceRoot}" |
| 91 | }, |
| 92 | "problemMatcher": [], |
Nicolas Capens | c871353 | 2017-04-26 11:52:47 -0400 | [diff] [blame] | 93 | } |
Ben Clayton | 9388dde | 2019-02-06 10:28:14 +0000 | [diff] [blame] | 94 | ], |
| 95 | "inputs": [ |
| 96 | { |
| 97 | "id": "buildType", |
| 98 | "type": "pickString", |
| 99 | "options": [ |
| 100 | "Debug", |
| 101 | "Release", |
| 102 | "MinSizeRel", |
| 103 | "RelWithDebInfo", |
| 104 | ], |
| 105 | "default": "Debug", |
| 106 | "description": "The type of build", |
| 107 | }, |
Nicolas Capens | c871353 | 2017-04-26 11:52:47 -0400 | [diff] [blame] | 108 | ] |
Sean Risser | f6d3cbb | 2020-01-08 14:44:53 -0500 | [diff] [blame] | 109 | } |