@geastack/targets 0.1.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +83 -0
  3. package/package.json +50 -0
  4. package/targets/cmake/geatsc-generated-archive-build.mjs +614 -0
  5. package/targets/cmake/geatsc_generated_archive.cmake +116 -0
  6. package/targets/cmake/geatsc_generated_archive_build.cmake +50 -0
  7. package/targets/esp32/app_project.cmake +33 -0
  8. package/targets/esp32/apps/app_manager.cpp +188 -0
  9. package/targets/esp32/apps/app_manager.h +10 -0
  10. package/targets/esp32/chip_bindings/README.md +58 -0
  11. package/targets/esp32/chip_bindings/audio/es8311.cpp +556 -0
  12. package/targets/esp32/chip_bindings/displays/co5300.cpp +510 -0
  13. package/targets/esp32/chip_bindings/displays/co5300.h +47 -0
  14. package/targets/esp32/chip_bindings/displays/co5300_async_stream.inc +79 -0
  15. package/targets/esp32/chip_bindings/displays/qspi_panel.h +65 -0
  16. package/targets/esp32/chip_bindings/displays/sh8601.cpp +583 -0
  17. package/targets/esp32/chip_bindings/displays/sh8601.h +36 -0
  18. package/targets/esp32/chip_bindings/gps/lc76g.cpp +296 -0
  19. package/targets/esp32/chip_bindings/gps/lc76g.h +7 -0
  20. package/targets/esp32/chip_bindings/imu/bmi270.cpp +299 -0
  21. package/targets/esp32/chip_bindings/imu/bmi270_config.inl +439 -0
  22. package/targets/esp32/chip_bindings/imu/qmi8658.cpp +213 -0
  23. package/targets/esp32/chip_bindings/power/axp2101.cpp +185 -0
  24. package/targets/esp32/chip_bindings/touch/cst9217.cpp +229 -0
  25. package/targets/esp32/chip_bindings/touch/cst9217_controller.h +78 -0
  26. package/targets/esp32/chip_bindings/touch/ft3168.cpp +340 -0
  27. package/targets/esp32/chip_bindings/touch/ft3168_controller.h +103 -0
  28. package/targets/esp32/chip_bindings/touch/ft6336.cpp +310 -0
  29. package/targets/esp32/chip_bindings/touch/ft6336_controller.h +90 -0
  30. package/targets/esp32/components/gea_framework/CMakeLists.txt +62 -0
  31. package/targets/esp32/connectivity/ble_hid.cpp +2916 -0
  32. package/targets/esp32/connectivity/ble_hid.h +8 -0
  33. package/targets/esp32/connectivity/diagnostics_transport.cpp +523 -0
  34. package/targets/esp32/connectivity/diagnostics_transport_offline.cpp +108 -0
  35. package/targets/esp32/connectivity/wifi.cpp +615 -0
  36. package/targets/esp32/connectivity/wifi_debug_offline.cpp +37 -0
  37. package/targets/esp32/connectivity/wifi_task_stack.h +119 -0
  38. package/targets/esp32/display.cpp +6010 -0
  39. package/targets/esp32/display_headless.cpp +468 -0
  40. package/targets/esp32/gea/platform_random.h +11 -0
  41. package/targets/esp32/gea_framework.cmake +382 -0
  42. package/targets/esp32/gpio.cpp +229 -0
  43. package/targets/esp32/host_sources.cmake +35 -0
  44. package/targets/esp32/imu_absent.cpp +36 -0
  45. package/targets/esp32/ldfragments/gea_ui_state_external.lf +35 -0
  46. package/targets/esp32/memory_config.h +64 -0
  47. package/targets/esp32/power_absent.cpp +22 -0
  48. package/targets/esp32/sdk-patches/0001-esp_ptr_dma_capable-accept-PSRAM.patch +70 -0
  49. package/targets/esp32/sdk-patches/0002-gdma-access_ext_mem-spi_master.patch +59 -0
  50. package/targets/esp32/sdk-patches/README.md +127 -0
  51. package/targets/esp32/services/app_runner.cpp +248 -0
  52. package/targets/esp32/services/app_state.cpp +56 -0
  53. package/targets/esp32/services/audio_runtime_stub.cpp +86 -0
  54. package/targets/esp32/services/battery_service.cpp +31 -0
  55. package/targets/esp32/services/device_control.cpp +1896 -0
  56. package/targets/esp32/services/device_control.h +31 -0
  57. package/targets/esp32/services/frame_scheduler.cpp +1571 -0
  58. package/targets/esp32/services/heap.cpp +129 -0
  59. package/targets/esp32/services/memory.cpp +103 -0
  60. package/targets/esp32/services/ota.cpp +840 -0
  61. package/targets/esp32/services/ota_image.cpp +162 -0
  62. package/targets/esp32/services/ota_image.h +16 -0
  63. package/targets/esp32/services/storage_service.cpp +159 -0
  64. package/targets/esp32/touch_absent.cpp +44 -0
  65. package/targets/esp32-m5stack-m5paper/CMakeLists.txt +10 -0
  66. package/targets/esp32-m5stack-m5paper/README.md +55 -0
  67. package/targets/esp32-m5stack-m5paper/dependencies.lock +76 -0
  68. package/targets/esp32-m5stack-m5paper/main/CMakeLists.txt +46 -0
  69. package/targets/esp32-m5stack-m5paper/main/Kconfig.projbuild +10 -0
  70. package/targets/esp32-m5stack-m5paper/main/app_main.cpp +114 -0
  71. package/targets/esp32-m5stack-m5paper/main/audio_stub.cpp +27 -0
  72. package/targets/esp32-m5stack-m5paper/main/buttons.cpp +111 -0
  73. package/targets/esp32-m5stack-m5paper/main/display.cpp +1074 -0
  74. package/targets/esp32-m5stack-m5paper/main/i2c.cpp +36 -0
  75. package/targets/esp32-m5stack-m5paper/main/idf_component.yml +7 -0
  76. package/targets/esp32-m5stack-m5paper/main/imu_stub.cpp +20 -0
  77. package/targets/esp32-m5stack-m5paper/main/include/board.h +100 -0
  78. package/targets/esp32-m5stack-m5paper/main/include/buttons.h +8 -0
  79. package/targets/esp32-m5stack-m5paper/main/launcher_button.cpp +82 -0
  80. package/targets/esp32-m5stack-m5paper/main/m5paper_psram.lf +20 -0
  81. package/targets/esp32-m5stack-m5paper/main/power.cpp +73 -0
  82. package/targets/esp32-m5stack-m5paper/main/sdcard_mount.cpp +82 -0
  83. package/targets/esp32-m5stack-m5paper/main/touch.cpp +279 -0
  84. package/targets/esp32-m5stack-m5paper/partitions.csv +9 -0
  85. package/targets/esp32-m5stack-m5paper/sdkconfig.defaults +84 -0
  86. package/targets/esp32-p4-m5stack-tab5/CMakeLists.txt +10 -0
  87. package/targets/esp32-p4-m5stack-tab5/dependencies.lock +276 -0
  88. package/targets/esp32-p4-m5stack-tab5/main/CMakeLists.txt +586 -0
  89. package/targets/esp32-p4-m5stack-tab5/main/Kconfig.projbuild +12 -0
  90. package/targets/esp32-p4-m5stack-tab5/main/app_main.cpp +177 -0
  91. package/targets/esp32-p4-m5stack-tab5/main/camera.cpp +2025 -0
  92. package/targets/esp32-p4-m5stack-tab5/main/display.cpp +4033 -0
  93. package/targets/esp32-p4-m5stack-tab5/main/fatfs_ffconf.h +383 -0
  94. package/targets/esp32-p4-m5stack-tab5/main/i2c.cpp +39 -0
  95. package/targets/esp32-p4-m5stack-tab5/main/idf_component.yml +21 -0
  96. package/targets/esp32-p4-m5stack-tab5/main/include/board.h +130 -0
  97. package/targets/esp32-p4-m5stack-tab5/main/include/tab5_drivers.h +68 -0
  98. package/targets/esp32-p4-m5stack-tab5/main/include/wifi_config.h.example +5 -0
  99. package/targets/esp32-p4-m5stack-tab5/main/launcher_button.cpp +188 -0
  100. package/targets/esp32-p4-m5stack-tab5/main/power.cpp +22 -0
  101. package/targets/esp32-p4-m5stack-tab5/main/sdcard_mount.cpp +125 -0
  102. package/targets/esp32-p4-m5stack-tab5/main/tab5_audio.cpp +345 -0
  103. package/targets/esp32-p4-m5stack-tab5/main/tab5_drivers.cpp +871 -0
  104. package/targets/esp32-p4-m5stack-tab5/main/tab5_imu.cpp +246 -0
  105. package/targets/esp32-p4-m5stack-tab5/main/touch.cpp +206 -0
  106. package/targets/esp32-p4-m5stack-tab5/partitions.csv +12 -0
  107. package/targets/esp32-p4-m5stack-tab5/sdkconfig.defaults +128 -0
  108. package/targets/esp32-p4-waveshare-touch-lcd-3.5/CMakeLists.txt +19 -0
  109. package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/0001-esp_video-csi-raw-passthrough-p4-rev-lt-v3.patch +28 -0
  110. package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/README.md +45 -0
  111. package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/apply.sh +37 -0
  112. package/targets/esp32-p4-waveshare-touch-lcd-3.5/dependencies.lock +196 -0
  113. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/CMakeLists.txt +562 -0
  114. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/Kconfig.projbuild +12 -0
  115. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/app_main.cpp +166 -0
  116. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/camera.cpp +2105 -0
  117. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/display.cpp +1730 -0
  118. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/fatfs_ffconf.h +383 -0
  119. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/i2c.cpp +39 -0
  120. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/idf_component.yml +11 -0
  121. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/board.h +87 -0
  122. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/panel_native.h +59 -0
  123. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/wifi_config.h.example +5 -0
  124. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/launcher_button.cpp +191 -0
  125. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/power.cpp +15 -0
  126. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/touch.cpp +306 -0
  127. package/targets/esp32-p4-waveshare-touch-lcd-3.5/partitions.csv +13 -0
  128. package/targets/esp32-p4-waveshare-touch-lcd-3.5/patches/README.md +22 -0
  129. package/targets/esp32-p4-waveshare-touch-lcd-3.5/patches/espressif__esp_video-csi-bypass.patch +28 -0
  130. package/targets/esp32-p4-waveshare-touch-lcd-3.5/sdkconfig.defaults +109 -0
  131. package/targets/esp32-p4-waveshare-touch-lcd-3.5/tools/README-camera-capture.md +84 -0
  132. package/targets/esp32-p4-waveshare-touch-lcd-3.5/tools/capture-camera.py +369 -0
  133. package/targets/esp32-p4-waveshare-touch-lcd-7/CMakeLists.txt +10 -0
  134. package/targets/esp32-p4-waveshare-touch-lcd-7/dependencies.lock +258 -0
  135. package/targets/esp32-p4-waveshare-touch-lcd-7/main/CMakeLists.txt +577 -0
  136. package/targets/esp32-p4-waveshare-touch-lcd-7/main/Kconfig.projbuild +12 -0
  137. package/targets/esp32-p4-waveshare-touch-lcd-7/main/app_main.cpp +177 -0
  138. package/targets/esp32-p4-waveshare-touch-lcd-7/main/camera.cpp +1935 -0
  139. package/targets/esp32-p4-waveshare-touch-lcd-7/main/display.cpp +2832 -0
  140. package/targets/esp32-p4-waveshare-touch-lcd-7/main/fatfs_ffconf.h +383 -0
  141. package/targets/esp32-p4-waveshare-touch-lcd-7/main/i2c.cpp +39 -0
  142. package/targets/esp32-p4-waveshare-touch-lcd-7/main/idf_component.yml +23 -0
  143. package/targets/esp32-p4-waveshare-touch-lcd-7/main/include/board.h +68 -0
  144. package/targets/esp32-p4-waveshare-touch-lcd-7/main/include/wifi_config.h.example +5 -0
  145. package/targets/esp32-p4-waveshare-touch-lcd-7/main/launcher_button.cpp +191 -0
  146. package/targets/esp32-p4-waveshare-touch-lcd-7/main/power.cpp +15 -0
  147. package/targets/esp32-p4-waveshare-touch-lcd-7/main/sdcard_mount.cpp +125 -0
  148. package/targets/esp32-p4-waveshare-touch-lcd-7/main/touch.cpp +332 -0
  149. package/targets/esp32-p4-waveshare-touch-lcd-7/partitions.csv +12 -0
  150. package/targets/esp32-p4-waveshare-touch-lcd-7/sdkconfig.defaults +122 -0
  151. package/targets/esp32-p4-waveshare-touch-lcd-7/tools/README-camera-capture.md +84 -0
  152. package/targets/esp32-p4-waveshare-touch-lcd-7/tools/capture-camera.py +369 -0
  153. package/targets/esp32-s3-devkit-n16r8.json +31 -0
  154. package/targets/esp32-s3-elecrow-rotary-2.1/CMakeLists.txt +10 -0
  155. package/targets/esp32-s3-elecrow-rotary-2.1/dependencies.lock +40 -0
  156. package/targets/esp32-s3-elecrow-rotary-2.1/main/CMakeLists.txt +549 -0
  157. package/targets/esp32-s3-elecrow-rotary-2.1/main/Kconfig.projbuild +12 -0
  158. package/targets/esp32-s3-elecrow-rotary-2.1/main/app_main.cpp +187 -0
  159. package/targets/esp32-s3-elecrow-rotary-2.1/main/display_rgb.cpp +1338 -0
  160. package/targets/esp32-s3-elecrow-rotary-2.1/main/i2c.cpp +39 -0
  161. package/targets/esp32-s3-elecrow-rotary-2.1/main/idf_component.yml +5 -0
  162. package/targets/esp32-s3-elecrow-rotary-2.1/main/include/board.h +142 -0
  163. package/targets/esp32-s3-elecrow-rotary-2.1/main/include/pcf8574.h +16 -0
  164. package/targets/esp32-s3-elecrow-rotary-2.1/main/include/rotary_encoder.h +7 -0
  165. package/targets/esp32-s3-elecrow-rotary-2.1/main/launcher_button.cpp +191 -0
  166. package/targets/esp32-s3-elecrow-rotary-2.1/main/pcf8574.cpp +86 -0
  167. package/targets/esp32-s3-elecrow-rotary-2.1/main/platform_stubs.cpp +47 -0
  168. package/targets/esp32-s3-elecrow-rotary-2.1/main/rotary_encoder.cpp +135 -0
  169. package/targets/esp32-s3-elecrow-rotary-2.1/main/touch.cpp +250 -0
  170. package/targets/esp32-s3-elecrow-rotary-2.1/partitions.csv +8 -0
  171. package/targets/esp32-s3-elecrow-rotary-2.1/sdkconfig.defaults +116 -0
  172. package/targets/esp32-s3-epaper-1.54/CMakeLists.txt +10 -0
  173. package/targets/esp32-s3-epaper-1.54/dependencies.lock +76 -0
  174. package/targets/esp32-s3-epaper-1.54/main/CMakeLists.txt +691 -0
  175. package/targets/esp32-s3-epaper-1.54/main/Kconfig.projbuild +12 -0
  176. package/targets/esp32-s3-epaper-1.54/main/app_main.cpp +181 -0
  177. package/targets/esp32-s3-epaper-1.54/main/buttons.cpp +144 -0
  178. package/targets/esp32-s3-epaper-1.54/main/display.cpp +1281 -0
  179. package/targets/esp32-s3-epaper-1.54/main/fatfs_ffconf.h +377 -0
  180. package/targets/esp32-s3-epaper-1.54/main/i2c.cpp +39 -0
  181. package/targets/esp32-s3-epaper-1.54/main/idf_component.yml +7 -0
  182. package/targets/esp32-s3-epaper-1.54/main/imu_stub.cpp +21 -0
  183. package/targets/esp32-s3-epaper-1.54/main/include/board.h +119 -0
  184. package/targets/esp32-s3-epaper-1.54/main/include/buttons.h +9 -0
  185. package/targets/esp32-s3-epaper-1.54/main/include/wifi_config.h.example +5 -0
  186. package/targets/esp32-s3-epaper-1.54/main/launcher_button.cpp +191 -0
  187. package/targets/esp32-s3-epaper-1.54/main/power.cpp +15 -0
  188. package/targets/esp32-s3-epaper-1.54/main/sdcard_mount.cpp +89 -0
  189. package/targets/esp32-s3-epaper-1.54/main/touch.cpp +299 -0
  190. package/targets/esp32-s3-epaper-1.54/partitions.csv +8 -0
  191. package/targets/esp32-s3-epaper-1.54/sdkconfig.defaults +217 -0
  192. package/targets/esp32-s3-lilygo-t-display-s3-long/CMakeLists.txt +10 -0
  193. package/targets/esp32-s3-lilygo-t-display-s3-long/README.md +29 -0
  194. package/targets/esp32-s3-lilygo-t-display-s3-long/dependencies.lock +116 -0
  195. package/targets/esp32-s3-lilygo-t-display-s3-long/main/CMakeLists.txt +90 -0
  196. package/targets/esp32-s3-lilygo-t-display-s3-long/main/idf_component.yml +7 -0
  197. package/targets/esp32-s3-lilygo-t-display-s3-long/main/include/board.h +61 -0
  198. package/targets/esp32-s3-lilygo-t-display-s3-long/main/touch.cpp +299 -0
  199. package/targets/esp32-s3-lilygo-t-display-s3-long/partitions.csv +7 -0
  200. package/targets/esp32-s3-lilygo-t-display-s3-long/sdkconfig.defaults +50 -0
  201. package/targets/esp32-s3-lilygo-t5-epaper-4.7/CMakeLists.txt +12 -0
  202. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/CMakeLists.txt +17 -0
  203. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/ed047tc1.c +269 -0
  204. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/ed047tc1.h +142 -0
  205. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/epd_driver.c +1114 -0
  206. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/epd_driver.h +410 -0
  207. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/gea_epd.c +989 -0
  208. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/i2s_data_bus.c +489 -0
  209. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/i2s_data_bus.h +104 -0
  210. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/rmt_pulse.c +136 -0
  211. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/rmt_pulse.h +78 -0
  212. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/utilities.h +49 -0
  213. package/targets/esp32-s3-lilygo-t5-epaper-4.7/dependencies.lock +35 -0
  214. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/CMakeLists.txt +30 -0
  215. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/Kconfig.projbuild +10 -0
  216. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/app_main.cpp +95 -0
  217. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/audio_stub.cpp +27 -0
  218. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/buttons.cpp +40 -0
  219. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/display.cpp +627 -0
  220. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/i2c.cpp +36 -0
  221. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/idf_component.yml +4 -0
  222. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/imu_stub.cpp +20 -0
  223. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/include/board.h +85 -0
  224. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/include/buttons.h +8 -0
  225. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/launcher_button.cpp +82 -0
  226. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/power.cpp +36 -0
  227. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/sdcard_mount.cpp +90 -0
  228. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/touch.cpp +293 -0
  229. package/targets/esp32-s3-lilygo-t5-epaper-4.7/partitions.csv +9 -0
  230. package/targets/esp32-s3-lilygo-t5-epaper-4.7/sdkconfig.defaults +217 -0
  231. package/targets/esp32-s3-m5stack-papers3/CMakeLists.txt +13 -0
  232. package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/CMakeLists.txt +5 -0
  233. package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/include/papers3_epd.h +74 -0
  234. package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/papers3_epd.c +671 -0
  235. package/targets/esp32-s3-m5stack-papers3/dependencies.lock +76 -0
  236. package/targets/esp32-s3-m5stack-papers3/main/CMakeLists.txt +64 -0
  237. package/targets/esp32-s3-m5stack-papers3/main/Kconfig.projbuild +10 -0
  238. package/targets/esp32-s3-m5stack-papers3/main/app_main.cpp +96 -0
  239. package/targets/esp32-s3-m5stack-papers3/main/audio_stub.cpp +27 -0
  240. package/targets/esp32-s3-m5stack-papers3/main/buttons.cpp +49 -0
  241. package/targets/esp32-s3-m5stack-papers3/main/display.cpp +706 -0
  242. package/targets/esp32-s3-m5stack-papers3/main/i2c.cpp +36 -0
  243. package/targets/esp32-s3-m5stack-papers3/main/idf_component.yml +14 -0
  244. package/targets/esp32-s3-m5stack-papers3/main/imu.cpp +351 -0
  245. package/targets/esp32-s3-m5stack-papers3/main/include/board.h +101 -0
  246. package/targets/esp32-s3-m5stack-papers3/main/include/buttons.h +8 -0
  247. package/targets/esp32-s3-m5stack-papers3/main/launcher_button.cpp +96 -0
  248. package/targets/esp32-s3-m5stack-papers3/main/power.cpp +102 -0
  249. package/targets/esp32-s3-m5stack-papers3/main/sdcard_mount.cpp +88 -0
  250. package/targets/esp32-s3-m5stack-papers3/main/touch.cpp +287 -0
  251. package/targets/esp32-s3-m5stack-papers3/partitions.csv +9 -0
  252. package/targets/esp32-s3-m5stack-papers3/sdkconfig.defaults +232 -0
  253. package/targets/esp32-s3-m5stack-sticks3/CMakeLists.txt +10 -0
  254. package/targets/esp32-s3-m5stack-sticks3/dependencies.lock +51 -0
  255. package/targets/esp32-s3-m5stack-sticks3/main/CMakeLists.txt +51 -0
  256. package/targets/esp32-s3-m5stack-sticks3/main/Kconfig.projbuild +12 -0
  257. package/targets/esp32-s3-m5stack-sticks3/main/app_main.cpp +130 -0
  258. package/targets/esp32-s3-m5stack-sticks3/main/buttons.cpp +101 -0
  259. package/targets/esp32-s3-m5stack-sticks3/main/display.cpp +1391 -0
  260. package/targets/esp32-s3-m5stack-sticks3/main/i2c.cpp +39 -0
  261. package/targets/esp32-s3-m5stack-sticks3/main/idf_component.yml +8 -0
  262. package/targets/esp32-s3-m5stack-sticks3/main/imu_stub.cpp +9 -0
  263. package/targets/esp32-s3-m5stack-sticks3/main/include/board.h +89 -0
  264. package/targets/esp32-s3-m5stack-sticks3/main/include/buttons.h +9 -0
  265. package/targets/esp32-s3-m5stack-sticks3/main/launcher_button.cpp +191 -0
  266. package/targets/esp32-s3-m5stack-sticks3/main/power.cpp +15 -0
  267. package/targets/esp32-s3-m5stack-sticks3/main/sdcard_mount.cpp +8 -0
  268. package/targets/esp32-s3-m5stack-sticks3/main/touch.cpp +65 -0
  269. package/targets/esp32-s3-m5stack-sticks3/partitions.csv +8 -0
  270. package/targets/esp32-s3-m5stack-sticks3/sdkconfig.defaults +130 -0
  271. package/targets/esp32-s3-touch-amoled-1.75/CMakeLists.txt +10 -0
  272. package/targets/esp32-s3-touch-amoled-1.75/dependencies.lock +130 -0
  273. package/targets/esp32-s3-touch-amoled-1.75/main/CMakeLists.txt +589 -0
  274. package/targets/esp32-s3-touch-amoled-1.75/main/Kconfig.projbuild +12 -0
  275. package/targets/esp32-s3-touch-amoled-1.75/main/app_main.cpp +153 -0
  276. package/targets/esp32-s3-touch-amoled-1.75/main/i2c.cpp +39 -0
  277. package/targets/esp32-s3-touch-amoled-1.75/main/idf_component.yml +9 -0
  278. package/targets/esp32-s3-touch-amoled-1.75/main/include/board.h +110 -0
  279. package/targets/esp32-s3-touch-amoled-1.75/main/include/wifi_config.h.example +5 -0
  280. package/targets/esp32-s3-touch-amoled-1.75/main/launcher_button.cpp +191 -0
  281. package/targets/esp32-s3-touch-amoled-1.75/main/touch.cpp +45 -0
  282. package/targets/esp32-s3-touch-amoled-1.75/partitions.csv +8 -0
  283. package/targets/esp32-s3-touch-amoled-1.75/sdkconfig.defaults +179 -0
  284. package/targets/esp32-s3-touch-amoled-1.8/CMakeLists.txt +10 -0
  285. package/targets/esp32-s3-touch-amoled-1.8/dependencies.lock +105 -0
  286. package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +768 -0
  287. package/targets/esp32-s3-touch-amoled-1.8/main/Kconfig.projbuild +12 -0
  288. package/targets/esp32-s3-touch-amoled-1.8/main/app_main.cpp +172 -0
  289. package/targets/esp32-s3-touch-amoled-1.8/main/i2c.cpp +39 -0
  290. package/targets/esp32-s3-touch-amoled-1.8/main/idf_component.yml +8 -0
  291. package/targets/esp32-s3-touch-amoled-1.8/main/include/board.h +83 -0
  292. package/targets/esp32-s3-touch-amoled-1.8/main/include/wifi_config.h.example +5 -0
  293. package/targets/esp32-s3-touch-amoled-1.8/main/launcher_button.cpp +191 -0
  294. package/targets/esp32-s3-touch-amoled-1.8/main/touch.cpp +41 -0
  295. package/targets/esp32-s3-touch-amoled-1.8/partitions.csv +8 -0
  296. package/targets/esp32-s3-touch-amoled-1.8/sdkconfig.defaults +179 -0
  297. package/targets/esp32-s3-touch-amoled-2.06/CMakeLists.txt +10 -0
  298. package/targets/esp32-s3-touch-amoled-2.06/dependencies.lock +64 -0
  299. package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +1121 -0
  300. package/targets/esp32-s3-touch-amoled-2.06/main/Kconfig.projbuild +12 -0
  301. package/targets/esp32-s3-touch-amoled-2.06/main/app_main.cpp +333 -0
  302. package/targets/esp32-s3-touch-amoled-2.06/main/i2c.cpp +39 -0
  303. package/targets/esp32-s3-touch-amoled-2.06/main/idf_component.yml +27 -0
  304. package/targets/esp32-s3-touch-amoled-2.06/main/include/board.h +114 -0
  305. package/targets/esp32-s3-touch-amoled-2.06/main/include/wifi_config.h.example +5 -0
  306. package/targets/esp32-s3-touch-amoled-2.06/main/launcher_button.cpp +199 -0
  307. package/targets/esp32-s3-touch-amoled-2.06/main/sdcard_mount.cpp +105 -0
  308. package/targets/esp32-s3-touch-amoled-2.06/main/touch.cpp +49 -0
  309. package/targets/esp32-s3-touch-amoled-2.06/partitions.csv +14 -0
  310. package/targets/esp32-s3-touch-amoled-2.06/sdkconfig.defaults +273 -0
  311. package/targets/esp32-s3-touch-amoled-2.41/CMakeLists.txt +10 -0
  312. package/targets/esp32-s3-touch-amoled-2.41/main/CMakeLists.txt +71 -0
  313. package/targets/esp32-s3-touch-amoled-2.41/main/Kconfig.projbuild +12 -0
  314. package/targets/esp32-s3-touch-amoled-2.41/main/idf_component.yml +27 -0
  315. package/targets/esp32-s3-touch-amoled-2.41/main/include/board.h +108 -0
  316. package/targets/esp32-s3-touch-amoled-2.41/main/include/wifi_config.h.example +5 -0
  317. package/targets/esp32-s3-touch-amoled-2.41/main/panel_reset.cpp +82 -0
  318. package/targets/esp32-s3-touch-amoled-2.41/main/touch.cpp +49 -0
  319. package/targets/esp32-s3-touch-amoled-2.41/partitions.csv +8 -0
  320. package/targets/esp32-s3-touch-amoled-2.41/sdkconfig.defaults +273 -0
  321. package/targets/rp2350-tufty-2350/CMakeLists.txt +348 -0
  322. package/targets/rp2350-tufty-2350/README.md +53 -0
  323. package/targets/rp2350-tufty-2350/boards/pimoroni_tufty2350.h +87 -0
  324. package/targets/rp2350-tufty-2350/main/bringup.cpp +187 -0
  325. package/targets/rp2350-tufty-2350/main/include/board.h +124 -0
  326. package/targets/rp2350-tufty-2350/main/rp2350_panel.cpp +428 -0
  327. package/targets/rp2350-tufty-2350/main/rp2350_panel.h +46 -0
  328. package/targets/rp2350-tufty-2350/main/st7789_parallel.pio +7 -0
  329. package/targets/rp2350-waveshare-touch-amoled-2.41/CMakeLists.txt +345 -0
  330. package/targets/rp2350-waveshare-touch-amoled-2.41/README.md +153 -0
  331. package/targets/rp2350-waveshare-touch-amoled-2.41/boards/waveshare_rp2350_touch_amoled_2_41.h +59 -0
  332. package/targets/rp2350-waveshare-touch-amoled-2.41/main/app.cpp +984 -0
  333. package/targets/rp2350-waveshare-touch-amoled-2.41/main/bringup.cpp +222 -0
  334. package/targets/rp2350-waveshare-touch-amoled-2.41/main/include/board.h +138 -0
  335. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_gea_platform.cpp +2553 -0
  336. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_gea_platform.h +18 -0
  337. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_host_fetch_stub.cpp +64 -0
  338. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_panel.cpp +677 -0
  339. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_panel.h +48 -0
  340. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/rp_pico_alloc.c +354 -0
  341. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/rp_pico_alloc.h +56 -0
  342. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf.c +1284 -0
  343. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf.h +95 -0
  344. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf_block_functions.h +123 -0
  345. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf_common.h +127 -0
  346. package/targets/rp2350-waveshare-touch-amoled-2.41/tools/rp2350-scroll-bench.py +162 -0
  347. package/targets/rp2350-waveshare-touch-amoled-2.41/tools/rp2350-scroll-parity.py +198 -0
  348. package/targets.json +154 -0
