Commit 815cc320 authored by brettw's avatar brettw Committed by Commit bot

Remove Blink WTF GYP files.

Inlines sources into GN build.

Review-Url: https://codereview.chromium.org/2292893003
Cr-Commit-Position: refs/heads/master@{#415411}
parent ab33c92b
......@@ -297,7 +297,6 @@ exec_script_whitelist = [
"//third_party/WebKit/Source/platform/BUILD.gn",
"//third_party/WebKit/Source/platform/platform.gni",
"//third_party/WebKit/Source/web/BUILD.gn",
"//third_party/WebKit/Source/wtf/BUILD.gn",
"//third_party/WebKit/public/BUILD.gn",
"//tools/gn/BUILD.gn",
"//tools/gn/build_settings.h",
......
......@@ -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" ]
......
# Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{
'includes': [
'../build/win/precompile.gypi',
'../build/features.gypi',
'wtf.gypi',
],
'targets': [],
'conditions': [
# Normally target should exists unconditionally and only their content
# should be conditional. Those targets are intentionally only conditionally
# visible to make sure target using blink are not part of the iOS build (as
# iOS must not depends on blink). If you get an error about this target not
# existing, then you must make the target depending on blink condition on
# OS not being iOS.
['OS!="ios"', {
'targets': [
{
# This target sets up defines and includes that are required by WTF and
# its dependents.
'target_name': 'wtf_config',
'type': 'none',
'direct_dependent_settings': {
'defines': [
# Import features_defines from features.gypi
'<@(feature_defines)',
],
'conditions': [
['OS=="win"', {
'defines': [
'__STD_C',
'_CRT_SECURE_NO_DEPRECATE',
'_SCL_SECURE_NO_DEPRECATE',
],
}],
],
},
},
{
'target_name': 'wtf',
'type': '<(component)',
'include_dirs': [
'..',
],
'dependencies': [
'wtf_config',
'../config.gyp:config',
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/third_party/icu/icu.gyp:icui18n',
'<(DEPTH)/third_party/icu/icu.gyp:icuuc',
],
'sources': [
'<@(wtf_files)',
],
'defines': [
'WTF_IMPLEMENTATION=1',
],
'direct_dependent_settings': {
'include_dirs': [
'..',
],
# Some warnings occur in WTF headers, so they must also be disabled
# in targets that use WTF.
'msvs_disabled_warnings': [
# Don't complain about calling specific versions of templatized
# functions (e.g. in RefPtrHashMap.h).
4344,
# Don't complain about using "this" in an initializer list
# (e.g. in StringImpl.h).
4355,
# Disable c4267 warnings until we fix size_t to int truncations.
4267,
],
},
'export_dependent_settings': [
'wtf_config',
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/third_party/icu/icu.gyp:icui18n',
'<(DEPTH)/third_party/icu/icu.gyp:icuuc',
],
# Disable c4267 warnings until we fix size_t to int truncations.
'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706, 4068, 4267],
'conditions': [
['OS=="android"', {
'link_settings': { 'libraries': [ '-llog' ] },
}],
['OS=="linux"', {
'link_settings': { 'libraries': [ '-ldl' ] },
}],
['OS=="win"', {
'sources/': [
['exclude', 'ThreadingPthreads\\.cpp$'],
],
'include_dirs!': [
'<(SHARED_INTERMEDIATE_DIR)/blink',
],
'conditions': [
['component=="shared_library"', {
# Chromium windows multi-dll build enables C++ exception and this
# causes wtf to generate 4291 warning due to operator new/delete
# implementations. Disable the warning for chromium windows
# multi-dll build.
'msvs_disabled_warnings': [4291],
'direct_dependent_settings': {
'msvs_disabled_warnings': [4291],
},
}],
],
}, { # OS!="win"
'sources/': [
['exclude', 'Win\\.cpp$'],
],
}],
['OS=="mac"', {
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
]
}
}, { # OS!="mac"
'sources/': [
['exclude', 'CF\\.cpp$'],
['exclude', 'Mac\\.mm$'],
# mac is the only OS that uses WebKit's copy of TCMalloc.
['exclude', 'TC.*\\.(cpp|h)$'],
],
}],
],
},
],
}],
],
}
# For GN compatibility, this file can not have any conditions.
{
'variables': {
'wtf_files': [
'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',
'MathExtras.h',
'MakeCancellable.cpp',
'MakeCancellable.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.h',
'text/StringView.cpp',
'text/TextCodec.h',
'text/TextCodec.cpp',
'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',
],
'wtf_unittest_files': [
'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',
'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/TextCodecTest.cpp',
'text/TextCodecReplacementTest.cpp',
'text/TextCodecUTF8Test.cpp',
'text/WTFStringTest.cpp',
'typed_arrays/ArrayBufferBuilderTest.cpp',
],
},
}
# Copyright (C) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{
'includes': [
'../build/win/precompile.gypi',
'wtf.gypi',
],
'targets': [
{
'target_name': 'wtf_unittests',
'type': 'executable',
'dependencies': [
'wtf.gyp:wtf',
'../config.gyp:unittest_config',
'<(DEPTH)/base/base.gyp:test_support_base',
],
'sources': [
'testing/RunAllTests.cpp',
'<@(wtf_unittest_files)',
],
# Disable c4267 warnings until we fix size_t to int truncations.
'msvs_disabled_warnings': [4127, 4510, 4512, 4610, 4706, 4068, 4267],
'conditions': [
['OS=="android"', {
'type': 'shared_library',
'dependencies': [
'<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
'<(DEPTH)/tools/android/forwarder2/forwarder.gyp:forwarder2',
],
}],
]
},
],
'conditions': [
['OS=="android" and gtest_target_type=="shared_library"', {
'targets': [{
'target_name': 'wtf_unittests_apk',
'type': 'none',
'dependencies': [
'<(DEPTH)/base/base.gyp:base_java',
'<(DEPTH)/net/net.gyp:net_java',
'wtf_unittests',
],
'variables': {
'test_suite_name': 'wtf_unittests',
},
'includes': [ '../../../../build/apk_test.gypi' ],
}],
}],
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'wtf_unittests_run',
'type': 'none',
'dependencies': [
'wtf_unittests',
],
'includes': [
'../../../../build/isolate.gypi',
],
'sources': [
'wtf_unittests.isolate',
],
},
],
}],
],
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment