mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
24 lines
612 B
CMake
24 lines
612 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
if(${target} STREQUAL "linux")
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
endif()
|
|
|
|
set(includes)
|
|
|
|
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${target}/include")
|
|
list(APPEND includes "${target}/include")
|
|
endif()
|
|
list(APPEND includes "include")
|
|
|
|
set(srcs)
|
|
|
|
# ASRC related source files
|
|
if(CONFIG_SOC_ASRC_SUPPORTED)
|
|
list(APPEND srcs "${target}/asrc_periph.c"
|
|
"${target}/asrc_hal.c")
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS ${includes}
|
|
REQUIRES soc hal)
|