2022-11-12 19:37:16 +08:00
|
|
|
{
|
|
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
|
|
|
{
|
|
|
|
"label": "build task", // 任务标签
|
|
|
|
"type": "shell", // 任务类型,因为要调用mingw32-make,是在终端(CMD)里运行的,所以是shell任务
|
2023-04-29 14:59:39 +08:00
|
|
|
"command": "mingw32-make -j24 -l12",// 任务命令,线程数可以根据自己的电脑修改,建议为核数的4~8倍
|
2022-11-12 19:37:16 +08:00
|
|
|
"problemMatcher": [],
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
}
|
2022-11-29 20:00:46 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "download dap",
|
2022-11-29 20:42:17 +08:00
|
|
|
"type": "shell", // 如果希望在下载前编译,可以把command换成下面的命令
|
2023-03-23 18:57:54 +08:00
|
|
|
"command":"mingw32-make download_dap", // "mingw32-make -j24 ; mingw32-make download_dap",
|
2022-11-29 20:42:17 +08:00
|
|
|
"group": { // 如果没有修改代码,编译任务不会消耗时间,因此推荐使用上面的替换.
|
2022-11-29 20:00:46 +08:00
|
|
|
"kind": "build",
|
|
|
|
"isDefault": false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2023-04-13 11:38:19 +08:00
|
|
|
"label": "download jlink", // 要使用此任务,需添加jlink的环境变量
|
2022-11-29 20:00:46 +08:00
|
|
|
"type": "shell",
|
2023-03-23 18:57:54 +08:00
|
|
|
"command":"mingw32-make download_jlink", // "mingw32-make -j24 ; mingw32-make download_dap"
|
2022-11-29 20:00:46 +08:00
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": false,
|
|
|
|
}
|
|
|
|
},
|
2023-03-18 20:36:21 +08:00
|
|
|
{
|
|
|
|
"label": "log",
|
|
|
|
"type": "shell",
|
|
|
|
"command":"JlinkRTTClient",
|
|
|
|
"args": [],
|
|
|
|
"problemMatcher": [],
|
2023-03-19 11:11:40 +08:00
|
|
|
// "dependsOn":[
|
|
|
|
// "build task", // 可以添加多个.
|
|
|
|
// ]
|
2023-03-18 20:36:21 +08:00
|
|
|
}
|
2022-11-12 19:37:16 +08:00
|
|
|
]
|
|
|
|
}
|