2024-04-08 08:08:23 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
2023-11-21 21:22:29 -05:00
|
|
|
set(srcs)
|
|
|
|
set(public_include "include")
|
|
|
|
if(CONFIG_SOC_RMT_SUPPORTED)
|
|
|
|
list(APPEND srcs "src/rmt_common.c"
|
|
|
|
"src/rmt_encoder.c"
|
|
|
|
"src/rmt_rx.c"
|
|
|
|
"src/rmt_tx.c")
|
|
|
|
endif()
|
|
|
|
|
2024-04-08 08:08:23 -04:00
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
set(priv_requires "")
|
|
|
|
else()
|
|
|
|
set(priv_requires esp_pm esp_driver_gpio esp_mm)
|
|
|
|
endif()
|
|
|
|
|
2023-11-21 21:22:29 -05:00
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
INCLUDE_DIRS ${public_include}
|
2024-04-08 08:08:23 -04:00
|
|
|
PRIV_REQUIRES "${priv_requires}"
|
2023-11-21 21:22:29 -05:00
|
|
|
LDFRAGMENTS "linker.lf"
|
|
|
|
)
|