Bmalloc and GC should put auxiliaries (butterflies, typed array backing stores) in...
[WebKit-https.git] / Source / bmalloc / CMakeLists.txt
1 set_property(DIRECTORY . PROPERTY FOLDER "bmalloc")
2
3 set(bmalloc_INCLUDE_DIRECTORIES
4     "${BMALLOC_DIR}"
5 )
6
7 set(bmalloc_SOURCES
8     bmalloc/Allocator.cpp
9     bmalloc/AvailableMemory.cpp
10     bmalloc/Cache.cpp
11     bmalloc/Deallocator.cpp
12     bmalloc/DebugHeap.cpp
13     bmalloc/Environment.cpp
14     bmalloc/Gigacage.cpp
15     bmalloc/Heap.cpp
16     bmalloc/LargeMap.cpp
17     bmalloc/Logging.cpp
18     bmalloc/ObjectType.cpp
19     bmalloc/Scavenger.cpp
20     bmalloc/StaticMutex.cpp
21     bmalloc/VMHeap.cpp
22     bmalloc/mbmalloc.cpp
23 )
24
25 if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
26     list(APPEND bmalloc_SOURCES
27         bmalloc/Zone.cpp
28     )
29 endif ()
30
31 set(bmalloc_LIBRARIES
32     ${CMAKE_DL_LIBS}
33 )
34
35 WEBKIT_WRAP_SOURCELIST(${bmalloc_SOURCES})
36 include_directories(${bmalloc_INCLUDE_DIRECTORIES})
37 add_library(bmalloc STATIC ${bmalloc_SOURCES})
38 target_link_libraries(bmalloc ${bmalloc_LIBRARIES})
39 set_target_properties(bmalloc PROPERTIES COMPILE_DEFINITIONS "BUILDING_bmalloc")