fa4a6e255c
- Added modular device support and devicetree bindings for ILI9341, ILI9488, CST816S, XPT2046, and GPIO button input, updating several board configurations for display/touch/backlight/keyboard/battery. - Added a setting to control deprecated HAL usage (device property + Kconfig).
22 lines
569 B
CMake
22 lines
569 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/../Buildscripts/module.cmake")
|
|
|
|
file(GLOB_RECURSE SOURCE_FILES "source/*.c**")
|
|
|
|
list(APPEND REQUIRES_LIST)
|
|
|
|
if (DEFINED ENV{ESP_IDF_VERSION})
|
|
# TODO move the related logic for esp_time in Tactility/time.h into the Platform/ subproject
|
|
list(APPEND REQUIRES_LIST esp_timer)
|
|
else ()
|
|
list(APPEND REQUIRES_LIST freertos_kernel)
|
|
endif ()
|
|
|
|
tactility_add_module(TactilityKernel
|
|
SRCS ${SOURCE_FILES}
|
|
INCLUDE_DIRS include/
|
|
PRIV_INCLUDE_DIRS private/
|
|
REQUIRES ${REQUIRES_LIST}
|
|
)
|