- Implemented [unPhone](https://unphone.net/) v9 board - Updated `.clang-format` to better reflect the intended code style - Fix SD card compatibility issues for all boards (frequency wasn't set well) - Moved `I2cDevice` class from CoreS3 board project to TactilityHeadless project - Tactility configuration now has default empty lists for apps and services fields - Fix for Launcher app: we don't need padding when showing it vertically - Fix for I2cDevice read/write calls that checked for `esp_err_t` instead of `bool` - Fix for TinyUSB init that checked for `esp_err_t` instead of `bool`
41 lines
936 B
CMake
41 lines
936 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
if (DEFINED ENV{ESP_IDF_VERSION})
|
|
set(BOARD_COMPONENTS Tactility TactilityC)
|
|
|
|
if("${IDF_TARGET}" STREQUAL "esp32")
|
|
list(APPEND BOARD_COMPONENTS
|
|
YellowBoard
|
|
M5stackCore2
|
|
)
|
|
endif()
|
|
|
|
if("${IDF_TARGET}" STREQUAL "esp32s3")
|
|
list(APPEND BOARD_COMPONENTS
|
|
LilygoTdeck
|
|
M5stackCoreS3
|
|
UnPhone
|
|
)
|
|
endif()
|
|
|
|
idf_component_register(
|
|
SRC_DIRS "Source"
|
|
"Source/HelloWorld"
|
|
REQUIRES ${BOARD_COMPONENTS}
|
|
)
|
|
else()
|
|
|
|
file(GLOB_RECURSE SOURCES "Source/*.c*")
|
|
add_executable(AppSim ${SOURCES})
|
|
target_link_libraries(AppSim
|
|
PRIVATE Tactility
|
|
PRIVATE TactilityCore
|
|
PRIVATE TactilityHeadless
|
|
PRIVATE Simulator
|
|
PRIVATE SDL2::SDL2-static SDL2-static
|
|
)
|
|
|
|
add_definitions(-D_Nullable=)
|
|
add_definitions(-D_Nonnull=)
|
|
endif()
|