3bf8a1c9fbaa1983657a3b19325507628b44e4bd
[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     Bitmap.h
9     BoundsCheckedPointer.h
10     BumpPointerAllocator.h
11     ByteArray.h
12     Compiler.h
13     Complex.h
14     CrossThreadRefCounted.h
15     CryptographicallyRandomNumber.h
16     CurrentTime.h
17     DateMath.h
18     DecimalNumber.h
19     Decoder.h
20     Deque.h
21     DisallowCType.h
22     DoublyLinkedList.h
23     DynamicAnnotations.h
24     Encoder.h
25     FastAllocBase.h
26     FastMalloc.h
27     FixedArray.h
28     Forward.h
29     GetPtr.h
30     HashCountedSet.h
31     HashFunctions.h
32     HashIterators.h
33     HashMap.h
34     HashSet.h
35     HashTable.h
36     HashTraits.h
37     HexNumber.h
38     ListHashSet.h
39     ListRefPtr.h
40     Locker.h
41     MD5.h
42     MainThread.h
43     MallocZoneSupport.h
44     MathExtras.h
45     MessageQueue.h
46     MetaAllocator.cpp
47     MetaAllocator.h
48     MetaAllocatorHandle.h
49     NonCopyingSort.h
50     ThreadRestrictionVerifier.h
51     Noncopyable.h
52     NotFound.h
53     NullPtr.h
54     OSAllocator.h
55     OSRandomSource.h
56     OwnArrayPtr.h
57     OwnFastMallocPtr.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     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/CString.h
132     text/StringBuffer.h
133     text/StringHash.h
134     text/StringImpl.h
135     text/StringImplBase.h
136     text/WTFString.h
137
138     threads/BinarySemaphore.h
139
140     unicode/CharacterNames.h
141     unicode/Collator.h
142     unicode/UTF8.h
143     unicode/Unicode.h
144 )
145
146 SET(WTF_SOURCES
147     Assertions.cpp
148     ByteArray.cpp
149     CryptographicallyRandomNumber.cpp
150     CurrentTime.cpp
151     DateMath.cpp
152     DecimalNumber.cpp
153     DynamicAnnotations.cpp
154     FastMalloc.cpp
155     HashTable.cpp
156     MainThread.cpp
157     MD5.cpp
158     OSRandomSource.cpp
159     PageAllocationAligned.cpp
160     PageBlock.cpp
161     ParallelJobsGeneric.cpp
162     RandomNumber.cpp
163     RefCountedLeakCounter.cpp
164     SHA1.cpp
165     StackBounds.cpp
166     StringExtras.cpp
167     Threading.cpp
168     TypeTraits.cpp
169     WTFThreadData.cpp
170     dtoa.cpp
171
172     dtoa/bignum-dtoa.cc
173     dtoa/bignum.cc
174     dtoa/cached-powers.cc
175     dtoa/diy-fp.cc
176     dtoa/double-conversion.cc
177     dtoa/fast-dtoa.cc
178     dtoa/fixed-dtoa.cc
179     dtoa/strtod.cc
180
181     dtoa/bignum-dtoa.cc
182     dtoa/bignum.cc
183     dtoa/cached-powers.cc
184     dtoa/diy-fp.cc
185     dtoa/double-conversion.cc
186     dtoa/fast-dtoa.cc
187     dtoa/fixed-dtoa.cc
188     dtoa/strtod.cc
189
190     text/AtomicString.cpp
191     text/CString.cpp
192     text/StringBuilder.cpp
193     text/StringImpl.cpp
194     text/StringStatics.cpp
195     text/WTFString.cpp
196
197     threads/BinarySemaphore.cpp
198
199     unicode/UTF8.cpp
200 )
201
202 SET(WTF_INCLUDE_DIRECTORIES
203     "${JAVASCRIPTCORE_DIR}"
204     "${JAVASCRIPTCORE_DIR}/wtf"
205     "${JAVASCRIPTCORE_DIR}/wtf/unicode"
206     "${JAVASCRIPTCORE_DIR}/wtf/dtoa"
207     "${JavaScriptCore_INCLUDE_DIRECTORIES}"
208 )
209
210 SET(WTF_LIBRARIES
211 )
212
213 SET(WTF_PORT_FLAGS )
214 INCLUDE_IF_EXISTS(${JAVASCRIPTCORE_DIR}/wtf/CMakeLists${PORT}.txt)
215
216 LIST(APPEND WTF_INCLUDE_DIRECTORIES
217     "${CMAKE_BINARY_DIR}"
218     "${CMAKE_SOURCE_DIR}/ThirdParty"
219 )
220
221 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
222 INCLUDE_DIRECTORIES(${WTF_INCLUDE_DIRECTORIES})
223 ADD_DEFINITIONS(-DBUILDING_WTF)
224 ADD_LIBRARY(${WTF_LIBRARY_NAME} ${WTF_LIBRARY_TYPE} ${WTF_HEADERS} ${WTF_SOURCES})
225 TARGET_LINK_LIBRARIES(${WTF_LIBRARY_NAME} ${WTF_LIBRARIES})
226
227 IF (WTF_LINK_FLAGS)
228     ADD_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} LINK_FLAGS "${WTF_LINK_FLAGS}")
229 ENDIF ()
230
231 IF (SHARED_CORE)
232     SET_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
233     INSTALL(TARGETS ${WTF_LIBRARY_NAME} DESTINATION lib)
234 ENDIF ()