Remove home-brewed nullptr
[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     ASCIICType.h \
24     Assertions.h \
25     Atomics.h \
26     AVLTree.h \
27     Bitmap.h \
28     BitArray.h \
29     BitVector.h \
30     BloomFilter.h \
31     BoundsCheckedPointer.h \
32     BumpPointerAllocator.h \
33     ByteOrder.h \
34     CheckedArithmetic.h \
35     Compiler.h \
36     Compression.h \
37     CryptographicallyRandomNumber.h \
38     CurrentTime.h \
39     DateMath.h \
40     DecimalNumber.h \
41     Decoder.h \
42     DataLog.h \ 
43     Deque.h \
44     DisallowCType.h \
45     dtoa.h \
46     dtoa/bignum-dtoa.h \
47     dtoa/bignum.h \
48     dtoa/cached-powers.h \
49     dtoa/diy-fp.h \
50     dtoa/double-conversion.h \
51     dtoa/double.h \
52     dtoa/fast-dtoa.h \
53     dtoa/fixed-dtoa.h \
54     dtoa/strtod.h \
55     dtoa/utils.h \
56     DynamicAnnotations.h \
57     Encoder.h \
58     EnumClass.h \
59     ExportMacros.h \
60     FastMalloc.h \
61     FeatureDefines.h \
62     FilePrintStream.h \
63     FixedArray.h \
64     Forward.h \
65     FunctionDispatcher.h \
66     Functional.h \
67     GetPtr.h \
68     GregorianDateTime.h \
69     HashCountedSet.h \
70     HashFunctions.h \
71     HashIterators.h \
72     HashMap.h \
73     HashSet.h \
74     HashTable.h \
75     HashTraits.h \
76     HexNumber.h \
77     ListHashSet.h \
78     Locker.h \
79     MainThread.h \
80     MallocPtr.h \
81     MathExtras.h \
82     MD5.h \
83     MediaTime.h \
84     MessageQueue.h \
85     MetaAllocator.h \
86     MetaAllocatorHandle.h \
87     Ref.h \
88     Noncopyable.h \
89     NumberOfCores.h \
90     RAMSize.h \
91     OSAllocator.h \
92     OSRandomSource.h \
93     OwnArrayPtr.h \
94     OwnPtr.h \
95     OwnPtrCommon.h \
96     PackedIntVector.h \
97     PageAllocation.h \
98     PageAllocationAligned.h \
99     PageBlock.h \
100     PageReservation.h \
101     ParallelJobs.h \
102     ParallelJobsGeneric.h \
103     ParallelJobsLibdispatch.h \
104     ParallelJobsOpenMP.h \
105     PassOwnPtr.h \
106     PassRefPtr.h \
107     PassTraits.h \
108     Platform.h \
109     PossiblyNull.h \
110     PrintStream.h \
111     ProcessID.h \
112     RandomNumber.h \
113     RandomNumberSeed.h \
114     RawPointer.h \
115     RedBlackTree.h \
116     RefCounted.h \
117     RefCountedLeakCounter.h \
118     RefPtr.h \
119     RefPtrHashMap.h \
120     RetainPtr.h \
121     SHA1.h \
122     SaturatedArithmetic.h \
123     Spectrum.h \
124     StackBounds.h \
125     StaticConstructors.h \
126     StdLibExtras.h \
127     StringExtras.h \
128     StringHasher.h \
129     StringPrintStream.h \
130     TCPackedCache.h \
131     TCSpinLock.h \
132     TCSystemAlloc.h \
133     text/ASCIIFastPath.h \
134     text/AtomicString.h \
135     text/AtomicStringHash.h \
136     text/AtomicStringImpl.h \
137     text/AtomicStringTable.h \
138     text/Base64.h \
139     text/CString.h \
140     text/IntegerToStringConversion.h \
141     text/StringBuffer.h \
142     text/StringBuilder.h \
143     text/StringConcatenate.h \
144     text/StringHash.h \
145     text/StringImpl.h \
146     text/StringOperators.h \
147     text/TextPosition.h \
148     text/WTFString.h \
149     threads/BinarySemaphore.h \
150     Threading.h \
151     ThreadingPrimitives.h \
152     ThreadRestrictionVerifier.h \
153     ThreadSafeRefCounted.h \
154     ThreadSpecific.h \
155     unicode/CharacterNames.h \
156     unicode/Collator.h \
157     unicode/icu/UnicodeIcu.h \
158     unicode/ScriptCodesFromICU.h \
159     unicode/Unicode.h \
160     unicode/UnicodeMacrosFromICU.h \
161     unicode/UTF8.h \
162     ValueCheck.h \
163     Vector.h \
164     VectorTraits.h \
165     VMTags.h \
166     WTFThreadData.h \
167     WeakPtr.h
168
169 unix: HEADERS += ThreadIdentifierDataPthreads.h
170
171 SOURCES += \
172     Assertions.cpp \
173     Atomics.cpp \
174     BitVector.cpp \
175     CompilationThread.cpp \
176     Compression.cpp \
177     CryptographicallyRandomNumber.cpp \
178     CurrentTime.cpp \
179     DateMath.cpp \
180     DataLog.cpp \
181     DecimalNumber.cpp \
182     dtoa.cpp \
183     dtoa/bignum-dtoa.cc \
184     dtoa/bignum.cc \
185     dtoa/cached-powers.cc \
186     dtoa/diy-fp.cc \
187     dtoa/double-conversion.cc \
188     dtoa/fast-dtoa.cc \
189     dtoa/fixed-dtoa.cc \
190     dtoa/strtod.cc \
191     FastMalloc.cpp \
192     FilePrintStream.cpp \
193     FunctionDispatcher.cpp \
194     GregorianDateTime.cpp \
195     gobject/GOwnPtr.cpp \
196     gobject/GRefPtr.cpp \
197     HashTable.cpp \
198     MD5.cpp \
199     MainThread.cpp \
200     MediaTime.cpp \
201     MetaAllocator.cpp \
202     NumberOfCores.cpp \
203     RAMSize.cpp \
204     OSRandomSource.cpp \
205     qt/MainThreadQt.cpp \
206     qt/StringQt.cpp \
207     PageAllocationAligned.cpp \
208     PageBlock.cpp \
209     ParallelJobsGeneric.cpp \
210     PrintStream.cpp \
211     RandomNumber.cpp \
212     RefCountedLeakCounter.cpp \
213     SHA1.cpp \
214     SixCharacterHash.cpp \
215     StackBounds.cpp \
216     StringPrintStream.cpp \
217     TCSystemAlloc.cpp \
218     Threading.cpp \
219     WTFThreadData.cpp \
220     text/AtomicString.cpp \
221     text/AtomicStringTable.cpp \
222     text/Base64.cpp \
223     text/CString.cpp \
224     text/StringBuilder.cpp \
225     text/StringImpl.cpp \
226     text/StringStatics.cpp \
227     text/WTFString.cpp \
228     unicode/CollatorDefault.cpp \
229     unicode/icu/CollatorICU.cpp \
230     unicode/UTF8.cpp
231
232 unix: SOURCES += \
233     OSAllocatorPosix.cpp \
234     ThreadIdentifierDataPthreads.cpp \
235     ThreadingPthreads.cpp
236
237 win*|wince*: SOURCES += \
238     OSAllocatorWin.cpp \
239     ThreadSpecificWin.cpp \
240     ThreadingWin.cpp
241
242 win32 {
243     SOURCES += \
244         threads/win/BinarySemaphoreWin.cpp
245     INCLUDEPATH += $$PWD/wtf/threads
246 } else {
247     SOURCES += \
248         threads/BinarySemaphore.cpp
249 }
250
251 QT += core
252 QT -= gui
253
254 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
255 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
256
257 *sh4* {
258     QMAKE_CXXFLAGS += -mieee -w
259     QMAKE_CFLAGS   += -mieee -w
260 }
261
262 *-g++*:lessThan(QT_GCC_MAJOR_VERSION, 5):lessThan(QT_GCC_MINOR_VERSION, 6) {
263     # For GCC 4.5 and before we disable C++0x mode in JSC for if enabled in Qt's mkspec
264     QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x -std=c++11 -std=gnu++11
265 }
266