Index: third_party/WebKit/Source/wtf/BUILD.gn |
diff --git a/third_party/WebKit/Source/wtf/BUILD.gn b/third_party/WebKit/Source/wtf/BUILD.gn |
index 0efc9fe270a09a142b3698406a9a7a3ba1ce5795..cfb6eae7ec7a33065dde6bd297d31fe340b80e0c 100644 |
--- a/third_party/WebKit/Source/wtf/BUILD.gn |
+++ b/third_party/WebKit/Source/wtf/BUILD.gn |
@@ -7,12 +7,6 @@ assert(!is_ios) |
import("//testing/test.gni") |
import("//third_party/WebKit/Source/config.gni") |
-# The list of files is kept in the .gypi. |
-gypi_values = exec_script("//build/gypi_to_gn.py", |
- [ rebase_path("wtf.gypi") ], |
- "scope", |
- [ "wtf.gypi" ]) |
- |
visibility = [ |
"//mojo/public/cpp/bindings/*", |
"//third_party/WebKit/*", |
@@ -47,7 +41,210 @@ config("wtf_config") { |
} |
component("wtf") { |
- sources = gypi_values.wtf_files |
+ sources = [ |
+ "ASCIICType.cpp", |
+ "ASCIICType.h", |
+ "AddressSanitizer.h", |
+ "Alignment.h", |
+ "Allocator.h", |
+ "Assertions.cpp", |
+ "Assertions.h", |
+ "Atomics.h", |
+ "AutoReset.h", |
+ "BitVector.cpp", |
+ "BitVector.h", |
+ "BitwiseOperations.h", |
+ "BloomFilter.h", |
+ "ByteOrder.h", |
+ "ByteSwap.h", |
+ "CPU.h", |
+ "CheckedNumeric.h", |
+ "Compiler.h", |
+ "ConditionalDestructor.h", |
+ "ContainerAnnotations.h", |
+ "CryptographicallyRandomNumber.cpp", |
+ "CryptographicallyRandomNumber.h", |
+ "CurrentTime.cpp", |
+ "CurrentTime.h", |
+ "DataLog.cpp", |
+ "DataLog.h", |
+ "DateMath.cpp", |
+ "DateMath.h", |
+ "Deque.h", |
+ "DoublyLinkedList.h", |
+ "DynamicAnnotations.cpp", |
+ "DynamicAnnotations.h", |
+ "FilePrintStream.cpp", |
+ "FilePrintStream.h", |
+ "Forward.h", |
+ "Functional.h", |
+ "GetPtr.h", |
+ "HashCountedSet.h", |
+ "HashFunctions.h", |
+ "HashIterators.h", |
+ "HashMap.h", |
+ "HashSet.h", |
+ "HashTable.cpp", |
+ "HashTable.h", |
+ "HashTableDeletedValueType.h", |
+ "HashTraits.h", |
+ "HexNumber.h", |
+ "InstanceCounter.cpp", |
+ "InstanceCounter.h", |
+ "LeakAnnotations.h", |
+ "LinkedStack.h", |
+ "ListHashSet.h", |
+ "Locker.h", |
+ "MakeCancellable.cpp", |
+ "MakeCancellable.h", |
+ "MathExtras.h", |
+ "NonCopyingSort.h", |
+ "Noncopyable.h", |
+ "NotFound.h", |
+ "Optional.h", |
+ "PassRefPtr.h", |
+ "PrintStream.cpp", |
+ "PrintStream.h", |
+ "PtrUtil.h", |
+ "RefCounted.h", |
+ "RefPtr.h", |
+ "RetainPtr.h", |
+ "SaturatedArithmetic.h", |
+ "SizeLimits.cpp", |
+ "SpinLock.cpp", |
+ "SpinLock.h", |
+ "StaticConstructors.h", |
+ "StdLibExtras.h", |
+ "StringExtras.h", |
+ "StringHasher.h", |
+ "ThreadRestrictionVerifier.h", |
+ "ThreadSafeRefCounted.h", |
+ "ThreadSpecific.h", |
+ "ThreadSpecificWin.cpp", |
+ "Threading.h", |
+ "ThreadingPrimitives.h", |
+ "ThreadingPthreads.cpp", |
+ "ThreadingWin.cpp", |
+ "TreeNode.h", |
+ "TypeTraits.h", |
+ "Vector.h", |
+ "VectorTraits.h", |
+ "WTF.cpp", |
+ "WTF.h", |
+ "WTFExport.h", |
+ "WTFThreadData.cpp", |
+ "WTFThreadData.h", |
+ "WeakPtr.h", |
+ "allocator/AddressSpaceRandomization.cpp", |
+ "allocator/AddressSpaceRandomization.h", |
+ "allocator/PageAllocator.cpp", |
+ "allocator/PageAllocator.h", |
+ "allocator/PartitionAlloc.cpp", |
+ "allocator/PartitionAlloc.h", |
+ "allocator/PartitionAllocator.cpp", |
+ "allocator/PartitionAllocator.h", |
+ "allocator/Partitions.cpp", |
+ "allocator/Partitions.h", |
+ "asm/SaturatedArithmeticARM.h", |
+ "build_config.h", |
+ "debug/Alias.h", |
+ "debug/CrashLogging.h", |
+ "dtoa.cpp", |
+ "dtoa.h", |
+ "dtoa/bignum-dtoa.cc", |
+ "dtoa/bignum-dtoa.h", |
+ "dtoa/bignum.cc", |
+ "dtoa/bignum.h", |
+ "dtoa/cached-powers.cc", |
+ "dtoa/cached-powers.h", |
+ "dtoa/diy-fp.cc", |
+ "dtoa/diy-fp.h", |
+ "dtoa/double-conversion.cc", |
+ "dtoa/double-conversion.h", |
+ "dtoa/double.h", |
+ "dtoa/fast-dtoa.cc", |
+ "dtoa/fast-dtoa.h", |
+ "dtoa/fixed-dtoa.cc", |
+ "dtoa/fixed-dtoa.h", |
+ "dtoa/strtod.cc", |
+ "dtoa/strtod.h", |
+ "dtoa/utils.h", |
+ "text/ASCIIFastPath.h", |
+ "text/AtomicString.cpp", |
+ "text/AtomicString.h", |
+ "text/AtomicStringCF.cpp", |
+ "text/AtomicStringHash.h", |
+ "text/AtomicStringTable.cpp", |
+ "text/AtomicStringTable.h", |
+ "text/Base64.cpp", |
+ "text/Base64.h", |
+ "text/CString.cpp", |
+ "text/CString.h", |
+ "text/CharacterNames.h", |
+ "text/Collator.h", |
+ "text/IntegerToStringConversion.h", |
+ "text/ParsingUtilities.h", |
+ "text/StringBuffer.h", |
+ "text/StringBuilder.cpp", |
+ "text/StringBuilder.h", |
+ "text/StringConcatenate.cpp", |
+ "text/StringConcatenate.h", |
+ "text/StringHash.h", |
+ "text/StringImpl.cpp", |
+ "text/StringImpl.h", |
+ "text/StringImplCF.cpp", |
+ "text/StringImplMac.mm", |
+ "text/StringMac.mm", |
+ "text/StringOperators.h", |
+ "text/StringStatics.cpp", |
+ "text/StringToNumber.cpp", |
+ "text/StringToNumber.h", |
+ "text/StringUTF8Adaptor.h", |
+ "text/StringView.cpp", |
+ "text/StringView.h", |
+ "text/TextCodec.cpp", |
+ "text/TextCodec.h", |
+ "text/TextCodecASCIIFastPath.h", |
+ "text/TextCodecICU.cpp", |
+ "text/TextCodecLatin1.cpp", |
+ "text/TextCodecReplacement.cpp", |
+ "text/TextCodecReplacement.h", |
+ "text/TextCodecUTF16.cpp", |
+ "text/TextCodecUTF8.cpp", |
+ "text/TextCodecUTF8.h", |
+ "text/TextCodecUserDefined.cpp", |
+ "text/TextEncoding.cpp", |
+ "text/TextEncodingRegistry.cpp", |
+ "text/TextPosition.cpp", |
+ "text/TextPosition.h", |
+ "text/UTF8.cpp", |
+ "text/UTF8.h", |
+ "text/Unicode.h", |
+ "text/WTFString.cpp", |
+ "text/WTFString.h", |
+ "text/icu/CollatorICU.cpp", |
+ "text/icu/UnicodeIcu.h", |
+ "typed_arrays/ArrayBuffer.cpp", |
+ "typed_arrays/ArrayBuffer.h", |
+ "typed_arrays/ArrayBufferBuilder.cpp", |
+ "typed_arrays/ArrayBufferBuilder.h", |
+ "typed_arrays/ArrayBufferContents.cpp", |
+ "typed_arrays/ArrayBufferContents.h", |
+ "typed_arrays/ArrayBufferView.cpp", |
+ "typed_arrays/ArrayBufferView.h", |
+ "typed_arrays/ArrayPiece.cpp", |
+ "typed_arrays/ArrayPiece.h", |
+ "typed_arrays/Float32Array.h", |
+ "typed_arrays/Float64Array.h", |
+ "typed_arrays/Int16Array.h", |
+ "typed_arrays/Int32Array.h", |
+ "typed_arrays/Int8Array.h", |
+ "typed_arrays/IntegralTypedArrayBase.h", |
+ "typed_arrays/TypedArrayBase.h", |
+ "typed_arrays/Uint16Array.h", |
+ "typed_arrays/Uint32Array.h", |
+ "typed_arrays/Uint8Array.h", |
+ ] |
configs += [ |
"//third_party/WebKit/Source:config", |
@@ -110,9 +307,42 @@ test("wtf_unittests") { |
visibility = [] # Allow re-assignment of list. |
visibility = [ "*" ] |
- sources = gypi_values.wtf_unittest_files |
- |
- sources += [ "testing/RunAllTests.cpp" ] |
+ sources = [ |
+ "ASCIICTypeTest.cpp", |
+ "AssertionsTest.cpp", |
+ "DequeTest.cpp", |
+ "FunctionalTest.cpp", |
+ "HashMapTest.cpp", |
+ "HashSetTest.cpp", |
+ "ListHashSetTest.cpp", |
+ "MakeCancellableTest.cpp", |
+ "MathExtrasTest.cpp", |
+ "OptionalTest.cpp", |
+ "PassRefPtrTest.cpp", |
+ "RefPtrTest.cpp", |
+ "SaturatedArithmeticTest.cpp", |
+ "StringExtrasTest.cpp", |
+ "StringHasherTest.cpp", |
+ "TreeNodeTest.cpp", |
+ "TypeTraitsTest.cpp", |
+ "VectorTest.cpp", |
+ "allocator/PartitionAllocTest.cpp", |
+ "dtoa_test.cpp", |
+ "testing/RunAllTests.cpp", |
+ "text/AtomicStringTest.cpp", |
+ "text/CStringTest.cpp", |
+ "text/IntegerToStringConversionTest.cpp", |
+ "text/StringBufferTest.cpp", |
+ "text/StringBuilderTest.cpp", |
+ "text/StringImplTest.cpp", |
+ "text/StringOperatorsTest.cpp", |
+ "text/StringViewTest.cpp", |
+ "text/TextCodecReplacementTest.cpp", |
+ "text/TextCodecTest.cpp", |
+ "text/TextCodecUTF8Test.cpp", |
+ "text/WTFStringTest.cpp", |
+ "typed_arrays/ArrayBufferBuilderTest.cpp", |
+ ] |
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |