| { |
| "version": "2.0.0", |
| "runner": "terminal", |
| "tasks": [ |
| { |
| "label": "1-build_chrome_debug", |
| "type": "shell", |
| "command": "ninja -C out/Debug -j 2000 chrome", |
| "group": "test", |
| "presentation": { |
| "echo": true, |
| "reveal": "always" |
| }, |
| "problemMatcher": [ |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Debug"], |
| "pattern": { |
| "regexp": "^(gen/.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Debug"], |
| "pattern": { |
| "regexp": "^(gen/.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }] |
| }, |
| { |
| "label": "2-build_chrome_release", |
| "type": "shell", |
| "command": "ninja -C out/Release -j 2000 chrome", |
| "group": "build", |
| "presentation": { |
| "echo": true, |
| "reveal": "always" |
| }, |
| "problemMatcher": [ |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Release"], |
| "pattern": { |
| "regexp": "^(gen/.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Release"], |
| "pattern": { |
| "regexp": "^(gen/.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }] |
| }, |
| { |
| "label": "3-build_all_debug", |
| "type": "shell", |
| "command": "ninja -C out/Debug -j 2000", |
| "presentation": { |
| "echo": true, |
| "reveal": "always" |
| }, |
| "problemMatcher": [ |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Debug"], |
| "pattern": { |
| "regexp": "^(gen/.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Debug"], |
| "pattern": { |
| "regexp": "^(gen/.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }] |
| }, |
| { |
| "label": "4-build_all_release", |
| "type": "shell", |
| "command": "ninja -C out/Release -j 2000", |
| "presentation": { |
| "echo": true, |
| "reveal": "always" |
| }, |
| "problemMatcher": [ |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Release"], |
| "pattern": { |
| "regexp": "^(gen/.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Release"], |
| "pattern": { |
| "regexp": "^(gen/.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }] |
| }, |
| { |
| "label": "5-build_test_debug", |
| "type": "shell", |
| "command": "ninja -C out/Debug -j 2000 unit_tests components_unittests browser_tests", |
| "presentation": { |
| "echo": true, |
| "reveal": "always" |
| }, |
| "problemMatcher": [ |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Debug"], |
| "pattern": { |
| "regexp": "^(gen/.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Debug"], |
| "pattern": { |
| "regexp": "^(gen/.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }] |
| }, |
| { |
| "label": "6-build_current_file", |
| "type": "shell", |
| "command": "compile_single_file --build-dir=out/Debug --file-path=${file}", |
| "presentation": { |
| "echo": true, |
| "reveal": "always" |
| }, |
| "problemMatcher": [ |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Debug"], |
| "pattern": { |
| "regexp": "^(gen/.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*):(\\d+):(\\d+):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}/out/Debug"], |
| "pattern": { |
| "regexp": "^(gen/.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }, |
| { |
| "owner": "cpp", |
| "fileLocation": ["relative", "${workspaceRoot}"], |
| "pattern": { |
| "regexp": "^../../(.*?):(.*):\\s+(warning|\\w*\\s?error):\\s+(.*)$", |
| "file": 1, "severity": 3, "message": 4 |
| } |
| }] |
| }] |
| } |