Convert wslpath to makefile

This commit is contained in:
2024-10-07 21:58:07 +02:00
parent 6bcc871966
commit 16f8f103e0
4 changed files with 73 additions and 0 deletions

View File

@@ -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",