Add unit tests for WTF::OptionSet
[WebKit-https.git] / Source / WTF / wtf / CMakeLists.txt
1 set(WTF_HEADERS
2     ASCIICType.h
3     Assertions.h
4     Atomics.h
5     Bag.h
6     BagToHashMap.h
7     BitVector.h
8     Bitmap.h
9     BubbleSort.h
10     BumpPointerAllocator.h
11     ByteOrder.h
12     CompilationThread.h
13     Compiler.h
14     Condition.h
15     CryptographicUtilities.h
16     CryptographicallyRandomNumber.h
17     CurrentTime.h
18     DataLog.h
19     DateMath.h
20     Dominators.h
21     DecimalNumber.h
22     DeferrableRefCounted.h
23     Deque.h
24     DisallowCType.h
25     DoublyLinkedList.h
26     FastMalloc.h
27     FeatureDefines.h
28     FilePrintStream.h
29     FlipBytes.h
30     Forward.h
31     FunctionDispatcher.h
32     Functional.h
33     GetPtr.h
34     GraphNodeWorklist.h
35     GregorianDateTime.h
36     HashCountedSet.h
37     Hasher.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     Lock.h
50     Locker.h
51     MD5.h
52     MainThread.h
53     MallocPtr.h
54     MathExtras.h
55     MediaTime.h
56     MessageQueue.h
57     MetaAllocator.h
58     MetaAllocatorHandle.h
59     Noncopyable.h
60     NumberOfCores.h
61     OSAllocator.h
62     OSRandomSource.h
63     OptionSet.h
64     OrderMaker.h
65     PageAllocation.h
66     PageBlock.h
67     PageReservation.h
68     ParallelHelperPool.h
69     ParallelJobs.h
70     ParallelJobsGeneric.h
71     ParallelJobsLibdispatch.h
72     ParallelJobsOpenMP.h
73     ParallelVectorIterator.h
74     ParkingLot.h
75     PassRefPtr.h
76     Platform.h
77     PrintStream.h
78     ProcessID.h
79     RAMSize.h
80     RandomNumber.h
81     RandomNumberSeed.h
82     RangeSet.h
83     RawPointer.h
84     RedBlackTree.h
85     Ref.h
86     RefCounted.h
87     RefCountedLeakCounter.h
88     RefCounter.h
89     RefPtr.h
90     RetainPtr.h
91     RunLoop.h
92     SHA1.h
93     SharedTask.h
94     SaturatedArithmetic.h
95     ScopedLambda.h
96     SegmentedVector.h
97     StackBounds.h
98     StackStats.h
99     StaticConstructors.h
100     StdLibExtras.h
101     Stopwatch.h
102     StringExtras.h
103     StringPrintStream.h
104     SystemTracing.h
105     ThreadIdentifierDataPthreads.h
106     ThreadSafeRefCounted.h
107     ThreadSpecific.h
108     Threading.h
109     ThreadingPrimitives.h
110     TinyPtrSet.h
111     VMTags.h
112     ValueCheck.h
113     Vector.h
114     VectorTraits.h
115     WTFThreadData.h
116     WeakPtr.h
117     WordLock.h
118     WorkQueue.h
119     dtoa.h
120
121     dtoa/bignum-dtoa.h
122     dtoa/bignum.h
123     dtoa/cached-powers.h
124     dtoa/diy-fp.h
125     dtoa/double-conversion.h
126     dtoa/double.h
127     dtoa/fast-dtoa.h
128     dtoa/fixed-dtoa.h
129     dtoa/strtod.h
130     dtoa/utils.h
131
132     text/AtomicString.h
133     text/AtomicStringImpl.h
134     text/AtomicStringTable.h
135     text/Base64.h
136     text/CString.h
137     text/IntegerToStringConversion.h
138     text/LChar.h
139     text/StringBuffer.h
140     text/StringCommon.h
141     text/StringHash.h
142     text/StringImpl.h
143     text/StringView.h
144     text/SymbolImpl.h
145     text/SymbolRegistry.h
146     text/UniquedStringImpl.h
147     text/WTFString.h
148
149     threads/BinarySemaphore.h
150
151     unicode/CharacterNames.h
152     unicode/Collator.h
153     unicode/UTF8.h
154 )
155
156 set(WTF_SOURCES
157     Assertions.cpp
158     Atomics.cpp
159     BitVector.cpp
160     CompilationThread.cpp
161     CryptographicUtilities.cpp
162     CryptographicallyRandomNumber.cpp
163     CurrentTime.cpp
164     DataLog.cpp
165     DateMath.cpp
166     DecimalNumber.cpp
167     FastBitVector.cpp
168     FastMalloc.cpp
169     FilePrintStream.cpp
170     FunctionDispatcher.cpp
171     GregorianDateTime.cpp
172     HashTable.cpp
173     Lock.cpp
174     MD5.cpp
175     MainThread.cpp
176     MediaTime.cpp
177     MetaAllocator.cpp
178     NumberOfCores.cpp
179     OSRandomSource.cpp
180     PageBlock.cpp
181     ParallelHelperPool.cpp
182     ParallelJobsGeneric.cpp
183     ParkingLot.cpp
184     PrintStream.cpp
185     RAMSize.cpp
186     RandomNumber.cpp
187     RefCountedLeakCounter.cpp
188     RunLoop.cpp
189     SHA1.cpp
190     SixCharacterHash.cpp
191     StackBounds.cpp
192     StackStats.cpp
193     StringPrintStream.cpp
194     Threading.cpp
195     WTFThreadData.cpp
196     WordLock.cpp
197     WorkQueue.cpp
198     dtoa.cpp
199
200     dtoa/bignum-dtoa.cc
201     dtoa/bignum.cc
202     dtoa/cached-powers.cc
203     dtoa/diy-fp.cc
204     dtoa/double-conversion.cc
205     dtoa/fast-dtoa.cc
206     dtoa/fixed-dtoa.cc
207     dtoa/strtod.cc
208
209     text/AtomicString.cpp
210     text/AtomicStringImpl.cpp
211     text/AtomicStringTable.cpp
212     text/Base64.cpp
213     text/CString.cpp
214     text/StringBuilder.cpp
215     text/StringImpl.cpp
216     text/StringStatics.cpp
217     text/StringView.cpp
218     text/SymbolRegistry.cpp
219     text/WTFString.cpp
220
221     threads/BinarySemaphore.cpp
222
223     unicode/UTF8.cpp
224 )
225
226 set(WTF_INCLUDE_DIRECTORIES
227     "${BMALLOC_DIR}"
228     "${WTF_DIR}"
229     "${WTF_DIR}/wtf"
230     "${WTF_DIR}/wtf/dtoa"
231     "${WTF_DIR}/wtf/text"
232     "${WTF_DIR}/wtf/threads"
233     "${WTF_DIR}/wtf/unicode"
234     "${THIRDPARTY_DIR}"
235     "${CMAKE_BINARY_DIR}"
236     "${DERIVED_SOURCES_DIR}"
237 )
238
239 set(WTF_LIBRARIES
240     ${CMAKE_DL_LIBS}
241 )
242
243 if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
244     list(APPEND WTF_HEADERS
245         spi/darwin/CommonCryptoSPI.h
246     )
247     list(APPEND WTF_INCLUDE_DIRECTORIES
248         "${WTF_DIR}/wtf/spi/darwin"
249     )
250 endif ()
251
252 if (NOT USE_SYSTEM_MALLOC)
253     list(APPEND WTF_LIBRARIES bmalloc)
254 endif ()
255
256 list(APPEND WTF_SOURCES
257     unicode/icu/CollatorICU.cpp
258 )
259 set(WTF_SYSTEM_INCLUDE_DIRECTORIES
260     ${ICU_INCLUDE_DIRS}
261 )
262 list(APPEND WTF_LIBRARIES
263     ${ICU_I18N_LIBRARIES}
264     ${ICU_LIBRARIES}
265 )
266
267 if (WIN32)
268     list(APPEND WTF_SOURCES
269         OSAllocatorWin.cpp
270         ThreadSpecificWin.cpp
271         ThreadingWin.cpp
272     )
273 else ()
274     list(APPEND WTF_HEADERS
275         ThreadIdentifierDataPthreads.h
276     )
277     list(APPEND WTF_SOURCES
278         OSAllocatorPosix.cpp
279         ThreadIdentifierDataPthreads.cpp
280         ThreadingPthreads.cpp
281     )
282 endif ()
283
284 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
285
286 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
287 WEBKIT_FRAMEWORK(WTF)
288
289 if (MSVC)
290     set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")
291     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")
292 endif ()