mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
build system: Initial cmake support, work in progress
This commit is contained in:

committed by
Angus Gratton

parent
a538644560
commit
c671a0c3eb
17
components/heap/CMakeLists.txt
Normal file
17
components/heap/CMakeLists.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
set(COMPONENT_SRCS heap_caps_init.c heap_caps.c multi_heap.c heap_trace.c)
|
||||
|
||||
if(NOT CONFIG_HEAP_POISONING_DISABLED)
|
||||
set(COMPONENT_SRCS ${COMPONENT_SRCS} multi_heap_poisoning.c)
|
||||
endif()
|
||||
|
||||
register_component()
|
||||
|
||||
if(CONFIG_HEAP_TRACING)
|
||||
set(WRAP_FUNCTIONS
|
||||
calloc malloc free realloc heap_caps_malloc heap_caps_free heap_caps_realloc)
|
||||
|
||||
foreach(wrap ${WRAP_FUNCTIONS})
|
||||
target_link_libraries(heap "-Wl,--wrap=${wrap}")
|
||||
endforeach()
|
||||
|
||||
endif(CONFIG_HEAP_TRACING)
|
Reference in New Issue
Block a user