mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Remove custom `ESP_TARGET` and use `ESP_PLATFORM` everywhere - Add `Loader` service functionality to `tt::app::` namespace - Make `Loader` `PubSub` usable by exposing the messages - Add board type to crash log - Don't show SD card in Files app when it's not mounted - Set default SPI frequency for SD cards - Move TT_VERSION to scope that works for sim too - Log Tactility version and board on boot - Rename "Yellow Board" to "CYD 2432S024C"
41 lines
938 B
CMake
41 lines
938 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
|
|
CYD-2432S024C
|
|
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()
|