Remove DynamicAnnotations.h?
[WebKit-https.git] / Source / WTF / wtf / CMakeLists.txt
1 set(WTF_HEADERS
2     ASCIICType.h
3     AVLTree.h
4     Assertions.h
5     Atomics.h
6     Bag.h
7     BagToHashMap.h
8     BitVector.h
9     Bitmap.h
10     BoundsCheckedPointer.h
11     BumpPointerAllocator.h
12     ByteOrder.h
13     CompilationThread.h
14     Compiler.h
15     Compression.h
16     CryptographicUtilities.h
17     CryptographicallyRandomNumber.h
18     CurrentTime.h
19     DataLog.h
20     DateMath.h
21     DecimalNumber.h
22     Decoder.h
23     DeferrableRefCounted.h
24     Deque.h
25     DisallowCType.h
26     DoublyLinkedList.h
27     Encoder.h
28     FastMalloc.h
29     FeatureDefines.h
30     FilePrintStream.h
31     FlipBytes.h
32     Forward.h
33     FunctionDispatcher.h
34     Functional.h
35     GetPtr.h
36     GregorianDateTime.h
37     HashCountedSet.h
38     HashFunctions.h
39     HashIterators.h
40     HashMap.h
41     HashMethod.h
42     HashSet.h
43     HashTable.h
44     HashTraits.h
45     HexNumber.h
46     IteratorAdaptors.h
47     IteratorRange.h
48     ListHashSet.h
49     Locker.h
50     MD5.h
51     MainThread.h
52     MallocPtr.h
53     MathExtras.h
54     MediaTime.h
55     MessageQueue.h
56     MetaAllocator.h
57     MetaAllocatorHandle.h
58     Noncopyable.h
59     NumberOfCores.h
60     OSAllocator.h
61     OSRandomSource.h
62     OwnPtr.h
63     OwnPtrCommon.h
64     PageAllocation.h
65     PageAllocationAligned.h
66     PageBlock.h
67     PageReservation.h
68     ParallelJobs.h
69     ParallelJobsGeneric.h
70     ParallelJobsLibdispatch.h
71     ParallelJobsOpenMP.h
72     PassOwnPtr.h
73     PassRef.h
74     PassRefPtr.h
75     Platform.h
76     PossiblyNull.h
77     PrintStream.h
78     ProcessID.h
79     RAMSize.h
80     RandomNumber.h
81     RandomNumberSeed.h
82     RawPointer.h
83     RedBlackTree.h
84     Ref.h
85     RefCounted.h
86     RefCountedLeakCounter.h
87     RefPtr.h
88     RefPtrHashMap.h
89     RetainPtr.h
90     RunLoop.h
91     SHA1.h
92     SaturatedArithmetic.h
93     SegmentedVector.h
94     StackBounds.h
95     StackStats.h
96     StaticConstructors.h
97     StdLibExtras.h
98     StringExtras.h
99     StringHasher.h
100     StringPrintStream.h
101     TCPackedCache.h
102     TCPageMap.h
103     TCSpinLock.h
104     TCSystemAlloc.h
105     ThreadIdentifierDataPthreads.h
106     ThreadSafeRefCounted.h
107     ThreadSpecific.h
108     Threading.h
109     ThreadingPrimitives.h
110     VMTags.h
111     ValueCheck.h
112     Vector.h
113     VectorTraits.h
114     WTFThreadData.h
115     WeakPtr.h
116     dtoa.h
117
118     dtoa/bignum-dtoa.h
119     dtoa/bignum.h
120     dtoa/cached-powers.h
121     dtoa/diy-fp.h
122     dtoa/double-conversion.h
123     dtoa/double.h
124     dtoa/fast-dtoa.h
125     dtoa/fixed-dtoa.h
126     dtoa/strtod.h
127     dtoa/utils.h
128
129     text/AtomicString.h
130     text/AtomicStringImpl.h
131     text/AtomicStringTable.h
132     text/Base64.h
133     text/CString.h
134     text/IntegerToStringConversion.h
135     text/LChar.h
136     text/StringBuffer.h
137     text/StringHash.h
138     text/StringImpl.h
139     text/StringView.h
140     text/WTFString.h
141
142     threads/BinarySemaphore.h
143
144     unicode/CharacterNames.h
145     unicode/Collator.h
146     unicode/UTF8.h
147 )
148
149 set(WTF_SOURCES
150     Assertions.cpp
151     Atomics.cpp
152     BitVector.cpp
153     CompilationThread.cpp
154     Compression.cpp
155     CryptographicUtilities.cpp
156     CryptographicallyRandomNumber.cpp
157     CurrentTime.cpp
158     DataLog.cpp
159     DateMath.cpp
160     DecimalNumber.cpp
161     FastBitVector.cpp
162     FastMalloc.cpp
163     FilePrintStream.cpp
164     FunctionDispatcher.cpp
165     GregorianDateTime.cpp
166     HashTable.cpp
167     MD5.cpp
168     MainThread.cpp
169     MediaTime.cpp
170     MetaAllocator.cpp
171     NumberOfCores.cpp
172     OSRandomSource.cpp
173     PageAllocationAligned.cpp
174     PageBlock.cpp
175     ParallelJobsGeneric.cpp
176     PrintStream.cpp
177     RAMSize.cpp
178     RandomNumber.cpp
179     RefCountedLeakCounter.cpp
180     RunLoop.cpp
181     SHA1.cpp
182     SixCharacterHash.cpp
183     StackStats.cpp
184     StackBounds.cpp
185     StringPrintStream.cpp
186     TCSystemAlloc.cpp
187     Threading.cpp
188     WTFThreadData.cpp
189     dtoa.cpp
190
191     dtoa/bignum-dtoa.cc
192     dtoa/bignum.cc
193     dtoa/cached-powers.cc
194     dtoa/diy-fp.cc
195     dtoa/double-conversion.cc
196     dtoa/fast-dtoa.cc
197     dtoa/fixed-dtoa.cc
198     dtoa/strtod.cc
199
200     text/AtomicString.cpp
201     text/AtomicStringTable.cpp
202     text/Base64.cpp
203     text/CString.cpp
204     text/StringBuilder.cpp
205     text/StringImpl.cpp
206     text/StringStatics.cpp
207     text/WTFString.cpp
208
209     threads/BinarySemaphore.cpp
210
211     unicode/UTF8.cpp
212 )
213
214 set(WTF_INCLUDE_DIRECTORIES
215     "${WTF_DIR}"
216     "${WTF_DIR}/wtf"
217     "${WTF_DIR}/wtf/dtoa"
218     "${WTF_DIR}/wtf/threads"
219     "${WTF_DIR}/wtf/unicode"
220     "${THIRDPARTY_DIR}"
221     "${CMAKE_BINARY_DIR}"
222 )
223
224 set(WTF_LIBRARIES
225     ${CMAKE_DL_LIBS}
226 )
227
228 list(APPEND WTF_SOURCES
229     unicode/icu/CollatorICU.cpp
230 )
231 list(APPEND WTF_INCLUDE_DIRECTORIES
232     ${ICU_INCLUDE_DIRS}
233 )
234 list(APPEND WTF_LIBRARIES
235     ${ICU_I18N_LIBRARIES}
236     ${ICU_LIBRARIES}
237 )
238
239 if (WIN32)
240     list(APPEND WTF_SOURCES
241         OSAllocatorWin.cpp
242         ThreadSpecificWin.cpp
243         ThreadingWin.cpp
244     )
245 else ()
246     list(APPEND WTF_HEADERS
247         ThreadIdentifierDataPthreads.h
248     )
249     list(APPEND WTF_SOURCES
250         OSAllocatorPosix.cpp
251         ThreadIdentifierDataPthreads.cpp
252         ThreadingPthreads.cpp
253     )
254 endif ()
255
256 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
257
258 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
259 include_directories(${WTF_INCLUDE_DIRECTORIES})
260 add_library(WTF STATIC ${WTF_HEADERS} ${WTF_SOURCES})
261 target_link_libraries(WTF ${WTF_LIBRARIES})
262 set_target_properties(WTF PROPERTIES COMPILE_DEFINITIONS "BUILDING_WTF")
263 set_target_properties(WTF PROPERTIES FOLDER "JavaScriptCore")
264
265 if (WTF_OUTPUT_NAME)
266     set_target_properties(WTF PROPERTIES OUTPUT_NAME ${WTF_OUTPUT_NAME})
267 endif ()