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

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

Issue 2703633003: Add initial BUILD.gn in platform/wtf/, and move first a few files there. (Closed)
Patch Set: Give Source/platform/ priority over Source/. 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 = [
11 "//mojo/public/cpp/bindings/*", 11 "//mojo/public/cpp/bindings/*",
12 "//third_party/WebKit/*", 12 "//third_party/WebKit/*",
13 ] 13 ]
14 14
15 config("wtf_config") { 15 config("wtf_config") {
16 if (is_win) { 16 configs = [ "//third_party/WebKit/Source/platform/wtf:wtf_config" ]
17 defines = [
18 "__STD_C",
19 "_CRT_SECURE_NO_DEPRECATE",
20 "_SCL_SECURE_NO_DEPRECATE",
21 ]
22 include_dirs = [ "os-win32" ]
23
24 cflags = [
25 # Don't complain about calling specific versions of templatized
26 # functions (e.g. in RefPtrHashMap.h).
27 "/wd4344",
28
29 # dtoa, icu, etc. like doing assignment within conditional.
30 "/wd4706",
31 ]
32
33 if (is_component_build) {
34 # Chromium windows multi-dll build enables C++ exceptions and this causes
35 # wtf to generate 4291 warning due to operator new/delete
36 # implementations. Disable the warning for chromium windows multi-dll
37 # build.
38 cflags += [ "/wd4291" ]
39 }
40 }
41 } 17 }
42 18
43 component("wtf") { 19 component("wtf") {
44 sources = [ 20 sources = [
45 "ASCIICType.cpp", 21 "ASCIICType.cpp",
46 "ASCIICType.h", 22 "ASCIICType.h",
47 "AddressSanitizer.h", 23 "AddressSanitizer.h",
48 "Alignment.h", 24 "Alignment.h",
49 "Allocator.h", 25 "Allocator.h",
50 "Assertions.cpp", 26 "Assertions.cpp",
51 "Assertions.h", 27 "Assertions.h",
52 "Atomics.h", 28 "Atomics.h",
53 "AutoReset.h", 29 "AutoReset.h",
54 "BitVector.cpp", 30 "BitVector.cpp",
55 "BitVector.h", 31 "BitVector.h",
56 "BitwiseOperations.h", 32 "BitwiseOperations.h",
57 "BloomFilter.h", 33 "BloomFilter.h",
58 "ByteOrder.h", 34 "ByteOrder.h",
59 "ByteSwap.h", 35 "ByteSwap.h",
60 "CPU.h", 36 "CPU.h",
61 "CheckedNumeric.h", 37 "CheckedNumeric.h",
62 "Compiler.h", 38 "Compiler.h",
63 "ConditionalDestructor.h", 39 "ConditionalDestructor.h",
64 "ContainerAnnotations.h", 40 "ContainerAnnotations.h",
65 "CryptographicallyRandomNumber.cpp",
66 "CryptographicallyRandomNumber.h", 41 "CryptographicallyRandomNumber.h",
67 "CurrentTime.cpp", 42 "CurrentTime.cpp",
68 "CurrentTime.h", 43 "CurrentTime.h",
69 "DataLog.cpp", 44 "DataLog.cpp",
70 "DataLog.h", 45 "DataLog.h",
71 "DateMath.cpp", 46 "DateMath.cpp",
72 "DateMath.h", 47 "DateMath.h",
73 "Deque.h", 48 "Deque.h",
74 "DoublyLinkedList.h", 49 "DoublyLinkedList.h",
75 "DynamicAnnotations.cpp", 50 "DynamicAnnotations.cpp",
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 public_configs = [ 226 public_configs = [
252 ":wtf_config", 227 ":wtf_config",
253 228
254 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 229 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
255 "//build/config/compiler:no_size_t_to_int_warning", 230 "//build/config/compiler:no_size_t_to_int_warning",
256 "//third_party/WebKit/Source:features", 231 "//third_party/WebKit/Source:features",
257 ] 232 ]
258 233
259 public_deps = [ 234 public_deps = [
260 "//base", 235 "//base",
236 "//third_party/WebKit/Source/platform/wtf:platform_wtf",
261 "//third_party/icu", 237 "//third_party/icu",
262 ] 238 ]
263 239
264 if (is_win) { 240 if (is_win) {
265 sources -= [ "ThreadingPthreads.cpp" ] 241 sources -= [ "ThreadingPthreads.cpp" ]
266 242
267 cflags = [ "/wd4068" ] # Unknown pragma. 243 cflags = [ "/wd4068" ] # Unknown pragma.
268 } else { 244 } else {
269 # Non-Windows. 245 # Non-Windows.
270 sources -= [ 246 sources -= [
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 ] 331 ]
356 332
357 deps = [ 333 deps = [
358 ":wtf", 334 ":wtf",
359 "//base", 335 "//base",
360 "//base/test:test_support", 336 "//base/test:test_support",
361 "//testing/gmock", 337 "//testing/gmock",
362 "//testing/gtest", 338 "//testing/gtest",
363 ] 339 ]
364 } 340 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698