blob: 11a1dc38bcbcc694a3ec5d966e0b7251a6748485 [file] [log] [blame]
Nicolas Capensc8713532017-04-26 11:52:47 -04001{
2 // See https://go.microsoft.com/fwlink/?LinkId=733558
3 // for the documentation about the tasks.json format
Nicolas Capensc8713532017-04-26 11:52:47 -04004 // 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 Clayton9388dde2019-02-06 10:28:14 +000011 "version": "2.0.0",
Nicolas Capensc8713532017-04-26 11:52:47 -040012 "tasks": [
13 {
Ben Clayton9388dde2019-02-06 10:28:14 +000014 "label": "make",
15 "group": {
16 "kind": "build",
17 "isDefault": true
18 },
19 "type": "shell",
20 "command": "sh",
21 "osx": {
22 "args": [
23 "-c",
Ben Claytonb9335962019-05-22 13:49:30 +010024 "cmake --build . && echo Done"
Ben Clayton9388dde2019-02-06 10:28:14 +000025 ]
26 },
27 "linux": {
28 "args": [
29 "-c",
Ben Claytonb9335962019-05-22 13:49:30 +010030 "cmake --build . && echo Done"
Ben Clayton9388dde2019-02-06 10:28:14 +000031 ]
32 },
33 "windows": {
34 "args": [
35 "-c",
Ben Claytonb9335962019-05-22 13:49:30 +010036 "cmake --build . && echo Done"
Ben Clayton9388dde2019-02-06 10:28:14 +000037 ]
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 Capensc8713532017-04-26 11:52:47 -040050 "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 Clayton9388dde2019-02-06 10:28:14 +000062 },
63 {
64 "label": "cmake",
65 "type": "shell",
66 "command": "cmake",
67 "args": [
68 "..",
Ben Claytonb9335962019-05-22 13:49:30 +010069 "-GNinja",
Ben Clayton7aafb272019-02-19 17:08:56 +000070 "-DCMAKE_BUILD_TYPE=${input:buildType}",
Sean Risserf6d3cbb2020-01-08 14:44:53 -050071 "-DSWIFTSHADER_WARNINGS_AS_ERRORS=1",
72 "-DSWIFTSHADER_DCHECK_ALWAYS_ON=1",
Ben Clayton5375f472019-06-24 13:33:11 +010073 "-DREACTOR_VERIFY_LLVM_IR=1",
Ben Clayton9388dde2019-02-06 10:28:14 +000074 ],
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 Capensc8713532017-04-26 11:52:47 -040093 }
Ben Clayton9388dde2019-02-06 10:28:14 +000094 ],
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 Capensc8713532017-04-26 11:52:47 -0400108 ]
Sean Risserf6d3cbb2020-01-08 14:44:53 -0500109}