examples: update with build system changes
This commit is contained in:
@@ -25,7 +25,7 @@ It will enable coverage info for all source files of your component. If you need
|
||||
`gcov_example.o: CFLAGS += --coverage`
|
||||
Replace `gcov_example.o` with path to your file.
|
||||
|
||||
For CMake-based build system, use `target_compile_options(${COMPONENT_TARGET} PRIVATE --coverage)` or: ` set_source_files_properties(gcov_example.c PROPERTIES COMPILE_FLAGS --coverage`
|
||||
For CMake-based build system, use `target_compile_options(${COMPONENT_LIB} PRIVATE --coverage)` or: ` set_source_files_properties(gcov_example.c PROPERTIES COMPILE_FLAGS --coverage`
|
||||
|
||||
|
||||
### Hard-coded Dump Call
|
||||
|
||||
@@ -3,6 +3,7 @@ set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
|
||||
# Embed the server root certificate into the final binary
|
||||
set(COMPONENT_EMBED_TXTFILES ${IDF_PROJECT_PATH}/server_certs/ca_cert.pem)
|
||||
idf_build_get_property(project_dir PROJECT_DIR)
|
||||
set(COMPONENT_EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem)
|
||||
|
||||
register_component()
|
||||
|
||||
@@ -2,6 +2,7 @@ set(COMPONENT_SRCS "native_ota_example.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
# Embed the server root certificate into the final binary
|
||||
set(COMPONENT_EMBED_TXTFILES ${IDF_PROJECT_PATH}/server_certs/ca_cert.pem)
|
||||
idf_build_get_property(project_dir PROJECT_DIR)
|
||||
set(COMPONENT_EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem)
|
||||
|
||||
register_component()
|
||||
|
||||
@@ -3,6 +3,7 @@ set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
|
||||
# Embed the server root certificate into the final binary
|
||||
set(COMPONENT_EMBED_TXTFILES ${IDF_PROJECT_PATH}/server_certs/ca_cert.pem)
|
||||
idf_build_get_property(project_dir PROJECT_DIR)
|
||||
set(COMPONENT_EMBED_TXTFILES ${project_dir}/server_certs/ca_cert.pem)
|
||||
|
||||
register_component()
|
||||
|
||||
Reference in New Issue
Block a user