@@ -0,0 +1,586 @@
1
+ set(GEA_EMBEDDED_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../..")
2
+ cmake_path(ABSOLUTE_PATH GEA_EMBEDDED_ROOT NORMALIZE)
3
+
4
+ # geastack split: resolve the gea framework via npm + the shared manifest.
5
+ # Exports GEA_CORE/GEA_COMPILER/GEA_PLUGIN/GEA_CHIPS/GEA_HOST,
6
+ # GEA_APP_ENTRY_SRC, and GEA_FW_CXX_SOURCES/GEA_FW_C_SOURCES/GEA_FW_INCLUDE_DIRS.
7
+ include("${GEA_EMBEDDED_ROOT}/targets/esp32/gea_framework.cmake")
8
+ include("${GEA_EMBEDDED_ROOT}/targets/cmake/geatsc_generated_archive.cmake")
9
+
10
+ # GEA_EMBEDDED_APP must be set explicitly in the real configure pass — no
11
+ # default. The build script `scripts/board` passes
12
+ # `-DGEA_EMBEDDED_APP=<id>` for every command, so this is invisible in
13
+ # normal use. Without an explicit value the previous default `tic-tac-toe`
14
+ # silently picked an arbitrary app whose features didn't match the user's
15
+ # actual selection, producing a REQUIRES list mismatched against the real
16
+ # pass.
17
+ #
18
+ # Script-mode (`cmake -P`, used by IDF's component_get_requirements.cmake)
19
+ # is a special case: it runs before the user's -D args reach the cache, so
20
+ # a hard error there would break component-requirement extraction
21
+ # entirely. We fall through to `tilt-breakout` in that pass because it is a
22
+ # gea app with a broad native binding surface.
23
+ set(GEA_EMBEDDED_APP "" CACHE STRING "Example app to build (must match a package.json gea.id) — required, no default")
24
+ if(CMAKE_SCRIPT_MODE_FILE AND "${GEA_EMBEDDED_APP}" STREQUAL "")
25
+ set(GEA_EMBEDDED_APP "tilt-breakout")
26
+ elseif(NOT CMAKE_SCRIPT_MODE_FILE AND "${GEA_EMBEDDED_APP}" STREQUAL "")
27
+ message(FATAL_ERROR "GEA_EMBEDDED_APP is required. Pass -DGEA_EMBEDDED_APP=<id> or use scripts/board which sets it for you (see package.json gea.id values for valid ids).")
28
+ endif()
29
+
30
+ set(GEA_EMBEDDED_HTTPS_SUPPORT "auto" CACHE STRING "Enable HTTPS fetch support: auto, on, or off")
31
+ set(GEA_EMBEDDED_CPP_BOARD "esp32-p4-m5stack-tab5" CACHE STRING "Board profile passed to geatsc for C++ target selection")
32
+ # No FORCE: this is the board's own declaration, and an app that declares
33
+ # `gea.cssDevicePixelRatio` gets a -D of the same name on the configure line,
34
+ # which exists in the cache before this runs. FORCE overwrote it, so the app's
35
+ # stylesheets and the glyph atlas geatsc bakes from this value disagreed.
36
+ set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "2.0" CACHE STRING "Logical CSS px to physical pixel scale for this board")
37
+ set(GEA_EMBEDDED_DISPLAY_WIDTH 1280)
38
+ set(GEA_EMBEDDED_DISPLAY_HEIGHT 720)
39
+ set(GEA_EMBEDDED_DISPLAY_NATIVE_WIDTH 720)
40
+ set(GEA_EMBEDDED_DISPLAY_NATIVE_HEIGHT 1280)
41
+
42
+ # Write a file only when its content would change. Preserves mtime when content matches,
43
+ # so downstream make/ninja rules don't see spurious changes on every reconfigure.
44
+ function(_gea_write_if_different FILE_PATH CONTENT)
45
+ set(_should_write 1)
46
+ if(EXISTS "${FILE_PATH}")
47
+ file(READ "${FILE_PATH}" _existing)
48
+ if("${_existing}" STREQUAL "${CONTENT}")
49
+ set(_should_write 0)
50
+ endif()
51
+ endif()
52
+ if(_should_write)
53
+ file(WRITE "${FILE_PATH}" "${CONTENT}")
54
+ endif()
55
+ endfunction()
56
+
57
+ # Enumerate files under DIR matching one of the source extensions / config filenames, pruning
58
+ # node_modules / dist / .vite at directory boundaries. CMake's file(GLOB_RECURSE) walks every file
59
+ # in the tree before filtering — for example dirs that's ~1000 stat calls per node_modules. find(1)
60
+ # prunes at the directory level; do not follow symlinks, or pnpm's dependency graph turns configure
61
+ # into a slow walk through node_modules internals.
62
+ function(_gea_find_sources OUT_VAR DIR)
63
+ get_filename_component(_gea_find_dir "${DIR}" REALPATH)
64
+ execute_process(
65
+ COMMAND find "${_gea_find_dir}"
66
+ -type d \( -name node_modules -o -name dist -o -name .vite -o -name .build -o -name build
67
+ -o -name .test-tmp -o -name generated-output -o -name .scratch -o -name vendor
68
+ -o -name test262 -o -name bench -o -name test \) -prune
69
+ -o -type f \(
70
+ -name "*.tsx" -o -name "*.ts" -o -name "*.jsx" -o -name "*.js"
71
+ -o -name "*.css" -o -name "*.html"
72
+ -o -name "package.json" -o -name "tsconfig.json" -o -name "vite.config.ts"
73
+ \) -print
74
+ OUTPUT_VARIABLE _output
75
+ OUTPUT_STRIP_TRAILING_WHITESPACE
76
+ )
77
+ if(_output STREQUAL "")
78
+ set(${OUT_VAR} "" PARENT_SCOPE)
79
+ else()
80
+ string(REPLACE "\n" ";" _list "${_output}")
81
+ set(${OUT_VAR} "${_list}" PARENT_SCOPE)
82
+ endif()
83
+ endfunction()
84
+
85
+ function(_gea_collect_app_sources OUT_VAR APP_DIR)
86
+ _gea_find_sources(_src "${APP_DIR}")
87
+ set(${OUT_VAR} "${_src}" PARENT_SCOPE)
88
+ endfunction()
89
+
90
+ # App image assets (PNG/JPG/GIF). generate-gea-embedded-assets.mjs embeds these as
91
+ # .rodata referenced by `<img src>`, so they MUST be on the geatsc_build DEPENDS
92
+ # list: otherwise resizing/replacing an image never re-runs codegen and the stale
93
+ # bytes ship (and an oversized PNG silently fails to decode on-device). Scoped to
94
+ # the app dir (not the framework) so configure stays fast.
95
+ function(_gea_collect_app_assets OUT_VAR APP_DIR)
96
+ execute_process(
97
+ COMMAND find "${APP_DIR}"
98
+ -type d \( -name node_modules -o -name dist -o -name .vite -o -name build
99
+ -o -name .test-tmp -o -name generated-output -o -name .scratch -o -name vendor
100
+ -o -name test262 -o -name bench -o -name test \) -prune
101
+ -o -type f \(
102
+ -name "*.png" -o -name "*.jpg" -o -name "*.jpeg" -o -name "*.gif"
103
+ \) -print
104
+ OUTPUT_VARIABLE _output
105
+ OUTPUT_STRIP_TRAILING_WHITESPACE
106
+ )
107
+ if(_output STREQUAL "")
108
+ set(${OUT_VAR} "" PARENT_SCOPE)
109
+ else()
110
+ string(REPLACE "\n" ";" _list "${_output}")
111
+ set(${OUT_VAR} "${_list}" PARENT_SCOPE)
112
+ endif()
113
+ endfunction()
114
+
115
+ # Source files that affect Gea compiler -> geatsc output. Keep this scoped to
116
+ # the embedded framework, upstream Gea compiler, and @geatsc/plugin-gea.
117
+ _gea_find_sources(_GEA_COMPILER_DEP_SRCS "${GEA_CORE}/..")
118
+ _gea_find_sources(_GEA_UPSTREAM_GEA_SRCS "${GEA_COMPILER}")
119
+ _gea_find_sources(_GEATSC_GEA_PLUGIN_SRCS "${GEA_PLUGIN}")
120
+ if(CMAKE_SCRIPT_MODE_FILE)
121
+ file(GLOB_RECURSE _GEATSC_GEA_PLUGIN_DIST_SRCS
122
+ "${GEA_PLUGIN}/dist/*.js"
123
+ "${GEA_PLUGIN}/dist/*.json"
124
+ )
125
+ else()
126
+ file(GLOB_RECURSE _GEATSC_GEA_PLUGIN_DIST_SRCS CONFIGURE_DEPENDS
127
+ "${GEA_PLUGIN}/dist/*.js"
128
+ "${GEA_PLUGIN}/dist/*.json"
129
+ )
130
+ endif()
131
+ list(APPEND _GEA_COMPILER_DEP_SRCS
132
+ "${GEA_CORE}/scripts/build-gea-vite-geatsc.mjs"
133
+ "${GEA_CORE}/scripts/gea-embedded-compat-transform.mjs"
134
+ "${GEA_CORE}/scripts/generate-gea-embedded-fonts.mjs"
135
+ ${_GEA_UPSTREAM_GEA_SRCS}
136
+ ${_GEATSC_GEA_PLUGIN_SRCS}
137
+ ${_GEATSC_GEA_PLUGIN_DIST_SRCS}
138
+ )
139
+ list(REMOVE_DUPLICATES _GEA_COMPILER_DEP_SRCS)
140
+ get_property(_GEA_CONFIGURE_DEPS_REGISTERED GLOBAL PROPERTY GEA_CONFIGURE_DEPS_REGISTERED)
141
+ if(NOT CMAKE_SCRIPT_MODE_FILE AND _GEA_COMPILER_DEP_SRCS AND NOT _GEA_CONFIGURE_DEPS_REGISTERED)
142
+ set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${_GEA_COMPILER_DEP_SRCS})
143
+ set_property(GLOBAL PROPERTY GEA_CONFIGURE_DEPS_REGISTERED TRUE)
144
+ endif()
145
+
146
+ # host/camera.cpp (and the rest of the generic host layer) now comes from the
147
+ # shared manifest gea_sources.sh — it compiles on every board and is a runtime
148
+ # no-op where there's no camera, so no board-specific gating is needed here.
149
+
150
+ file(GLOB _GEA_FONT_ASSETS
151
+ "${GEA_EMBEDDED_ROOT}/assets/fonts/*.ttf"
152
+ "${GEA_EMBEDDED_ROOT}/assets/fonts/*.otf"
153
+ "${GEA_EMBEDDED_ROOT}/assets/fonts/*.woff"
154
+ "${GEA_EMBEDDED_ROOT}/assets/fonts/*.woff2"
155
+ )
156
+
157
+ # App metadata (root;entry;runtime;native sources...) is resolved once by the
158
+ # gea CLI and handed to gea_framework.cmake as GEA_EMBEDDED_APP_META; the
159
+ # GEA_EMBEDDED_APP_DIR/ENTRY/RUNTIME/NATIVE_SOURCE_RELS variables come from there.
160
+
161
+ set(GEA_EMBEDDED_APP_NATIVE_SOURCES "")
162
+ foreach(_GEA_EMBEDDED_APP_NATIVE_SOURCE_REL IN LISTS GEA_EMBEDDED_APP_NATIVE_SOURCE_RELS)
163
+ list(APPEND GEA_EMBEDDED_APP_NATIVE_SOURCES "${GEA_EMBEDDED_APP_DIR}/${_GEA_EMBEDDED_APP_NATIVE_SOURCE_REL}")
164
+ endforeach()
165
+
166
+ set(JS_APP_SRC "${GEA_EMBEDDED_APP_DIR}/${GEA_EMBEDDED_APP_ENTRY}")
167
+
168
+ # Each application's generated output gets its own build directory.
169
+ set(GENERATED_APP_DIR "${CMAKE_BINARY_DIR}/apps/${GEA_EMBEDDED_APP}")
170
+ file(MAKE_DIRECTORY "${GENERATED_APP_DIR}")
171
+ set(JS_APP "${GENERATED_APP_DIR}/dist/index.js")
172
+ # geatsc emits one C++ translation unit per source module and records the
173
+ # compile set in geatsc-sources.txt. A generated archive consumes that list at
174
+ # build time so CMake configure does not need to know module filenames up front.
175
+ set(GEATSC_SOURCE_LIST "${GENERATED_APP_DIR}/geatsc-sources.txt")
176
+ set(GEATSC_ARCHIVE "${GENERATED_APP_DIR}/libgea_active_geatsc.a")
177
+ set(GENERATED_FONT_CPP "${GENERATED_APP_DIR}/gea_embedded_font_generated.cpp")
178
+ set(GENERATED_FONT_H "${GENERATED_APP_DIR}/gea_embedded_font_generated.h")
179
+ set(GENERATED_ASSETS_CPP "${GENERATED_APP_DIR}/gea_embedded_assets_generated.cpp")
180
+ set(GENERATED_CONFIG_H "${GENERATED_APP_DIR}/gea_embedded_app_config.h")
181
+ set(GENERATED_INSTALLED_APPS_H "${CMAKE_BINARY_DIR}/gea_embedded_installed_apps_generated.h")
182
+ execute_process(
183
+ COMMAND node
184
+ "${GEA_CORE}/scripts/generate-installed-app-plan.mjs"
185
+ "${CMAKE_CURRENT_LIST_DIR}/../partitions.csv"
186
+ "${GENERATED_INSTALLED_APPS_H}"
187
+ RESULT_VARIABLE GEA_EMBEDDED_INSTALLED_APPS_RESULT
188
+ )
189
+ if(NOT GEA_EMBEDDED_INSTALLED_APPS_RESULT EQUAL 0)
190
+ message(FATAL_ERROR "Failed to generate installed app plan from partitions.csv")
191
+ endif()
192
+
193
+ # The app source owns app-level defaults. On a fresh configure, create only a minimal
194
+ # placeholder; the unified geatsc path can overwrite it with app-derived config
195
+ # later if a native define surface lands here.
196
+ if(NOT EXISTS "${GENERATED_CONFIG_H}")
197
+ # Stub config header kept around because app_main.cpp still includes it.
198
+ _gea_write_if_different("${GENERATED_CONFIG_H}" "#pragma once\n")
199
+ endif()
200
+ if(NOT EXISTS "${GENERATED_FONT_H}")
201
+ _gea_write_if_different("${GENERATED_FONT_H}" [[
202
+ #pragma once
203
+ #define GEA_EMBEDDED_HAS_GENERATED_FONTS 1
204
+ #include "graphics/font.h"
205
+ #define GEA_EMBEDDED_FONT_COUNT 0
206
+ #define GEA_EMBEDDED_FONT_FAMILY_COUNT 0
207
+ ]])
208
+ endif()
209
+ if(NOT EXISTS "${GENERATED_FONT_CPP}")
210
+ _gea_write_if_different("${GENERATED_FONT_CPP}" [[
211
+ #include "gea_embedded_font_generated.h"
212
+ namespace gea::framework::graphics::generated {
213
+ void ensureLinked() {}
214
+ const RasterizedFontData *lookupFont(int fontId)
215
+ {
216
+ (void)fontId;
217
+ return nullptr;
218
+ }
219
+ const RasterizedFontData *lookupFontForFamily(int familyId, int sizePx)
220
+ {
221
+ (void)familyId;
222
+ (void)sizePx;
223
+ return nullptr;
224
+ }
225
+ int lookupFontFamily(const char *family)
226
+ {
227
+ (void)family;
228
+ return -1;
229
+ }
230
+ } // namespace gea::framework::graphics::generated
231
+ ]])
232
+ endif()
233
+ # Stub asset TU on the SRCS list before geatsc_build overwrites it with the
234
+ # real (or empty) generated registry. Mirrors the font stub above.
235
+ if(NOT EXISTS "${GENERATED_ASSETS_CPP}")
236
+ _gea_write_if_different("${GENERATED_ASSETS_CPP}" [[
237
+ // No embedded assets (stub overwritten by generate-gea-embedded-assets.mjs).
238
+ ]])
239
+ endif()
240
+
241
+ # geatsc mode: generated app/user code is compiled from geatsc-sources.txt
242
+ # into a separate archive, then linked with the firmware-side Gea adapter and host bindings.
243
+ # Without app metadata (a configure driven by hand, or IDF's script-mode
244
+ # requirements pass before the CLI's -D values land) JS_APP_SRC is a bare
245
+ # directory; analyzing it would crash node with EISDIR and abort the
246
+ # configure with a misleading "has geatsc been built?" error. The normal
247
+ # pass refuses with the real reason; script mode carries on with an empty
248
+ # binding set, since that pass only extracts component requirements.
249
+ if(NOT EXISTS "${JS_APP_SRC}" OR IS_DIRECTORY "${JS_APP_SRC}")
250
+ if(NOT CMAKE_SCRIPT_MODE_FILE)
251
+ message(FATAL_ERROR "No app entry to build for '${GEA_EMBEDDED_APP}' (JS_APP_SRC='${JS_APP_SRC}'). Run this target through the gea CLI with an app: gea build --board <alias> --app <id>")
252
+ endif()
253
+ set(_GEA_EMBEDDED_ANALYZE_RAW "bindings=\nfeatures=")
254
+ set(_GEA_EMBEDDED_ANALYZE_STATUS 0)
255
+ else()
256
+ execute_process(
257
+ COMMAND node
258
+ "${GEA_COMPILER}/dist/cli.js"
259
+ analyze
260
+ "${JS_APP_SRC}"
261
+ --plugin
262
+ "${GEA_PLUGIN}/dist/index.js"
263
+ OUTPUT_VARIABLE _GEA_EMBEDDED_ANALYZE_RAW
264
+ OUTPUT_STRIP_TRAILING_WHITESPACE
265
+ RESULT_VARIABLE _GEA_EMBEDDED_ANALYZE_STATUS
266
+ )
267
+ endif()
268
+ if(NOT _GEA_EMBEDDED_ANALYZE_STATUS EQUAL 0)
269
+ message(FATAL_ERROR "geatsc analyze failed for app '${GEA_EMBEDDED_APP}' — has packages/geatsc been built? (run `npm --prefix packages/geatsc run build`)")
270
+ endif()
271
+ # `geatsc analyze` outputs two lines: `bindings=<ids>` and `features=<ids>`.
272
+ string(REGEX MATCH "bindings=([^\n]*)" _ "${_GEA_EMBEDDED_ANALYZE_RAW}")
273
+ set(_GEA_EMBEDDED_HOST_BINDINGS "${CMAKE_MATCH_1}")
274
+ list(REMOVE_DUPLICATES _GEA_EMBEDDED_HOST_BINDINGS)
275
+ if("${_GEA_EMBEDDED_HOST_BINDINGS}" MATCHES "(^|;)screen($|;)")
276
+ message(FATAL_ERROR "The gea screen host binding was removed; generated apps must target the embedded UI/canvas framework")
277
+ endif()
278
+ string(REGEX MATCH "features=([^\n]*)" _ "${_GEA_EMBEDDED_ANALYZE_RAW}")
279
+ set(_GEA_EMBEDDED_HOST_FEATURES "${CMAKE_MATCH_1}")
280
+
281
+ set(APP_GENERATED_SOURCES
282
+ ${GEA_EMBEDDED_APP_NATIVE_SOURCES}
283
+ "${GEA_APP_ENTRY_SRC}"
284
+ ${GENERATED_FONT_CPP}
285
+ ${GENERATED_ASSETS_CPP}
286
+ )
287
+ set(GEATSC_COMPILE_OPTIONS
288
+ -Wno-unused-variable
289
+ -Wno-return-type
290
+ -Os
291
+ )
292
+ set(GEATSC_COMPILE_DEFINITIONS "")
293
+ if(NOT CMAKE_SCRIPT_MODE_FILE)
294
+ set_source_files_properties(
295
+ "${GEA_HOST}/host/rtc_esp.cpp"
296
+ PROPERTIES COMPILE_OPTIONS "-Wno-unused-variable;-Os"
297
+ )
298
+ endif()
299
+ set(GEA_EMBEDDED_HTTPS_REQUIRES "")
300
+ set(GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS "")
301
+ set(GEA_EMBEDDED_BLE_COMPILE_DEFINITIONS "")
302
+ if("${_GEA_EMBEDDED_HOST_BINDINGS}" MATCHES "(^|;)ble($|;)")
303
+ list(APPEND GEA_EMBEDDED_BLE_COMPILE_DEFINITIONS GEA_EMBEDDED_APP_USES_BLE=1)
304
+ endif()
305
+ # Note: BLE driver registration + BLE controller preinit are forced from
306
+ # `app_main.cpp` and `bluetooth_service.cpp` regardless of the macro above,
307
+ # because `geatsc analyze` misses BLE usage routed through the internal
308
+ # `runtime-surface` re-export (as `gea-embedded`'s Settings panel does).
309
+ # The macro is kept narrow because `app_runner.cpp` uses it to decide
310
+ # whether `gea_init` is allocated in SPIRAM (when undefined) or internal
311
+ # DRAM (when defined). With 64 KB gea_init stack, forcing internal DRAM
312
+ # fails — only 32 KB largest contiguous block remains after wifi/diag init.
313
+ # `_GEA_EMBEDDED_HOST_FEATURES` is populated by `geatsc analyze` for the
314
+ # application.
315
+ #
316
+ # The user-facing `GEA_EMBEDDED_HTTPS_SUPPORT` cache option lets the build
317
+ # override auto-detection: `on` forces HTTPS linkage even when no
318
+ # `https://` URL appears in source, `off` skips it even when one does.
319
+ # `auto` (default) trusts analyze's verdict.
320
+ string(TOLOWER "${GEA_EMBEDDED_HTTPS_SUPPORT}" _GEA_EMBEDDED_HTTPS_SUPPORT_MODE)
321
+ set(_GEA_EMBEDDED_ENABLE_HTTPS 0)
322
+ if(_GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "auto")
323
+ if("${_GEA_EMBEDDED_HOST_FEATURES}" MATCHES "(^|;)https($|;)")
324
+ set(_GEA_EMBEDDED_ENABLE_HTTPS 1)
325
+ endif()
326
+ elseif(_GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "on"
327
+ OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "true"
328
+ OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "yes"
329
+ OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "1")
330
+ set(_GEA_EMBEDDED_ENABLE_HTTPS 1)
331
+ elseif(_GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "off"
332
+ OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "false"
333
+ OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "no"
334
+ OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "0")
335
+ set(_GEA_EMBEDDED_ENABLE_HTTPS 0)
336
+ else()
337
+ message(FATAL_ERROR "GEA_EMBEDDED_HTTPS_SUPPORT must be auto, on, or off")
338
+ endif()
339
+
340
+ if(_GEA_EMBEDDED_ENABLE_HTTPS)
341
+ list(APPEND GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS GEA_EMBEDDED_ENABLE_HTTPS=1)
342
+ # `mbedtls` lands in REQUIRES iff the active app actually needs HTTPS.
343
+ # The historical reason for unconditionally listing it (script-mode
344
+ # discrepancy with `GEA_EMBEDDED_APP=tic-tac-toe`) is gone now that
345
+ # script-mode falls through to a feature-rich gea placeholder. The
346
+ # condition here is the actual signal: an app with no https:// in source
347
+ # genuinely doesn't need mbedtls, and `--gc-sections` would strip it
348
+ # anyway.
349
+ list(APPEND GEA_EMBEDDED_HTTPS_REQUIRES mbedtls)
350
+ endif()
351
+
352
+ idf_component_register(
353
+ SRCS
354
+ "app_main.cpp"
355
+ "camera.cpp"
356
+ "display.cpp"
357
+ "i2c.cpp"
358
+ "launcher_button.cpp"
359
+ "power.cpp"
360
+ "sdcard_mount.cpp"
361
+ "tab5_audio.cpp"
362
+ "tab5_drivers.cpp"
363
+ "tab5_imu.cpp"
364
+ "touch.cpp"
365
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/apps/app_manager.cpp"
366
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/connectivity/diagnostics_transport.cpp"
367
+ # WiFi station driver (registerDriver / WifiStation). On P4 its esp_wifi_*
368
+ # calls resolve to esp_wifi_remote (C6 over esp_hosted SDIO). Native-only
369
+ # osi_funcs stack-bump is guarded by CONFIG_SOC_WIFI_SUPPORTED inside.
370
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/connectivity/wifi.cpp"
371
+ # @geastack framework C/C++ sources — single source of truth: @geastack/core/gea_sources.sh
372
+ # (resolved via node_modules, shared with the web build).
373
+ ${GEA_FW_APP_SENSITIVE_SOURCES}
374
+ # esp32-specific host shims (generic host + services come from the manifest):
375
+ "${GEA_HOST}/host/rtc_esp.cpp"
376
+ "${GEA_HOST}/audio_runtime.cpp"
377
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/services/app_runner.cpp"
378
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/services/app_state.cpp"
379
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/services/battery_service.cpp"
380
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/services/device_control.cpp"
381
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/services/frame_scheduler.cpp"
382
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/services/memory.cpp"
383
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/services/ota.cpp"
384
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/services/storage_service.cpp"
385
+ "${GEA_EMBEDDED_ROOT}/targets/esp32/services/heap.cpp"
386
+ ${APP_GENERATED_SOURCES}
387
+ INCLUDE_DIRS
388
+ "include"
389
+ "${GEA_EMBEDDED_ROOT}/targets/esp32"
390
+ ${GEA_FW_INCLUDE_DIRS}
391
+ "${GEA_CHIPS}"
392
+ ${GENERATED_APP_DIR}
393
+ ${CMAKE_BINARY_DIR}
394
+ REQUIRES
395
+ gea_framework
396
+ esp_system
397
+ esp_timer
398
+ freertos
399
+ lwip
400
+ esp_http_server
401
+ esp_http_client
402
+ ${GEA_EMBEDDED_HTTPS_REQUIRES}
403
+ app_update
404
+ esp_mm
405
+ esp_netif
406
+ esp_event
407
+ # WiFi: esp_wifi for the esp_wifi.h API headers; on P4 the implementation
408
+ # is provided by esp_wifi_remote (esp_hosted SDIO link to the onboard C6).
409
+ esp_wifi
410
+ esp_wifi_remote
411
+ esp_hosted
412
+ nvs_flash
413
+ esp_lcd
414
+ driver
415
+ esp_driver_ppa
416
+ esp_driver_i2c
417
+ esp_driver_usb_serial_jtag
418
+ esp_driver_i2s
419
+ esp_driver_ledc
420
+ esp_driver_sdmmc
421
+ sdmmc
422
+ fatfs
423
+ esp_video
424
+ esp_codec_dev
425
+ LDFRAGMENTS
426
+ )
427
+
428
+ if(TARGET idf::espressif__esp_ipa AND TARGET idf::esp_hal_cam)
429
+ idf_component_get_property(_GEA_ESP_IPA_LIB espressif__esp_ipa COMPONENT_LIB)
430
+ target_link_libraries(${_GEA_ESP_IPA_LIB} PUBLIC idf::esp_hal_cam)
431
+ endif()
432
+
433
+ if(TARGET idf::espressif__esp_video AND TARGET idf::esp_driver_gpio)
434
+ idf_component_get_property(_GEA_ESP_VIDEO_LIB espressif__esp_video COMPONENT_LIB)
435
+ target_link_libraries(${_GEA_ESP_VIDEO_LIB} PUBLIC idf::esp_driver_gpio)
436
+ target_compile_definitions(${_GEA_ESP_VIDEO_LIB} PRIVATE CAM_CTLR_COLOR_YUV422=CAM_CTLR_COLOR_YUV422_UYVY)
437
+ endif()
438
+
439
+ # Enable exFAT in FatFs (to mount exFAT microSD cards) WITHOUT editing the ESP-IDF
440
+ # tree: IDF has no Kconfig for FF_FS_EXFAT, so we force-include a repo-local ffconf.h
441
+ # (FF_FS_EXFAT=1) into the fatfs component. Its `#ifndef _FFCONF_DEFINED` guard makes
442
+ # IDF's own ffconf.h a no-op once ours is included first.
443
+ if(TARGET idf::fatfs)
444
+ idf_component_get_property(_GEA_FATFS_LIB fatfs COMPONENT_LIB)
445
+ target_compile_options(${_GEA_FATFS_LIB} PRIVATE
446
+ "SHELL:-include ${CMAKE_CURRENT_LIST_DIR}/fatfs_ffconf.h")
447
+ endif()
448
+
449
+ set(GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG_VALUE 0)
450
+ if(DEFINED ENV{GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG})
451
+ set(GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG_VALUE "$ENV{GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG}")
452
+ endif()
453
+
454
+ target_compile_definitions(${COMPONENT_LIB} PRIVATE
455
+ GEA_EMBEDDED_PIXEL_PANEL_ENDIAN=0
456
+ GEA_CPP_ENABLE_REGEX=0
457
+ GEA_CPP_USE_TO_CHARS_DOUBLE=0
458
+ GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG=${GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG_VALUE}
459
+ GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO=${GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO}
460
+ GEA_EMBEDDED_HAS_GENERATED_FONTS=1
461
+ GEA_EMBEDDED_DISPLAY_WIDTH=${GEA_EMBEDDED_DISPLAY_WIDTH}
462
+ GEA_EMBEDDED_DISPLAY_HEIGHT=${GEA_EMBEDDED_DISPLAY_HEIGHT}
463
+ GEA_EMBEDDED_DISPLAY_NATIVE_WIDTH=${GEA_EMBEDDED_DISPLAY_NATIVE_WIDTH}
464
+ GEA_EMBEDDED_DISPLAY_NATIVE_HEIGHT=${GEA_EMBEDDED_DISPLAY_NATIVE_HEIGHT}
465
+ # WiFi re-enabled for network apps (e.g. maps OSM tiles). Was =1 to isolate
466
+ # whether WiFi PSRAM/cache-bus contention starves the direct-PSRAM SPI flush
467
+ # FIFO; the WPA2-auth stack overflow is already mitigated by the osi_funcs
468
+ # task-stack bump in wifi.cpp. Re-add `GEA_EMBEDDED_WIFI_DISABLED=1` here if
469
+ # WiFi DMA/ISR traffic regresses the display flush. (#ifdef/#ifndef key on
470
+ # defined-ness, so this must be ABSENT — not =0 — to enable WiFi.)
471
+ GEA_EMBEDDED_BLE_DISABLED=1
472
+ GEA_EMBEDDED_AUDIO_DISABLED=0
473
+ GEA_EMBEDDED_DEFAULT_FRAME_INTERVAL_US=16000
474
+ GEA_EMBEDDED_FRAME_SCHEDULER_USE_ESP_TIMER=1
475
+ GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=1
476
+ GEA_EMBEDDED_FRAME_SCHEDULER_IDLE_YIELD_TICKS=0
477
+ GEA_EMBEDDED_FRAME_SCHEDULER_MAX_CATCHUP_FRAMES_BEFORE_YIELD=60
478
+ GEA_EMBEDDED_DIRTY_REGION_MAX_RECTS=64
479
+ GEA_EMBEDDED_FLUSH_ANCHOR_LEFT_PARTIAL_RECTS=0
480
+ GEA_EMBEDDED_RENDER_PARALLEL_MIN_ROWS=48
481
+ GEA_EMBEDDED_RENDER_PARALLEL_MIN_PIXELS=24576
482
+ # Fallback FreeRTOS frame ticker affinity when the esp_timer scheduler is disabled.
483
+ GEA_EMBEDDED_APP_FRAME_TASK_CORE=0
484
+ # Was =1 from an old display-pacing experiment (f06ad9724) that disabled the
485
+ # then-broken queueFrameEvent catch-up. =0 re-enables catch-up, now driven by
486
+ # the work-based, event-loop graceful-overrun path (frame_scheduler/runtime).
487
+ GEA_EMBEDDED_FRAME_SCHEDULER_DROP_CATCHUP_FRAMES=0
488
+ GEA_EMBEDDED_APP_FRAME_TASK_PRIORITY=23
489
+ ${GEA_EMBEDDED_BLE_COMPILE_DEFINITIONS}
490
+ ${GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS}
491
+ )
492
+
493
+ # Production lockdown: gated by CONFIG_GEA_EMBEDDED_PRODUCTION_LOCKDOWN (sdkconfig.defaults).
494
+ # When enabled, adds defines that compile out perf/heap logs and disable diagnostics server.
495
+ if(CONFIG_GEA_EMBEDDED_PRODUCTION_LOCKDOWN)
496
+ target_compile_definitions(${COMPONENT_LIB} PRIVATE
497
+ GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LOG=0
498
+ GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG=0
499
+ GEA_FRAME_PERF_LOG=0
500
+ GEA_EMBEDDED_DIAGNOSTICS_DISABLED=1
501
+ )
502
+ endif()
503
+
504
+ target_compile_options(${COMPONENT_LIB} PRIVATE
505
+ ${GEA_XTENSA_LITERALS} # -mtext-section-literals on xtensa, empty on riscv (see gea_framework.cmake)
506
+ -Wno-unused-parameter
507
+ -Wno-sign-compare
508
+ -Wno-missing-field-initializers
509
+ -Wno-implicit-fallthrough
510
+ $<$<COMPILE_LANGUAGE:C>:-Wno-old-style-declaration>
511
+ -Wno-misleading-indentation
512
+ -Wno-type-limits
513
+ -Wno-maybe-uninitialized
514
+ -Wno-calloc-transposed-args
515
+ -Wno-unused-function
516
+ -Wno-clobbered
517
+ )
518
+
519
+ # --- App compilation: vite-plugin-gea -> geatsc ---
520
+
521
+ _gea_collect_app_sources(_ACTIVE_APP_SRCS "${GEA_EMBEDDED_APP_DIR}")
522
+ _gea_collect_app_assets(_ACTIVE_APP_ASSETS "${GEA_EMBEDDED_APP_DIR}")
523
+ # The Gea compiler emits JS and IR, then geatsc emits C++. We use a stamp file as
524
+ # the canonical OUTPUT because geatsc now writes a source manifest plus multiple
525
+ # translation units. The generated archive consumes geatsc-sources.txt after this
526
+ # command has completed.
527
+ set(_GEATSC_BIN "${GEA_COMPILER}/dist/cli.js")
528
+ set(_GEATSC_BUILD_STAMP "${GENERATED_APP_DIR}/geatsc_build.stamp")
529
+ set(_GEA_VITE_GEATSC_SCRIPT "${GEA_CORE}/scripts/build-gea-vite-geatsc.mjs")
530
+ file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
531
+ "${GEA_COMPILER}/dist/*.js"
532
+ "${GEA_COMPILER}/dist/targets/cpp/runtime/*.cpp"
533
+ "${GEA_PLUGIN}/dist/*.js"
534
+ )
535
+ add_custom_command(
536
+ OUTPUT ${_GEATSC_BUILD_STAMP}
537
+ COMMAND node ${_GEA_VITE_GEATSC_SCRIPT}
538
+ --app-dir ${GEA_EMBEDDED_APP_DIR}
539
+ --entry ${GEA_EMBEDDED_APP_ENTRY}
540
+ --cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
541
+ --out-dir ${GENERATED_APP_DIR}
542
+ --geatsc-bin ${_GEATSC_BIN}
543
+ --font-viewport-width ${GEA_EMBEDDED_DISPLAY_WIDTH}
544
+ --font-viewport-height ${GEA_EMBEDDED_DISPLAY_HEIGHT}
545
+ --font-device-pixel-ratio ${GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO}
546
+ --pixel-panel-endian 0
547
+ --gea-ir-backend
548
+ # gea.compilerPlugins: an app's own geatsc plugins, e.g. the one that
549
+ # declares its native host-function boundary. Empty for most apps.
550
+ ${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
551
+ COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
552
+ DEPENDS
553
+ ${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
554
+ ${_ACTIVE_APP_SRCS}
555
+ ${_ACTIVE_APP_ASSETS}
556
+ ${_GEATSC_BIN}
557
+ ${_GEATSC_DIST_SRCS}
558
+ ${_GEA_COMPILER_DEP_SRCS}
559
+ ${_GEA_FONT_ASSETS}
560
+ BYPRODUCTS
561
+ "${GEATSC_SOURCE_LIST}"
562
+ "${GENERATED_APP_DIR}/entry.cpp"
563
+ "${GENERATED_APP_DIR}/generated_support.hpp"
564
+ "${GENERATED_APP_DIR}/runtime.cpp"
565
+ "${GENERATED_APP_DIR}/runtime_pch.h"
566
+ ${GENERATED_CONFIG_H}
567
+ ${GENERATED_FONT_CPP}
568
+ ${GENERATED_FONT_H}
569
+ ${GENERATED_ASSETS_CPP}
570
+ "${GENERATED_APP_DIR}/gea-vite-bundle.js"
571
+ COMMENT "Compiling ${GEA_EMBEDDED_APP}: TSX -> JS via vite-plugin-gea -> C++ via geatsc"
572
+ VERBATIM
573
+ )
574
+ add_custom_target(geatsc_build ALL DEPENDS ${_GEATSC_BUILD_STAMP})
575
+ gea_geatsc_add_generated_archive(
576
+ TARGET ${COMPONENT_LIB}
577
+ NAME geatsc_active_archive
578
+ SOURCE_LIST "${GEATSC_SOURCE_LIST}"
579
+ OUTPUT "${GEATSC_ARCHIVE}"
580
+ DEPENDS ${_GEATSC_BUILD_STAMP}
581
+ COMPILE_OPTIONS ${GEATSC_COMPILE_OPTIONS}
582
+ COMPILE_DEFINITIONS ${GEATSC_COMPILE_DEFINITIONS}
583
+ )
584
+ add_dependencies(geatsc_active_archive geatsc_build)
585
+
586
+ gea_framework_inherit_build_settings()
@@ -0,0 +1,12 @@
1
+ menu "Gea Embedded"
2
+
3
+ config GEA_EMBEDDED_PRODUCTION_LOCKDOWN
4
+ bool "Production lockdown"
5
+ default n
6
+ help
7
+ Compile out Gea frame/perf logs, heap diagnostics, and the
8
+ diagnostics server for production firmware. Local development builds
9
+ should leave this disabled so serial monitor and VS Code launch
10
+ tasks show fps and diagnostic logs.
11
+
12
+ endmenu