mirror of
https://github.com/espressif/esp-idf.git
synced 2026-01-19 14:47:20 +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>
19 lines
631 B
CMake
19 lines
631 B
CMake
if(CONFIG_EXAMPLE_WIFI_CONFIGURATION_MANUAL)
|
|
set(config_method manual_config.c)
|
|
else()
|
|
set(config_method provisioning.c scheme_generic_httpd.c)
|
|
endif()
|
|
|
|
if(CONFIG_EXAMPLE_WIRED_INTERFACE_IS_ETHERNET)
|
|
set(wired_iface ethernet_iface.c)
|
|
else()
|
|
set(wired_iface usb_ncm_iface.c)
|
|
endif()
|
|
|
|
idf_component_register(SRCS sta2eth_main.c
|
|
${wired_iface}
|
|
${config_method}
|
|
PRIV_REQUIRES esp_wifi esp_timer esp_eth esp_http_server
|
|
nvs_flash esp_driver_gpio wifi_provisioning
|
|
INCLUDE_DIRS "")
|