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