bmalloc: Added a fast XLarge allocator
[WebKit-https.git] / Source / bmalloc / CMakeLists.txt
1 set(bmalloc_INCLUDE_DIRECTORIES
2     "${BMALLOC_DIR}"
3 )
4
5 set(bmalloc_SOURCES
6     bmalloc/Allocator.cpp
7     bmalloc/Cache.cpp
8     bmalloc/Deallocator.cpp
9     bmalloc/Environment.cpp
10     bmalloc/FreeList.cpp
11     bmalloc/Heap.cpp
12     bmalloc/ObjectType.cpp
13     bmalloc/SegregatedFreeList.cpp
14     bmalloc/StaticMutex.cpp
15     bmalloc/VMHeap.cpp
16     bmalloc/XLargeMap.cpp
17     bmalloc/mbmalloc.cpp
18 )
19
20 set(bmalloc_LIBRARIES
21     ${CMAKE_DL_LIBS}
22 )
23
24 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
25
26 WEBKIT_WRAP_SOURCELIST(${bmalloc_SOURCES})
27 include_directories(${bmalloc_INCLUDE_DIRECTORIES})
28 add_library(bmalloc STATIC ${bmalloc_SOURCES})
29 target_link_libraries(bmalloc ${bmalloc_LIBRARIES})
30 set_target_properties(bmalloc PROPERTIES COMPILE_DEFINITIONS "BUILDING_bmalloc")