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:
Frantisek Hrbata
2024-09-24 14:22:10 +02:00
committed by Rocha Euripedes
parent c5fb6c9436
commit e71a595cf8
9 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
idf_component_register(SRCS "app_main.c"
INCLUDE_DIRS "."
PRIV_REQUIRES mqtt nvs_flash esp_netif
)

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "app_main.c"
PRIV_REQUIRES mqtt esp_partition nvs_flash esp_netif app_update
INCLUDE_DIRS ".")

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "app_main.c"
PRIV_REQUIRES mqtt esp_netif
INCLUDE_DIRS ".")

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "app_main.c"
PRIV_REQUIRES mqtt esp_wifi nvs_flash
INCLUDE_DIRS ".")

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "app_main.c"
PRIV_REQUIRES mqtt esp_wifi nvs_flash
INCLUDE_DIRS ".")

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "app_main.c"
PRIV_REQUIRES mqtt nvs_flash esp_netif
INCLUDE_DIRS ".")

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "app_main.c"
PRIV_REQUIRES mqtt esp_wifi nvs_flash
INCLUDE_DIRS ".")

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "app_main.c"
PRIV_REQUIRES mqtt esp_wifi nvs_flash
INCLUDE_DIRS ".")

View File

@@ -1,2 +1,3 @@
idf_component_register(SRCS "app_main.c"
PRIV_REQUIRES mqtt nvs_flash esp_netif
INCLUDE_DIRS ".")