mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-31 06:12:42 +00:00
change(examples): explicitly specify component dependencies for examples
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>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
set(requires "")
|
||||
set(requires esp-tls nvs_flash esp_netif esp_http_server esp_wifi esp_eth)
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
|
||||
if(${target} STREQUAL "linux")
|
||||
list(APPEND requires esp_stubs esp-tls esp_http_server protocol_examples_common nvs_flash)
|
||||
list(APPEND requires esp_stubs protocol_examples_common)
|
||||
endif()
|
||||
idf_component_register(SRCS "main.c"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES ${requires})
|
||||
PRIV_REQUIRES ${requires})
|
||||
|
Reference in New Issue
Block a user