Skip to content

Commit

Permalink
🚚 (libs): Rename CircularBuffer to ContainerKit
Browse files Browse the repository at this point in the history
This makes the purpose of the library more generic and allows us to
implemnt different types of containers

- fifo
- lifo
- queue
- double ended queue
- etc.
  • Loading branch information
ladislas committed Oct 7, 2021
1 parent 0600f8c commit b0e42c1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ include_directories(BEFORE
add_subdirectory(${LIBS_DIR}/Utils)
add_subdirectory(${LIBS_DIR}/LogKit)
add_subdirectory(${LIBS_DIR}/HelloWorld)
add_subdirectory(${LIBS_DIR}/CircularBuffer)
add_subdirectory(${LIBS_DIR}/ContainerKit)
add_subdirectory(${LIBS_DIR}/CriticalSection)

link_libraries(
Utils
LogKit
HelloWorld
CircularBuffer
ContainerKit
CriticalSection
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
# Copyright 2021 APF France handicap
# SPDX-License-Identifier: Apache-2.0

add_library(CircularBuffer STATIC)
add_library(ContainerKit STATIC)

target_include_directories(CircularBuffer
target_include_directories(ContainerKit
PUBLIC
include
)

target_sources(CircularBuffer
target_sources(ContainerKit
PRIVATE
source/CircularBuffer.cpp
)

target_link_libraries(CircularBuffer
target_link_libraries(ContainerKit
PRIVATE
mbed-os
CriticalSection
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ add_subdirectory(./mocks)

leka_register_unit_tests_for_library(Utils)
leka_register_unit_tests_for_library(LogKit)
leka_register_unit_tests_for_library(CircularBuffer)
leka_register_unit_tests_for_library(ContainerKit)
leka_register_unit_tests_for_library(CriticalSection)

#
Expand All @@ -187,7 +187,7 @@ leka_register_unit_tests_for_library(CriticalSection)
link_libraries(
Utils
LogKit
CircularBuffer
ContainerKit
CriticalSection
)

Expand Down

0 comments on commit b0e42c1

Please sign in to comment.