mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00
feat(make): Sync code from esp-idf and modify for ESP8266
Commit ID: f6bfe13e
This commit is contained in:
25
components/heap/CMakeLists.txt
Normal file
25
components/heap/CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
set(COMPONENT_SRCDIRS "src" "port/esp8266")
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS "include" "port/esp8266/include")
|
||||
|
||||
set(COMPONENT_REQUIRES "log" "newlib")
|
||||
|
||||
register_component()
|
||||
|
||||
if(CONFIG_HEAP_TRACING)
|
||||
set(WRAP_FUNCTIONS
|
||||
calloc
|
||||
malloc
|
||||
free
|
||||
realloc
|
||||
heap_caps_malloc
|
||||
heap_caps_free
|
||||
heap_caps_realloc
|
||||
heap_caps_malloc_default
|
||||
heap_caps_realloc_default)
|
||||
|
||||
foreach(wrap ${WRAP_FUNCTIONS})
|
||||
target_link_libraries(heap "-Wl,--wrap=${wrap}")
|
||||
endforeach()
|
||||
|
||||
endif()
|
Reference in New Issue
Block a user