GC allocation trigger should be tuned to system RAM
[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 HEADERS += \
16     Alignment.h \
17     AlwaysInline.h \
18     ArrayBuffer.h \
19     ArrayBufferView.h \
20     ASCIICType.h \
21     Assertions.h \
22     Atomics.h \
23     AVLTree.h \
24     Bitmap.h \
25     BitArray.h \
26     BitVector.h \
27     BloomFilter.h \
28     BoundsCheckedPointer.h \
29     BumpPointerAllocator.h \
30     CheckedArithmetic.h \
31     Compiler.h \
32     CryptographicallyRandomNumber.h \
33     CurrentTime.h \
34     DateMath.h \
35     DecimalNumber.h \
36     Decoder.h \
37     DataLog.h \ 
38     Deque.h \
39     DisallowCType.h \
40     dtoa.h \
41     dtoa/bignum-dtoa.h \
42     dtoa/bignum.h \
43     dtoa/cached-powers.h \
44     dtoa/diy-fp.h \
45     dtoa/double-conversion.h \
46     dtoa/double.h \
47     dtoa/fast-dtoa.h \
48     dtoa/fixed-dtoa.h \
49     dtoa/strtod.h \
50     dtoa/utils.h \
51     DynamicAnnotations.h \
52     Encoder.h \
53     FastAllocBase.h \
54     FastMalloc.h \
55     FixedArray.h \
56     Float32Array.h \
57     Float64Array.h \
58     Forward.h \
59     Functional.h \
60     GetPtr.h \
61     HashCountedSet.h \
62     HashFunctions.h \
63     HashIterators.h \
64     HashMap.h \
65     HashSet.h \
66     HashTable.h \
67     HashTraits.h \
68     HexNumber.h \
69     Int16Array.h \
70     Int32Array.h \
71     Int8Array.h \
72     ListHashSet.h \
73     ListRefPtr.h \
74     Locker.h \
75     MainThread.h \
76     MallocZoneSupport.h \
77     MathExtras.h \
78     MD5.h \
79     MessageQueue.h \
80     MetaAllocator.h \
81     MetaAllocatorHandle.h \
82     Noncopyable.h \
83     NonCopyingSort.h \
84     NotFound.h \
85     NullPtr.h \
86     NumberOfCores.h \
87     RAMSize.h \
88     OSAllocator.h \
89     OSRandomSource.h \
90     OwnArrayPtr.h \
91     OwnPtr.h \
92     OwnPtrCommon.h \
93     PackedIntVector.h \
94     PageAllocation.h \
95     PageAllocationAligned.h \
96     PageBlock.h \
97     PageReservation.h \
98     ParallelJobs.h \
99     ParallelJobsGeneric.h \
100     ParallelJobsLibdispatch.h \
101     ParallelJobsOpenMP.h \
102     PassOwnArrayPtr.h \
103     PassOwnPtr.h \
104     PassRefPtr.h \
105     PassTraits.h \
106     Platform.h \
107     PossiblyNull.h \
108     qt/UtilsQt.h \
109     RandomNumber.h \
110     RandomNumberSeed.h \
111     RedBlackTree.h \
112     RefCounted.h \
113     RefCountedLeakCounter.h \
114     RefPtr.h \
115     RefPtrHashMap.h \
116     RetainPtr.h \
117     SHA1.h \
118     Spectrum.h \
119     StackBounds.h \
120     StaticConstructors.h \
121     StdLibExtras.h \
122     StringExtras.h \
123     StringHasher.h \
124     TCPackedCache.h \
125     TCSpinLock.h \
126     TCSystemAlloc.h \
127     text/ASCIIFastPath.h \
128     text/AtomicString.h \
129     text/AtomicStringHash.h \
130     text/AtomicStringImpl.h \
131     text/CString.h \
132     text/StringBuffer.h \
133     text/StringBuilder.h \
134     text/StringConcatenate.h \
135     text/StringHash.h \
136     text/StringImpl.h \
137     text/StringOperators.h \
138     text/TextPosition.h \
139     text/WTFString.h \
140     Threading.h \
141     ThreadingPrimitives.h \
142     ThreadRestrictionVerifier.h \
143     ThreadSafeRefCounted.h \
144     ThreadSpecific.h \
145     TypeTraits.h \
146     Uint16Array.h \
147     Uint32Array.h \
148     Uint8Array.h \
149     Uint8ClampedArray.h \
150     unicode/CharacterNames.h \
151     unicode/Collator.h \
152     unicode/icu/UnicodeIcu.h \
153     unicode/qt4/UnicodeQt4.h \
154     unicode/ScriptCodesFromICU.h \
155     unicode/Unicode.h \
156     unicode/UnicodeMacrosFromICU.h \
157     unicode/UTF8.h \
158     UnusedParam.h \
159     ValueCheck.h \
160     Vector.h \
161     VectorTraits.h \
162     VMTags.h \
163     WTFThreadData.h
164
165 unix: HEADERS += ThreadIdentifierDataPthreads.h
166
167 SOURCES += \
168     ArrayBuffer.cpp \
169     ArrayBufferView.cpp \
170     Assertions.cpp \
171     BitVector.cpp \
172     CryptographicallyRandomNumber.cpp \
173     CurrentTime.cpp \
174     DateMath.cpp \
175     DataLog.cpp \
176     DecimalNumber.cpp \
177     dtoa.cpp \
178     dtoa/bignum-dtoa.cc \
179     dtoa/bignum.cc \
180     dtoa/cached-powers.cc \
181     dtoa/diy-fp.cc \
182     dtoa/double-conversion.cc \
183     dtoa/fast-dtoa.cc \
184     dtoa/fixed-dtoa.cc \
185     dtoa/strtod.cc \
186     FastMalloc.cpp \
187     gobject/GOwnPtr.cpp \
188     gobject/GRefPtr.cpp \
189     HashTable.cpp \
190     MD5.cpp \
191     MainThread.cpp \
192     MetaAllocator.cpp \
193     NullPtr.cpp \
194     NumberOfCores.cpp \
195     RAMSize.cpp \
196     OSRandomSource.cpp \
197     qt/MainThreadQt.cpp \
198     qt/StringQt.cpp \
199     PageAllocationAligned.cpp \
200     PageBlock.cpp \
201     ParallelJobsGeneric.cpp \
202     RandomNumber.cpp \
203     RefCountedLeakCounter.cpp \
204     SHA1.cpp \
205     StackBounds.cpp \
206     TCSystemAlloc.cpp \
207     Threading.cpp \
208     TypeTraits.cpp \
209     WTFThreadData.cpp \
210     text/AtomicString.cpp \
211     text/CString.cpp \
212     text/StringBuilder.cpp \
213     text/StringImpl.cpp \
214     text/StringStatics.cpp \
215     text/WTFString.cpp \
216     unicode/CollatorDefault.cpp \
217     unicode/icu/CollatorICU.cpp \
218     unicode/UTF8.cpp
219
220 unix: SOURCES += \
221     OSAllocatorPosix.cpp \
222     ThreadIdentifierDataPthreads.cpp \
223     ThreadingPthreads.cpp
224
225 win*|wince*: SOURCES += \
226     win/OwnPtrWin.cpp \
227     OSAllocatorWin.cpp \
228     ThreadSpecificWin.cpp \
229     ThreadingWin.cpp
230
231
232 QT += core
233 QT -= gui
234
235 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
236 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
237
238 *sh4* {
239     QMAKE_CXXFLAGS += -mieee -w
240     QMAKE_CFLAGS   += -mieee -w
241 }
242
243 lessThan(QT_GCC_MAJOR_VERSION, 5) {
244     # GCC 4.5 and before
245     lessThan(QT_GCC_MINOR_VERSION, 6) {
246         # Disable C++0x mode in JSC for those who enabled it in their Qt's mkspec.
247         *-g++*:QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x
248     }
249
250     # GCC 4.6 and after.
251     greaterThan(QT_GCC_MINOR_VERSION, 5) {
252         if (!contains(QMAKE_CXXFLAGS, -std=c++0x) && !contains(QMAKE_CXXFLAGS, -std=gnu++0x)) {
253             # We need to deactivate those warnings because some names conflicts with upcoming c++0x types (e.g.nullptr).
254             QMAKE_CFLAGS_WARN_ON += -Wno-c++0x-compat
255             QMAKE_CXXFLAGS_WARN_ON += -Wno-c++0x-compat
256             QMAKE_CFLAGS += -Wno-c++0x-compat
257             QMAKE_CXXFLAGS += -Wno-c++0x-compat
258         }
259     }
260 }
261