Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 config("wtf-config") { | |
| 2 includes = [ ".." ] | |
| 3 if (is_win) { | |
| 4 includes += [ "os-win32" ] | |
| 5 defines += [ | |
| 6 "__STD_C", | |
| 7 "_CRT_SECURE_NO_DEPRECATE", | |
| 8 "_SCL_SECURE_NO_DEPRECATE", | |
| 9 "CRASH=__debugbreak", | |
| 10 ] | |
| 11 # # Chromium windows multi-dll build enables c++ exception and this | |
| 12 # # causes wtf generates 4291 warning due to operator new/delete | |
| 13 # # implementations. Disable the warning for chromium windows | |
| 14 # # multi-dll build. | |
| 15 # 'msvs_disabled_warnings': [4291], | |
|
jamesr
2013/10/02 09:07:02
what does msvs_disabled_warnings map to?
Nico
2013/10/02 15:56:30
winja gyp translates it to /wd4291 in the compiler
brettw
2013/10/18 17:38:54
Remember that this is executed multiple times, onc
| |
| 16 # 'direct_dependent_settings': { | |
| 17 # 'msvs_disabled_warnings': [4291], | |
| 18 # }, | |
| 19 } | |
| 20 | |
| 21 # if (gcc_version >= 46) { | |
|
jamesr
2013/10/02 09:07:02
do we have a way to query this? i tried to read ab
Nico
2013/10/02 15:56:30
Brett?
| |
| 22 # # Disable warnings about c++0x compatibility, as some names (such as | |
| 23 # # nullptr) conflict with upcoming c++0x types. | |
| 24 # cflags_cc += [ "-Wno-c++0x-compat" ] | |
| 25 # } | |
| 26 | |
| 27 # # Some warnings occur in WTF headers, so they must also be disabled | |
| 28 # # in targets that use WTF. | |
| 29 # 'msvs_disabled_warnings': [ | |
| 30 # # Don't complain about calling specific versions of templatized | |
| 31 # # functions (e.g. in RefPtrHashMap.h). | |
| 32 # 4344, | |
| 33 # # Don't complain about using "this" in an initializer list | |
| 34 # # (e.g. in StringImpl.h). | |
| 35 # 4355, | |
| 36 # # Disable c4267 warnings until we fix size_t to int truncations. | |
| 37 # 4267, | |
| 38 # ], | |
| 39 | |
| 40 } | |
| 41 | |
| 42 component("wtf") { | |
| 43 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 44 configs += [ | |
| 45 "//build/config/compiler:no_chromium_code", | |
| 46 ":wtf-config" | |
|
Nico
2013/10/02 15:56:30
Is the order here important? You put ":wtf-config"
| |
| 47 ] | |
| 48 | |
| 49 defines = [ "WTF_IMPLEMENTATION=1" ] | |
| 50 deps = [ | |
| 51 "//third_party/icu:icui18n", | |
| 52 "//third_party/icu:icuuc", | |
| 53 ] | |
| 54 | |
| 55 sources = [ | |
| 56 "ASCIICType.h", | |
| 57 "Alignment.h", | |
| 58 "ArrayBuffer.cpp", | |
| 59 "ArrayBuffer.h", | |
| 60 "ArrayBufferContents.cpp", | |
| 61 "ArrayBufferContents.h", | |
| 62 "ArrayBufferDeallocationObserver.h", | |
| 63 "ArrayBufferView.cpp", | |
| 64 "ArrayBufferView.h", | |
| 65 "Assertions.cpp", | |
| 66 "Assertions.h", | |
| 67 "Atomics.h", | |
| 68 "AutodrainedPool.h", | |
| 69 "BitArray.h", | |
| 70 "BitVector.cpp", | |
| 71 "BitVector.h", | |
| 72 "BloomFilter.h", | |
| 73 "ByteOrder.h", | |
| 74 "CPU.h", | |
| 75 "CheckedArithmetic.h", | |
| 76 "Compiler.h", | |
| 77 "Complex.h", | |
| 78 "CryptographicallyRandomNumber.cpp", | |
| 79 "CryptographicallyRandomNumber.h", | |
| 80 "CurrentTime.cpp", | |
| 81 "CurrentTime.h", | |
| 82 "DataLog.cpp", | |
| 83 "DataLog.h", | |
| 84 "DateMath.cpp", | |
| 85 "DateMath.h", | |
| 86 "DecimalNumber.cpp", | |
| 87 "DecimalNumber.h", | |
| 88 "Deque.h", | |
| 89 "DoublyLinkedList.h", | |
| 90 "DynamicAnnotations.cpp", | |
| 91 "DynamicAnnotations.h", | |
| 92 "FastAllocBase.h", | |
| 93 "FastMalloc.cpp", | |
| 94 "FastMalloc.h", | |
| 95 "FilePrintStream.cpp", | |
| 96 "FilePrintStream.h", | |
| 97 "Float32Array.h", | |
| 98 "Float64Array.h", | |
| 99 "Forward.h", | |
| 100 "Functional.h", | |
| 101 "GetPtr.h", | |
| 102 "GregorianDateTime.cpp", | |
| 103 "GregorianDateTime.h", | |
| 104 "HashCountedSet.h", | |
| 105 "HashFunctions.h", | |
| 106 "HashIterators.h", | |
| 107 "HashMap.h", | |
| 108 "HashSet.h", | |
| 109 "HashTable.cpp", | |
| 110 "HashTable.h", | |
| 111 "HashTableDeletedValueType.h", | |
| 112 "HashTraits.h", | |
| 113 "HexNumber.h", | |
| 114 "Int16Array.h", | |
| 115 "Int32Array.h", | |
| 116 "Int8Array.h", | |
| 117 "IntegralTypedArrayBase.h", | |
| 118 "LeakAnnotations.h", | |
| 119 "LinkedStack.h", | |
| 120 "ListHashSet.h", | |
| 121 "Locker.h", | |
| 122 "MainThread.cpp", | |
| 123 "MainThread.h", | |
| 124 "MallocZoneSupport.h", | |
| 125 "MathExtras.h", | |
| 126 "MessageQueue.h", | |
| 127 "NonCopyingSort.h", | |
| 128 "Noncopyable.h", | |
| 129 "NotFound.h", | |
| 130 "NullPtr.cpp", | |
| 131 "NullPtr.h", | |
| 132 "NumberOfCores.cpp", | |
| 133 "NumberOfCores.h", | |
| 134 "OwnArrayPtr.h", | |
| 135 "OwnPtr.h", | |
| 136 "OwnPtrCommon.h", | |
| 137 "PageAllocator.cpp", | |
| 138 "PageAllocator.h", | |
| 139 "ParallelJobs.h", | |
| 140 "ParallelJobsGeneric.cpp", | |
| 141 "ParallelJobsGeneric.h", | |
| 142 "ParallelJobsLibdispatch.h", | |
| 143 "PartitionAlloc.cpp", | |
| 144 "PartitionAlloc.h", | |
| 145 "PassOwnArrayPtr.h", | |
| 146 "PassOwnPtr.h", | |
| 147 "PassRefPtr.h", | |
| 148 "PassTraits.h", | |
| 149 "PrintStream.cpp", | |
| 150 "PrintStream.h", | |
| 151 "ProcessID.h", | |
| 152 "QuantizedAllocation.cpp", | |
| 153 "QuantizedAllocation.h", | |
| 154 "RandomNumber.cpp", | |
| 155 "RandomNumber.h", | |
| 156 "RandomNumberSeed.h", | |
| 157 "RefCounted.h", | |
| 158 "RefCountedLeakCounter.cpp", | |
| 159 "RefCountedLeakCounter.h", | |
| 160 "RefPtr.h", | |
| 161 "RefPtrHashMap.h", | |
| 162 "RetainPtr.h", | |
| 163 "SHA1.cpp", | |
| 164 "SHA1.h", | |
| 165 "SaturatedArithmetic.h", | |
| 166 "SizeLimits.cpp", | |
| 167 "SpinLock.h", | |
| 168 "StaticConstructors.h", | |
| 169 "StdLibExtras.h", | |
| 170 "StringExtras.h", | |
| 171 "StringHasher.h", | |
| 172 "TemporaryChange.h", | |
| 173 "ThreadFunctionInvocation.h", | |
| 174 "ThreadRestrictionVerifier.h", | |
| 175 "ThreadSafeRefCounted.h", | |
| 176 "ThreadSpecific.h", | |
| 177 "Threading.cpp", | |
| 178 "Threading.h", | |
| 179 "ThreadingPrimitives.h", | |
| 180 "TypeTraits.cpp", | |
| 181 "TypeTraits.h", | |
| 182 "TypedArrayBase.h", | |
| 183 "Uint16Array.h", | |
| 184 "Uint32Array.h", | |
| 185 "Uint8Array.h", | |
| 186 "UnusedParam.h", | |
| 187 "VMTags.h", | |
| 188 "Vector.h", | |
| 189 "VectorTraits.h", | |
| 190 "WTF.cpp", | |
| 191 "WTF.h", | |
| 192 "WTFExport.h", | |
| 193 "WTFThreadData.cpp", | |
| 194 "WTFThreadData.h", | |
| 195 "WeakPtr.h", | |
| 196 "dtoa.cpp", | |
| 197 "dtoa.h", | |
| 198 "dtoa/bignum-dtoa.cc", | |
| 199 "dtoa/bignum-dtoa.h", | |
| 200 "dtoa/bignum.cc", | |
| 201 "dtoa/bignum.h", | |
| 202 "dtoa/cached-powers.cc", | |
| 203 "dtoa/cached-powers.h", | |
| 204 "dtoa/diy-fp.cc", | |
| 205 "dtoa/diy-fp.h", | |
| 206 "dtoa/double-conversion.cc", | |
| 207 "dtoa/double-conversion.h", | |
| 208 "dtoa/double.h", | |
| 209 "dtoa/fast-dtoa.cc", | |
| 210 "dtoa/fast-dtoa.h", | |
| 211 "dtoa/fixed-dtoa.cc", | |
| 212 "dtoa/fixed-dtoa.h", | |
| 213 "dtoa/strtod.cc", | |
| 214 "dtoa/strtod.h", | |
| 215 "dtoa/utils.h", | |
| 216 "text/ASCIIFastPath.h", | |
| 217 "text/AtomicString.cpp", | |
| 218 "text/AtomicString.h", | |
| 219 "text/AtomicStringHash.h", | |
| 220 "text/Base64.cpp", | |
| 221 "text/Base64.h", | |
| 222 "text/CString.cpp", | |
| 223 "text/CString.h", | |
| 224 "text/IntegerToStringConversion.h", | |
| 225 "text/StringBuffer.h", | |
| 226 "text/StringBuilder.cpp", | |
| 227 "text/StringBuilder.h", | |
| 228 "text/StringConcatenate.h", | |
| 229 "text/StringHash.h", | |
| 230 "text/StringImpl.cpp", | |
| 231 "text/StringImpl.h", | |
| 232 "text/StringOperators.h", | |
| 233 "text/StringStatics.cpp", | |
| 234 "text/StringUTF8Adaptor.h", | |
| 235 "text/StringView.h", | |
| 236 "text/TextCodec.cpp", | |
| 237 "text/TextCodecASCIIFastPath.h", | |
| 238 "text/TextCodecICU.cpp", | |
| 239 "text/TextCodecLatin1.cpp", | |
| 240 "text/TextCodecUTF16.cpp", | |
| 241 "text/TextCodecUTF8.cpp", | |
| 242 "text/TextCodecUTF8.h", | |
| 243 "text/TextCodecUserDefined.cpp", | |
| 244 "text/TextEncoding.cpp", | |
| 245 "text/TextEncodingRegistry.cpp", | |
| 246 "text/TextPosition.cpp", | |
| 247 "text/TextPosition.h", | |
| 248 "text/WTFString.cpp", | |
| 249 "text/WTFString.h", | |
| 250 "unicode/CharacterNames.h", | |
| 251 "unicode/Collator.h", | |
| 252 "unicode/UTF8.cpp", | |
| 253 "unicode/UTF8.h", | |
| 254 "unicode/Unicode.h", | |
| 255 "unicode/icu/CollatorICU.cpp", | |
| 256 "unicode/icu/UnicodeIcu.h", | |
| 257 ] | |
| 258 | |
| 259 # # Disable c4267 warnings until we fix size_t to int truncations. | |
| 260 # 'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706, 4068, 4267], | |
| 261 | |
| 262 if (is_android) { | |
| 263 ldflags += [ "-llog" ] | |
| 264 } | |
| 265 | |
| 266 if (is_mac) { | |
| 267 # 'link_settings': { | |
| 268 # 'libraries': [ | |
| 269 # '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | |
|
jamesr
2013/10/02 09:07:02
i dunno what this does, so i dunno what it's suppo
| |
| 270 # '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
| 271 # ] | |
| 272 # } | |
| 273 sources += [ | |
| 274 # mac is the only OS that uses WebKit's copy of TCMalloc. | |
| 275 "TCPackedCache.h", | |
| 276 "TCPageMap.h", | |
| 277 "TCSpinLock.h", | |
| 278 "TCSystemAlloc.cpp", | |
| 279 "TCSystemAlloc.h", | |
| 280 | |
| 281 "AutodrainedPoolMac.mm", | |
| 282 "text/AtomicStringCF.cpp", | |
| 283 "text/StringCF.cpp", | |
| 284 "text/StringImplCF.cpp", | |
| 285 "text/StringImplMac.mm", | |
| 286 "text/StringMac.mm", | |
| 287 ] | |
| 288 } | |
| 289 | |
| 290 if (is_win) { | |
| 291 sources += [ | |
| 292 "ThreadSpecificWin.cpp", | |
| 293 "ThreadingWin.cpp", | |
| 294 ] | |
| 295 includes -= [ | |
| 296 # "<(SHARED_INTERMEDIATE_DIR)/blink', | |
|
jamesr
2013/10/02 09:07:02
<(SHARED_INTERMEDIATE_DIR) is replaced with rebase
| |
| 297 ] | |
| 298 if (is_component_build) { | |
|
jamesr
2013/10/02 09:07:02
whoops, no idea why this is here
| |
| 299 } | |
| 300 } else { | |
| 301 sources += [ | |
| 302 "ThreadIdentifierDataPthreads.cpp", | |
| 303 "ThreadIdentifierDataPthreads.h", | |
| 304 "ThreadingPthreads.cpp", | |
| 305 ] | |
| 306 } | |
| 307 } | |
| 308 | |
| 309 static_library("run_all_tests") { | |
| 310 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 311 configs += [ | |
| 312 "//build/config/compiler:no_chromium_code", | |
| 313 ":wtf-config" | |
|
Nico
2013/10/02 15:56:30
indent
| |
| 314 ] | |
| 315 | |
| 316 deps = [ | |
| 317 "//base:test_support_base", | |
| 318 "//testing:gmock", | |
| 319 "//testing:gtest", | |
| 320 ":wtf" | |
| 321 ] | |
| 322 | |
| 323 direct_dependent_configs = [ | |
| 324 "//testing:gtest_config" | |
| 325 ] | |
| 326 | |
| 327 sources = [ | |
| 328 "testing/RunAllTests.cpp", | |
| 329 ] | |
| 330 } | |
| 331 | |
| 332 executable("wtf_unittests") { | |
| 333 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 334 configs += [ | |
| 335 ":wtf-config" | |
|
Nico
2013/10/02 15:56:30
indent
| |
| 336 "//build/config/compiler:no_chromium_code", | |
| 337 "//third_party/icu:icu_config", | |
| 338 ] | |
| 339 | |
| 340 deps = [ | |
| 341 ":run_all_tests" | |
| 342 ] | |
| 343 | |
| 344 sources = [ | |
| 345 "CheckedArithmeticTest.cpp", | |
| 346 "FunctionalTest.cpp", | |
| 347 "HashMapTest.cpp", | |
| 348 "HashSetTest.cpp", | |
| 349 "ListHashSetTest.cpp", | |
| 350 "MathExtrasTest.cpp", | |
| 351 "PartitionAllocTest.cpp", | |
| 352 "SHA1Test.cpp", | |
| 353 "SaturatedArithmeticTest.cpp", | |
| 354 "SpinLockTest.cpp", | |
| 355 "StringExtrasTest.cpp", | |
| 356 "StringHasherTest.cpp", | |
| 357 "TemporaryChangeTest.cpp", | |
| 358 "VectorTest.cpp", | |
| 359 "testing/WTFTestHelpers.h", | |
| 360 "text/CStringTest.cpp", | |
| 361 "text/StringBuilderTest.cpp", | |
| 362 "text/StringImplTest.cpp", | |
| 363 "text/StringOperatorsTest.cpp", | |
| 364 "text/WTFStringTest.cpp", | |
| 365 ] | |
| 366 | |
| 367 # # Disable c4267 warnings until we fix size_t to int truncations. | |
| 368 # 'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706, 4068, 4267], | |
| 369 | |
| 370 # if (is_linux && use_tcmalloc) { | |
|
jamesr
2013/10/02 09:07:02
it looks like we don't have the tcmalloc targets s
| |
| 371 # deps += [ | |
| 372 # "//base:base", | |
| 373 # "//base/allocator:allocator", | |
| 374 # ], | |
| 375 # } | |
| 376 } | |
| OLD | NEW |