Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: third_party/WebKit/Source/wtf/BUILD.gn

Issue 2774333002: Revert "Move files in wtf/ to platform/wtf/" (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 assert(!is_ios) 5 assert(!is_ios)
6 6
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//third_party/WebKit/Source/config.gni") 8 import("//third_party/WebKit/Source/config.gni")
9 9
10 visibility = [ 10 visibility = [
(...skipping 20 matching lines...) Expand all
31 "ByteOrder.h", 31 "ByteOrder.h",
32 "ByteSwap.h", 32 "ByteSwap.h",
33 "CPU.h", 33 "CPU.h",
34 "CheckedNumeric.h", 34 "CheckedNumeric.h",
35 "Compiler.h", 35 "Compiler.h",
36 "ConditionalDestructor.h", 36 "ConditionalDestructor.h",
37 "ContainerAnnotations.h", 37 "ContainerAnnotations.h",
38 "CryptographicallyRandomNumber.h", 38 "CryptographicallyRandomNumber.h",
39 "CurrentTime.h", 39 "CurrentTime.h",
40 "DataLog.h", 40 "DataLog.h",
41 "DateMath.cpp",
41 "DateMath.h", 42 "DateMath.h",
42 "Deque.h", 43 "Deque.h",
43 "DoublyLinkedList.h", 44 "DoublyLinkedList.h",
44 "Dummy.cpp",
45 "DynamicAnnotations.h", 45 "DynamicAnnotations.h",
46 "FilePrintStream.cpp",
46 "FilePrintStream.h", 47 "FilePrintStream.h",
47 "Forward.h", 48 "Forward.h",
48 "Functional.h", 49 "Functional.h",
49 "GetPtr.h", 50 "GetPtr.h",
50 "HashCountedSet.h", 51 "HashCountedSet.h",
51 "HashFunctions.h", 52 "HashFunctions.h",
52 "HashIterators.h", 53 "HashIterators.h",
53 "HashMap.h", 54 "HashMap.h",
54 "HashSet.h", 55 "HashSet.h",
55 "HashTable.h", 56 "HashTable.h",
56 "HashTableDeletedValueType.h", 57 "HashTableDeletedValueType.h",
57 "HashTraits.h", 58 "HashTraits.h",
58 "HexNumber.h", 59 "HexNumber.h",
60 "InstanceCounter.cpp",
59 "InstanceCounter.h", 61 "InstanceCounter.h",
60 "LeakAnnotations.h", 62 "LeakAnnotations.h",
61 "ListHashSet.h", 63 "ListHashSet.h",
62 "Locker.h", 64 "Locker.h",
63 "MathExtras.h", 65 "MathExtras.h",
64 "NonCopyingSort.h", 66 "NonCopyingSort.h",
65 "Noncopyable.h", 67 "Noncopyable.h",
66 "NotFound.h", 68 "NotFound.h",
67 "Optional.h", 69 "Optional.h",
68 "PassRefPtr.h", 70 "PassRefPtr.h",
71 "PrintStream.cpp",
69 "PrintStream.h", 72 "PrintStream.h",
70 "PtrUtil.h", 73 "PtrUtil.h",
71 "RefCounted.h", 74 "RefCounted.h",
72 "RefPtr.h", 75 "RefPtr.h",
73 "RefVector.h", 76 "RefVector.h",
74 "RetainPtr.h", 77 "RetainPtr.h",
75 "SaturatedArithmetic.h", 78 "SaturatedArithmetic.h",
76 "SizeAssertions.h", 79 "SizeAssertions.h",
80 "SizeLimits.cpp",
77 "SpinLock.h", 81 "SpinLock.h",
82 "StackUtil.cpp",
78 "StackUtil.h", 83 "StackUtil.h",
79 "StaticConstructors.h", 84 "StaticConstructors.h",
80 "StdLibExtras.h", 85 "StdLibExtras.h",
81 "StringExtras.h", 86 "StringExtras.h",
82 "StringHasher.h", 87 "StringHasher.h",
83 "TerminatedArray.h", 88 "TerminatedArray.h",
84 "TerminatedArrayBuilder.h", 89 "TerminatedArrayBuilder.h",
85 "ThreadRestrictionVerifier.h", 90 "ThreadRestrictionVerifier.h",
86 "ThreadSafeRefCounted.h", 91 "ThreadSafeRefCounted.h",
87 "ThreadSpecific.h", 92 "ThreadSpecific.h",
93 "ThreadSpecificWin.cpp",
88 "Threading.h", 94 "Threading.h",
89 "ThreadingPrimitives.h", 95 "ThreadingPrimitives.h",
96 "ThreadingPthreads.cpp",
97 "ThreadingWin.cpp",
90 "Time.h", 98 "Time.h",
91 "TreeNode.h", 99 "TreeNode.h",
92 "TypeTraits.h", 100 "TypeTraits.h",
93 "Vector.h", 101 "Vector.h",
94 "VectorTraits.h", 102 "VectorTraits.h",
103 "WTF.cpp",
95 "WTF.h", 104 "WTF.h",
96 "WTFExport.h", 105 "WTFExport.h",
106 "WTFThreadData.cpp",
97 "WTFThreadData.h", 107 "WTFThreadData.h",
98 "WeakPtr.h", 108 "WeakPtr.h",
99 "allocator/PartitionAllocator.h", 109 "allocator/PartitionAllocator.h",
100 "allocator/Partitions.h", 110 "allocator/Partitions.h",
101 "build_config.h", 111 "build_config.h",
102 "debug/Alias.h", 112 "debug/Alias.h",
103 "debug/CrashLogging.h", 113 "debug/CrashLogging.h",
104 "dtoa.h", 114 "dtoa.h",
105 "dtoa/bignum-dtoa.h", 115 "dtoa/bignum-dtoa.h",
106 "dtoa/bignum.h", 116 "dtoa/bignum.h",
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 "//build/config/compiler:no_size_t_to_int_warning", 188 "//build/config/compiler:no_size_t_to_int_warning",
179 "//third_party/WebKit/Source:features", 189 "//third_party/WebKit/Source:features",
180 ] 190 ]
181 191
182 public_deps = [ 192 public_deps = [
183 "//base", 193 "//base",
184 "//third_party/WebKit/Source/platform/wtf:platform_wtf", 194 "//third_party/WebKit/Source/platform/wtf:platform_wtf",
185 "//third_party/icu", 195 "//third_party/icu",
186 ] 196 ]
187 197
198 if (is_win) {
199 sources -= [ "ThreadingPthreads.cpp" ]
200
201 cflags = [ "/wd4068" ] # Unknown pragma.
202 } else {
203 # Non-Windows.
204 sources -= [
205 "ThreadSpecificWin.cpp",
206 "ThreadingWin.cpp",
207 ]
208 }
209
188 if (is_android) { 210 if (is_android) {
189 libs = [ "log" ] 211 libs = [ "log" ]
190 } 212 }
191 if (is_linux) { 213 if (is_linux) {
192 libs = [ "dl" ] 214 libs = [ "dl" ]
193 } 215 }
194 216
195 if (is_mac) { 217 if (is_mac) {
196 libs = [ 218 libs = [
197 "CoreFoundation.framework", 219 "CoreFoundation.framework",
198 "Foundation.framework", 220 "Foundation.framework",
199 ] 221 ]
200 } 222 }
201 223
202 if (remove_webcore_debug_symbols) { 224 if (remove_webcore_debug_symbols) {
203 configs -= [ "//build/config/compiler:default_symbols" ] 225 configs -= [ "//build/config/compiler:default_symbols" ]
204 configs += [ "//build/config/compiler:no_symbols" ] 226 configs += [ "//build/config/compiler:no_symbols" ]
205 } 227 }
206 } 228 }
229
230 test("wtf_unittests") {
231 visibility = [] # Allow re-assignment of list.
232 visibility = [ "*" ]
233
234 sources = [
235 "ASCIICTypeTest.cpp",
236 "AssertionsTest.cpp",
237 "DequeTest.cpp",
238 "FunctionalTest.cpp",
239 "HashMapTest.cpp",
240 "HashSetTest.cpp",
241 "ListHashSetTest.cpp",
242 "MathExtrasTest.cpp",
243 "OptionalTest.cpp",
244 "PassRefPtrTest.cpp",
245 "RefPtrTest.cpp",
246 "StringExtrasTest.cpp",
247 "StringHasherTest.cpp",
248 "TimeTest.cpp",
249 "TreeNodeTest.cpp",
250 "TypeTraitsTest.cpp",
251 "VectorTest.cpp",
252 "dtoa_test.cpp",
253 "testing/RunAllTests.cpp",
254 "text/AtomicStringTest.cpp",
255 "text/CStringTest.cpp",
256 "text/IntegerToStringConversionTest.cpp",
257 "text/StringBufferTest.cpp",
258 "text/StringBuilderTest.cpp",
259 "text/StringImplTest.cpp",
260 "text/StringOperatorsTest.cpp",
261 "text/StringToNumberTest.cpp",
262 "text/StringViewTest.cpp",
263 "text/TextCodecICUTest.cpp",
264 "text/TextCodecLatin1Test.cpp",
265 "text/TextCodecReplacementTest.cpp",
266 "text/TextCodecTest.cpp",
267 "text/TextCodecUTF8Test.cpp",
268 "text/TextCodecUserDefinedTest.cpp",
269 "text/TextEncodingTest.cpp",
270 "text/WTFStringTest.cpp",
271 "typed_arrays/ArrayBufferBuilderTest.cpp",
272 ]
273
274 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
275 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
276
277 if (is_win) {
278 cflags = [ "/wd4068" ] # Unknown pragma.
279 }
280
281 configs += [
282 "//third_party/WebKit/Source:config",
283 "//third_party/WebKit/Source:blink_pch",
284 ]
285
286 deps = [
287 ":wtf",
288 "//base",
289 "//base/test:test_support",
290 "//testing/gmock",
291 "//testing/gtest",
292 ]
293 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/AssertionsTest.cpp ('k') | third_party/WebKit/Source/wtf/BloomFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698