ci / test (push) Successful in 1m4s
ci / firmware (jc4827w543, sdkconfig.s3, esp32s3) (push) Canceled after 23s
ci / firmware (wroom, sdkconfig.wroom, esp32) (push) Canceled after 23s
ci / test (pull_request) Successful in 1m7s
ci / firmware (wroom, sdkconfig.wroom, esp32) (pull_request) Failing after 5m41s
ci / firmware (jc4827w543, sdkconfig.s3, esp32s3) (pull_request) Failing after 5m45s
40 lines
1.4 KiB
CMake
40 lines
1.4 KiB
CMake
if(NOT DEFINED AUTOFILM_BOARD)
|
|
set(AUTOFILM_BOARD wroom CACHE STRING "wroom|jc4827w543")
|
|
endif()
|
|
if(IDF_TARGET STREQUAL "esp32s3" OR AUTOFILM_BOARD STREQUAL "jc4827w543")
|
|
set(BOARD_COMP board_jc4827w543)
|
|
elseif(AUTOFILM_BOARD STREQUAL "wroom" OR IDF_TARGET STREQUAL "esp32")
|
|
set(BOARD_COMP board_wroom)
|
|
else()
|
|
message(FATAL_ERROR "AUTOFILM_BOARD=${AUTOFILM_BOARD} IDF_TARGET=${IDF_TARGET}")
|
|
endif()
|
|
|
|
idf_component_register(SRCS "main.c"
|
|
INCLUDE_DIRS "."
|
|
REQUIRES ${BOARD_COMP} driver app_process app_machine app_ui
|
|
hal_motor hal_temp hal_audio hal_display hal_input
|
|
PRIV_REQUIRES esp_timer)
|
|
|
|
if(IDF_TARGET STREQUAL "esp32")
|
|
target_compile_definitions(${COMPONENT_LIB} PRIVATE AUTOFILM_BOARD_WROOM=1)
|
|
elseif(IDF_TARGET STREQUAL "esp32s3")
|
|
target_compile_definitions(${COMPONENT_LIB} PRIVATE AUTOFILM_BOARD_S3=1)
|
|
endif()
|
|
|
|
execute_process(
|
|
COMMAND git describe --always --dirty
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
OUTPUT_VARIABLE AUTOFILM_GIT_DESC
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
ERROR_QUIET
|
|
)
|
|
if(NOT AUTOFILM_GIT_DESC)
|
|
set(AUTOFILM_GIT_DESC "dev")
|
|
endif()
|
|
target_compile_definitions(${COMPONENT_LIB} PRIVATE AUTOFILM_GIT_DESC="${AUTOFILM_GIT_DESC}")
|
|
|
|
option(AUTOFILM_MOTION_SMOKE "5s auto-demo on WROOM (bring-up only)" OFF)
|
|
if(AUTOFILM_MOTION_SMOKE)
|
|
target_compile_definitions(${COMPONENT_LIB} PRIVATE AUTOFILM_MOTION_SMOKE=1)
|
|
endif()
|