Build bmalloc through CMake as a static library. It's then linked either
[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/Heap.cpp
11     bmalloc/ObjectType.cpp
12     bmalloc/SegregatedFreeList.cpp
13     bmalloc/StaticMutex.cpp
14     bmalloc/VMHeap.cpp
15     bmalloc/mbmalloc.cpp
16 )
17
18 WEBKIT_WRAP_SOURCELIST(${bmalloc_SOURCES})
19 include_directories(${bmalloc_INCLUDE_DIRECTORIES})
20 add_library(bmalloc STATIC ${bmalloc_SOURCES})
21 target_link_libraries(bmalloc ${bmalloc_LIBRARIES})
22 set_target_properties(bmalloc PROPERTIES COMPILE_DEFINITIONS "BUILDING_bmalloc")