mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04: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>
15 lines
589 B
CMake
15 lines
589 B
CMake
# Embed the server root certificate into the final binary
|
|
#
|
|
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
|
set(requires esp-tls nvs_flash esp_event esp_netif esp_http_client)
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if(${target} STREQUAL "linux")
|
|
list(APPEND requires esp_stubs protocol_examples_common)
|
|
endif()
|
|
idf_component_register(SRCS "esp_http_client_example.c"
|
|
INCLUDE_DIRS "."
|
|
PRIV_REQUIRES ${requires}
|
|
EMBED_TXTFILES howsmyssl_com_root_cert.pem
|
|
postman_root_cert.pem)
|