wtf/BitVector.h has a variety of bugs which manifest when the
[WebKit-https.git] / Source / JavaScriptCore / 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     BitVector.h
9     Bitmap.h
10     BoundsCheckedPointer.h
11     BumpPointerAllocator.h
12     ByteArray.h
13     Compiler.h
14     Complex.h
15     CrossThreadRefCounted.h
16     CryptographicallyRandomNumber.h
17     CurrentTime.h
18     DateMath.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.cpp
48     MetaAllocator.h
49     MetaAllocatorHandle.h
50     NonCopyingSort.h
51     ThreadRestrictionVerifier.h
52     Noncopyable.h
53     NotFound.h
54     NullPtr.h
55     OSAllocator.h
56     OSRandomSource.h
57     OwnArrayPtr.h
58     OwnFastMallocPtr.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     dtoa/bignum-dtoa.h
120     dtoa/bignum.h
121     dtoa/cached-powers.h
122     dtoa/diy-fp.h
123     dtoa/double-conversion.h
124     dtoa/double.h
125     dtoa/fast-dtoa.h
126     dtoa/fixed-dtoa.h
127     dtoa/strtod.h
128     dtoa/utils.h
129
130     text/AtomicString.h
131     text/AtomicStringImpl.h
132     text/CString.h
133     text/StringBuffer.h
134     text/StringHash.h
135     text/StringImpl.h
136     text/StringImplBase.h
137     text/WTFString.h
138
139     threads/BinarySemaphore.h
140
141     unicode/CharacterNames.h
142     unicode/Collator.h
143     unicode/UTF8.h
144     unicode/Unicode.h
145 )
146
147 SET(WTF_SOURCES
148     Assertions.cpp
149     ByteArray.cpp
150     CryptographicallyRandomNumber.cpp
151     CurrentTime.cpp
152     DateMath.cpp
153     DecimalNumber.cpp
154     DynamicAnnotations.cpp
155     FastMalloc.cpp
156     HashTable.cpp
157     MainThread.cpp
158     MD5.cpp
159     OSRandomSource.cpp
160     PageAllocationAligned.cpp
161     PageBlock.cpp
162     ParallelJobsGeneric.cpp
163     RandomNumber.cpp
164     RefCountedLeakCounter.cpp
165     SHA1.cpp
166     StackBounds.cpp
167     StringExtras.cpp
168     Threading.cpp
169     TypeTraits.cpp
170     WTFThreadData.cpp
171     dtoa.cpp
172
173     dtoa/bignum-dtoa.cc
174     dtoa/bignum.cc
175     dtoa/cached-powers.cc
176     dtoa/diy-fp.cc
177     dtoa/double-conversion.cc
178     dtoa/fast-dtoa.cc
179     dtoa/fixed-dtoa.cc
180     dtoa/strtod.cc
181
182     dtoa/bignum-dtoa.cc
183     dtoa/bignum.cc
184     dtoa/cached-powers.cc
185     dtoa/diy-fp.cc
186     dtoa/double-conversion.cc
187     dtoa/fast-dtoa.cc
188     dtoa/fixed-dtoa.cc
189     dtoa/strtod.cc
190
191     text/AtomicString.cpp
192     text/CString.cpp
193     text/StringBuilder.cpp
194     text/StringImpl.cpp
195     text/StringStatics.cpp
196     text/WTFString.cpp
197
198     threads/BinarySemaphore.cpp
199
200     unicode/UTF8.cpp
201 )
202
203 SET(WTF_INCLUDE_DIRECTORIES
204     "${JAVASCRIPTCORE_DIR}"
205     "${JAVASCRIPTCORE_DIR}/wtf"
206     "${JAVASCRIPTCORE_DIR}/wtf/unicode"
207     "${JAVASCRIPTCORE_DIR}/wtf/dtoa"
208     "${JavaScriptCore_INCLUDE_DIRECTORIES}"
209 )
210
211 SET(WTF_LIBRARIES
212 )
213
214 SET(WTF_PORT_FLAGS )
215 INCLUDE_IF_EXISTS(${JAVASCRIPTCORE_DIR}/wtf/CMakeLists${PORT}.txt)
216
217 LIST(APPEND WTF_INCLUDE_DIRECTORIES
218     "${CMAKE_BINARY_DIR}"
219     "${CMAKE_SOURCE_DIR}/ThirdParty"
220 )
221
222 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
223 INCLUDE_DIRECTORIES(${WTF_INCLUDE_DIRECTORIES})
224 ADD_DEFINITIONS(-DBUILDING_WTF)
225 ADD_LIBRARY(${WTF_LIBRARY_NAME} ${WTF_LIBRARY_TYPE} ${WTF_HEADERS} ${WTF_SOURCES})
226 TARGET_LINK_LIBRARIES(${WTF_LIBRARY_NAME} ${WTF_LIBRARIES})
227
228 IF (WTF_LINK_FLAGS)
229     ADD_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} LINK_FLAGS "${WTF_LINK_FLAGS}")
230 ENDIF ()
231
232 IF (SHARED_CORE)
233     SET_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
234     INSTALL(TARGETS ${WTF_LIBRARY_NAME} DESTINATION lib)
235 ENDIF ()