examples: use new component registration api

This commit is contained in:
Renz Christian Bagaporo
2019-04-28 15:38:46 +08:00
parent 9eccd7c082
commit 6771eead80
169 changed files with 409 additions and 788 deletions

View File

@@ -1,9 +1,4 @@
set(COMPONENT_SRCS "advanced_https_ota_example.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
# Embed the server root certificate into the final binary
idf_build_get_property(project_dir PROJECT_DIR)
set(COMPONENT_EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem)
register_component()
idf_component_register(SRCS "advanced_https_ota_example.c"
INCLUDE_DIRS "."
# Embed the server root certificate into the final binary
EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem)