Fix the atomicIncrement implementation for MIPS GCC
[WebKit-https.git] / Source / WTF / WTF.pro
1 # -------------------------------------------------------------------
2 # Project file for WTF
3 #
4 # See 'Tools/qmake/README' for an overview of the build system
5 # -------------------------------------------------------------------
6 TEMPLATE = lib
7 TARGET = WTF
8
9 include(WTF.pri)
10
11 CONFIG += staticlib
12
13 VPATH += $$PWD/wtf
14
15 INCLUDEPATH += $$PWD/wtf
16
17 wince* {
18     # for mt19937ar.c
19     INCLUDEPATH += $${ROOT_WEBKIT_DIR}/Source/ThirdParty
20 }
21
22 HEADERS += \
23     Alignment.h \
24     AlwaysInline.h \
25     ArrayBuffer.h \
26     ArrayBufferView.h \
27     ASCIICType.h \
28     Assertions.h \
29     Atomics.h \
30     AVLTree.h \
31     Bitmap.h \
32     BitArray.h \
33     BitVector.h \
34     BloomFilter.h \
35     BoundsCheckedPointer.h \
36     BumpPointerAllocator.h \
37     ByteOrder.h \
38     CheckedArithmetic.h \
39     Compiler.h \
40     CryptographicallyRandomNumber.h \
41     CurrentTime.h \
42     DateMath.h \
43     DecimalNumber.h \
44     Decoder.h \
45     DataLog.h \ 
46     Deque.h \
47     DisallowCType.h \
48     dtoa.h \
49     dtoa/bignum-dtoa.h \
50     dtoa/bignum.h \
51     dtoa/cached-powers.h \
52     dtoa/diy-fp.h \
53     dtoa/double-conversion.h \
54     dtoa/double.h \
55     dtoa/fast-dtoa.h \
56     dtoa/fixed-dtoa.h \
57     dtoa/strtod.h \
58     dtoa/utils.h \
59     DynamicAnnotations.h \
60     Encoder.h \
61     ExportMacros.h \
62     FastAllocBase.h \
63     FastMalloc.h \
64     FeatureDefines.h \
65     FilePrintStream.h \
66     FixedArray.h \
67     Float32Array.h \
68     Float64Array.h \
69     Forward.h \
70     Functional.h \
71     GetPtr.h \
72     GregorianDateTime.h \
73     HashCountedSet.h \
74     HashFunctions.h \
75     HashIterators.h \
76     HashMap.h \
77     HashSet.h \
78     HashTable.h \
79     HashTraits.h \
80     HexNumber.h \
81     Int16Array.h \
82     Int32Array.h \
83     Int8Array.h \
84     ListHashSet.h \
85     ListRefPtr.h \
86     Locker.h \
87     MainThread.h \
88     MallocZoneSupport.h \
89     MathExtras.h \
90     MD5.h \
91     MediaTime.h \
92     MemoryInstrumentation.h \
93     MemoryInstrumentationArrayBufferView.h \
94     MemoryInstrumentationHashCountedSet.h \
95     MemoryInstrumentationHashMap.h \
96     MemoryInstrumentationHashSet.h \
97     MemoryInstrumentationListHashSet.h \
98     MemoryInstrumentationParsedURL.h \
99     MemoryInstrumentationSequence.h \
100     MemoryInstrumentationString.h \
101     MemoryInstrumentationVector.h \
102     MemoryObjectInfo.h \
103     MessageQueue.h \
104     MetaAllocator.h \
105     MetaAllocatorHandle.h \
106     Noncopyable.h \
107     NonCopyingSort.h \
108     NotFound.h \
109     NullPtr.h \
110     NumberOfCores.h \
111     RAMSize.h \
112     OSAllocator.h \
113     OSRandomSource.h \
114     OwnArrayPtr.h \
115     OwnPtr.h \
116     OwnPtrCommon.h \
117     PackedIntVector.h \
118     PageAllocation.h \
119     PageAllocationAligned.h \
120     PageBlock.h \
121     PageReservation.h \
122     ParallelJobs.h \
123     ParallelJobsGeneric.h \
124     ParallelJobsLibdispatch.h \
125     ParallelJobsOpenMP.h \
126     PassOwnArrayPtr.h \
127     PassOwnPtr.h \
128     PassRefPtr.h \
129     PassTraits.h \
130     Platform.h \
131     PossiblyNull.h \
132     PrintStream.h \
133     RandomNumber.h \
134     RandomNumberSeed.h \
135     RawPointer.h \
136     RedBlackTree.h \
137     RefCounted.h \
138     RefCountedLeakCounter.h \
139     RefPtr.h \
140     RefPtrHashMap.h \
141     RetainPtr.h \
142     SHA1.h \
143     SaturatedArithmetic.h \
144     Spectrum.h \
145     StackBounds.h \
146     StaticConstructors.h \
147     StdLibExtras.h \
148     StringExtras.h \
149     StringHasher.h \
150     StringPrintStream.h \
151     TCPackedCache.h \
152     TCSpinLock.h \
153     TCSystemAlloc.h \
154     text/ASCIIFastPath.h \
155     text/AtomicString.h \
156     text/AtomicStringHash.h \
157     text/AtomicStringImpl.h \
158     text/Base64.h \
159     text/CString.h \
160     text/IntegerToStringConversion.h \
161     text/StringBuffer.h \
162     text/StringBuilder.h \
163     text/StringConcatenate.h \
164     text/StringHash.h \
165     text/StringImpl.h \
166     text/StringOperators.h \
167     text/TextPosition.h \
168     text/WTFString.h \
169     Threading.h \
170     ThreadingPrimitives.h \
171     ThreadRestrictionVerifier.h \
172     ThreadSafeRefCounted.h \
173     ThreadSpecific.h \
174     TypeTraits.h \
175     Uint16Array.h \
176     Uint32Array.h \
177     Uint8Array.h \
178     Uint8ClampedArray.h \
179     unicode/CharacterNames.h \
180     unicode/Collator.h \
181     unicode/icu/UnicodeIcu.h \
182     unicode/ScriptCodesFromICU.h \
183     unicode/Unicode.h \
184     unicode/UnicodeMacrosFromICU.h \
185     unicode/UTF8.h \
186     UnusedParam.h \
187     ValueCheck.h \
188     Vector.h \
189     VectorTraits.h \
190     VMTags.h \
191     WTFThreadData.h \
192     WeakPtr.h
193
194 unix: HEADERS += ThreadIdentifierDataPthreads.h
195
196 SOURCES += \
197     ArrayBuffer.cpp \
198     ArrayBufferView.cpp \
199     Assertions.cpp \
200     Atomics.cpp \
201     BitVector.cpp \
202     CryptographicallyRandomNumber.cpp \
203     CurrentTime.cpp \
204     DateMath.cpp \
205     DataLog.cpp \
206     DecimalNumber.cpp \
207     dtoa.cpp \
208     dtoa/bignum-dtoa.cc \
209     dtoa/bignum.cc \
210     dtoa/cached-powers.cc \
211     dtoa/diy-fp.cc \
212     dtoa/double-conversion.cc \
213     dtoa/fast-dtoa.cc \
214     dtoa/fixed-dtoa.cc \
215     dtoa/strtod.cc \
216     FastMalloc.cpp \
217     FilePrintStream.cpp \
218     GregorianDateTime.cpp \
219     gobject/GOwnPtr.cpp \
220     gobject/GRefPtr.cpp \
221     HashTable.cpp \
222     MD5.cpp \
223     MainThread.cpp \
224     MediaTime.cpp \
225     MemoryInstrumentation.cpp \
226     MetaAllocator.cpp \
227     NullPtr.cpp \
228     NumberOfCores.cpp \
229     RAMSize.cpp \
230     OSRandomSource.cpp \
231     qt/MainThreadQt.cpp \
232     qt/StringQt.cpp \
233     PageAllocationAligned.cpp \
234     PageBlock.cpp \
235     ParallelJobsGeneric.cpp \
236     PrintStream.cpp \
237     RandomNumber.cpp \
238     RefCountedLeakCounter.cpp \
239     SHA1.cpp \
240     StackBounds.cpp \
241     StringPrintStream.cpp \
242     TCSystemAlloc.cpp \
243     Threading.cpp \
244     TypeTraits.cpp \
245     WTFThreadData.cpp \
246     text/AtomicString.cpp \
247     text/Base64.cpp \
248     text/CString.cpp \
249     text/StringBuilder.cpp \
250     text/StringImpl.cpp \
251     text/StringStatics.cpp \
252     text/WTFString.cpp \
253     unicode/CollatorDefault.cpp \
254     unicode/icu/CollatorICU.cpp \
255     unicode/UTF8.cpp
256
257 unix: SOURCES += \
258     OSAllocatorPosix.cpp \
259     ThreadIdentifierDataPthreads.cpp \
260     ThreadingPthreads.cpp
261
262 win*|wince*: SOURCES += \
263     win/OwnPtrWin.cpp \
264     OSAllocatorWin.cpp \
265     ThreadSpecificWin.cpp \
266     ThreadingWin.cpp
267
268
269 QT += core
270 QT -= gui
271
272 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
273 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
274
275 *sh4* {
276     QMAKE_CXXFLAGS += -mieee -w
277     QMAKE_CFLAGS   += -mieee -w
278 }
279
280 *-g++*:lessThan(QT_GCC_MAJOR_VERSION, 5):lessThan(QT_GCC_MINOR_VERSION, 6) {
281     # For GCC 4.5 and before we disable C++0x mode in JSC for if enabled in Qt's mkspec
282     QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x -std=c++11 -std=gnu++11
283 }
284