2018-09-11 09:44:12 +08: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 16:31:52 +05:30
|
|
|
set(requires "")
|
|
|
|
if(${IDF_TARGET} STREQUAL "linux")
|
2023-01-12 10:09:25 +05:30
|
|
|
list(APPEND requires esp_stubs esp-tls esp_http_client protocol_examples_common nvs_flash)
|
2022-11-08 16:31:52 +05:30
|
|
|
endif()
|
2019-04-28 15:38:46 +08:00
|
|
|
idf_component_register(SRCS "esp_http_client_example.c"
|
|
|
|
INCLUDE_DIRS "."
|
2022-11-08 16:31:52 +05:30
|
|
|
REQUIRES ${requires}
|
2021-04-04 12:51:20 +05:30
|
|
|
EMBED_TXTFILES howsmyssl_com_root_cert.pem
|
|
|
|
postman_root_cert.pem)
|