mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 11:29:56 +03:00
51 lines
1.5 KiB
JSON
51 lines
1.5 KiB
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"options": {
|
|
"env": {
|
|
"TARGET": "${config:TARGET}",
|
|
}
|
|
},
|
|
"tasks": [
|
|
{
|
|
"label": "target",
|
|
"type": "shell",
|
|
"command": "make", "args": ["-C", "${config:BUILD_DIR}", "${config:TARGET}"],
|
|
"problemMatcher": "$gcc",
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
}
|
|
},
|
|
{
|
|
"label": "flash",
|
|
"type": "shell",
|
|
"command": "make", "args": ["-C", "${config:BUILD_DIR}", "openocd_flash_${config:TARGET}"],
|
|
"dependsOn": "elf"
|
|
},
|
|
{
|
|
"label": "svd",
|
|
"type": "shell",
|
|
"command": "make", "args": ["-C", "${config:BUILD_DIR}", "svd_${config:TARGET}"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "openocd-cfg",
|
|
"type": "shell",
|
|
"command": "make", "args": ["-C", "${config:BUILD_DIR}", "openocd_cfg_${config:TARGET}"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "openocd-debug-prepare",
|
|
"type": "shell",
|
|
"dependsOn": ["svd", "openocd-cfg", "flash"],
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|