Skip to content

Commit 09be5ee

Browse files
authored
TLSF sub module (#424)
* add tlsf * tlsf!!
1 parent ccf3156 commit 09be5ee

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@
5858
[submodule "__externals/Vulkan-Headers"]
5959
path = __externals/Vulkan-Headers
6060
url = https://github.com/KhronosGroup/Vulkan-Headers
61+
[submodule "__externals/tlsf/src"]
62+
path = __externals/tlsf/src
63+
url = https://github.com/mattconte/tlsf

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ if (NOT LAUNCHER_ONLY)
5757
add_subdirectory (${EXTERNAL_DIR}/SPIRV-Cross)
5858
add_subdirectory (${EXTERNAL_DIR}/gtest)
5959
add_subdirectory (${EXTERNAL_DIR}/VulkanMemoryAllocator)
60+
add_subdirectory (${EXTERNAL_DIR}/tlsf)
6061

6162
set (CMAKE_PREFIX_PATH
6263
${CMAKE_PREFIX_PATH}

__externals/externals.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set(EXTERNAL_INCLUDE_DIRS
55
${EXTERNAL_DIR}/fmt/include
66
${EXTERNAL_DIR}/glm/glm
77
${EXTERNAL_DIR}/imgui/src
8+
${EXTERNAL_DIR}/tlsf/src
89
${EXTERNAL_DIR}/spdlog/include
910
${EXTERNAL_DIR}/glfw/include
1011
${EXTERNAL_DIR}/entt
@@ -46,4 +47,5 @@ target_link_libraries(imported::External_libs INTERFACE
4647
GPUOpen::VulkanMemoryAllocator
4748
glslang SPIRV
4849
SPIRV-Tools
50+
tlsf
4951
)

__externals/tlsf/CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
set(CMAKE_CXX_STANDARD 11)
2+
3+
list (APPEND TLSF_SOURCE
4+
src/tlsf.h
5+
src/tlsf.c
6+
)
7+
8+
# Source files
9+
#
10+
add_library (tlsf STATIC ${TLSF_SOURCE})
11+
12+
# include directories
13+
#
14+
target_include_directories (tlsf
15+
PUBLIC
16+
./src
17+
)
18+

__externals/tlsf/src

Submodule src added at deff9ab

0 commit comments

Comments
 (0)