Fix the atomicIncrement implementation for MIPS GCC
[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     ByteOrder.h
14     Compiler.h
15     Complex.h
16     CryptographicallyRandomNumber.h
17     CurrentTime.h
18     DateMath.h
19     DataLog.h
20     DecimalNumber.h
21     Decoder.h
22     Deque.h
23     DisallowCType.h
24     DoublyLinkedList.h
25     DynamicAnnotations.h
26     Encoder.h
27     FastAllocBase.h
28     FastMalloc.h
29     FeatureDefines.h
30     FilePrintStream.h
31     FixedArray.h
32     Forward.h
33     GetPtr.h
34     GregorianDateTime.h
35     HashCountedSet.h
36     HashFunctions.h
37     HashIterators.h
38     HashMap.h
39     HashSet.h
40     HashTable.h
41     HashTraits.h
42     HexNumber.h
43     ListHashSet.h
44     ListRefPtr.h
45     Locker.h
46     MD5.h
47     MainThread.h
48     MallocZoneSupport.h
49     MathExtras.h
50     MediaTime.h
51     MemoryInstrumentation.h
52     MemoryInstrumentationArrayBufferView.h
53     MemoryInstrumentationHashCountedSet.h
54     MemoryInstrumentationHashMap.h
55     MemoryInstrumentationHashSet.h
56     MemoryInstrumentationListHashSet.h
57     MemoryInstrumentationParsedURL.h
58     MemoryInstrumentationSequence.h
59     MemoryInstrumentationString.h
60     MemoryInstrumentationVector.h
61     MemoryObjectInfo.h
62     MessageQueue.h
63     MetaAllocator.h
64     MetaAllocatorHandle.h
65     NonCopyingSort.h
66     ThreadRestrictionVerifier.h
67     Noncopyable.h
68     NotFound.h
69     NullPtr.h
70     NumberOfCores.h
71     RAMSize.h
72     OSAllocator.h
73     OSRandomSource.h
74     OwnArrayPtr.h
75     OwnPtr.h
76     OwnPtrCommon.h
77     PageAllocation.h
78     PageAllocationAligned.h
79     PageBlock.h
80     PageReservation.h
81     PassOwnArrayPtr.h
82     PassOwnPtr.h
83     PassRefPtr.h
84     PassTraits.h
85     ParallelJobs.h
86     ParallelJobsGeneric.h
87     ParallelJobsLibdispatch.h
88     ParallelJobsOpenMP.h
89     Platform.h
90     PossiblyNull.h
91     PrintStream.h
92     RandomNumber.h
93     RandomNumberSeed.h
94     RawPointer.h
95     RedBlackTree.h
96     RefCounted.h
97     RefCountedLeakCounter.h
98     RefPtr.h
99     RefPtrHashMap.h
100     RetainPtr.h
101     SaturatedArithmetic.h
102     SegmentedVector.h
103     SHA1.h
104     StackBounds.h
105     StaticConstructors.h
106     StdLibExtras.h
107     StringExtras.h
108     StringHasher.h
109     StringPrintStream.h
110     TCPackedCache.h
111     TCPageMap.h
112     TCSpinLock.h
113     TCSystemAlloc.h
114     ThreadIdentifierDataPthreads.h
115     ThreadSafeRefCounted.h
116     ThreadSpecific.h
117     Threading.h
118     ThreadingPrimitives.h
119     TypeTraits.h
120     UnusedParam.h
121     VMTags.h
122     ValueCheck.h
123     Vector.h
124     VectorTraits.h
125     WTFThreadData.h
126     WeakPtr.h
127     dtoa.h
128
129     dtoa/bignum-dtoa.h
130     dtoa/bignum.h
131     dtoa/cached-powers.h
132     dtoa/diy-fp.h
133     dtoa/double-conversion.h
134     dtoa/double.h
135     dtoa/fast-dtoa.h
136     dtoa/fixed-dtoa.h
137     dtoa/strtod.h
138     dtoa/utils.h
139
140     text/AtomicString.h
141     text/AtomicStringImpl.h
142     text/Base64.h
143     text/CString.h
144     text/IntegerToStringConversion.h
145     text/StringBuffer.h
146     text/StringHash.h
147     text/StringImpl.h
148     text/WTFString.h
149
150     threads/BinarySemaphore.h
151
152     unicode/CharacterNames.h
153     unicode/Collator.h
154     unicode/UTF8.h
155     unicode/Unicode.h
156 )
157
158 set(WTF_SOURCES
159     ArrayBuffer.cpp
160     ArrayBufferView.cpp
161     Assertions.cpp
162     Atomics.cpp
163     BitVector.cpp
164     CryptographicallyRandomNumber.cpp
165     CurrentTime.cpp
166     DateMath.cpp
167     DataLog.cpp
168     DecimalNumber.cpp
169     DynamicAnnotations.cpp
170     FastMalloc.cpp
171     FilePrintStream.cpp
172     GregorianDateTime.cpp
173     HashTable.cpp
174     MD5.cpp
175     MainThread.cpp
176     MediaTime.cpp
177     MetaAllocator.cpp
178     OSRandomSource.cpp
179     MemoryInstrumentation.cpp
180     NumberOfCores.cpp
181     RAMSize.cpp
182     PageAllocationAligned.cpp
183     PageBlock.cpp
184     ParallelJobsGeneric.cpp
185     PrintStream.cpp
186     RandomNumber.cpp
187     RefCountedLeakCounter.cpp
188     SHA1.cpp
189     StackBounds.cpp
190     StringPrintStream.cpp
191     Threading.cpp
192     TypeTraits.cpp
193     WTFThreadData.cpp
194     dtoa.cpp
195
196     dtoa/bignum-dtoa.cc
197     dtoa/bignum.cc
198     dtoa/cached-powers.cc
199     dtoa/diy-fp.cc
200     dtoa/double-conversion.cc
201     dtoa/fast-dtoa.cc
202     dtoa/fixed-dtoa.cc
203     dtoa/strtod.cc
204
205     text/AtomicString.cpp
206     text/Base64.cpp
207     text/CString.cpp
208     text/StringBuilder.cpp
209     text/StringImpl.cpp
210     text/StringStatics.cpp
211     text/WTFString.cpp
212
213     threads/BinarySemaphore.cpp
214
215     unicode/UTF8.cpp
216 )
217
218 set(WTF_INCLUDE_DIRECTORIES
219     "${WTF_DIR}"
220     "${WTF_DIR}/wtf"
221     "${WTF_DIR}/wtf/dtoa"
222     "${WTF_DIR}/wtf/threads"
223     "${WTF_DIR}/wtf/unicode"
224     "${THIRDPARTY_DIR}"
225     "${CMAKE_BINARY_DIR}"
226 )
227
228 if (NOT USE_SYSTEM_MALLOC)
229     list(APPEND WTF_SOURCES
230         TCSystemAlloc.cpp
231     )
232 endif ()
233
234 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
235
236 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
237 include_directories(${WTF_INCLUDE_DIRECTORIES})
238 add_definitions(-DBUILDING_WTF)
239 add_library(${WTF_LIBRARY_NAME} STATIC ${WTF_HEADERS} ${WTF_SOURCES})
240 target_link_libraries(${WTF_LIBRARY_NAME} ${WTF_LIBRARIES})
241 set_target_properties(${WTF_LIBRARY_NAME} PROPERTIES FOLDER "JavaScriptCore")