Convert wslpath to makefile
This commit is contained in:
@@ -5,10 +5,30 @@
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"cargo_task": [
|
||||
"wslpath all!Unix: wslpath",
|
||||
"wslpath all-windows!Windows: wslpath"
|
||||
]
|
||||
},
|
||||
"tasks": {
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "cargo2",
|
||||
"type": "shell",
|
||||
"group": {
|
||||
"kind": "build"
|
||||
},
|
||||
"windows": {
|
||||
"command": "wsl --shell-type login make -C ./${input:windows_cargo_task} CARGO_CMD=${input:cargo cmd} BUILD_PROFILE=${input:build cfg}"
|
||||
},
|
||||
"linux": {
|
||||
"command": "make -C ./${input:linux_cargo_task} BUILD_PROFILE=${input:build cfg}"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"label": "all",
|
||||
"type": "shell",
|
||||
@@ -62,6 +82,28 @@
|
||||
}
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
"id": "windows_cargo_task",
|
||||
"type": "command",
|
||||
"command": "shellCommand.execute",
|
||||
"args": {
|
||||
"command": "powershell",
|
||||
"commandArgs": ["-command", "'${config:cargo_task}'.Replace(',',\"`n\")"],
|
||||
"fieldSeparator": "!"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
{
|
||||
"id": "planschi",
|
||||
"type": "command",
|
||||
"command": "shellCommand.execute",
|
||||
"args": {
|
||||
"command": "printf A!B\\nB!C",
|
||||
"fieldSeparator": "!"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "build cfg",
|
||||
"type": "pickString",
|
||||
|
Reference in New Issue
Block a user