feat: Initialize ESP-IDF project with core build configuration, component dependencies, and web frontend deployment.

This commit is contained in:
2026-03-02 22:42:29 -05:00
parent bba4c63f93
commit 75bab78137
7 changed files with 49 additions and 2 deletions

View File

@@ -1,2 +1,11 @@
idf_component_register(SRCS "main.cpp"
INCLUDE_DIRS ".")
if(CONFIG_CALENDINK_DEPLOY_WEB_PAGES)
set(WEB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../frontend")
if(EXISTS ${WEB_SRC_DIR}/dist)
littlefs_create_partition_image(www ${WEB_SRC_DIR}/dist FLASH_IN_PROJECT)
else()
message(FATAL_ERROR "'${WEB_SRC_DIR}/dist' doesn't exist. Run 'npm run build' in frontend/ first.")
endif()
endif()