1idf_build_get_property(idf_target IDF_TARGET) 2 3idf_component_register( 4 INCLUDE_DIRS include 5 REQUIRES esp_phy 6 ) 7 8if(CONFIG_IEEE802154_ENABLED) 9 idf_component_get_property(esp_phy_lib esp_phy COMPONENT_LIB) 10 if(CONFIG_IEEE802154_LIB_FROM_INTERNAL_SRC) 11 idf_component_get_property(ieee802154_lib ieee802154_driver COMPONENT_LIB) 12 target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${ieee802154_lib}> libphy.a libbtbb.a 13 $<TARGET_FILE:${esp_phy_lib}>) 14 else() 15 target_link_libraries(${COMPONENT_LIB} INTERFACE "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}") 16 target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${esp_phy_lib}> lib802154.a libphy.a libbtbb.a 17 $<TARGET_FILE:${esp_phy_lib}>) 18 endif() 19endif() 20