cdcca680abb949699f1c50e93923ec84b2ff41ec
[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     OSAllocator.h
56     OSRandomSource.h
57     OwnArrayPtr.h
58     OwnPtr.h
59     OwnPtrCommon.h
60     PageAllocation.h
61     PageAllocationAligned.h
62     PageBlock.h
63     PageReservation.h
64     PassOwnArrayPtr.h
65     PassOwnPtr.h
66     PassRefPtr.h
67     PassTraits.h
68     ParallelJobs.h
69     ParallelJobsGeneric.h
70     ParallelJobsLibdispatch.h
71     ParallelJobsOpenMP.h
72     Platform.h
73     PossiblyNull.h
74     RandomNumber.h
75     RandomNumberSeed.h
76     RedBlackTree.h
77     RefCounted.h
78     RefCountedLeakCounter.h
79     RefPtr.h
80     RefPtrHashMap.h
81     RetainPtr.h
82     SegmentedVector.h
83     SHA1.h
84     StackBounds.h
85     StaticConstructors.h
86     StdLibExtras.h
87     StringExtras.h
88     StringHasher.h
89     TCPackedCache.h
90     TCPageMap.h
91     TCSpinLock.h
92     TCSystemAlloc.h
93     ThreadIdentifierDataPthreads.h
94     ThreadSafeRefCounted.h
95     ThreadSpecific.h
96     Threading.h
97     ThreadingPrimitives.h
98     TypeTraits.h
99     UnusedParam.h
100     VMTags.h
101     ValueCheck.h
102     Vector.h
103     VectorTraits.h
104     WTFThreadData.h
105     dtoa.h
106
107     dtoa/bignum-dtoa.h
108     dtoa/bignum.h
109     dtoa/cached-powers.h
110     dtoa/diy-fp.h
111     dtoa/double-conversion.h
112     dtoa/double.h
113     dtoa/fast-dtoa.h
114     dtoa/fixed-dtoa.h
115     dtoa/strtod.h
116     dtoa/utils.h
117
118     text/AtomicString.h
119     text/AtomicStringImpl.h
120     text/CString.h
121     text/StringBuffer.h
122     text/StringHash.h
123     text/StringImpl.h
124     text/WTFString.h
125
126     threads/BinarySemaphore.h
127
128     unicode/CharacterNames.h
129     unicode/Collator.h
130     unicode/UTF8.h
131     unicode/Unicode.h
132 )
133
134 SET(WTF_SOURCES
135     ArrayBuffer.cpp
136     ArrayBufferView.cpp
137     Assertions.cpp
138     BitVector.cpp
139     CryptographicallyRandomNumber.cpp
140     CurrentTime.cpp
141     DateMath.cpp
142     DataLog.cpp
143     DecimalNumber.cpp
144     DynamicAnnotations.cpp
145     FastMalloc.cpp
146     HashTable.cpp
147     MD5.cpp
148     MainThread.cpp
149     MetaAllocator.cpp
150     OSRandomSource.cpp
151     NumberOfCores.cpp
152     PageAllocationAligned.cpp
153     PageBlock.cpp
154     ParallelJobsGeneric.cpp
155     RandomNumber.cpp
156     RefCountedLeakCounter.cpp
157     SHA1.cpp
158     StackBounds.cpp
159     StringExtras.cpp
160     Threading.cpp
161     TypeTraits.cpp
162     WTFThreadData.cpp
163     dtoa.cpp
164
165     dtoa/bignum-dtoa.cc
166     dtoa/bignum.cc
167     dtoa/cached-powers.cc
168     dtoa/diy-fp.cc
169     dtoa/double-conversion.cc
170     dtoa/fast-dtoa.cc
171     dtoa/fixed-dtoa.cc
172     dtoa/strtod.cc
173
174     text/AtomicString.cpp
175     text/CString.cpp
176     text/StringBuilder.cpp
177     text/StringImpl.cpp
178     text/StringStatics.cpp
179     text/WTFString.cpp
180
181     threads/BinarySemaphore.cpp
182
183     unicode/UTF8.cpp
184 )
185
186 SET(WTF_INCLUDE_DIRECTORIES
187     "${WTF_DIR}"
188     "${WTF_DIR}/wtf"
189     "${WTF_DIR}/wtf/dtoa"
190     "${WTF_DIR}/wtf/threads"
191     "${WTF_DIR}/wtf/unicode"
192     "${THIRDPARTY_DIR}"
193     "${CMAKE_BINARY_DIR}"
194 )
195
196 IF (NOT USE_SYSTEM_MALLOC)
197     LIST(APPEND WTF_SOURCES
198         TCSystemAlloc.cpp
199     )
200 ENDIF()
201
202 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
203
204 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
205 INCLUDE_DIRECTORIES(${WTF_INCLUDE_DIRECTORIES})
206 ADD_DEFINITIONS(-DBUILDING_WTF)
207 ADD_LIBRARY(${WTF_LIBRARY_NAME} STATIC ${WTF_HEADERS} ${WTF_SOURCES})
208 TARGET_LINK_LIBRARIES(${WTF_LIBRARY_NAME} ${WTF_LIBRARIES})
209 SET_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} PROPERTIES FOLDER "JavaScriptCore")
210
211 IF (WTF_LINK_FLAGS)
212     ADD_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} LINK_FLAGS "${WTF_LINK_FLAGS}")
213 ENDIF ()