Support for PC platform (#12)
* improvements for cross-platform compiling * moved tactility-core to libs/ * splitup improvements * remove git/gitmodules from freertos * better platformbetter platform checks * added build scripts * delete mbedtls * re-add mbedtls * fixes and improvements * added pc build * simplify build scripts * revert build scrpit * updated builds * fix for pc * fix for pc * fix for build
This commit is contained in:
committed by
GitHub
parent
c830c66063
commit
a94baf0d00
+27
-12
@@ -2,20 +2,35 @@ cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
add_definitions(-DTT_DEBUG)
|
||||
|
||||
set(COMPONENTS main)
|
||||
set(EXTRA_COMPONENT_DIRS "boards" "components")
|
||||
if (DEFINED ENV{ESP_IDF_VERSION})
|
||||
message("Building with ESP-IDF v$ENV{ESP_IDF_VERSION}")
|
||||
|
||||
# Yellow Board only runs on ESP32
|
||||
if(NOT "${IDF_TARGET}" STREQUAL "esp32")
|
||||
set(EXCLUDE_COMPONENTS "yellow_board_2432s024")
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
|
||||
add_definitions(-DESP_TARGET)
|
||||
set(COMPONENTS app-esp tactility tactility-data)
|
||||
set(EXTRA_COMPONENT_DIRS "boards" "components" "app-esp")
|
||||
|
||||
# Yellow Board only runs on ESP32
|
||||
if(NOT "${IDF_TARGET}" STREQUAL "esp32")
|
||||
set(EXCLUDE_COMPONENTS "yellow_board_2432s024")
|
||||
endif()
|
||||
|
||||
# T-Deck is an S3 platform
|
||||
if(NOT "${IDF_TARGET}" STREQUAL "esp32s3")
|
||||
set(EXCLUDE_COMPONENTS "lilygo_tdeck")
|
||||
endif()
|
||||
else()
|
||||
message("Building for sim target")
|
||||
endif()
|
||||
|
||||
# T-Deck is an S3 platform
|
||||
if(NOT "${IDF_TARGET}" STREQUAL "esp32s3")
|
||||
set(EXCLUDE_COMPONENTS "lilygo_tdeck")
|
||||
endif()
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(Tactility)
|
||||
project(tactility-root)
|
||||
|
||||
add_subdirectory(libs/mlib)
|
||||
add_subdirectory(tactility-core)
|
||||
|
||||
if (NOT IDF_TARGET)
|
||||
add_subdirectory(libs/freertos-kernel)
|
||||
add_subdirectory(libs/mbedtls)
|
||||
add_subdirectory(app-sim)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user