1{ 2 // See https://go.microsoft.com/fwlink/?LinkId=733558 3 // for the documentation about the tasks.json format 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 11 "version": "2.0.0", 12 "tasks": [ 13 { 14 "label": "make", 15 "group": { 16 "kind": "build", 17 "isDefault": true 18 }, 19 "type": "shell", 20 "command": "sh", 21 "osx": { 22 "args": [ 23 "-c", 24 "cmake --build . && echo Done" 25 ] 26 }, 27 "linux": { 28 "args": [ 29 "-c", 30 "cmake --build . && echo Done" 31 ] 32 }, 33 "windows": { 34 "args": [ 35 "-c", 36 "cmake --build . && echo Done" 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 }, 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 } 62 }, 63 { 64 "label": "cmake", 65 "type": "shell", 66 "command": "cmake", 67 "args": [ 68 "..", 69 "-GNinja", 70 "-DCMAKE_BUILD_TYPE=${input:buildType}", 71 "-DSWIFTSHADER_WARNINGS_AS_ERRORS=1", 72 "-DSWIFTSHADER_DCHECK_ALWAYS_ON=1", 73 "-DREACTOR_VERIFY_LLVM_IR=1", 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": [], 93 } 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 }, 108 ] 109} 110