GC allocation trigger should be tuned to system RAM
[WebKit-https.git] / Source / WTF / wtf / CMakeLists.txt
1 SET(WTF_HEADERS
2     ASCIICType.h
3     AVLTree.h
4     Alignment.h
5     AlwaysInline.h
6     Assertions.h
7     Atomics.h
8     BitArray.h
9     BitVector.h
10     Bitmap.h
11     BoundsCheckedPointer.h
12     BumpPointerAllocator.h
13     Compiler.h
14     Complex.h
15     CryptographicallyRandomNumber.h
16     CurrentTime.h
17     DateMath.h
18     DataLog.h
19     DecimalNumber.h
20     Decoder.h
21     Deque.h
22     DisallowCType.h
23     DoublyLinkedList.h
24     DynamicAnnotations.h
25     Encoder.h
26     FastAllocBase.h
27     FastMalloc.h
28     FixedArray.h
29     Forward.h
30     GetPtr.h
31     HashCountedSet.h
32     HashFunctions.h
33     HashIterators.h
34     HashMap.h
35     HashSet.h
36     HashTable.h
37     HashTraits.h
38     HexNumber.h
39     ListHashSet.h
40     ListRefPtr.h
41     Locker.h
42     MD5.h
43     MainThread.h
44     MallocZoneSupport.h
45     MathExtras.h
46     MessageQueue.h
47     MetaAllocator.h
48     MetaAllocatorHandle.h
49     NonCopyingSort.h
50     ThreadRestrictionVerifier.h
51     Noncopyable.h
52     NotFound.h
53     NullPtr.h
54     NumberOfCores.h
55     RAMSize.h
56     OSAllocator.h
57     OSRandomSource.h
58     OwnArrayPtr.h
59     OwnPtr.h
60     OwnPtrCommon.h
61     PageAllocation.h
62     PageAllocationAligned.h
63     PageBlock.h
64     PageReservation.h
65     PassOwnArrayPtr.h
66     PassOwnPtr.h
67     PassRefPtr.h
68     PassTraits.h
69     ParallelJobs.h
70     ParallelJobsGeneric.h
71     ParallelJobsLibdispatch.h
72     ParallelJobsOpenMP.h
73     Platform.h
74     PossiblyNull.h
75     RandomNumber.h
76     RandomNumberSeed.h
77     RedBlackTree.h
78     RefCounted.h
79     RefCountedLeakCounter.h
80     RefPtr.h
81     RefPtrHashMap.h
82     RetainPtr.h
83     SegmentedVector.h
84     SHA1.h
85     StackBounds.h
86     StaticConstructors.h
87     StdLibExtras.h
88     StringExtras.h
89     StringHasher.h
90     TCPackedCache.h
91     TCPageMap.h
92     TCSpinLock.h
93     TCSystemAlloc.h
94     ThreadIdentifierDataPthreads.h
95     ThreadSafeRefCounted.h
96     ThreadSpecific.h
97     Threading.h
98     ThreadingPrimitives.h
99     TypeTraits.h
100     UnusedParam.h
101     VMTags.h
102     ValueCheck.h
103     Vector.h
104     VectorTraits.h
105     WTFThreadData.h
106     dtoa.h
107
108     dtoa/bignum-dtoa.h
109     dtoa/bignum.h
110     dtoa/cached-powers.h
111     dtoa/diy-fp.h
112     dtoa/double-conversion.h
113     dtoa/double.h
114     dtoa/fast-dtoa.h
115     dtoa/fixed-dtoa.h
116     dtoa/strtod.h
117     dtoa/utils.h
118
119     text/AtomicString.h
120     text/AtomicStringImpl.h
121     text/CString.h
122     text/StringBuffer.h
123     text/StringHash.h
124     text/StringImpl.h
125     text/WTFString.h
126
127     threads/BinarySemaphore.h
128
129     unicode/CharacterNames.h
130     unicode/Collator.h
131     unicode/UTF8.h
132     unicode/Unicode.h
133 )
134
135 SET(WTF_SOURCES
136     ArrayBuffer.cpp
137     ArrayBufferView.cpp
138     Assertions.cpp
139     BitVector.cpp
140     CryptographicallyRandomNumber.cpp
141     CurrentTime.cpp
142     DateMath.cpp
143     DataLog.cpp
144     DecimalNumber.cpp
145     DynamicAnnotations.cpp
146     FastMalloc.cpp
147     HashTable.cpp
148     MD5.cpp
149     MainThread.cpp
150     MetaAllocator.cpp
151     OSRandomSource.cpp
152     NumberOfCores.cpp
153     RAMSize.cpp
154     PageAllocationAligned.cpp
155     PageBlock.cpp
156     ParallelJobsGeneric.cpp
157     RandomNumber.cpp
158     RefCountedLeakCounter.cpp
159     SHA1.cpp
160     StackBounds.cpp
161     StringExtras.cpp
162     Threading.cpp
163     TypeTraits.cpp
164     WTFThreadData.cpp
165     dtoa.cpp
166
167     dtoa/bignum-dtoa.cc
168     dtoa/bignum.cc
169     dtoa/cached-powers.cc
170     dtoa/diy-fp.cc
171     dtoa/double-conversion.cc
172     dtoa/fast-dtoa.cc
173     dtoa/fixed-dtoa.cc
174     dtoa/strtod.cc
175
176     text/AtomicString.cpp
177     text/CString.cpp
178     text/StringBuilder.cpp
179     text/StringImpl.cpp
180     text/StringStatics.cpp
181     text/WTFString.cpp
182
183     threads/BinarySemaphore.cpp
184
185     unicode/UTF8.cpp
186 )
187
188 SET(WTF_INCLUDE_DIRECTORIES
189     "${WTF_DIR}"
190     "${WTF_DIR}/wtf"
191     "${WTF_DIR}/wtf/dtoa"
192     "${WTF_DIR}/wtf/threads"
193     "${WTF_DIR}/wtf/unicode"
194     "${THIRDPARTY_DIR}"
195     "${CMAKE_BINARY_DIR}"
196 )
197
198 IF (NOT USE_SYSTEM_MALLOC)
199     LIST(APPEND WTF_SOURCES
200         TCSystemAlloc.cpp
201     )
202 ENDIF()
203
204 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
205
206 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
207 INCLUDE_DIRECTORIES(${WTF_INCLUDE_DIRECTORIES})
208 ADD_DEFINITIONS(-DBUILDING_WTF)
209 ADD_LIBRARY(${WTF_LIBRARY_NAME} STATIC ${WTF_HEADERS} ${WTF_SOURCES})
210 TARGET_LINK_LIBRARIES(${WTF_LIBRARY_NAME} ${WTF_LIBRARIES})
211 SET_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} PROPERTIES FOLDER "JavaScriptCore")
212
213 IF (WTF_LINK_FLAGS)
214     ADD_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} LINK_FLAGS "${WTF_LINK_FLAGS}")
215 ENDIF ()