tasks.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. {
  2. // See https://go.microsoft.com/fwlink/?LinkId=733558
  3. // for the documentation about the tasks.json format
  4. "version": "2.0.0",
  5. "tasks": [
  6. {
  7. "label": "[Release] Build",
  8. "group": "build",
  9. "type": "shell",
  10. "command": "./fbt COMPACT=1 DEBUG=0"
  11. },
  12. {
  13. "label": "[Debug] Build",
  14. "group": "build",
  15. "type": "shell",
  16. "command": "./fbt"
  17. },
  18. {
  19. "label": "[Release] Flash (ST-Link)",
  20. "group": "build",
  21. "type": "shell",
  22. "command": "./fbt COMPACT=1 DEBUG=0 FORCE=1 flash"
  23. },
  24. {
  25. "label": "[Debug] Flash (ST-Link)",
  26. "group": "build",
  27. "type": "shell",
  28. "command": "./fbt FORCE=1 flash"
  29. },
  30. {
  31. "label": "[Release] Flash (blackmagic)",
  32. "group": "build",
  33. "type": "shell",
  34. "command": "./fbt COMPACT=1 DEBUG=0 FORCE=1 flash_blackmagic"
  35. },
  36. {
  37. "label": "[Debug] Flash (blackmagic)",
  38. "group": "build",
  39. "type": "shell",
  40. "command": "./fbt FORCE=1 flash_blackmagic"
  41. },
  42. {
  43. "label": "[Release] Flash (JLink)",
  44. "group": "build",
  45. "type": "shell",
  46. "command": "./fbt COMPACT=1 DEBUG=0 FORCE=1 jflash"
  47. },
  48. {
  49. "label": "[Debug] Flash (JLink)",
  50. "group": "build",
  51. "type": "shell",
  52. "command": "./fbt FORCE=1 jflash"
  53. },
  54. {
  55. "label": "[Release] Build update bundle",
  56. "group": "build",
  57. "type": "shell",
  58. "command": "./fbt updater_package COMPACT=1 DEBUG=0"
  59. },
  60. {
  61. "label": "[Debug] Build update bundle",
  62. "group": "build",
  63. "type": "shell",
  64. "command": "./fbt updater_package"
  65. },
  66. {
  67. "label": "[Release] Build updater",
  68. "group": "build",
  69. "type": "shell",
  70. "command": "./fbt updater_all COMPACT=1 DEBUG=0"
  71. },
  72. {
  73. "label": "[Debug] Build updater",
  74. "group": "build",
  75. "type": "shell",
  76. "command": "./fbt updater_all"
  77. },
  78. {
  79. "label": "[Debug] Flash (USB, w/o resources)",
  80. "group": "build",
  81. "type": "shell",
  82. "command": "./fbt FORCE=1 flash_usb"
  83. },
  84. {
  85. "label": "[Release] Flash (USB, w/o resources)",
  86. "group": "build",
  87. "type": "shell",
  88. "command": "./fbt COMPACT=1 DEBUG=0 FORCE=1 flash_usb"
  89. },
  90. {
  91. "label": "[Debug:unit_tests] Flash (USB)",
  92. "group": "build",
  93. "type": "shell",
  94. "command": "./fbt FIRMWARE_APP_SET=unit_tests FORCE=1 flash_usb"
  95. },
  96. {
  97. "label": "[Debug] Flash (USB, with resources)",
  98. "group": "build",
  99. "type": "shell",
  100. "command": "./fbt FORCE=1 flash_usb_full"
  101. },
  102. {
  103. "label": "[Release] Flash (USB, with resources)",
  104. "group": "build",
  105. "type": "shell",
  106. "command": "./fbt COMPACT=1 DEBUG=0 FORCE=1 flash_usb_full"
  107. },
  108. {
  109. "label": "[Debug] Create PVS-Studio report",
  110. "group": "build",
  111. "type": "shell",
  112. "command": "./fbt firmware_pvs"
  113. },
  114. {
  115. "label": "[Debug] Build FAPs",
  116. "group": "build",
  117. "type": "shell",
  118. "command": "./fbt fap_dist"
  119. },
  120. {
  121. "label": "[Release] Build FAPs",
  122. "group": "build",
  123. "type": "shell",
  124. "command": "./fbt COMPACT=1 DEBUG=0 fap_dist"
  125. },
  126. {
  127. "label": "[Debug] Launch App on Flipper",
  128. "group": "build",
  129. "type": "shell",
  130. "command": "./fbt launch_app APPSRC=${relativeFileDirname}"
  131. },
  132. {
  133. "label": "[Release] Launch App on Flipper",
  134. "group": "build",
  135. "type": "shell",
  136. "command": "./fbt COMPACT=1 DEBUG=0 launch_app APPSRC=${relativeFileDirname}"
  137. },
  138. {
  139. "label": "[Debug] Launch App on Flipper with Serial Console",
  140. "dependsOrder": "sequence",
  141. "group": "build",
  142. "dependsOn": [
  143. "[Debug] Launch App on Flipper",
  144. "Serial Console"
  145. ]
  146. },
  147. {
  148. "label": "[Debug] Build and upload all FAPs to Flipper over USB",
  149. "group": "build",
  150. "type": "shell",
  151. "command": "./fbt fap_deploy"
  152. },
  153. {
  154. "label": "[Release] Build and upload all FAPs to Flipper over USB",
  155. "group": "build",
  156. "type": "shell",
  157. "command": "./fbt COMPACT=1 DEBUG=0 fap_deploy"
  158. },
  159. {
  160. // Press Ctrl+] to quit
  161. "label": "Serial Console",
  162. "type": "shell",
  163. "command": "./fbt cli",
  164. "group": "none",
  165. "isBackground": true,
  166. "options": {
  167. "env": {
  168. "FBT_NO_SYNC": "0"
  169. }
  170. },
  171. "presentation": {
  172. "reveal": "always",
  173. "revealProblems": "never",
  174. "showReuseMessage": false,
  175. "panel": "dedicated",
  176. "focus": true,
  177. "echo": true,
  178. "close": true,
  179. "group": "Logger"
  180. }
  181. }
  182. ]
  183. }