mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00

Currently, several examples do not explicitly state their component dependencies, relying instead on the default behavior that includes all registered components and commonly required ones in the build. Explicitly adding component dependencies can reduce build time when set(COMPONENTS main) is used. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
11 lines
303 B
CMake
11 lines
303 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
set(priv_requires "")
|
|
|
|
if(${target} STREQUAL "linux")
|
|
list(APPEND priv_requires nvs_flash esp_event esp_netif lwip)
|
|
endif()
|
|
|
|
idf_component_register(SRCS "udp_client.c"
|
|
PRIV_REQUIRES ${priv_requires}
|
|
INCLUDE_DIRS ".")
|