mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +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,3 +1,4 @@
|
||||
idf_component_register(SRCS "main.c"
|
||||
"tests.c"
|
||||
PRIV_REQUIRES esp_http_server esp_wifi nvs_flash esp_eth
|
||||
INCLUDE_DIRS "." "include")
|
||||
|
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "main.c"
|
||||
PRIV_REQUIRES esp-tls esp_wifi nvs_flash esp_eth esp_http_server
|
||||
INCLUDE_DIRS ".")
|
||||
|
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS main.c
|
||||
PRIV_REQUIRES esp_event nvs_flash esp_wifi esp_http_server dns_server
|
||||
EMBED_FILES root.html)
|
||||
|
@@ -1,3 +1,4 @@
|
||||
idf_component_register(SRCS "main.c" "file_server.c" "mount.c"
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES fatfs esp_event vfs esp_netif nvs_flash spiffs esp_http_server
|
||||
EMBED_FILES "favicon.ico" "upload_script.html")
|
||||
|
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "main.c"
|
||||
PRIV_REQUIRES esp_http_server esp_wifi nvs_flash esp_eth
|
||||
INCLUDE_DIRS ".")
|
||||
|
@@ -1,5 +1,6 @@
|
||||
idf_component_register(SRCS "esp_rest_main.c"
|
||||
"rest_server.c"
|
||||
PRIV_REQUIRES esp_http_server esp_driver_gpio fatfs json spiffs nvs_flash
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
if(CONFIG_EXAMPLE_WEB_DEPLOY_SF)
|
||||
|
@@ -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})
|
||||
|
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "ws_echo_server.c"
|
||||
PRIV_REQUIRES esp_http_server esp_wifi nvs_flash esp_eth
|
||||
INCLUDE_DIRS ".")
|
||||
|
Reference in New Issue
Block a user