.vscode: Simplify build setup task
Also now works on windows (assuming bash is the main terminal) - still better than a TODO Change-Id: I817143bb1c0dc95346dcf2c23f115c35a55349e5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122522 Kokoro: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
parent
3a431d71be
commit
431ec3db38
|
@ -73,70 +73,14 @@
|
||||||
// A symbolic link to this build directory is created at 'out/active'
|
// A symbolic link to this build directory is created at 'out/active'
|
||||||
// which is used to track the active build directory.
|
// which is used to track the active build directory.
|
||||||
{
|
{
|
||||||
"label": "gn gen",
|
"label": "setup build",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"linux": {
|
"command": "./tools/setup-build",
|
||||||
"command": "./tools/setup-build",
|
"args": [
|
||||||
"args": [
|
"${input:buildSystem}",
|
||||||
"gn",
|
"${input:buildType}",
|
||||||
"${input:buildType}",
|
"${input:buildArch}",
|
||||||
"${input:buildArch}",
|
],
|
||||||
],
|
|
||||||
},
|
|
||||||
"osx": {
|
|
||||||
"command": "./tools/setup-build",
|
|
||||||
"args": [
|
|
||||||
"gn",
|
|
||||||
"${input:buildType}",
|
|
||||||
"${input:buildArch}",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
"windows": {
|
|
||||||
"command": "/C",
|
|
||||||
"args": [
|
|
||||||
"(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": {
|
|
||||||
"shell": {
|
|
||||||
"executable": "cmd"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"cwd": "${workspaceRoot}"
|
|
||||||
},
|
|
||||||
"problemMatcher": [],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "cmake gen",
|
|
||||||
"type": "shell",
|
|
||||||
"linux": {
|
|
||||||
"command": "./tools/setup-build",
|
|
||||||
"args": [
|
|
||||||
"cmake",
|
|
||||||
"${input:buildType}",
|
|
||||||
"${input:buildArch}",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
"osx": {
|
|
||||||
"command": "./tools/setup-build",
|
|
||||||
"args": [
|
|
||||||
"cmake",
|
|
||||||
"${input:buildType}",
|
|
||||||
"${input:buildArch}",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
"windows": {
|
|
||||||
"command": "/C",
|
|
||||||
"args": [
|
|
||||||
"echo TODO",
|
|
||||||
],
|
|
||||||
"options": {
|
|
||||||
"shell": {
|
|
||||||
"executable": "cmd"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceRoot}"
|
"cwd": "${workspaceRoot}"
|
||||||
},
|
},
|
||||||
|
@ -194,6 +138,16 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"inputs": [
|
"inputs": [
|
||||||
|
{
|
||||||
|
"id": "buildSystem",
|
||||||
|
"type": "pickString",
|
||||||
|
"options": [
|
||||||
|
"cmake",
|
||||||
|
"gn",
|
||||||
|
],
|
||||||
|
"default": "gn",
|
||||||
|
"description": "The build system",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "buildType",
|
"id": "buildType",
|
||||||
"type": "pickString",
|
"type": "pickString",
|
||||||
|
|
Loading…
Reference in New Issue