Files
AutoFilm-ESP32/components/hal_audio/CMakeLists.txt
gronod 7e854e10f0
ci / test (push) Successful in 1m14s
ci / firmware (wroom, sdkconfig.wroom, esp32) (push) Successful in 4m26s
ci / firmware (jc4827w543, sdkconfig.s3, esp32s3) (push) Successful in 4m28s
Add I2S speaker audio for S3
2026-09-16 22:20:53 +01:00

18 lines
477 B
CMake

set(srcs)
set(priv_req driver)
if(IDF_TARGET STREQUAL "esp32")
list(APPEND srcs wroom/hal_audio.c)
list(APPEND priv_req board_wroom)
elseif(IDF_TARGET STREQUAL "esp32s3")
list(APPEND srcs s3/hal_audio.c)
list(APPEND priv_req board_jc4827w543)
else()
list(APPEND srcs stub/hal_audio.c)
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS "include"
REQUIRES driver
PRIV_REQUIRES ${priv_req})