WTF.pro 6.1 KB

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