@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,768 @@
|
|
|
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
|
+
if(NOT DEFINED GEA_EMBEDDED_CPP_BOARD)
|
|
32
|
+
set(GEA_EMBEDDED_CPP_BOARD "esp32-s3-touch-amoled-1.8" CACHE STRING "Board profile passed to geatsc for C++ target selection")
|
|
33
|
+
endif()
|
|
34
|
+
if(NOT DEFINED GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO)
|
|
35
|
+
set(GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO "1.5" CACHE STRING "Logical CSS px to physical pixel scale for this board")
|
|
36
|
+
endif()
|
|
37
|
+
|
|
38
|
+
# The AMOLED targets share the Gea application/runtime build below. A target
|
|
39
|
+
# that includes this file may override only its board-facing sources and
|
|
40
|
+
# transport constants while keeping the framework integration in one place.
|
|
41
|
+
if(NOT DEFINED GEA_BOARD_COMPONENT_DIR)
|
|
42
|
+
set(GEA_BOARD_COMPONENT_DIR "${CMAKE_CURRENT_LIST_DIR}")
|
|
43
|
+
endif()
|
|
44
|
+
if(NOT DEFINED GEA_BOARD_TARGET_DIR)
|
|
45
|
+
set(GEA_BOARD_TARGET_DIR "${GEA_BOARD_COMPONENT_DIR}/..")
|
|
46
|
+
endif()
|
|
47
|
+
if(NOT DEFINED GEA_BOARD_PLATFORM_SOURCES)
|
|
48
|
+
set(GEA_BOARD_PLATFORM_SOURCES
|
|
49
|
+
"${GEA_BOARD_COMPONENT_DIR}/app_main.cpp"
|
|
50
|
+
"${GEA_BOARD_COMPONENT_DIR}/i2c.cpp"
|
|
51
|
+
"${GEA_BOARD_COMPONENT_DIR}/launcher_button.cpp"
|
|
52
|
+
"${GEA_BOARD_COMPONENT_DIR}/touch.cpp"
|
|
53
|
+
"${GEA_CHIPS}/displays/sh8601/sh8601.cpp"
|
|
54
|
+
"${GEA_CHIPS}/power/axp2101/axp2101.cpp"
|
|
55
|
+
"${GEA_CHIPS}/imu/qmi8658/qmi8658.cpp"
|
|
56
|
+
"${GEA_CHIPS}/touch/ft3168/ft3168.cpp"
|
|
57
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/display.cpp"
|
|
58
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/displays/sh8601.cpp"
|
|
59
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/power/axp2101.cpp"
|
|
60
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/touch/ft3168.cpp"
|
|
61
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/audio/es8311.cpp"
|
|
62
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/chip_bindings/imu/qmi8658.cpp"
|
|
63
|
+
)
|
|
64
|
+
endif()
|
|
65
|
+
if(NOT DEFINED GEA_BOARD_EXTRA_REQUIRES)
|
|
66
|
+
set(GEA_BOARD_EXTRA_REQUIRES esp_codec_dev)
|
|
67
|
+
endif()
|
|
68
|
+
if(NOT DEFINED GEA_BOARD_DISPLAY_WIDTH)
|
|
69
|
+
set(GEA_BOARD_DISPLAY_WIDTH 368)
|
|
70
|
+
endif()
|
|
71
|
+
if(NOT DEFINED GEA_BOARD_DISPLAY_HEIGHT)
|
|
72
|
+
set(GEA_BOARD_DISPLAY_HEIGHT 448)
|
|
73
|
+
endif()
|
|
74
|
+
if(NOT DEFINED GEA_BOARD_NATIVE_DISPLAY_WIDTH)
|
|
75
|
+
set(GEA_BOARD_NATIVE_DISPLAY_WIDTH ${GEA_BOARD_DISPLAY_WIDTH})
|
|
76
|
+
endif()
|
|
77
|
+
if(NOT DEFINED GEA_BOARD_NATIVE_DISPLAY_HEIGHT)
|
|
78
|
+
set(GEA_BOARD_NATIVE_DISPLAY_HEIGHT ${GEA_BOARD_DISPLAY_HEIGHT})
|
|
79
|
+
endif()
|
|
80
|
+
if(NOT DEFINED GEA_BOARD_QSPI_PCLK_HZ)
|
|
81
|
+
set(GEA_BOARD_QSPI_PCLK_HZ 80000000)
|
|
82
|
+
endif()
|
|
83
|
+
if(NOT DEFINED GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH)
|
|
84
|
+
set(GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH 1)
|
|
85
|
+
endif()
|
|
86
|
+
if(NOT DEFINED GEA_BOARD_PARTIAL_PAD_X)
|
|
87
|
+
set(GEA_BOARD_PARTIAL_PAD_X 8)
|
|
88
|
+
endif()
|
|
89
|
+
if(NOT DEFINED GEA_BOARD_PARTIAL_PAD_Y)
|
|
90
|
+
set(GEA_BOARD_PARTIAL_PAD_Y 0)
|
|
91
|
+
endif()
|
|
92
|
+
if(NOT DEFINED GEA_BOARD_STREAM_PACE_CHUNKS)
|
|
93
|
+
set(GEA_BOARD_STREAM_PACE_CHUNKS 4)
|
|
94
|
+
endif()
|
|
95
|
+
if(NOT DEFINED GEA_BOARD_EXTRA_COMPILE_DEFINITIONS)
|
|
96
|
+
set(GEA_BOARD_EXTRA_COMPILE_DEFINITIONS "")
|
|
97
|
+
endif()
|
|
98
|
+
if(NOT DEFINED GEA_BOARD_GEATSC_OPTIMIZATION)
|
|
99
|
+
set(GEA_BOARD_GEATSC_OPTIMIZATION -Os)
|
|
100
|
+
endif()
|
|
101
|
+
if(NOT DEFINED GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX)
|
|
102
|
+
set(GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX 0)
|
|
103
|
+
endif()
|
|
104
|
+
|
|
105
|
+
# Keep app-sensitive renderer/codegen choices explicit at the board wrapper.
|
|
106
|
+
# The shared 1.8-inch target retains its measured defaults; boards opting into
|
|
107
|
+
# the bouncing-balls-jsx profile get the same native-number and retained-tree
|
|
108
|
+
# shortcuts as the faster AMOLED target without affecting unrelated apps.
|
|
109
|
+
set(GEA_EMBEDDED_NUMBER_F32 0)
|
|
110
|
+
set(GEA_EMBEDDED_FUSE_FLUSH_VALUE 0)
|
|
111
|
+
set(GEA_EMBEDDED_REVEAL_CHECK_VALUE 1)
|
|
112
|
+
set(GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE 0)
|
|
113
|
+
set(GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE 0)
|
|
114
|
+
set(GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE 0)
|
|
115
|
+
set(GEA_EMBEDDED_FB_CS_HELD_VALUE 0)
|
|
116
|
+
set(GEA_EMBEDDED_PRESENT_CS_HELD_VALUE 0)
|
|
117
|
+
set(GEA_EMBEDDED_PERF_VALUE 1)
|
|
118
|
+
set(GEA_EMBEDDED_PERF_LITE_VALUE 1)
|
|
119
|
+
if(GEA_BOARD_OPTIMIZE_BOUNCING_BALLS_JSX AND GEA_EMBEDDED_APP STREQUAL "bouncing-balls-jsx")
|
|
120
|
+
set(GEA_EMBEDDED_NUMBER_F32 1)
|
|
121
|
+
set(GEA_EMBEDDED_FUSE_FLUSH_VALUE 1)
|
|
122
|
+
set(GEA_EMBEDDED_REVEAL_CHECK_VALUE 0)
|
|
123
|
+
set(GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE 1)
|
|
124
|
+
set(GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE 1)
|
|
125
|
+
set(GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE 1)
|
|
126
|
+
set(GEA_EMBEDDED_FB_CS_HELD_VALUE 1)
|
|
127
|
+
set(GEA_EMBEDDED_PRESENT_CS_HELD_VALUE 1)
|
|
128
|
+
set(GEA_EMBEDDED_PERF_VALUE 0)
|
|
129
|
+
set(GEA_EMBEDDED_PERF_LITE_VALUE 0)
|
|
130
|
+
list(APPEND GEA_BOARD_EXTRA_COMPILE_DEFINITIONS GEA_NUMBER_FLOAT=1)
|
|
131
|
+
endif()
|
|
132
|
+
if(DEFINED GEA_BOARD_FRAMEBUFFER_CS_HELD_STREAM)
|
|
133
|
+
set(GEA_EMBEDDED_FB_CS_HELD_VALUE ${GEA_BOARD_FRAMEBUFFER_CS_HELD_STREAM})
|
|
134
|
+
endif()
|
|
135
|
+
if(DEFINED GEA_BOARD_PRESENT_CS_HELD_STREAM)
|
|
136
|
+
set(GEA_EMBEDDED_PRESENT_CS_HELD_VALUE ${GEA_BOARD_PRESENT_CS_HELD_STREAM})
|
|
137
|
+
endif()
|
|
138
|
+
if(DEFINED GEA_BOARD_FUSE_REPLAY_FLUSH)
|
|
139
|
+
set(GEA_EMBEDDED_FUSE_FLUSH_VALUE ${GEA_BOARD_FUSE_REPLAY_FLUSH})
|
|
140
|
+
endif()
|
|
141
|
+
if(DEFINED GEA_BOARD_ADAPTIVE_COALESCE)
|
|
142
|
+
set(GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE ${GEA_BOARD_ADAPTIVE_COALESCE})
|
|
143
|
+
endif()
|
|
144
|
+
if(DEFINED GEA_BOARD_BROAD_DIRTY_BBOX)
|
|
145
|
+
set(GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE ${GEA_BOARD_BROAD_DIRTY_BBOX})
|
|
146
|
+
endif()
|
|
147
|
+
|
|
148
|
+
# Write a file only when its content would change. Preserves mtime when content matches,
|
|
149
|
+
# so downstream make/ninja rules don't see spurious changes on every reconfigure.
|
|
150
|
+
function(_gea_write_if_different FILE_PATH CONTENT)
|
|
151
|
+
set(_should_write 1)
|
|
152
|
+
if(EXISTS "${FILE_PATH}")
|
|
153
|
+
file(READ "${FILE_PATH}" _existing)
|
|
154
|
+
if("${_existing}" STREQUAL "${CONTENT}")
|
|
155
|
+
set(_should_write 0)
|
|
156
|
+
endif()
|
|
157
|
+
endif()
|
|
158
|
+
if(_should_write)
|
|
159
|
+
file(WRITE "${FILE_PATH}" "${CONTENT}")
|
|
160
|
+
endif()
|
|
161
|
+
endfunction()
|
|
162
|
+
|
|
163
|
+
# Enumerate files under DIR matching one of the source extensions / config filenames, pruning
|
|
164
|
+
# node_modules / dist / .vite at directory boundaries. CMake's file(GLOB_RECURSE) walks every file
|
|
165
|
+
# in the tree before filtering — for example dirs that's ~1000 stat calls per node_modules. find(1)
|
|
166
|
+
# prunes at the directory level, so configure stays under a second instead of half a minute.
|
|
167
|
+
function(_gea_find_sources OUT_VAR DIR)
|
|
168
|
+
get_filename_component(_gea_find_dir "${DIR}" REALPATH)
|
|
169
|
+
set(_gea_optional_prunes "")
|
|
170
|
+
if(ARGC GREATER 2 AND "${ARGV2}" STREQUAL "PRUNE_VENDOR")
|
|
171
|
+
list(APPEND _gea_optional_prunes -o -name vendor)
|
|
172
|
+
endif()
|
|
173
|
+
execute_process(
|
|
174
|
+
COMMAND find -L "${_gea_find_dir}"
|
|
175
|
+
-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
|
|
176
|
+
-o -type f \(
|
|
177
|
+
-name "*.tsx" -o -name "*.ts" -o -name "*.jsx" -o -name "*.js"
|
|
178
|
+
-o -name "*.css" -o -name "*.html"
|
|
179
|
+
-o -name "package.json" -o -name "tsconfig.json" -o -name "vite.config.ts"
|
|
180
|
+
\) -print
|
|
181
|
+
OUTPUT_VARIABLE _output
|
|
182
|
+
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
183
|
+
)
|
|
184
|
+
if(_output STREQUAL "")
|
|
185
|
+
set(${OUT_VAR} "" PARENT_SCOPE)
|
|
186
|
+
else()
|
|
187
|
+
string(REPLACE "\n" ";" _list "${_output}")
|
|
188
|
+
set(${OUT_VAR} "${_list}" PARENT_SCOPE)
|
|
189
|
+
endif()
|
|
190
|
+
endfunction()
|
|
191
|
+
|
|
192
|
+
function(_gea_collect_app_sources OUT_VAR APP_DIR)
|
|
193
|
+
_gea_find_sources(_src "${APP_DIR}")
|
|
194
|
+
set(${OUT_VAR} "${_src}" PARENT_SCOPE)
|
|
195
|
+
endfunction()
|
|
196
|
+
|
|
197
|
+
# App image assets (PNG/JPG/GIF). generate-gea-embedded-assets.mjs embeds these as
|
|
198
|
+
# .rodata referenced by `<img src>`, so they MUST be on the geatsc_build DEPENDS
|
|
199
|
+
# list: otherwise resizing/replacing an image never re-runs codegen and the stale
|
|
200
|
+
# bytes ship (and an oversized PNG silently fails to decode on-device). Scoped to
|
|
201
|
+
# the app dir (not the framework) so configure stays fast.
|
|
202
|
+
function(_gea_collect_app_assets OUT_VAR APP_DIR)
|
|
203
|
+
execute_process(
|
|
204
|
+
COMMAND find -L "${APP_DIR}"
|
|
205
|
+
-type d \( -name node_modules -o -name dist -o -name .vite -o -name build \) -prune
|
|
206
|
+
-o -type f \(
|
|
207
|
+
-name "*.png" -o -name "*.jpg" -o -name "*.jpeg" -o -name "*.gif"
|
|
208
|
+
\) -print
|
|
209
|
+
OUTPUT_VARIABLE _output
|
|
210
|
+
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
211
|
+
)
|
|
212
|
+
if(_output STREQUAL "")
|
|
213
|
+
set(${OUT_VAR} "" PARENT_SCOPE)
|
|
214
|
+
else()
|
|
215
|
+
string(REPLACE "\n" ";" _list "${_output}")
|
|
216
|
+
set(${OUT_VAR} "${_list}" PARENT_SCOPE)
|
|
217
|
+
endif()
|
|
218
|
+
endfunction()
|
|
219
|
+
|
|
220
|
+
# Source files that affect Gea compiler -> geatsc output. Keep this scoped to
|
|
221
|
+
# the embedded framework, upstream Gea compiler, and @geatsc/plugin-gea.
|
|
222
|
+
_gea_find_sources(_GEA_COMPILER_DEP_SRCS "${GEA_CORE}/..")
|
|
223
|
+
_gea_find_sources(_GEA_UPSTREAM_GEA_SRCS "${GEA_COMPILER}" PRUNE_VENDOR)
|
|
224
|
+
_gea_find_sources(_GEATSC_GEA_PLUGIN_SRCS "${GEA_PLUGIN}")
|
|
225
|
+
if(CMAKE_SCRIPT_MODE_FILE)
|
|
226
|
+
file(GLOB_RECURSE _GEATSC_GEA_PLUGIN_DIST_SRCS
|
|
227
|
+
"${GEA_PLUGIN}/dist/*.js"
|
|
228
|
+
"${GEA_PLUGIN}/dist/*.json"
|
|
229
|
+
)
|
|
230
|
+
else()
|
|
231
|
+
file(GLOB_RECURSE _GEATSC_GEA_PLUGIN_DIST_SRCS CONFIGURE_DEPENDS
|
|
232
|
+
"${GEA_PLUGIN}/dist/*.js"
|
|
233
|
+
"${GEA_PLUGIN}/dist/*.json"
|
|
234
|
+
)
|
|
235
|
+
endif()
|
|
236
|
+
list(APPEND _GEA_COMPILER_DEP_SRCS
|
|
237
|
+
"${GEA_CORE}/scripts/build-gea-vite-geatsc.mjs"
|
|
238
|
+
"${GEA_CORE}/scripts/gea-embedded-compat-transform.mjs"
|
|
239
|
+
"${GEA_CORE}/scripts/generate-gea-embedded-fonts.mjs"
|
|
240
|
+
${_GEA_UPSTREAM_GEA_SRCS}
|
|
241
|
+
${_GEATSC_GEA_PLUGIN_SRCS}
|
|
242
|
+
${_GEATSC_GEA_PLUGIN_DIST_SRCS}
|
|
243
|
+
)
|
|
244
|
+
list(REMOVE_DUPLICATES _GEA_COMPILER_DEP_SRCS)
|
|
245
|
+
get_property(_GEA_CONFIGURE_DEPS_REGISTERED GLOBAL PROPERTY GEA_CONFIGURE_DEPS_REGISTERED)
|
|
246
|
+
if(NOT CMAKE_SCRIPT_MODE_FILE AND _GEA_COMPILER_DEP_SRCS AND NOT _GEA_CONFIGURE_DEPS_REGISTERED)
|
|
247
|
+
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${_GEA_COMPILER_DEP_SRCS})
|
|
248
|
+
set_property(GLOBAL PROPERTY GEA_CONFIGURE_DEPS_REGISTERED TRUE)
|
|
249
|
+
endif()
|
|
250
|
+
|
|
251
|
+
# Platform-universal ESP32 host facades (single source of truth).
|
|
252
|
+
include("${GEA_EMBEDDED_ROOT}/targets/esp32/host_sources.cmake")
|
|
253
|
+
|
|
254
|
+
file(GLOB _GEA_FONT_ASSETS
|
|
255
|
+
"${GEA_EMBEDDED_ROOT}/assets/fonts/*.ttf"
|
|
256
|
+
"${GEA_EMBEDDED_ROOT}/assets/fonts/*.otf"
|
|
257
|
+
"${GEA_EMBEDDED_ROOT}/assets/fonts/*.woff"
|
|
258
|
+
"${GEA_EMBEDDED_ROOT}/assets/fonts/*.woff2"
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
# App metadata (root;entry;runtime;native sources...) is resolved once by the
|
|
262
|
+
# gea CLI and handed to gea_framework.cmake as GEA_EMBEDDED_APP_META; the
|
|
263
|
+
# GEA_EMBEDDED_APP_DIR/ENTRY/RUNTIME/NATIVE_SOURCE_RELS variables come from there.
|
|
264
|
+
|
|
265
|
+
set(GEA_EMBEDDED_APP_NATIVE_SOURCES "")
|
|
266
|
+
set(GEA_EMBEDDED_APP_NATIVE_INCLUDE_DIRS "")
|
|
267
|
+
foreach(_GEA_EMBEDDED_APP_NATIVE_SOURCE_REL IN LISTS GEA_EMBEDDED_APP_NATIVE_SOURCE_RELS)
|
|
268
|
+
set(_GEA_EMBEDDED_APP_NATIVE_SOURCE "${GEA_EMBEDDED_APP_DIR}/${_GEA_EMBEDDED_APP_NATIVE_SOURCE_REL}")
|
|
269
|
+
list(APPEND GEA_EMBEDDED_APP_NATIVE_SOURCES "${_GEA_EMBEDDED_APP_NATIVE_SOURCE}")
|
|
270
|
+
get_filename_component(_GEA_EMBEDDED_APP_NATIVE_INCLUDE_DIR "${_GEA_EMBEDDED_APP_NATIVE_SOURCE}" DIRECTORY)
|
|
271
|
+
list(APPEND GEA_EMBEDDED_APP_NATIVE_INCLUDE_DIRS "${_GEA_EMBEDDED_APP_NATIVE_INCLUDE_DIR}")
|
|
272
|
+
endforeach()
|
|
273
|
+
list(REMOVE_DUPLICATES GEA_EMBEDDED_APP_NATIVE_INCLUDE_DIRS)
|
|
274
|
+
|
|
275
|
+
set(JS_APP_SRC "${GEA_EMBEDDED_APP_DIR}/${GEA_EMBEDDED_APP_ENTRY}")
|
|
276
|
+
|
|
277
|
+
# Each application's generated output gets its own build directory.
|
|
278
|
+
set(GENERATED_APP_DIR "${CMAKE_BINARY_DIR}/apps/${GEA_EMBEDDED_APP}")
|
|
279
|
+
file(MAKE_DIRECTORY "${GENERATED_APP_DIR}")
|
|
280
|
+
set(JS_APP "${GENERATED_APP_DIR}/dist/index.js")
|
|
281
|
+
# geatsc emits one C++ translation unit per source module and records the
|
|
282
|
+
# compile set in geatsc-sources.txt. A generated archive consumes that list at
|
|
283
|
+
# build time so CMake configure does not need to know module filenames up front.
|
|
284
|
+
set(GEATSC_SOURCE_LIST "${GENERATED_APP_DIR}/geatsc-sources.txt")
|
|
285
|
+
set(GEATSC_ARCHIVE "${GENERATED_APP_DIR}/libgea_active_geatsc.a")
|
|
286
|
+
set(GENERATED_FONT_CPP "${GENERATED_APP_DIR}/gea_embedded_font_generated.cpp")
|
|
287
|
+
set(GENERATED_FONT_H "${GENERATED_APP_DIR}/gea_embedded_font_generated.h")
|
|
288
|
+
set(GENERATED_ASSETS_CPP "${GENERATED_APP_DIR}/gea_embedded_assets_generated.cpp")
|
|
289
|
+
set(GENERATED_CONFIG_H "${GENERATED_APP_DIR}/gea_embedded_app_config.h")
|
|
290
|
+
set(GENERATED_INSTALLED_APPS_H "${CMAKE_BINARY_DIR}/gea_embedded_installed_apps_generated.h")
|
|
291
|
+
execute_process(
|
|
292
|
+
COMMAND node
|
|
293
|
+
"${GEA_CORE}/scripts/generate-installed-app-plan.mjs"
|
|
294
|
+
"${GEA_BOARD_TARGET_DIR}/partitions.csv"
|
|
295
|
+
"${GENERATED_INSTALLED_APPS_H}"
|
|
296
|
+
RESULT_VARIABLE GEA_EMBEDDED_INSTALLED_APPS_RESULT
|
|
297
|
+
)
|
|
298
|
+
if(NOT GEA_EMBEDDED_INSTALLED_APPS_RESULT EQUAL 0)
|
|
299
|
+
message(FATAL_ERROR "Failed to generate installed app plan from partitions.csv")
|
|
300
|
+
endif()
|
|
301
|
+
|
|
302
|
+
# The app source owns app-level defaults. On a fresh configure, create only a minimal
|
|
303
|
+
# placeholder; the unified geatsc path can overwrite it with app-derived config
|
|
304
|
+
# later if a native define surface lands here.
|
|
305
|
+
if(NOT EXISTS "${GENERATED_CONFIG_H}")
|
|
306
|
+
# Stub config header kept around because app_main.cpp still includes it.
|
|
307
|
+
_gea_write_if_different("${GENERATED_CONFIG_H}" "#pragma once\n")
|
|
308
|
+
endif()
|
|
309
|
+
if(NOT EXISTS "${GENERATED_FONT_H}")
|
|
310
|
+
_gea_write_if_different("${GENERATED_FONT_H}" [[
|
|
311
|
+
#pragma once
|
|
312
|
+
#define GEA_EMBEDDED_HAS_GENERATED_FONTS 1
|
|
313
|
+
#include "graphics/font.h"
|
|
314
|
+
#define GEA_EMBEDDED_FONT_COUNT 0
|
|
315
|
+
#define GEA_EMBEDDED_FONT_FAMILY_COUNT 0
|
|
316
|
+
]])
|
|
317
|
+
endif()
|
|
318
|
+
if(NOT EXISTS "${GENERATED_FONT_CPP}")
|
|
319
|
+
_gea_write_if_different("${GENERATED_FONT_CPP}" [[
|
|
320
|
+
#include "gea_embedded_font_generated.h"
|
|
321
|
+
namespace gea::framework::graphics::generated {
|
|
322
|
+
void ensureLinked() {}
|
|
323
|
+
const RasterizedFontData *lookupFont(int fontId)
|
|
324
|
+
{
|
|
325
|
+
(void)fontId;
|
|
326
|
+
return nullptr;
|
|
327
|
+
}
|
|
328
|
+
const RasterizedFontData *lookupFontForFamily(int familyId, int sizePx)
|
|
329
|
+
{
|
|
330
|
+
(void)familyId;
|
|
331
|
+
(void)sizePx;
|
|
332
|
+
return nullptr;
|
|
333
|
+
}
|
|
334
|
+
int lookupFontFamily(const char *family)
|
|
335
|
+
{
|
|
336
|
+
(void)family;
|
|
337
|
+
return -1;
|
|
338
|
+
}
|
|
339
|
+
} // namespace gea::framework::graphics::generated
|
|
340
|
+
]])
|
|
341
|
+
endif()
|
|
342
|
+
# Stub asset TU on the SRCS list before geatsc_build overwrites it with the
|
|
343
|
+
# real (or empty) generated registry. Mirrors the font stub above.
|
|
344
|
+
if(NOT EXISTS "${GENERATED_ASSETS_CPP}")
|
|
345
|
+
_gea_write_if_different("${GENERATED_ASSETS_CPP}" [[
|
|
346
|
+
// No embedded assets (stub overwritten by generate-gea-embedded-assets.mjs).
|
|
347
|
+
]])
|
|
348
|
+
endif()
|
|
349
|
+
|
|
350
|
+
# geatsc mode: generated app/user code is compiled from geatsc-sources.txt
|
|
351
|
+
# into a separate archive, then linked with the firmware-side Gea adapter and host bindings.
|
|
352
|
+
# Without app metadata (a configure driven by hand, or IDF's script-mode
|
|
353
|
+
# requirements pass before the CLI's -D values land) JS_APP_SRC is a bare
|
|
354
|
+
# directory; analyzing it would crash node with EISDIR and abort the
|
|
355
|
+
# configure with a misleading "has geatsc been built?" error. The normal
|
|
356
|
+
# pass refuses with the real reason; script mode carries on with an empty
|
|
357
|
+
# binding set, since that pass only extracts component requirements.
|
|
358
|
+
if(NOT EXISTS "${JS_APP_SRC}" OR IS_DIRECTORY "${JS_APP_SRC}")
|
|
359
|
+
if(NOT CMAKE_SCRIPT_MODE_FILE)
|
|
360
|
+
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>")
|
|
361
|
+
endif()
|
|
362
|
+
set(_GEA_EMBEDDED_ANALYZE_RAW "bindings=\nfeatures=")
|
|
363
|
+
set(_GEA_EMBEDDED_ANALYZE_STATUS 0)
|
|
364
|
+
else()
|
|
365
|
+
execute_process(
|
|
366
|
+
COMMAND node
|
|
367
|
+
"${GEA_COMPILER}/dist/cli.js"
|
|
368
|
+
analyze
|
|
369
|
+
"${JS_APP_SRC}"
|
|
370
|
+
--plugin
|
|
371
|
+
"${GEA_PLUGIN}/dist/index.js"
|
|
372
|
+
OUTPUT_VARIABLE _GEA_EMBEDDED_ANALYZE_RAW
|
|
373
|
+
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
374
|
+
RESULT_VARIABLE _GEA_EMBEDDED_ANALYZE_STATUS
|
|
375
|
+
)
|
|
376
|
+
endif()
|
|
377
|
+
if(NOT _GEA_EMBEDDED_ANALYZE_STATUS EQUAL 0)
|
|
378
|
+
message(FATAL_ERROR "geatsc analyze failed for app '${GEA_EMBEDDED_APP}' — has packages/geatsc been built? (run `npm --prefix packages/geatsc run build`)")
|
|
379
|
+
endif()
|
|
380
|
+
# `geatsc analyze` outputs two lines: `bindings=<ids>` and `features=<ids>`.
|
|
381
|
+
string(REGEX MATCH "bindings=([^\n]*)" _ "${_GEA_EMBEDDED_ANALYZE_RAW}")
|
|
382
|
+
set(_GEA_EMBEDDED_HOST_BINDINGS "${CMAKE_MATCH_1}")
|
|
383
|
+
list(REMOVE_DUPLICATES _GEA_EMBEDDED_HOST_BINDINGS)
|
|
384
|
+
if("${_GEA_EMBEDDED_HOST_BINDINGS}" MATCHES "(^|;)screen($|;)")
|
|
385
|
+
message(FATAL_ERROR "The gea screen host binding was removed; generated apps must target the embedded UI/canvas framework")
|
|
386
|
+
endif()
|
|
387
|
+
string(REGEX MATCH "features=([^\n]*)" _ "${_GEA_EMBEDDED_ANALYZE_RAW}")
|
|
388
|
+
set(_GEA_EMBEDDED_HOST_FEATURES "${CMAKE_MATCH_1}")
|
|
389
|
+
|
|
390
|
+
set(APP_GENERATED_SOURCES
|
|
391
|
+
${GEA_EMBEDDED_APP_NATIVE_SOURCES}
|
|
392
|
+
"${GEA_APP_ENTRY_SRC}"
|
|
393
|
+
${GENERATED_FONT_CPP}
|
|
394
|
+
${GENERATED_ASSETS_CPP}
|
|
395
|
+
)
|
|
396
|
+
set(GEATSC_COMPILE_OPTIONS
|
|
397
|
+
-Wno-unused-variable
|
|
398
|
+
-Wno-return-type
|
|
399
|
+
# gcc 13+ reads `hostIntrinsicSidecar(protocol)` as possibly returning a
|
|
400
|
+
# reference into the temporary std::string built for its argument. It does
|
|
401
|
+
# not: the reference names an entry of a function-local `static std::map`
|
|
402
|
+
# that outlives the program's use of it, and the temporary is only the
|
|
403
|
+
# lookup key. The 2.06 target has carried these two suppressions for the
|
|
404
|
+
# same generated code since gcc 13; without them gcc 15 (ESP-IDF 6.0) turns
|
|
405
|
+
# the false positive into an error and no board on this base builds at all.
|
|
406
|
+
-Wno-dangling-reference
|
|
407
|
+
-Wno-dangling-pointer
|
|
408
|
+
${GEA_BOARD_GEATSC_OPTIMIZATION}
|
|
409
|
+
-mtext-section-literals
|
|
410
|
+
)
|
|
411
|
+
set(GEATSC_COMPILE_DEFINITIONS "")
|
|
412
|
+
if(NOT CMAKE_SCRIPT_MODE_FILE)
|
|
413
|
+
set_source_files_properties(
|
|
414
|
+
"${GEA_HOST}/host/rtc_esp.cpp"
|
|
415
|
+
PROPERTIES COMPILE_OPTIONS "-Wno-unused-variable;-Os"
|
|
416
|
+
)
|
|
417
|
+
endif()
|
|
418
|
+
set(GEA_EMBEDDED_HTTPS_REQUIRES "")
|
|
419
|
+
set(GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS "")
|
|
420
|
+
set(GEA_EMBEDDED_BLE_COMPILE_DEFINITIONS "")
|
|
421
|
+
set(GEA_EMBEDDED_BLE_SOURCES "")
|
|
422
|
+
# One name for "this build compiles the BLE OTA path", so the source lists gate
|
|
423
|
+
# on the same condition that defines the macro ble_hid.cpp compiles under.
|
|
424
|
+
set(GEA_EMBEDDED_BLE_OTA_ENABLED 0)
|
|
425
|
+
if(DEFINED ENV{GEA_EMBEDDED_BLE_OTA} AND "$ENV{GEA_EMBEDDED_BLE_OTA}" STREQUAL "1")
|
|
426
|
+
set(GEA_EMBEDDED_BLE_OTA_ENABLED 1)
|
|
427
|
+
list(APPEND GEA_EMBEDDED_BLE_COMPILE_DEFINITIONS GEA_EMBEDDED_BLE_OTA=1)
|
|
428
|
+
endif()
|
|
429
|
+
|
|
430
|
+
# ble_hid.cpp includes esp_bt.h, which only exists while the `bt` component is
|
|
431
|
+
# part of the build -- and IDF drops that component unless CONFIG_BT_ENABLED is
|
|
432
|
+
# set, which the gea CLI does from the app's own `ble` capability. Compiling it
|
|
433
|
+
# for an app that asked for neither BLE nor BLE OTA therefore failed outright on
|
|
434
|
+
# the missing header; the epaper target already gates it this way. Where BLE is
|
|
435
|
+
# off, GEA_EMBEDDED_BLE_DISABLED also keeps app_main.cpp from registering the
|
|
436
|
+
# HID driver whose translation unit is no longer there.
|
|
437
|
+
if(NOT DEFINED GEA_BOARD_ENABLE_BLE_HID)
|
|
438
|
+
if(GEA_EMBEDDED_CAPABILITY_BLE OR GEA_EMBEDDED_BLE_OTA_ENABLED)
|
|
439
|
+
set(GEA_BOARD_ENABLE_BLE_HID 1)
|
|
440
|
+
else()
|
|
441
|
+
set(GEA_BOARD_ENABLE_BLE_HID 0)
|
|
442
|
+
endif()
|
|
443
|
+
endif()
|
|
444
|
+
set(GEA_EMBEDDED_BLE_REQUIRES "")
|
|
445
|
+
if(GEA_BOARD_ENABLE_BLE_HID)
|
|
446
|
+
list(APPEND GEA_EMBEDDED_BLE_SOURCES
|
|
447
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/connectivity/ble_hid.cpp")
|
|
448
|
+
list(APPEND GEA_EMBEDDED_BLE_REQUIRES bt)
|
|
449
|
+
else()
|
|
450
|
+
list(APPEND GEA_EMBEDDED_BLE_COMPILE_DEFINITIONS GEA_EMBEDDED_BLE_DISABLED=1)
|
|
451
|
+
endif()
|
|
452
|
+
if("${_GEA_EMBEDDED_HOST_BINDINGS}" MATCHES "(^|;)ble($|;)")
|
|
453
|
+
list(APPEND GEA_EMBEDDED_BLE_COMPILE_DEFINITIONS GEA_EMBEDDED_APP_USES_BLE=1)
|
|
454
|
+
endif()
|
|
455
|
+
# Note: BLE driver registration + BLE controller preinit are forced from
|
|
456
|
+
# `app_main.cpp` and `bluetooth_service.cpp` regardless of the macro above,
|
|
457
|
+
# because `geatsc analyze` misses BLE usage routed through the internal
|
|
458
|
+
# `runtime-surface` re-export (as `gea-embedded`'s Settings panel does).
|
|
459
|
+
# The macro is kept narrow because `app_runner.cpp` uses it to decide
|
|
460
|
+
# whether `gea_init` is allocated in SPIRAM (when undefined) or internal
|
|
461
|
+
# DRAM (when defined). With 64 KB gea_init stack, forcing internal DRAM
|
|
462
|
+
# fails — only 32 KB largest contiguous block remains after wifi/diag init.
|
|
463
|
+
# `_GEA_EMBEDDED_HOST_FEATURES` is populated by `geatsc analyze` for the
|
|
464
|
+
# application.
|
|
465
|
+
#
|
|
466
|
+
# The user-facing `GEA_EMBEDDED_HTTPS_SUPPORT` cache option lets the build
|
|
467
|
+
# override auto-detection: `on` forces HTTPS linkage even when no
|
|
468
|
+
# `https://` URL appears in source, `off` skips it even when one does.
|
|
469
|
+
# `auto` (default) trusts analyze's verdict.
|
|
470
|
+
string(TOLOWER "${GEA_EMBEDDED_HTTPS_SUPPORT}" _GEA_EMBEDDED_HTTPS_SUPPORT_MODE)
|
|
471
|
+
set(_GEA_EMBEDDED_ENABLE_HTTPS 0)
|
|
472
|
+
if(_GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "auto")
|
|
473
|
+
if("${_GEA_EMBEDDED_HOST_FEATURES}" MATCHES "(^|;)https($|;)")
|
|
474
|
+
set(_GEA_EMBEDDED_ENABLE_HTTPS 1)
|
|
475
|
+
endif()
|
|
476
|
+
elseif(_GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "on"
|
|
477
|
+
OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "true"
|
|
478
|
+
OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "yes"
|
|
479
|
+
OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "1")
|
|
480
|
+
set(_GEA_EMBEDDED_ENABLE_HTTPS 1)
|
|
481
|
+
elseif(_GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "off"
|
|
482
|
+
OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "false"
|
|
483
|
+
OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "no"
|
|
484
|
+
OR _GEA_EMBEDDED_HTTPS_SUPPORT_MODE STREQUAL "0")
|
|
485
|
+
set(_GEA_EMBEDDED_ENABLE_HTTPS 0)
|
|
486
|
+
else()
|
|
487
|
+
message(FATAL_ERROR "GEA_EMBEDDED_HTTPS_SUPPORT must be auto, on, or off")
|
|
488
|
+
endif()
|
|
489
|
+
|
|
490
|
+
if(_GEA_EMBEDDED_ENABLE_HTTPS)
|
|
491
|
+
list(APPEND GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS GEA_EMBEDDED_ENABLE_HTTPS=1)
|
|
492
|
+
# `mbedtls` lands in REQUIRES iff the active app actually needs HTTPS.
|
|
493
|
+
# The historical reason for unconditionally listing it (script-mode
|
|
494
|
+
# discrepancy with `GEA_EMBEDDED_APP=tic-tac-toe`) is gone now that
|
|
495
|
+
# script-mode falls through to a feature-rich gea placeholder. The
|
|
496
|
+
# condition here is the actual signal: an app with no https:// in source
|
|
497
|
+
# genuinely doesn't need mbedtls, and `--gc-sections` would strip it
|
|
498
|
+
# anyway.
|
|
499
|
+
list(APPEND GEA_EMBEDDED_HTTPS_REQUIRES mbedtls)
|
|
500
|
+
endif()
|
|
501
|
+
|
|
502
|
+
# This base assumed the network capability was always on: wifi.cpp and the TCP
|
|
503
|
+
# diagnostics transport were registered unconditionally, and the host facades
|
|
504
|
+
# (fetch/websocket/http) compile their ESP-IDF network includes unless
|
|
505
|
+
# GEA_EMBEDDED_WIFI_DISABLED says otherwise -- so an app analysed as network=0
|
|
506
|
+
# failed on `esp_websocket_client.h: No such file`. Take the same offline shape
|
|
507
|
+
# the 2.06 target already uses. OTA is deliberately left enabled: BLE OTA
|
|
508
|
+
# carries its own images and needs no network.
|
|
509
|
+
if(GEA_EMBEDDED_CAPABILITY_NETWORK)
|
|
510
|
+
set(GEA_BOARD_CONNECTIVITY_SOURCES
|
|
511
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/connectivity/diagnostics_transport.cpp"
|
|
512
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/connectivity/wifi.cpp"
|
|
513
|
+
)
|
|
514
|
+
else()
|
|
515
|
+
set(GEA_BOARD_CONNECTIVITY_SOURCES
|
|
516
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/connectivity/diagnostics_transport_offline.cpp"
|
|
517
|
+
# wifi.cpp defines the Wi-Fi diagnostics ble_hid.cpp reports beside OTA
|
|
518
|
+
# state; the stub answers them with "never started".
|
|
519
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/connectivity/wifi_debug_offline.cpp"
|
|
520
|
+
)
|
|
521
|
+
list(APPEND GEA_BOARD_EXTRA_COMPILE_DEFINITIONS
|
|
522
|
+
GEA_EMBEDDED_WIFI_DISABLED=1
|
|
523
|
+
GEA_EMBEDDED_NETWORK_SERVICES_DISABLED=1
|
|
524
|
+
)
|
|
525
|
+
endif()
|
|
526
|
+
|
|
527
|
+
# rtc_esp.cpp is the WebRTC peer and pulls esp_peer/libsrtp in through
|
|
528
|
+
# esp_peer.h; only an app that can reach a network has a peer to talk to.
|
|
529
|
+
if(GEA_EMBEDDED_CAPABILITY_NETWORK)
|
|
530
|
+
set(GEA_BOARD_NETWORK_SOURCES "${GEA_HOST}/host/rtc_esp.cpp")
|
|
531
|
+
else()
|
|
532
|
+
set(GEA_BOARD_NETWORK_SOURCES "")
|
|
533
|
+
endif()
|
|
534
|
+
|
|
535
|
+
# services/ota.cpp is the HTTP OTA server and needs esp_http_server; the image
|
|
536
|
+
# writer beside it is transport-agnostic and is what BLE OTA streams into, so
|
|
537
|
+
# it follows OTA rather than the network.
|
|
538
|
+
set(GEA_BOARD_OTA_SOURCES "")
|
|
539
|
+
if(GEA_EMBEDDED_CAPABILITY_NETWORK)
|
|
540
|
+
list(APPEND GEA_BOARD_OTA_SOURCES "${GEA_EMBEDDED_ROOT}/targets/esp32/services/ota.cpp")
|
|
541
|
+
endif()
|
|
542
|
+
if(GEA_EMBEDDED_CAPABILITY_NETWORK OR GEA_EMBEDDED_BLE_OTA_ENABLED)
|
|
543
|
+
# app_update, which carries esp_ota_ops.h, is already in REQUIRES below.
|
|
544
|
+
list(APPEND GEA_BOARD_OTA_SOURCES "${GEA_EMBEDDED_ROOT}/targets/esp32/services/ota_image.cpp")
|
|
545
|
+
endif()
|
|
546
|
+
|
|
547
|
+
idf_component_register(
|
|
548
|
+
SRCS
|
|
549
|
+
${GEA_BOARD_PLATFORM_SOURCES}
|
|
550
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/apps/app_manager.cpp"
|
|
551
|
+
${GEA_BOARD_CONNECTIVITY_SOURCES}
|
|
552
|
+
# @geastack framework C/C++ sources — single source of truth: @geastack/core/gea_sources.sh
|
|
553
|
+
# (resolved via node_modules, shared with the web build).
|
|
554
|
+
${GEA_FW_APP_SENSITIVE_SOURCES}
|
|
555
|
+
# esp32-specific host shims (generic host + services come from the manifest):
|
|
556
|
+
"${GEA_HOST}/audio_runtime.cpp"
|
|
557
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/app_runner.cpp"
|
|
558
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/app_state.cpp"
|
|
559
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/battery_service.cpp"
|
|
560
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/device_control.cpp"
|
|
561
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/frame_scheduler.cpp"
|
|
562
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/memory.cpp"
|
|
563
|
+
${GEA_BOARD_NETWORK_SOURCES}
|
|
564
|
+
${GEA_BOARD_OTA_SOURCES}
|
|
565
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/storage_service.cpp"
|
|
566
|
+
${GEA_EMBEDDED_BLE_SOURCES}
|
|
567
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32/services/heap.cpp"
|
|
568
|
+
${APP_GENERATED_SOURCES}
|
|
569
|
+
INCLUDE_DIRS
|
|
570
|
+
"${GEA_BOARD_COMPONENT_DIR}/include"
|
|
571
|
+
"${GEA_EMBEDDED_ROOT}/targets/esp32"
|
|
572
|
+
${GEA_FW_INCLUDE_DIRS}
|
|
573
|
+
"${GEA_CHIPS}"
|
|
574
|
+
${GEA_EMBEDDED_APP_NATIVE_INCLUDE_DIRS}
|
|
575
|
+
${GENERATED_APP_DIR}
|
|
576
|
+
${CMAKE_BINARY_DIR}
|
|
577
|
+
REQUIRES
|
|
578
|
+
gea_framework
|
|
579
|
+
esp_system
|
|
580
|
+
esp_timer
|
|
581
|
+
freertos
|
|
582
|
+
lwip
|
|
583
|
+
esp_wifi
|
|
584
|
+
esp_http_server
|
|
585
|
+
esp_http_client
|
|
586
|
+
${GEA_EMBEDDED_HTTPS_REQUIRES}
|
|
587
|
+
app_update
|
|
588
|
+
esp_mm
|
|
589
|
+
esp_netif
|
|
590
|
+
esp_event
|
|
591
|
+
nvs_flash
|
|
592
|
+
esp_lcd
|
|
593
|
+
driver
|
|
594
|
+
esp_driver_i2c
|
|
595
|
+
esp_driver_usb_serial_jtag
|
|
596
|
+
esp_driver_i2s
|
|
597
|
+
${GEA_BOARD_EXTRA_REQUIRES}
|
|
598
|
+
${GEA_EMBEDDED_BLE_REQUIRES}
|
|
599
|
+
LDFRAGMENTS
|
|
600
|
+
)
|
|
601
|
+
|
|
602
|
+
set(GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG_VALUE 0)
|
|
603
|
+
if(DEFINED ENV{GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG})
|
|
604
|
+
set(GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG_VALUE "$ENV{GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG}")
|
|
605
|
+
endif()
|
|
606
|
+
|
|
607
|
+
target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
608
|
+
GEA_EMBEDDED_DISPLAY_WIDTH=${GEA_BOARD_DISPLAY_WIDTH}
|
|
609
|
+
GEA_EMBEDDED_DISPLAY_HEIGHT=${GEA_BOARD_DISPLAY_HEIGHT}
|
|
610
|
+
GEA_EMBEDDED_DISPLAY_NATIVE_WIDTH=${GEA_BOARD_NATIVE_DISPLAY_WIDTH}
|
|
611
|
+
GEA_EMBEDDED_DISPLAY_NATIVE_HEIGHT=${GEA_BOARD_NATIVE_DISPLAY_HEIGHT}
|
|
612
|
+
GEA_EMBEDDED_FLUSH_ANCHOR_LEFT_PARTIAL_RECTS=0
|
|
613
|
+
GEA_EMBEDDED_PIXEL_PANEL_ENDIAN=1
|
|
614
|
+
GEA_CPP_ENABLE_REGEX=0
|
|
615
|
+
GEA_CPP_USE_TO_CHARS_DOUBLE=0
|
|
616
|
+
GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG=${GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG_VALUE}
|
|
617
|
+
GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO=${GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO}
|
|
618
|
+
GEA_EMBEDDED_HAS_GENERATED_FONTS=1
|
|
619
|
+
GEA_EMBEDDED_APP_FRAME_TASK_CORE=0
|
|
620
|
+
GEA_EMBEDDED_DISPLAY_CO5300_FRAMEBUFFER_STREAM_FLUSH=${GEA_BOARD_FRAMEBUFFER_STREAM_FLUSH}
|
|
621
|
+
GEA_EMBEDDED_DISPLAY_CO5300_FRAMEBUFFER_CS_HELD_STREAM=${GEA_EMBEDDED_FB_CS_HELD_VALUE}
|
|
622
|
+
GEA_EMBEDDED_DISPLAY_CO5300_PRESENT_CS_HELD_STREAM=${GEA_EMBEDDED_PRESENT_CS_HELD_VALUE}
|
|
623
|
+
GEA_EMBEDDED_DISPLAY_QSPI_PCLK_HZ=${GEA_BOARD_QSPI_PCLK_HZ}
|
|
624
|
+
GEA_EMBEDDED_DISPLAY_FUSE_REPLAY_FLUSH=${GEA_EMBEDDED_FUSE_FLUSH_VALUE}
|
|
625
|
+
GEA_EMBEDDED_SUBTREE_REVEAL_CHECK=${GEA_EMBEDDED_REVEAL_CHECK_VALUE}
|
|
626
|
+
GEA_EMBEDDED_SKIP_POSITION_INLINE_RECORD=${GEA_EMBEDDED_SKIP_POSITION_RECORD_VALUE}
|
|
627
|
+
GEA_EMBEDDED_FLUSH_ADAPTIVE_COALESCE=${GEA_EMBEDDED_ADAPTIVE_COALESCE_VALUE}
|
|
628
|
+
GEA_EMBEDDED_BROAD_DIRTY_BBOX=${GEA_EMBEDDED_BROAD_DIRTY_BBOX_VALUE}
|
|
629
|
+
GEA_EMBEDDED_PERF=${GEA_EMBEDDED_PERF_VALUE}
|
|
630
|
+
# SH8601 JSX flush — the fastest genuinely-clean config is tight SPARSE per-ball windows
|
|
631
|
+
# + X=8 pad, no fusion (~53-57fps). Measured dead-ends (all on-device, 2026-06-09):
|
|
632
|
+
# - full-width band-collapse: 47fps. Cuts windows but DMAs the whole screen (byte-bound).
|
|
633
|
+
# - fusion on the sparse path: wash (51-58). The non-fused copy pass wasn't the slack.
|
|
634
|
+
# - aggressive window coalescing: regression. Merging scattered balls makes taller
|
|
635
|
+
# windows that span MORE 32-row chunks, so chunk count doesn't drop, px inflates 2.5x.
|
|
636
|
+
# The flush is bound by per-chunk overhead (~320us/chunk x ~27 chunks), and chunk count =
|
|
637
|
+
# the dirty row-band coverage of 30 scattered balls, which is irreducible without a
|
|
638
|
+
# byte-balloon. To beat ~57 needs engine work on the per-chunk replay, not board config.
|
|
639
|
+
GEA_EMBEDDED_DISPLAY_PARTIAL_FLUSH_EDGE_PAD_X_PX=${GEA_BOARD_PARTIAL_PAD_X}
|
|
640
|
+
GEA_EMBEDDED_DISPLAY_PARTIAL_FLUSH_EDGE_PAD_Y_PX=${GEA_BOARD_PARTIAL_PAD_Y}
|
|
641
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_FLUSH=0
|
|
642
|
+
GEA_EMBEDDED_DISPLAY_CO5300_STREAM_PACE_CHUNKS=${GEA_BOARD_STREAM_PACE_CHUNKS}
|
|
643
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_STREAM_PACE_CHUNKS=0
|
|
644
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_RAMWRC_CONTINUE=1
|
|
645
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_CS_HELD_STREAM=1
|
|
646
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_MAX_TRANSFER_BYTES=32256
|
|
647
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_STATIC_TX_PROBE=0
|
|
648
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_STATIC_TX_PROBE_IDLE_FLUSH=0
|
|
649
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_EDGE_GUARD_BYTES=0
|
|
650
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_STAGED_PREFIX_ROWS=0
|
|
651
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_ALIGN_TRANSFERS=1
|
|
652
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_REQUIRE_LENGTH_ALIGNMENT=0
|
|
653
|
+
GEA_EMBEDDED_DISPLAY_SOFTWARE_SCROLL_PADDED_STRIDE=0
|
|
654
|
+
GEA_EMBEDDED_DISPLAY_DIRECT_PSRAM_PADDED_ROW_STREAM=0
|
|
655
|
+
GEA_EMBEDDED_SH8601_SPI_MANUAL_DMA_ALIGN_FLAG=0
|
|
656
|
+
# Was =1 from an old display-pacing experiment (f06ad9724) that disabled the
|
|
657
|
+
# then-broken queueFrameEvent catch-up. =0 re-enables catch-up, now driven by
|
|
658
|
+
# the work-based, event-loop graceful-overrun path (frame_scheduler/runtime).
|
|
659
|
+
GEA_EMBEDDED_FRAME_SCHEDULER_DROP_CATCHUP_FRAMES=0
|
|
660
|
+
GEA_EMBEDDED_APP_FRAME_TASK_PRIORITY=23
|
|
661
|
+
# 2-core replay split: the defaults (96 rows / 64k px) almost never fire on
|
|
662
|
+
# this 368x448 panel (165k px full screen), so animated-transform scenes
|
|
663
|
+
# raster single-core while CPU1 idles. Same tune as the amoled-2.06, where
|
|
664
|
+
# it measured median 52.3 -> 59.2 fps on css-3d-cube (glassy).
|
|
665
|
+
GEA_EMBEDDED_RENDER_PARALLEL_MIN_ROWS=48
|
|
666
|
+
GEA_EMBEDDED_RENDER_PARALLEL_MIN_PIXELS=24000
|
|
667
|
+
# Compact per-window scheduler perf line (tag gea_esp32_frame) for on-device
|
|
668
|
+
# fps measurement without the full phase dump's serial cost.
|
|
669
|
+
GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LITE=${GEA_EMBEDDED_PERF_LITE_VALUE}
|
|
670
|
+
${GEA_BOARD_EXTRA_COMPILE_DEFINITIONS}
|
|
671
|
+
${GEA_EMBEDDED_BLE_COMPILE_DEFINITIONS}
|
|
672
|
+
${GEA_EMBEDDED_HTTPS_COMPILE_DEFINITIONS}
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
# Production lockdown: gated by CONFIG_GEA_EMBEDDED_PRODUCTION_LOCKDOWN (sdkconfig.defaults).
|
|
676
|
+
# When enabled, adds defines that compile out perf/heap logs and disable diagnostics server.
|
|
677
|
+
if(CONFIG_GEA_EMBEDDED_PRODUCTION_LOCKDOWN)
|
|
678
|
+
target_compile_definitions(${COMPONENT_LIB} PRIVATE
|
|
679
|
+
GEA_EMBEDDED_FRAME_SCHEDULER_PERF_LOG=0
|
|
680
|
+
GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG=0
|
|
681
|
+
GEA_FRAME_PERF_LOG=0
|
|
682
|
+
GEA_EMBEDDED_DIAGNOSTICS_DISABLED=1
|
|
683
|
+
)
|
|
684
|
+
endif()
|
|
685
|
+
|
|
686
|
+
target_compile_options(${COMPONENT_LIB} PRIVATE
|
|
687
|
+
${GEA_XTENSA_LITERALS} # -mtext-section-literals on xtensa, empty on riscv (see gea_framework.cmake)
|
|
688
|
+
-Wno-unused-parameter
|
|
689
|
+
-Wno-sign-compare
|
|
690
|
+
-Wno-missing-field-initializers
|
|
691
|
+
-Wno-implicit-fallthrough
|
|
692
|
+
$<$<COMPILE_LANGUAGE:C>:-Wno-old-style-declaration>
|
|
693
|
+
-Wno-misleading-indentation
|
|
694
|
+
-Wno-type-limits
|
|
695
|
+
-Wno-maybe-uninitialized
|
|
696
|
+
-Wno-calloc-transposed-args
|
|
697
|
+
-Wno-unused-function
|
|
698
|
+
-Wno-clobbered
|
|
699
|
+
)
|
|
700
|
+
|
|
701
|
+
# --- App compilation: vite-plugin-gea -> geatsc ---
|
|
702
|
+
|
|
703
|
+
_gea_collect_app_sources(_ACTIVE_APP_SRCS "${GEA_EMBEDDED_APP_DIR}")
|
|
704
|
+
_gea_collect_app_assets(_ACTIVE_APP_ASSETS "${GEA_EMBEDDED_APP_DIR}")
|
|
705
|
+
# The Gea compiler emits JS and IR, then geatsc emits C++. We use a stamp file as
|
|
706
|
+
# the canonical OUTPUT because geatsc now writes a source manifest plus multiple
|
|
707
|
+
# translation units. The generated archive consumes geatsc-sources.txt after this
|
|
708
|
+
# command has completed.
|
|
709
|
+
set(_GEATSC_BIN "${GEA_COMPILER}/dist/cli.js")
|
|
710
|
+
set(_GEATSC_BUILD_STAMP "${GENERATED_APP_DIR}/geatsc_build.stamp")
|
|
711
|
+
set(_GEA_VITE_GEATSC_SCRIPT "${GEA_CORE}/scripts/build-gea-vite-geatsc.mjs")
|
|
712
|
+
file(GLOB_RECURSE _GEATSC_DIST_SRCS CONFIGURE_DEPENDS
|
|
713
|
+
"${GEA_COMPILER}/dist/*.js"
|
|
714
|
+
"${GEA_COMPILER}/dist/targets/cpp/runtime/*.cpp"
|
|
715
|
+
"${GEA_PLUGIN}/dist/*.js"
|
|
716
|
+
)
|
|
717
|
+
add_custom_command(
|
|
718
|
+
OUTPUT ${_GEATSC_BUILD_STAMP}
|
|
719
|
+
COMMAND ${CMAKE_COMMAND} -E env
|
|
720
|
+
"GEA_EMBEDDED_NUMBER_F32=${GEA_EMBEDDED_NUMBER_F32}"
|
|
721
|
+
node ${_GEA_VITE_GEATSC_SCRIPT}
|
|
722
|
+
--app-dir ${GEA_EMBEDDED_APP_DIR}
|
|
723
|
+
--entry ${GEA_EMBEDDED_APP_ENTRY}
|
|
724
|
+
--cpp-board "${GEA_EMBEDDED_CPP_BOARD}"
|
|
725
|
+
--out-dir ${GENERATED_APP_DIR}
|
|
726
|
+
--geatsc-bin ${_GEATSC_BIN}
|
|
727
|
+
--font-device-pixel-ratio ${GEA_EMBEDDED_CSS_DEVICE_PIXEL_RATIO}
|
|
728
|
+
--pixel-panel-endian 1
|
|
729
|
+
--gea-ir-backend
|
|
730
|
+
# gea.compilerPlugins: an app's own geatsc plugins, e.g. the one that
|
|
731
|
+
# declares its native host-function boundary. Empty for most apps.
|
|
732
|
+
${GEA_EMBEDDED_APP_GEATSC_PLUGIN_ARGS}
|
|
733
|
+
COMMAND ${CMAKE_COMMAND} -E touch ${_GEATSC_BUILD_STAMP}
|
|
734
|
+
DEPENDS
|
|
735
|
+
${GEA_EMBEDDED_APP_GEATSC_PLUGINS}
|
|
736
|
+
${_ACTIVE_APP_SRCS}
|
|
737
|
+
${_ACTIVE_APP_ASSETS}
|
|
738
|
+
${_GEATSC_BIN}
|
|
739
|
+
${_GEATSC_DIST_SRCS}
|
|
740
|
+
${_GEA_COMPILER_DEP_SRCS}
|
|
741
|
+
${_GEA_FONT_ASSETS}
|
|
742
|
+
BYPRODUCTS
|
|
743
|
+
"${GEATSC_SOURCE_LIST}"
|
|
744
|
+
"${GENERATED_APP_DIR}/entry.cpp"
|
|
745
|
+
"${GENERATED_APP_DIR}/generated_support.hpp"
|
|
746
|
+
"${GENERATED_APP_DIR}/runtime.cpp"
|
|
747
|
+
"${GENERATED_APP_DIR}/runtime_pch.h"
|
|
748
|
+
${GENERATED_CONFIG_H}
|
|
749
|
+
${GENERATED_FONT_CPP}
|
|
750
|
+
${GENERATED_FONT_H}
|
|
751
|
+
${GENERATED_ASSETS_CPP}
|
|
752
|
+
"${GENERATED_APP_DIR}/gea-vite-bundle.js"
|
|
753
|
+
COMMENT "Compiling ${GEA_EMBEDDED_APP}: TSX -> JS via vite-plugin-gea -> C++ via geatsc"
|
|
754
|
+
VERBATIM
|
|
755
|
+
)
|
|
756
|
+
add_custom_target(geatsc_build ALL DEPENDS ${_GEATSC_BUILD_STAMP})
|
|
757
|
+
gea_geatsc_add_generated_archive(
|
|
758
|
+
TARGET ${COMPONENT_LIB}
|
|
759
|
+
NAME geatsc_active_archive
|
|
760
|
+
SOURCE_LIST "${GEATSC_SOURCE_LIST}"
|
|
761
|
+
OUTPUT "${GEATSC_ARCHIVE}"
|
|
762
|
+
DEPENDS ${_GEATSC_BUILD_STAMP}
|
|
763
|
+
COMPILE_OPTIONS ${GEATSC_COMPILE_OPTIONS}
|
|
764
|
+
COMPILE_DEFINITIONS ${GEATSC_COMPILE_DEFINITIONS}
|
|
765
|
+
)
|
|
766
|
+
add_dependencies(geatsc_active_archive geatsc_build)
|
|
767
|
+
|
|
768
|
+
gea_framework_inherit_build_settings()
|