.vscode/tasks.json: Implement tasks for Windows
Change-Id: I67a55990edcffe3c8f79fddd6c26b51216a80995 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/45763 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
fe5fea8a7b
commit
af55c04e36
|
@ -33,6 +33,13 @@
|
||||||
"ninja && echo Done"
|
"ninja && echo Done"
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
"windows": {
|
||||||
|
"command": "cmd",
|
||||||
|
"args": [
|
||||||
|
"/C",
|
||||||
|
"ninja && echo Done"
|
||||||
|
],
|
||||||
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceRoot}/out/active",
|
"cwd": "${workspaceRoot}/out/active",
|
||||||
},
|
},
|
||||||
|
@ -78,12 +85,19 @@
|
||||||
"gn gen 'out/${input:buildType}' --args=is_debug=$(if [ '${input:buildType}' = 'Debug' ]; then echo 'true'; else echo 'false'; fi) && (rm -fr out/active || true) && ln -s ${input:buildType} out/active",
|
"gn gen 'out/${input:buildType}' --args=is_debug=$(if [ '${input:buildType}' = 'Debug' ]; then echo 'true'; else echo 'false'; fi) && (rm -fr out/active || true) && ln -s ${input:buildType} out/active",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
"windows": {
|
||||||
|
"command": "cmd",
|
||||||
|
"args": [
|
||||||
|
"/C",
|
||||||
|
"(IF \"${input:buildType}\" == \"Debug\" ( gn gen 'out\\${input:buildType}' --args=is_debug=true ) ELSE ( gn gen 'out\\${input:buildType}' --args=is_debug=false )) && (IF EXIST 'out\\active' rmdir 'out\\active' /q /s) && (mklink /j 'out\\active' 'out\\${input:buildType}')",
|
||||||
|
],
|
||||||
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceRoot}"
|
"cwd": "${workspaceRoot}"
|
||||||
},
|
},
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
},
|
},
|
||||||
// Rebases the current branch on to out origin/main and then calls
|
// Rebases the current branch on to origin/main and then calls
|
||||||
// `gclient sync`.
|
// `gclient sync`.
|
||||||
{
|
{
|
||||||
"label": "sync",
|
"label": "sync",
|
||||||
|
@ -92,14 +106,21 @@
|
||||||
"command": "sh",
|
"command": "sh",
|
||||||
"args": [
|
"args": [
|
||||||
"-c",
|
"-c",
|
||||||
"git fetch origin && git rebase origin/main && gclient sync"
|
"git fetch origin && git rebase origin/main && gclient sync && echo Done"
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"osx": {
|
"osx": {
|
||||||
"command": "sh",
|
"command": "sh",
|
||||||
"args": [
|
"args": [
|
||||||
"-c",
|
"-c",
|
||||||
"git fetch origin && git rebase origin/main && gclient sync"
|
"git fetch origin && git rebase origin/main && gclient sync && echo Done"
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"windows": {
|
||||||
|
"command": "cmd",
|
||||||
|
"args": [
|
||||||
|
"/C",
|
||||||
|
"git fetch origin && git rebase origin/main && gclient sync && echo Done"
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
|
@ -135,4 +156,4 @@
|
||||||
"description": "The type of build",
|
"description": "The type of build",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue