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