Move URL from WebCore to WTF
[WebKit-https.git] / Source / WTF / wtf / CMakeLists.txt
index d345a84..cee1cce 100644 (file)
@@ -1,13 +1,20 @@
-set(WTF_HEADERS
+set(WTF_PUBLIC_HEADERS
     ASCIICType.h
+    Algorithms.h
     Assertions.h
     Atomics.h
+    AutodrainedPool.h
     AutomaticThread.h
     BackwardsGraph.h
     Bag.h
     BagToHashMap.h
     BitVector.h
     Bitmap.h
+    BlockObjCExceptions.h
+    BlockPtr.h
+    BloomFilter.h
+    BooleanLattice.h
+    Box.h
     Brigand.h
     BubbleSort.h
     BumpPointerAllocator.h
@@ -15,37 +22,58 @@ set(WTF_HEADERS
     CPUTime.h
     CagedPtr.h
     CagedUniquePtr.h
+    CallbackAggregator.h
+    CheckedArithmetic.h
+    CheckedBoolean.h
     ClockType.h
+    CommaPrinter.h
+    CompactPointerTuple.h
     CompilationThread.h
     Compiler.h
+    CompletionHandler.h
+    ConcurrentBuffer.h
+    ConcurrentPtrHashSet.h
+    ConcurrentVector.h
     Condition.h
+    CountingLock.h
     CrossThreadCopier.h
+    CrossThreadQueue.h
     CrossThreadTask.h
+    CrossThreadTaskHandler.h
     CryptographicUtilities.h
     CryptographicallyRandomNumber.h
-    CurrentTime.h
     DataLog.h
     DateMath.h
-    Dominators.h
+    DebugUtilities.h
     DecimalNumber.h
     DeferrableRefCounted.h
+    DeprecatedOptional.h
     Deque.h
     DisallowCType.h
+    Dominators.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
+    ForbidHeapAllocation.h
     Forward.h
+    Function.h
     FunctionDispatcher.h
+    FunctionTraits.h
     GetPtr.h
     Gigacage.h
     GlobalVersion.h
     GraphNodeWorklist.h
     GregorianDateTime.h
     HashCountedSet.h
-    Hasher.h
     HashFunctions.h
     HashIterators.h
     HashMap.h
@@ -53,30 +81,48 @@ set(WTF_HEADERS
     HashSet.h
     HashTable.h
     HashTraits.h
+    Hasher.h
     HexNumber.h
+    Identified.h
+    Indenter.h
+    IndexKeyType.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
+    JSValueMalloc.h
+    KeyValuePair.h
+    LEBDecoder.h
     Language.h
+    ListDump.h
     ListHashSet.h
     Liveness.h
     Lock.h
-    LockAlgorithmInlines.h
     LockAlgorithm.h
+    LockAlgorithmInlines.h
     LockedPrintStream.h
     Locker.h
     LocklessBag.h
+    Logger.h
+    LoggerHelper.h
+    LoggingAccumulator.h
     LoggingHashID.h
     LoggingHashMap.h
     LoggingHashSet.h
     LoggingHashTraits.h
     MD5.h
+    MachSendRight.h
     MainThread.h
     MallocPtr.h
+    Markable.h
     MathExtras.h
     MediaTime.h
     MemoryFootprint.h
@@ -84,14 +130,25 @@ set(WTF_HEADERS
     MessageQueue.h
     MetaAllocator.h
     MetaAllocatorHandle.h
-    NaturalLoops.h
+    MetaAllocatorPtr.h
     MonotonicTime.h
+    NakedPtr.h
+    NaturalLoops.h
+    NeverDestroyed.h
+    NoLock.h
+    NoTailCalls.h
     Noncopyable.h
+    NotFound.h
     NumberOfCores.h
     OSAllocator.h
+    OSObjectPtr.h
     OSRandomSource.h
+    ObjCRuntimeExtras.h
+    ObjectIdentifier.h
     OptionSet.h
+    Optional.h
     OrderMaker.h
+    PackedIntVector.h
     PageAllocation.h
     PageBlock.h
     PageReservation.h
@@ -104,8 +161,15 @@ set(WTF_HEADERS
     ParkingLot.h
     Platform.h
     PlatformRegisters.h
+    PointerComparison.h
+    PointerPreparations.h
+    Poisoned.h
+    PoisonedUniquePtr.h
     PrintStream.h
+    PriorityQueue.h
     ProcessID.h
+    ProcessPrivilege.h
+    PtrTag.h
     RAMSize.h
     RandomDevice.h
     RandomNumber.h
@@ -114,29 +178,54 @@ set(WTF_HEADERS
     RangeSet.h
     RawPointer.h
     ReadWriteLock.h
+    RecursableLambda.h
     RecursiveLockAdapter.h
     RedBlackTree.h
     Ref.h
     RefCounted.h
+    RefCountedArray.h
     RefCountedLeakCounter.h
     RefCounter.h
     RefPtr.h
     RetainPtr.h
     RunLoop.h
+    RunLoopTimer.h
     SHA1.h
-    SharedTask.h
     SaturatedArithmetic.h
+    SchedulePair.h
+    Scope.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
+    SoftLinking.h
+    Spectrum.h
     StackBounds.h
+    StackPointer.h
+    StackShot.h
+    StackShotProfiler.h
     StackStats.h
     StackTrace.h
     StdLibExtras.h
+    StdList.h
+    StdMap.h
+    StdSet.h
+    StdUnorderedMap.h
+    StdUnorderedSet.h
     Stopwatch.h
+    StreamBuffer.h
     StringExtras.h
+    StringHashDumpContext.h
     StringPrintStream.h
+    SynchronizedFixedQueue.h
     SystemFree.h
     SystemTracing.h
     ThreadGroup.h
@@ -147,18 +236,34 @@ set(WTF_HEADERS
     ThreadingPrimitives.h
     TimeWithDynamicClockType.h
     TimingScope.h
+    TinyLRUCache.h
     TinyPtrSet.h
+    TriState.h
+    TypeCasts.h
+    URL.h
+    URLHash.h
+    URLParser.h
     UUID.h
+    UnalignedAccess.h
+    Unexpected.h
+    UniStdExtras.h
+    UnionFind.h
+    UniqueArray.h
     UniqueRef.h
+    UnsafePointer.h
     VMTags.h
     ValueCheck.h
     Variant.h
     Vector.h
     VectorTraits.h
+    WTFSemaphore.h
     WallTime.h
     WeakPtr.h
+    WeakRandom.h
+    WindowsExtras.h
     WordLock.h
     WorkQueue.h
+    WorkerPool.h
     dtoa.h
 
     dtoa/bignum-dtoa.h
@@ -172,31 +277,50 @@ set(WTF_HEADERS
     dtoa/strtod.h
     dtoa/utils.h
 
+    persistence/PersistentCoder.h
+    persistence/PersistentCoders.h
+    persistence/PersistentDecoder.h
+    persistence/PersistentEncoder.h
+
+    text/ASCIIFastPath.h
+    text/ASCIILiteral.h
     text/AtomicString.h
+    text/AtomicStringHash.h
     text/AtomicStringImpl.h
     text/AtomicStringTable.h
     text/Base64.h
     text/CString.h
+    text/ConversionMode.h
+    text/ExternalStringImpl.h
     text/IntegerToStringConversion.h
     text/LChar.h
-    text/LineEnding.h
     text/LineBreakIteratorPoolICU.h
+    text/LineEnding.h
+    text/NullTextBreakIterator.h
+    text/OrdinalNumber.h
     text/StringBuffer.h
+    text/StringBuilder.h
     text/StringCommon.h
+    text/StringConcatenate.h
+    text/StringConcatenateNumbers.h
     text/StringHash.h
+    text/StringHasher.h
     text/StringImpl.h
-    text/StringMalloc.h
-    text/StringVector.h
+    text/StringOperators.h
+    text/StringToIntegerConversion.h
     text/StringView.h
     text/SymbolImpl.h
     text/SymbolRegistry.h
     text/TextBreakIterator.h
     text/TextBreakIteratorInternalICU.h
+    text/TextPosition.h
     text/TextStream.h
+    text/UTF8ConversionError.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
@@ -206,18 +330,20 @@ set(WTF_HEADERS
 
     unicode/CharacterNames.h
     unicode/Collator.h
-    unicode/UTF8.h
+    unicode/UTF8Conversion.h
 )
 
 set(WTF_SOURCES
     Assertions.cpp
-    Atomics.cpp
     AutomaticThread.cpp
     BitVector.cpp
     CPUTime.cpp
     ClockType.cpp
     CompilationThread.cpp
+    ConcurrentPtrHashSet.cpp
+    CountingLock.cpp
     CrossThreadCopier.cpp
+    CrossThreadTaskHandler.cpp
     CryptographicUtilities.cpp
     CryptographicallyRandomNumber.cpp
     CurrentTime.cpp
@@ -233,6 +359,7 @@ set(WTF_SOURCES
     GregorianDateTime.cpp
     HashTable.cpp
     JSONValues.cpp
+    JSValueMalloc.cpp
     Language.cpp
     Lock.cpp
     LockedPrintStream.cpp
@@ -248,7 +375,9 @@ set(WTF_SOURCES
     ParallelHelperPool.cpp
     ParallelJobsGeneric.cpp
     ParkingLot.cpp
+    Poisoned.cpp
     PrintStream.cpp
+    ProcessPrivilege.cpp
     RAMSize.cpp
     RandomDevice.cpp
     RandomNumber.cpp
@@ -259,6 +388,7 @@ set(WTF_SOURCES
     Seconds.cpp
     SixCharacterHash.cpp
     StackBounds.cpp
+    StackPointer.cpp
     StackStats.cpp
     StackTrace.cpp
     StringPrintStream.cpp
@@ -267,10 +397,14 @@ set(WTF_SOURCES
     Threading.cpp
     TimeWithDynamicClockType.cpp
     TimingScope.cpp
+    URL.cpp
+    URLParser.cpp
     UUID.cpp
+    WTFAssertions.cpp
     WallTime.cpp
     WordLock.cpp
     WorkQueue.cpp
+    WorkerPool.cpp
     dtoa.cpp
 
     dtoa/bignum-dtoa.cc
@@ -286,16 +420,17 @@ set(WTF_SOURCES
     persistence/PersistentDecoder.cpp
     persistence/PersistentEncoder.cpp
 
+    text/ASCIILiteral.cpp
     text/AtomicString.cpp
     text/AtomicStringImpl.cpp
     text/AtomicStringTable.cpp
     text/Base64.cpp
     text/CString.cpp
+    text/ExternalStringImpl.cpp
     text/LineEnding.cpp
     text/StringBuilder.cpp
     text/StringBuilderJSON.cpp
     text/StringImpl.cpp
-    text/StringMalloc.cpp
     text/StringView.cpp
     text/SymbolImpl.cpp
     text/SymbolRegistry.cpp
@@ -310,18 +445,18 @@ set(WTF_SOURCES
     threads/BinarySemaphore.cpp
     threads/Signals.cpp
 
-    unicode/UTF8.cpp
+    unicode/UTF8Conversion.cpp
 )
 
 set(WTF_INCLUDE_DIRECTORIES
     "${BMALLOC_DIR}"
-    "${WTF_DIR}"
     "${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"
@@ -335,20 +470,13 @@ set(WTF_LIBRARIES
     ${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 ()
 
 list(APPEND WTF_SOURCES
+    unicode/CollatorDefault.cpp
+
     unicode/icu/CollatorICU.cpp
 )
 set(WTF_SYSTEM_INCLUDE_DIRECTORIES
@@ -367,6 +495,7 @@ if (WIN32)
         ThreadingWin.cpp
     )
     list(APPEND WTF_LIBRARIES
+        DbgHelp
         winmm
     )
 else ()
@@ -382,6 +511,11 @@ WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
 WEBKIT_FRAMEWORK(WTF)
 
+WEBKIT_MAKE_FORWARDING_HEADERS(WTF
+    DESTINATION ${FORWARDING_HEADERS_DIR}/wtf
+    FILES ${WTF_PUBLIC_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")
@@ -399,10 +533,10 @@ if (MSVC)
         VERBATIM)
 endif ()
 
-file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/WTF/Scripts)
+file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/wtf/Scripts)
 
 file(COPY
     ../Scripts/generate-unified-source-bundles.rb
     DESTINATION
-    ${FORWARDING_HEADERS_DIR}/WTF/Scripts
+    ${FORWARDING_HEADERS_DIR}/wtf/Scripts
 )