2022-08-03 16:32:31 +00:00
|
|
|
{
|
|
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
|
|
// for the documentation about the tasks.json format
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
|
|
|
{
|
2023-07-18 09:39:30 +00:00
|
|
|
"label": "[Release] Build Firmware",
|
2022-08-03 16:32:31 +00:00
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt COMPACT=1 DEBUG=0"
|
|
|
|
},
|
|
|
|
{
|
2023-07-18 09:39:30 +00:00
|
|
|
"label": "[Debug] Build Firmware",
|
2022-08-03 16:32:31 +00:00
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt"
|
|
|
|
},
|
|
|
|
{
|
2023-08-22 18:33:10 +00:00
|
|
|
"label": "[Release] Flash (SWD)",
|
2022-08-03 16:32:31 +00:00
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt COMPACT=1 DEBUG=0 FORCE=1 flash"
|
|
|
|
},
|
|
|
|
{
|
2023-08-22 18:33:10 +00:00
|
|
|
"label": "[Debug] Flash (SWD)",
|
2022-08-03 16:32:31 +00:00
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt FORCE=1 flash"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Release] Flash (JLink)",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt COMPACT=1 DEBUG=0 FORCE=1 jflash"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Debug] Flash (JLink)",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt FORCE=1 jflash"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Release] Build update bundle",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
2022-08-09 12:16:09 +00:00
|
|
|
"command": "./fbt updater_package COMPACT=1 DEBUG=0"
|
2022-08-03 16:32:31 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Debug] Build update bundle",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
2022-08-09 12:16:09 +00:00
|
|
|
"command": "./fbt updater_package"
|
2022-08-03 16:32:31 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Release] Build updater",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt updater_all COMPACT=1 DEBUG=0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Debug] Build updater",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt updater_all"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Debug] Flash (USB, w/o resources)",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt FORCE=1 flash_usb"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Release] Flash (USB, w/o resources)",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt COMPACT=1 DEBUG=0 FORCE=1 flash_usb"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Debug:unit_tests] Flash (USB)",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
2024-05-20 17:23:47 +00:00
|
|
|
"command": "./fbt FIRMWARE_APP_SET=unit_tests FORCE=1 flash_usb_full"
|
2022-08-03 16:32:31 +00:00
|
|
|
},
|
2022-09-14 16:11:38 +00:00
|
|
|
{
|
|
|
|
"label": "[Debug] Flash (USB, with resources)",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt FORCE=1 flash_usb_full"
|
|
|
|
},
|
2022-08-03 16:32:31 +00:00
|
|
|
{
|
|
|
|
"label": "[Release] Flash (USB, with resources)",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt COMPACT=1 DEBUG=0 FORCE=1 flash_usb_full"
|
|
|
|
},
|
2023-01-17 12:55:49 +00:00
|
|
|
{
|
|
|
|
"label": "[Debug] Create PVS-Studio report",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt firmware_pvs"
|
|
|
|
},
|
2022-09-14 16:11:38 +00:00
|
|
|
{
|
|
|
|
"label": "[Debug] Build FAPs",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
2022-10-26 15:18:06 +00:00
|
|
|
"command": "./fbt fap_dist"
|
2022-09-14 16:11:38 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Release] Build FAPs",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
2022-10-26 15:18:06 +00:00
|
|
|
"command": "./fbt COMPACT=1 DEBUG=0 fap_dist"
|
2022-09-14 16:11:38 +00:00
|
|
|
},
|
2023-07-18 09:39:30 +00:00
|
|
|
{
|
|
|
|
"label": "[Debug] Build App",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt build APPSRC=${relativeFileDirname}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Release] Build App",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt COMPACT=1 DEBUG=0 build APPSRC=${relativeFileDirname}"
|
|
|
|
},
|
2022-09-14 16:11:38 +00:00
|
|
|
{
|
|
|
|
"label": "[Debug] Launch App on Flipper",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
2023-07-18 09:39:30 +00:00
|
|
|
"command": "./fbt launch APPSRC=${relativeFileDirname}"
|
2022-09-14 16:11:38 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Release] Launch App on Flipper",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
2023-07-18 09:39:30 +00:00
|
|
|
"command": "./fbt COMPACT=1 DEBUG=0 launch APPSRC=${relativeFileDirname}"
|
2022-12-14 07:42:13 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Debug] Launch App on Flipper with Serial Console",
|
|
|
|
"dependsOrder": "sequence",
|
|
|
|
"group": "build",
|
|
|
|
"dependsOn": [
|
|
|
|
"[Debug] Launch App on Flipper",
|
|
|
|
"Serial Console"
|
|
|
|
]
|
|
|
|
},
|
2023-01-11 10:13:07 +00:00
|
|
|
{
|
|
|
|
"label": "[Debug] Build and upload all FAPs to Flipper over USB",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt fap_deploy"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "[Release] Build and upload all FAPs to Flipper over USB",
|
|
|
|
"group": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt COMPACT=1 DEBUG=0 fap_deploy"
|
|
|
|
},
|
2022-12-14 07:42:13 +00:00
|
|
|
{
|
|
|
|
// Press Ctrl+] to quit
|
|
|
|
"label": "Serial Console",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./fbt cli",
|
|
|
|
"group": "none",
|
|
|
|
"isBackground": true,
|
2023-01-11 10:13:07 +00:00
|
|
|
"options": {
|
2022-12-14 07:42:13 +00:00
|
|
|
"env": {
|
|
|
|
"FBT_NO_SYNC": "0"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"revealProblems": "never",
|
|
|
|
"showReuseMessage": false,
|
|
|
|
"panel": "dedicated",
|
|
|
|
"focus": true,
|
|
|
|
"echo": true,
|
|
|
|
"close": true,
|
|
|
|
"group": "Logger"
|
|
|
|
}
|
2022-09-14 16:11:38 +00:00
|
|
|
}
|
2022-08-03 16:32:31 +00:00
|
|
|
]
|
2023-01-11 10:13:07 +00:00
|
|
|
}
|