Home | History | Annotate | Download | only in wtf
      1 SET(WTF_HEADERS
      2     ASCIICType.h
      3     AVLTree.h
      4     Alignment.h
      5     AlwaysInline.h
      6     Assertions.h
      7     Atomics.h
      8     Bitmap.h
      9     BumpPointerAllocator.h
     10     ByteArray.h
     11     Complex.h
     12     CrossThreadRefCounted.h
     13     CryptographicallyRandomNumber.h
     14     CurrentTime.h
     15     DateMath.h
     16     DecimalNumber.h
     17     Decoder.h
     18     Deque.h
     19     DisallowCType.h
     20     DoublyLinkedList.h
     21     DynamicAnnotations.h
     22     Encoder.h
     23     FastAllocBase.h
     24     FastMalloc.h
     25     FixedArray.h
     26     Forward.h
     27     GetPtr.h
     28     HashCountedSet.h
     29     HashFunctions.h
     30     HashIterators.h
     31     HashMap.h
     32     HashSet.h
     33     HashTable.h
     34     HashTraits.h
     35     HexNumber.h
     36     ListHashSet.h
     37     ListRefPtr.h
     38     Locker.h
     39     MD5.h
     40     MainThread.h
     41     MallocZoneSupport.h
     42     MathExtras.h
     43     MessageQueue.h
     44     NonCopyingSort.h
     45     Noncopyable.h
     46     NotFound.h
     47     NullPtr.h
     48     OSAllocator.h
     49     OSRandomSource.h
     50     OwnArrayPtr.h
     51     OwnFastMallocPtr.h
     52     OwnPtr.h
     53     OwnPtrCommon.h
     54     PageAllocation.h
     55     PageAllocationAligned.h
     56     PageBlock.h
     57     PageReservation.h
     58     PassOwnArrayPtr.h
     59     PassOwnPtr.h
     60     PassRefPtr.h
     61     Platform.h
     62     PossiblyNull.h
     63     RandomNumber.h
     64     RandomNumberSeed.h
     65     RefCounted.h
     66     RefCountedLeakCounter.h
     67     RefPtr.h
     68     RefPtrHashMap.h
     69     RetainPtr.h
     70     SegmentedVector.h
     71     SHA1.h
     72     StackBounds.h
     73     StaticConstructors.h
     74     StdLibExtras.h
     75     StringExtras.h
     76     StringHasher.h
     77     TCPackedCache.h
     78     TCPageMap.h
     79     TCSpinLock.h
     80     TCSystemAlloc.h
     81     ThreadIdentifierDataPthreads.h
     82     ThreadSafeRefCounted.h
     83     ThreadSpecific.h
     84     Threading.h
     85     ThreadingPrimitives.h
     86     TypeTraits.h
     87     UnusedParam.h
     88     VMTags.h
     89     ValueCheck.h
     90     Vector.h
     91     VectorTraits.h
     92     WTFThreadData.h
     93     dtoa.h
     94 
     95     text/AtomicString.h
     96     text/AtomicStringImpl.h
     97     text/CString.h
     98     text/StringBuffer.h
     99     text/StringHash.h
    100     text/StringImpl.h
    101     text/StringImplBase.h
    102     text/WTFString.h
    103 
    104     unicode/CharacterNames.h
    105     unicode/Collator.h
    106     unicode/UTF8.h
    107     unicode/Unicode.h
    108 )
    109 
    110 SET(WTF_SOURCES
    111     Assertions.cpp
    112     ByteArray.cpp
    113     CryptographicallyRandomNumber.cpp
    114     CurrentTime.cpp
    115     DecimalNumber.cpp
    116     DynamicAnnotations.cpp
    117     FastMalloc.cpp
    118     HashTable.cpp
    119     MainThread.cpp
    120     MD5.cpp
    121     OSRandomSource.cpp
    122     RandomNumber.cpp
    123     RefCountedLeakCounter.cpp
    124     SHA1.cpp
    125     StackBounds.cpp
    126     StringExtras.cpp
    127     Threading.cpp
    128     TypeTraits.cpp
    129     WTFThreadData.cpp
    130     dtoa.cpp
    131 
    132     text/AtomicString.cpp
    133     text/CString.cpp
    134     text/StringBuilder.cpp
    135     text/StringImpl.cpp
    136     text/StringStatics.cpp
    137     text/WTFString.cpp
    138 
    139     unicode/UTF8.cpp
    140 )
    141 
    142 SET(WTF_LIBRARIES
    143 )
    144 
    145 SET(WTF_PORT_FLAGS )
    146 INCLUDE_IF_EXISTS(${JAVASCRIPTCORE_DIR}/wtf/CMakeLists${PORT}.txt)
    147 
    148 LIST(APPEND WTF_INCLUDE_DIRECTORIES
    149     "${CMAKE_BINARY_DIR}"
    150     "${CMAKE_SOURCE_DIR}/ThirdParty"
    151 )
    152 
    153 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
    154 INCLUDE_DIRECTORIES(${WTF_INCLUDE_DIRECTORIES})
    155 ADD_DEFINITIONS(-DBUILDING_WTF)
    156 ADD_LIBRARY(${WTF_LIBRARY_NAME} ${WTF_LIBRARY_TYPE} ${WTF_HEADERS} ${WTF_SOURCES})
    157 TARGET_LINK_LIBRARIES(${WTF_LIBRARY_NAME} ${WTF_LIBRARIES})
    158 
    159 IF (WTF_LINK_FLAGS)
    160     ADD_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} LINK_FLAGS "${WTF_LINK_FLAGS}")
    161 ENDIF ()
    162 
    163 IF (SHARED_CORE)
    164     SET_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
    165     INSTALL(TARGETS ${WTF_LIBRARY_NAME} DESTINATION lib)
    166 ENDIF ()
    167