- Added sdcard service: it updates a statusbar icon and it can auto-unmount sdcards that were physically ejected by the user. - Added `is_mounted` check for sdcard drivers - Refactored assets: moved them from `tactility-esp/` to `data/` - Made assets work with sim build - Refactored wifi statusbar icons - Refactored wifi_manage app access point icons - Support not having an initial image icon when registering a new icon in statusbars. When a statusbar icon is added, it is now visible/invisible depending on whether an image was specified. - Keep track of app memory on app start to find memory leaks (needs fine-tuning in the future) - `tt_init()` assigns `config_instance` earlier, so it can be used during service init
22 lines
648 B
CMake
22 lines
648 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
set(BOARD_COMPONENTS esp_wifi)
|
|
|
|
file(GLOB_RECURSE SOURCE_FILES src/*.c)
|
|
|
|
idf_component_register(
|
|
SRCS ${SOURCE_FILES}
|
|
INCLUDE_DIRS "src/"
|
|
REQUIRES esp_wifi nvs_flash spiffs
|
|
)
|
|
|
|
set(ASSETS_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../data/assets")
|
|
spiffs_create_partition_image(assets ${ASSETS_SRC_DIR} FLASH_IN_PROJECT)
|
|
|
|
set(CONFIG_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../data/config")
|
|
spiffs_create_partition_image(config ${CONFIG_SRC_DIR} FLASH_IN_PROJECT)
|
|
|
|
target_link_libraries(${COMPONENT_LIB} ${IDF_TARGET_NAME} tactility)
|
|
target_link_libraries(${COMPONENT_LIB} ${IDF_TARGET_NAME} tactility-core)
|
|
|