2018-09-10 21:44:12 -04:00
|
|
|
# Embed the server root certificate into the final binary
|
|
|
|
#
|
|
|
|
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
2022-11-08 06:01:52 -05:00
|
|
|
set(requires "")
|
|
|
|
if(${IDF_TARGET} STREQUAL "linux")
|
2023-01-11 23:39:25 -05:00
|
|
|
list(APPEND requires esp_stubs esp-tls esp_http_client protocol_examples_common nvs_flash)
|
2022-11-08 06:01:52 -05:00
|
|
|
endif()
|
2019-04-28 03:38:46 -04:00
|
|
|
idf_component_register(SRCS "esp_http_client_example.c"
|
|
|
|
INCLUDE_DIRS "."
|
2022-11-08 06:01:52 -05:00
|
|
|
REQUIRES ${requires}
|
2021-04-04 03:21:20 -04:00
|
|
|
EMBED_TXTFILES howsmyssl_com_root_cert.pem
|
|
|
|
postman_root_cert.pem)
|