OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 assert(!is_ios) | |
6 | |
7 import("//testing/test.gni") | |
8 import("//third_party/WebKit/Source/config.gni") | |
9 | |
10 visibility = [ | |
11 "//mojo/public/cpp/bindings/*", | |
12 "//third_party/WebKit/*", | |
13 ] | |
14 | |
15 config("wtf_config") { | |
16 configs = [ "//third_party/WebKit/Source/platform/wtf:wtf_config" ] | |
17 } | |
18 | |
19 component("wtf") { | |
20 sources = [ | |
21 "ASCIICType.h", | |
22 "AddressSanitizer.h", | |
23 "Alignment.h", | |
24 "Allocator.h", | |
25 "Assertions.h", | |
26 "Atomics.h", | |
27 "AutoReset.h", | |
28 "BitVector.h", | |
29 "BitwiseOperations.h", | |
30 "BloomFilter.h", | |
31 "ByteOrder.h", | |
32 "ByteSwap.h", | |
33 "CPU.h", | |
34 "CheckedNumeric.h", | |
35 "Compiler.h", | |
36 "ConditionalDestructor.h", | |
37 "ContainerAnnotations.h", | |
38 "CryptographicallyRandomNumber.h", | |
39 "CurrentTime.h", | |
40 "DataLog.h", | |
41 "DateMath.h", | |
42 "Deque.h", | |
43 "Dummy.cpp", | |
44 "DoublyLinkedList.h", | |
45 "DynamicAnnotations.h", | |
46 "FilePrintStream.h", | |
47 "Forward.h", | |
48 "Functional.h", | |
49 "GetPtr.h", | |
50 "HashCountedSet.h", | |
51 "HashFunctions.h", | |
52 "HashIterators.h", | |
53 "HashMap.h", | |
54 "HashSet.h", | |
55 "HashTable.h", | |
56 "HashTableDeletedValueType.h", | |
57 "HashTraits.h", | |
58 "HexNumber.h", | |
59 "InstanceCounter.h", | |
60 "LeakAnnotations.h", | |
61 "ListHashSet.h", | |
62 "Locker.h", | |
63 "MathExtras.h", | |
64 "NonCopyingSort.h", | |
65 "Noncopyable.h", | |
66 "NotFound.h", | |
67 "Optional.h", | |
68 "PassRefPtr.h", | |
69 "PrintStream.h", | |
70 "PtrUtil.h", | |
71 "RefCounted.h", | |
72 "RefPtr.h", | |
73 "RefVector.h", | |
74 "RetainPtr.h", | |
75 "SaturatedArithmetic.h", | |
76 "SizeAssertions.h", | |
77 "SpinLock.h", | |
78 "StackUtil.h", | |
79 "StaticConstructors.h", | |
80 "StdLibExtras.h", | |
81 "StringExtras.h", | |
82 "StringHasher.h", | |
83 "TerminatedArray.h", | |
84 "TerminatedArrayBuilder.h", | |
85 "ThreadRestrictionVerifier.h", | |
86 "ThreadSafeRefCounted.h", | |
87 "ThreadSpecific.h", | |
88 "Threading.h", | |
89 "ThreadingPrimitives.h", | |
90 "Time.h", | |
91 "TreeNode.h", | |
92 "TypeTraits.h", | |
93 "Vector.h", | |
94 "VectorTraits.h", | |
95 "WTF.h", | |
96 "WTFExport.h", | |
97 "WTFThreadData.h", | |
98 "WeakPtr.h", | |
99 "allocator/PartitionAllocator.h", | |
100 "allocator/Partitions.h", | |
101 "build_config.h", | |
102 "debug/Alias.h", | |
103 "debug/CrashLogging.h", | |
104 "dtoa.h", | |
105 "dtoa/bignum-dtoa.h", | |
106 "dtoa/bignum.h", | |
107 "dtoa/cached-powers.h", | |
108 "dtoa/diy-fp.h", | |
109 "dtoa/double-conversion.h", | |
110 "dtoa/double.h", | |
111 "dtoa/fast-dtoa.h", | |
112 "dtoa/fixed-dtoa.h", | |
113 "dtoa/strtod.h", | |
114 "dtoa/utils.h", | |
115 "text/ASCIIFastPath.h", | |
116 "text/AtomicString.h", | |
117 "text/AtomicStringHash.h", | |
118 "text/AtomicStringTable.h", | |
119 "text/Base64.h", | |
120 "text/CString.h", | |
121 "text/CharacterNames.h", | |
122 "text/Collator.h", | |
123 "text/IntegerToStringConversion.h", | |
124 "text/ParsingUtilities.h", | |
125 "text/StringBuffer.h", | |
126 "text/StringBuilder.h", | |
127 "text/StringConcatenate.h", | |
128 "text/StringHash.h", | |
129 "text/StringImpl.h", | |
130 "text/StringOperators.h", | |
131 "text/StringToNumber.h", | |
132 "text/StringUTF8Adaptor.h", | |
133 "text/StringView.h", | |
134 "text/TextCodec.h", | |
135 "text/TextCodecASCIIFastPath.h", | |
136 "text/TextCodecLatin1.h", | |
137 "text/TextCodecReplacement.h", | |
138 "text/TextCodecUTF16.h", | |
139 "text/TextCodecUTF8.h", | |
140 "text/TextCodecUserDefined.h", | |
141 "text/TextEncoding.h", | |
142 "text/TextEncodingRegistry.h", | |
143 "text/TextPosition.h", | |
144 "text/UTF8.h", | |
145 "text/Unicode.h", | |
146 "text/WTFString.h", | |
147 "text/icu/UnicodeIcu.h", | |
148 "typed_arrays/ArrayBuffer.h", | |
149 "typed_arrays/ArrayBufferBuilder.h", | |
150 "typed_arrays/ArrayBufferContents.h", | |
151 "typed_arrays/ArrayBufferView.h", | |
152 "typed_arrays/ArrayPiece.h", | |
153 "typed_arrays/Float32Array.h", | |
154 "typed_arrays/Float64Array.h", | |
155 "typed_arrays/Int16Array.h", | |
156 "typed_arrays/Int32Array.h", | |
157 "typed_arrays/Int8Array.h", | |
158 "typed_arrays/IntegralTypedArrayBase.h", | |
159 "typed_arrays/TypedArrayBase.h", | |
160 "typed_arrays/Uint16Array.h", | |
161 "typed_arrays/Uint32Array.h", | |
162 "typed_arrays/Uint8Array.h", | |
163 "typed_arrays/Uint8ClampedArray.h", | |
164 ] | |
165 | |
166 configs += [ | |
167 "//third_party/WebKit/Source:config", | |
168 "//third_party/WebKit/Source:non_test_config", | |
169 "//third_party/WebKit/Source:blink_pch", | |
170 ] | |
171 | |
172 defines = [ "WTF_IMPLEMENTATION=1" ] | |
173 | |
174 public_configs = [ | |
175 ":wtf_config", | |
176 | |
177 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
178 "//build/config/compiler:no_size_t_to_int_warning", | |
179 "//third_party/WebKit/Source:features", | |
180 ] | |
181 | |
182 public_deps = [ | |
183 "//base", | |
184 "//third_party/WebKit/Source/platform/wtf:platform_wtf", | |
185 "//third_party/icu", | |
186 ] | |
187 | |
188 if (is_android) { | |
189 libs = [ "log" ] | |
190 } | |
191 if (is_linux) { | |
192 libs = [ "dl" ] | |
193 } | |
194 | |
195 if (is_mac) { | |
196 libs = [ | |
197 "CoreFoundation.framework", | |
198 "Foundation.framework", | |
199 ] | |
200 } | |
201 | |
202 if (remove_webcore_debug_symbols) { | |
203 configs -= [ "//build/config/compiler:default_symbols" ] | |
204 configs += [ "//build/config/compiler:no_symbols" ] | |
205 } | |
206 } | |
OLD | NEW |