Generalize DocumentWeakReference into WTF::WeakPtr
[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     WeakPtr.h
193
194 unix: HEADERS += ThreadIdentifierDataPthreads.h
195
196 SOURCES += \
197     ArrayBuffer.cpp \
198     ArrayBufferView.cpp \
199     Assertions.cpp \
200     BitVector.cpp \
201     CryptographicallyRandomNumber.cpp \
202     CurrentTime.cpp \
203     DateMath.cpp \
204     DataLog.cpp \
205     DecimalNumber.cpp \
206     dtoa.cpp \
207     dtoa/bignum-dtoa.cc \
208     dtoa/bignum.cc \
209     dtoa/cached-powers.cc \
210     dtoa/diy-fp.cc \
211     dtoa/double-conversion.cc \
212     dtoa/fast-dtoa.cc \
213     dtoa/fixed-dtoa.cc \
214     dtoa/strtod.cc \
215     FastMalloc.cpp \
216     FilePrintStream.cpp \
217     GregorianDateTime.cpp \
218     gobject/GOwnPtr.cpp \
219     gobject/GRefPtr.cpp \
220     HashTable.cpp \
221     MD5.cpp \
222     MainThread.cpp \
223     MediaTime.cpp \
224     MemoryInstrumentation.cpp \
225     MetaAllocator.cpp \
226     NullPtr.cpp \
227     NumberOfCores.cpp \
228     RAMSize.cpp \
229     OSRandomSource.cpp \
230     qt/MainThreadQt.cpp \
231     qt/StringQt.cpp \
232     PageAllocationAligned.cpp \
233     PageBlock.cpp \
234     ParallelJobsGeneric.cpp \
235     PrintStream.cpp \
236     RandomNumber.cpp \
237     RefCountedLeakCounter.cpp \
238     SHA1.cpp \
239     StackBounds.cpp \
240     StringPrintStream.cpp \
241     TCSystemAlloc.cpp \
242     Threading.cpp \
243     TypeTraits.cpp \
244     WTFThreadData.cpp \
245     text/AtomicString.cpp \
246     text/Base64.cpp \
247     text/CString.cpp \
248     text/StringBuilder.cpp \
249     text/StringImpl.cpp \
250     text/StringStatics.cpp \
251     text/WTFString.cpp \
252     unicode/CollatorDefault.cpp \
253     unicode/icu/CollatorICU.cpp \
254     unicode/UTF8.cpp
255
256 unix: SOURCES += \
257     OSAllocatorPosix.cpp \
258     ThreadIdentifierDataPthreads.cpp \
259     ThreadingPthreads.cpp
260
261 win*|wince*: SOURCES += \
262     win/OwnPtrWin.cpp \
263     OSAllocatorWin.cpp \
264     ThreadSpecificWin.cpp \
265     ThreadingWin.cpp
266
267
268 QT += core
269 QT -= gui
270
271 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
272 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
273
274 *sh4* {
275     QMAKE_CXXFLAGS += -mieee -w
276     QMAKE_CFLAGS   += -mieee -w
277 }
278
279 *-g++*:lessThan(QT_GCC_MAJOR_VERSION, 5):lessThan(QT_GCC_MINOR_VERSION, 6) {
280     # For GCC 4.5 and before we disable C++0x mode in JSC for if enabled in Qt's mkspec
281     QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x -std=c++11 -std=gnu++11
282 }
283