366194bbd32b98f4d7dbd2a184989047dcece366
[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     FilePrintStream.h \
65     FixedArray.h \
66     Float32Array.h \
67     Float64Array.h \
68     Forward.h \
69     Functional.h \
70     GetPtr.h \
71     GregorianDateTime.h \
72     HashCountedSet.h \
73     HashFunctions.h \
74     HashIterators.h \
75     HashMap.h \
76     HashSet.h \
77     HashTable.h \
78     HashTraits.h \
79     HexNumber.h \
80     Int16Array.h \
81     Int32Array.h \
82     Int8Array.h \
83     ListHashSet.h \
84     ListRefPtr.h \
85     Locker.h \
86     MainThread.h \
87     MallocZoneSupport.h \
88     MathExtras.h \
89     MD5.h \
90     MediaTime.h \
91     MemoryInstrumentation.h \
92     MemoryInstrumentationArrayBufferView.h \
93     MemoryInstrumentationHashCountedSet.h \
94     MemoryInstrumentationHashMap.h \
95     MemoryInstrumentationHashSet.h \
96     MemoryInstrumentationListHashSet.h \
97     MemoryInstrumentationParsedURL.h \
98     MemoryInstrumentationSequence.h \
99     MemoryInstrumentationString.h \
100     MemoryInstrumentationVector.h \
101     MemoryObjectInfo.h \
102     MessageQueue.h \
103     MetaAllocator.h \
104     MetaAllocatorHandle.h \
105     Noncopyable.h \
106     NonCopyingSort.h \
107     NotFound.h \
108     NullPtr.h \
109     NumberOfCores.h \
110     RAMSize.h \
111     OSAllocator.h \
112     OSRandomSource.h \
113     OwnArrayPtr.h \
114     OwnPtr.h \
115     OwnPtrCommon.h \
116     PackedIntVector.h \
117     PageAllocation.h \
118     PageAllocationAligned.h \
119     PageBlock.h \
120     PageReservation.h \
121     ParallelJobs.h \
122     ParallelJobsGeneric.h \
123     ParallelJobsLibdispatch.h \
124     ParallelJobsOpenMP.h \
125     PassOwnArrayPtr.h \
126     PassOwnPtr.h \
127     PassRefPtr.h \
128     PassTraits.h \
129     Platform.h \
130     PossiblyNull.h \
131     PrintStream.h \
132     RandomNumber.h \
133     RandomNumberSeed.h \
134     RawPointer.h \
135     RedBlackTree.h \
136     RefCounted.h \
137     RefCountedLeakCounter.h \
138     RefPtr.h \
139     RefPtrHashMap.h \
140     RetainPtr.h \
141     SHA1.h \
142     SaturatedArithmetic.h \
143     Spectrum.h \
144     StackBounds.h \
145     StaticConstructors.h \
146     StdLibExtras.h \
147     StringExtras.h \
148     StringHasher.h \
149     StringPrintStream.h \
150     TCPackedCache.h \
151     TCSpinLock.h \
152     TCSystemAlloc.h \
153     text/ASCIIFastPath.h \
154     text/AtomicString.h \
155     text/AtomicStringHash.h \
156     text/AtomicStringImpl.h \
157     text/Base64.h \
158     text/CString.h \
159     text/IntegerToStringConversion.h \
160     text/StringBuffer.h \
161     text/StringBuilder.h \
162     text/StringConcatenate.h \
163     text/StringHash.h \
164     text/StringImpl.h \
165     text/StringOperators.h \
166     text/TextPosition.h \
167     text/WTFString.h \
168     Threading.h \
169     ThreadingPrimitives.h \
170     ThreadRestrictionVerifier.h \
171     ThreadSafeRefCounted.h \
172     ThreadSpecific.h \
173     TypeTraits.h \
174     Uint16Array.h \
175     Uint32Array.h \
176     Uint8Array.h \
177     Uint8ClampedArray.h \
178     unicode/CharacterNames.h \
179     unicode/Collator.h \
180     unicode/icu/UnicodeIcu.h \
181     unicode/qt4/UnicodeQt4.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
193 unix: HEADERS += ThreadIdentifierDataPthreads.h
194
195 SOURCES += \
196     ArrayBuffer.cpp \
197     ArrayBufferView.cpp \
198     Assertions.cpp \
199     BitVector.cpp \
200     CryptographicallyRandomNumber.cpp \
201     CurrentTime.cpp \
202     DateMath.cpp \
203     DataLog.cpp \
204     DecimalNumber.cpp \
205     dtoa.cpp \
206     dtoa/bignum-dtoa.cc \
207     dtoa/bignum.cc \
208     dtoa/cached-powers.cc \
209     dtoa/diy-fp.cc \
210     dtoa/double-conversion.cc \
211     dtoa/fast-dtoa.cc \
212     dtoa/fixed-dtoa.cc \
213     dtoa/strtod.cc \
214     FastMalloc.cpp \
215     FilePrintStream.cpp \
216     GregorianDateTime.cpp \
217     gobject/GOwnPtr.cpp \
218     gobject/GRefPtr.cpp \
219     HashTable.cpp \
220     MD5.cpp \
221     MainThread.cpp \
222     MediaTime.cpp \
223     MemoryInstrumentation.cpp \
224     MetaAllocator.cpp \
225     NullPtr.cpp \
226     NumberOfCores.cpp \
227     RAMSize.cpp \
228     OSRandomSource.cpp \
229     qt/MainThreadQt.cpp \
230     qt/StringQt.cpp \
231     PageAllocationAligned.cpp \
232     PageBlock.cpp \
233     ParallelJobsGeneric.cpp \
234     PrintStream.cpp \
235     RandomNumber.cpp \
236     RefCountedLeakCounter.cpp \
237     SHA1.cpp \
238     StackBounds.cpp \
239     StringPrintStream.cpp \
240     TCSystemAlloc.cpp \
241     Threading.cpp \
242     TypeTraits.cpp \
243     WTFThreadData.cpp \
244     text/AtomicString.cpp \
245     text/Base64.cpp \
246     text/CString.cpp \
247     text/StringBuilder.cpp \
248     text/StringImpl.cpp \
249     text/StringStatics.cpp \
250     text/WTFString.cpp \
251     unicode/CollatorDefault.cpp \
252     unicode/icu/CollatorICU.cpp \
253     unicode/UTF8.cpp
254
255 unix: SOURCES += \
256     OSAllocatorPosix.cpp \
257     ThreadIdentifierDataPthreads.cpp \
258     ThreadingPthreads.cpp
259
260 win*|wince*: SOURCES += \
261     win/OwnPtrWin.cpp \
262     OSAllocatorWin.cpp \
263     ThreadSpecificWin.cpp \
264     ThreadingWin.cpp
265
266
267 QT += core
268 QT -= gui
269
270 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
271 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
272
273 *sh4* {
274     QMAKE_CXXFLAGS += -mieee -w
275     QMAKE_CFLAGS   += -mieee -w
276 }
277
278 *-g++*:lessThan(QT_GCC_MAJOR_VERSION, 5):lessThan(QT_GCC_MINOR_VERSION, 6) {
279     # For GCC 4.5 and before we disable C++0x mode in JSC for if enabled in Qt's mkspec
280     QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x -std=c++11 -std=gnu++11
281 }
282