mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-03 06:23:53 +00:00
Introduce a binary min-heap implementation as a generic data structure for use in kernel and application code. A min-heap always maintains the smallest element at the root, making insertion and removal of the minimum element efficient (O(log n)). The API allows both static and dynamic initialization, supports custom comparators. Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
25 lines
765 B
CMake
25 lines
765 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# FIXME: SHADOW_VARS: Remove this once we have enabled -Wshadow globally.
|
|
add_compile_options($<TARGET_PROPERTY:compiler,warning_shadow_variables>)
|
|
|
|
add_subdirectory(crc)
|
|
if(NOT CONFIG_EXTERNAL_LIBC)
|
|
add_subdirectory(libc)
|
|
endif()
|
|
if(NOT CONFIG_NATIVE_LIBC)
|
|
add_subdirectory(posix)
|
|
endif()
|
|
add_subdirectory_ifdef(CONFIG_CPP cpp)
|
|
add_subdirectory(hash)
|
|
add_subdirectory(heap)
|
|
add_subdirectory(mem_blocks)
|
|
add_subdirectory_ifdef(CONFIG_NET_BUF net_buf)
|
|
add_subdirectory(os)
|
|
add_subdirectory(utils)
|
|
add_subdirectory_ifdef(CONFIG_SMF smf)
|
|
add_subdirectory_ifdef(CONFIG_MIN_HEAP min_heap)
|
|
add_subdirectory_ifdef(CONFIG_OPENAMP open-amp)
|
|
add_subdirectory_ifdef(CONFIG_ACPI acpi)
|
|
add_subdirectory(uuid)
|