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 "")
|
2023-09-20 04:35:10 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
if(${target} STREQUAL "linux")
|
2023-04-03 14:31:51 -04:00
|
|
|
list(APPEND requires esp_stubs esp_event 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)
|