[CMake] Make WTF headers copies
[WebKit-https.git] / Source / WTF / wtf / CMakeLists.txt
index 358fc8790f8e38a04de65f8a6e84a7b1e26d7326..c10bae970c3671b12d54316860d58f6b348875cc 100644 (file)
@@ -1,13 +1,20 @@
 set(WTF_HEADERS
     ASCIICType.h
 set(WTF_HEADERS
     ASCIICType.h
+    Algorithms.h
     Assertions.h
     Atomics.h
     Assertions.h
     Atomics.h
+    AutodrainedPool.h
     AutomaticThread.h
     BackwardsGraph.h
     Bag.h
     BagToHashMap.h
     BitVector.h
     Bitmap.h
     AutomaticThread.h
     BackwardsGraph.h
     Bag.h
     BagToHashMap.h
     BitVector.h
     Bitmap.h
+    BlockObjCExceptions.h
+    BlockPtr.h
+    BlockStack.h
+    BloomFilter.h
+    Box.h
     Brigand.h
     BubbleSort.h
     BumpPointerAllocator.h
     Brigand.h
     BubbleSort.h
     BumpPointerAllocator.h
@@ -15,15 +22,21 @@ set(WTF_HEADERS
     CPUTime.h
     CagedPtr.h
     CagedUniquePtr.h
     CPUTime.h
     CagedPtr.h
     CagedUniquePtr.h
+    CallbackAggregator.h
+    CheckedArithmetic.h
+    CheckedBoolean.h
     ClockType.h
     ClockType.h
+    CommaPrinter.h
     CompilationThread.h
     Compiler.h
     CompilationThread.h
     Compiler.h
+    CompletionHandler.h
     ConcurrentBuffer.h
     ConcurrentPtrHashSet.h
     ConcurrentVector.h
     Condition.h
     CountingLock.h
     CrossThreadCopier.h
     ConcurrentBuffer.h
     ConcurrentPtrHashSet.h
     ConcurrentVector.h
     Condition.h
     CountingLock.h
     CrossThreadCopier.h
+    CrossThreadQueue.h
     CrossThreadTask.h
     CrossThreadTaskHandler.h
     CryptographicUtilities.h
     CrossThreadTask.h
     CrossThreadTaskHandler.h
     CryptographicUtilities.h
@@ -31,19 +44,29 @@ set(WTF_HEADERS
     CurrentTime.h
     DataLog.h
     DateMath.h
     CurrentTime.h
     DataLog.h
     DateMath.h
-    Dominators.h
+    DebugUtilities.h
     DecimalNumber.h
     DeferrableRefCounted.h
     DecimalNumber.h
     DeferrableRefCounted.h
+    DeprecatedOptional.h
     Deque.h
     DisallowCType.h
     Deque.h
     DisallowCType.h
+    DispatchPtr.h
+    Dominators.h
     DoublyLinkedList.h
     DumbPtrTraits.h
     DoublyLinkedList.h
     DumbPtrTraits.h
+    DumbValueTraits.h
+    EnumTraits.h
+    Expected.h
+    ExportMacros.h
+    FastBitVector.h
     FastMalloc.h
     FastTLS.h
     FeatureDefines.h
     FilePrintStream.h
     FlipBytes.h
     FastMalloc.h
     FastTLS.h
     FeatureDefines.h
     FilePrintStream.h
     FlipBytes.h
+    ForbidHeapAllocation.h
     Forward.h
     Forward.h
+    Function.h
     FunctionDispatcher.h
     GetPtr.h
     Gigacage.h
     FunctionDispatcher.h
     GetPtr.h
     Gigacage.h
@@ -51,7 +74,6 @@ set(WTF_HEADERS
     GraphNodeWorklist.h
     GregorianDateTime.h
     HashCountedSet.h
     GraphNodeWorklist.h
     GregorianDateTime.h
     HashCountedSet.h
-    Hasher.h
     HashFunctions.h
     HashIterators.h
     HashMap.h
     HashFunctions.h
     HashIterators.h
     HashMap.h
@@ -59,23 +81,39 @@ set(WTF_HEADERS
     HashSet.h
     HashTable.h
     HashTraits.h
     HashSet.h
     HashTable.h
     HashTraits.h
+    Hasher.h
     HexNumber.h
     HexNumber.h
+    Identified.h
+    Indenter.h
+    IndexKeyType.h
     IndexMap.h
     IndexSet.h
     IndexSparseSet.h
     IndexedContainerIterator.h
     IndexMap.h
     IndexSet.h
     IndexSparseSet.h
     IndexedContainerIterator.h
+    InlineASM.h
+    Insertion.h
+    InstanceCounted.h
+    IsoMalloc.h
+    IsoMallocInlines.h
     IteratorAdaptors.h
     IteratorRange.h
     JSONValues.h
     IteratorAdaptors.h
     IteratorRange.h
     JSONValues.h
+    JSValueMalloc.h
+    KeyValuePair.h
+    LEBDecoder.h
     Language.h
     Language.h
+    ListDump.h
     ListHashSet.h
     Liveness.h
     Lock.h
     ListHashSet.h
     Liveness.h
     Lock.h
-    LockAlgorithmInlines.h
     LockAlgorithm.h
     LockAlgorithm.h
+    LockAlgorithmInlines.h
     LockedPrintStream.h
     Locker.h
     LocklessBag.h
     LockedPrintStream.h
     Locker.h
     LocklessBag.h
+    Logger.h
+    LoggerHelper.h
+    LoggingAccumulator.h
     LoggingHashID.h
     LoggingHashMap.h
     LoggingHashSet.h
     LoggingHashID.h
     LoggingHashMap.h
     LoggingHashSet.h
@@ -90,14 +128,24 @@ set(WTF_HEADERS
     MessageQueue.h
     MetaAllocator.h
     MetaAllocatorHandle.h
     MessageQueue.h
     MetaAllocator.h
     MetaAllocatorHandle.h
-    NaturalLoops.h
     MonotonicTime.h
     MonotonicTime.h
+    NakedPtr.h
+    NaturalLoops.h
+    NeverDestroyed.h
+    NoLock.h
+    NoTailCalls.h
     Noncopyable.h
     Noncopyable.h
+    NotFound.h
     NumberOfCores.h
     OSAllocator.h
     NumberOfCores.h
     OSAllocator.h
+    OSObjectPtr.h
     OSRandomSource.h
     OSRandomSource.h
+    ObjcRuntimeExtras.h
+    ObjectIdentifier.h
     OptionSet.h
     OptionSet.h
+    Optional.h
     OrderMaker.h
     OrderMaker.h
+    PackedIntVector.h
     PageAllocation.h
     PageBlock.h
     PageReservation.h
     PageAllocation.h
     PageBlock.h
     PageReservation.h
@@ -110,10 +158,12 @@ set(WTF_HEADERS
     ParkingLot.h
     Platform.h
     PlatformRegisters.h
     ParkingLot.h
     Platform.h
     PlatformRegisters.h
+    PointerComparison.h
     PointerPreparations.h
     Poisoned.h
     PoisonedUniquePtr.h
     PrintStream.h
     PointerPreparations.h
     Poisoned.h
     PoisonedUniquePtr.h
     PrintStream.h
+    PriorityQueue.h
     ProcessID.h
     RAMSize.h
     RandomDevice.h
     ProcessID.h
     RAMSize.h
     RandomDevice.h
@@ -123,22 +173,36 @@ set(WTF_HEADERS
     RangeSet.h
     RawPointer.h
     ReadWriteLock.h
     RangeSet.h
     RawPointer.h
     ReadWriteLock.h
+    RecursableLambda.h
     RecursiveLockAdapter.h
     RedBlackTree.h
     Ref.h
     RefCounted.h
     RecursiveLockAdapter.h
     RedBlackTree.h
     Ref.h
     RefCounted.h
+    RefCountedArray.h
     RefCountedLeakCounter.h
     RefCounter.h
     RefPtr.h
     RetainPtr.h
     RunLoop.h
     RefCountedLeakCounter.h
     RefCounter.h
     RefPtr.h
     RetainPtr.h
     RunLoop.h
+    RunLoopTimer.h
     SHA1.h
     SHA1.h
-    SharedTask.h
     SaturatedArithmetic.h
     SaturatedArithmetic.h
+    SchedulePair.h
+    Scope.h
     ScopedLambda.h
     Seconds.h
     SegmentedVector.h
     ScopedLambda.h
     Seconds.h
     SegmentedVector.h
+    SentinelLinkedList.h
+    SetForScope.h
+    SharedTask.h
+    SimpleStats.h
+    SingleRootGraph.h
+    SinglyLinkedList.h
+    SinglyLinkedListWithTail.h
+    SixCharacterHash.h
     SmallPtrSet.h
     SmallPtrSet.h
+    SoftLinking.h
+    Spectrum.h
     StackBounds.h
     StackShot.h
     StackShotProfiler.h
     StackBounds.h
     StackShot.h
     StackShotProfiler.h
@@ -146,8 +210,11 @@ set(WTF_HEADERS
     StackTrace.h
     StdLibExtras.h
     Stopwatch.h
     StackTrace.h
     StdLibExtras.h
     Stopwatch.h
+    StreamBuffer.h
     StringExtras.h
     StringExtras.h
+    StringHashDumpContext.h
     StringPrintStream.h
     StringPrintStream.h
+    SynchronizedFixedQueue.h
     SystemFree.h
     SystemTracing.h
     ThreadGroup.h
     SystemFree.h
     SystemTracing.h
     ThreadGroup.h
@@ -158,9 +225,16 @@ set(WTF_HEADERS
     ThreadingPrimitives.h
     TimeWithDynamicClockType.h
     TimingScope.h
     ThreadingPrimitives.h
     TimeWithDynamicClockType.h
     TimingScope.h
+    TinyLRUCache.h
     TinyPtrSet.h
     TinyPtrSet.h
+    TriState.h
+    TypeCasts.h
     UUID.h
     UUID.h
+    Unexpected.h
+    UniStdExtras.h
+    UnionFind.h
     UniqueRef.h
     UniqueRef.h
+    UnsafePointer.h
     VMTags.h
     ValueCheck.h
     Variant.h
     VMTags.h
     ValueCheck.h
     Variant.h
@@ -168,6 +242,8 @@ set(WTF_HEADERS
     VectorTraits.h
     WallTime.h
     WeakPtr.h
     VectorTraits.h
     WallTime.h
     WeakPtr.h
+    WeakRandom.h
+    WindowsExtras.h
     WordLock.h
     WorkQueue.h
     dtoa.h
     WordLock.h
     WorkQueue.h
     dtoa.h
@@ -183,32 +259,48 @@ set(WTF_HEADERS
     dtoa/strtod.h
     dtoa/utils.h
 
     dtoa/strtod.h
     dtoa/utils.h
 
+    persistence/PersistentCoder.h
+    persistence/PersistentCoders.h
+    persistence/PersistentDecoder.h
+    persistence/PersistentEncoder.h
+
+    text/ASCIIFastPath.h
     text/AtomicString.h
     text/AtomicString.h
+    text/AtomicStringHash.h
     text/AtomicStringImpl.h
     text/AtomicStringTable.h
     text/Base64.h
     text/CString.h
     text/AtomicStringImpl.h
     text/AtomicStringTable.h
     text/Base64.h
     text/CString.h
+    text/ConversionMode.h
     text/IntegerToStringConversion.h
     text/LChar.h
     text/IntegerToStringConversion.h
     text/LChar.h
-    text/LineEnding.h
     text/LineBreakIteratorPoolICU.h
     text/LineBreakIteratorPoolICU.h
+    text/LineEnding.h
+    text/NullTextBreakIterator.h
+    text/OrdinalNumber.h
     text/StringBuffer.h
     text/StringBuffer.h
+    text/StringBuilder.h
     text/StringCommon.h
     text/StringCommon.h
+    text/StringConcatenate.h
+    text/StringConcatenateNumbers.h
     text/StringHash.h
     text/StringHasher.h
     text/StringImpl.h
     text/StringMalloc.h
     text/StringHash.h
     text/StringHasher.h
     text/StringImpl.h
     text/StringMalloc.h
+    text/StringOperators.h
     text/StringVector.h
     text/StringView.h
     text/SymbolImpl.h
     text/SymbolRegistry.h
     text/TextBreakIterator.h
     text/TextBreakIteratorInternalICU.h
     text/StringVector.h
     text/StringView.h
     text/SymbolImpl.h
     text/SymbolRegistry.h
     text/TextBreakIterator.h
     text/TextBreakIteratorInternalICU.h
+    text/TextPosition.h
     text/TextStream.h
     text/UniquedStringImpl.h
     text/ValueToString.h
     text/WTFString.h
 
     text/TextStream.h
     text/UniquedStringImpl.h
     text/ValueToString.h
     text/WTFString.h
 
+    text/icu/TextBreakIteratorICU.h
     text/icu/UTextProvider.h
     text/icu/UTextProviderLatin1.h
     text/icu/UTextProviderUTF16.h
     text/icu/UTextProvider.h
     text/icu/UTextProviderLatin1.h
     text/icu/UTextProviderUTF16.h
@@ -333,13 +425,13 @@ set(WTF_SOURCES
 
 set(WTF_INCLUDE_DIRECTORIES
     "${BMALLOC_DIR}"
 
 set(WTF_INCLUDE_DIRECTORIES
     "${BMALLOC_DIR}"
-    "${WTF_DIR}"
     "${CMAKE_BINARY_DIR}"
     "${DERIVED_SOURCES_DIR}"
     "${THIRDPARTY_DIR}"
 )
 
 set(WTF_PRIVATE_INCLUDE_DIRECTORIES
     "${CMAKE_BINARY_DIR}"
     "${DERIVED_SOURCES_DIR}"
     "${THIRDPARTY_DIR}"
 )
 
 set(WTF_PRIVATE_INCLUDE_DIRECTORIES
+    "${WTF_DIR}"
     "${WTF_DIR}/wtf"
     "${WTF_DIR}/wtf/dtoa"
     "${WTF_DIR}/wtf/persistence"
     "${WTF_DIR}/wtf"
     "${WTF_DIR}/wtf/dtoa"
     "${WTF_DIR}/wtf/persistence"
@@ -353,15 +445,6 @@ set(WTF_LIBRARIES
     ${CMAKE_DL_LIBS}
 )
 
     ${CMAKE_DL_LIBS}
 )
 
-if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
-    list(APPEND WTF_HEADERS
-        spi/darwin/CommonCryptoSPI.h
-    )
-    list(APPEND WTF_INCLUDE_DIRECTORIES
-        "${WTF_DIR}/wtf/spi/darwin"
-    )
-endif ()
-
 if (NOT USE_SYSTEM_MALLOC)
     list(APPEND WTF_LIBRARIES bmalloc)
 endif ()
 if (NOT USE_SYSTEM_MALLOC)
     list(APPEND WTF_LIBRARIES bmalloc)
 endif ()
@@ -400,6 +483,11 @@ WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
 WEBKIT_FRAMEWORK(WTF)
 
 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
 WEBKIT_FRAMEWORK(WTF)
 
+WEBKIT_MAKE_FORWARDING_HEADERS(WTF
+    DESTINATION ${FORWARDING_HEADERS_DIR}/wtf
+    FILES ${WTF_HEADERS}
+)
+
 if (MSVC)
     set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")
     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")
 if (MSVC)
     set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")
     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")