Files
AutoFilm-ESP32/components/hal_audio/CMakeLists.txt

15 lines
359 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)
else()
list(APPEND srcs stub/hal_audio.c)
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS "include"
REQUIRES driver
PRIV_REQUIRES ${priv_req})