tasks.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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] Build FAPs",
  110. "group": "build",
  111. "type": "shell",
  112. "command": "./fbt fap_dist"
  113. },
  114. {
  115. "label": "[Release] Build FAPs",
  116. "group": "build",
  117. "type": "shell",
  118. "command": "./fbt COMPACT=1 DEBUG=0 fap_dist"
  119. },
  120. {
  121. "label": "[Debug] Launch App on Flipper",
  122. "group": "build",
  123. "type": "shell",
  124. "command": "./fbt launch_app APPSRC=${relativeFileDirname}"
  125. },
  126. {
  127. "label": "[Release] Launch App on Flipper",
  128. "group": "build",
  129. "type": "shell",
  130. "command": "./fbt COMPACT=1 DEBUG=0 launch_app APPSRC=${relativeFileDirname}"
  131. }
  132. ]
  133. }