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

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

Issue 2822953002: Remove old wtf/ directory. (Closed)
Patch Set: Fixup *.typemap files. Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 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 # The below is a temporary setup during the WTF migration project:
6 # https://groups.google.com/a/chromium.org/d/msg/blink-dev/tLdAZCTlcAA/bYXVT8gYC AAJ
7 #
8 # We are moving wtf/ files to platform/wtf/ incrementally, thus, conceptually,
9 # the "wtf" target in wtf/BUILD.gn is being split into two, in a way that
10 # only wtf/ can refer the contents in platform/wtf/.
11 #
12 # To achieve this, we introduce a new target "platform_wtf" here, and configure
13 # it so the source files are compiled in the same way as the original "wtf"
14 # target. This gn file should only be used from wtf/BUILD.gn, and this
15 # restriction is enforced by the visibility rule below (but it's okay to
16 # #include a header in this directory from core/ or modules/).
17 #
18 # The following configurations are mostly copied from wtf/BUILD.gn, so we
19 # can build the source files in the same way.
20 #
21 # When we finish moving all the files, "platform_wtf" target will take over
22 # the role of "wtf".
23
24 assert(!is_ios) 5 assert(!is_ios)
25 6
26 import("//testing/test.gni") 7 import("//testing/test.gni")
27 import("//third_party/WebKit/Source/config.gni") 8 import("//third_party/WebKit/Source/config.gni")
28 9
29 visibility = [ 10 visibility = [
30 ":*", 11 ":*",
31 "//third_party/WebKit/Source/wtf/*", 12 "//mojo/public/cpp/bindings/*",
13 "//third_party/WebKit/*",
32 ] 14 ]
33 15
34 config("wtf_config") { 16 config("wtf_config") {
35 if (is_win) { 17 if (is_win) {
36 defines = [ 18 defines = [
37 "__STD_C", 19 "__STD_C",
38 "_CRT_SECURE_NO_DEPRECATE", 20 "_CRT_SECURE_NO_DEPRECATE",
39 "_SCL_SECURE_NO_DEPRECATE", 21 "_SCL_SECURE_NO_DEPRECATE",
40 ] 22 ]
41 include_dirs = [ "os-win32" ] 23 include_dirs = [ "os-win32" ]
(...skipping 10 matching lines...) Expand all
52 if (is_component_build) { 34 if (is_component_build) {
53 # Chromium windows multi-dll build enables C++ exceptions and this causes 35 # Chromium windows multi-dll build enables C++ exceptions and this causes
54 # wtf to generate 4291 warning due to operator new/delete 36 # wtf to generate 4291 warning due to operator new/delete
55 # implementations. Disable the warning for chromium windows multi-dll 37 # implementations. Disable the warning for chromium windows multi-dll
56 # build. 38 # build.
57 cflags += [ "/wd4291" ] 39 cflags += [ "/wd4291" ]
58 } 40 }
59 } 41 }
60 } 42 }
61 43
62 component("platform_wtf") { 44 component("wtf") {
63 sources = [ 45 sources = [
64 "ASCIICType.cpp", 46 "ASCIICType.cpp",
65 "ASCIICType.h", 47 "ASCIICType.h",
66 "AddressSanitizer.h", 48 "AddressSanitizer.h",
67 "Alignment.h", 49 "Alignment.h",
68 "Allocator.h", 50 "Allocator.h",
69 "Assertions.cpp", 51 "Assertions.cpp",
70 "Assertions.h", 52 "Assertions.h",
71 "Atomics.h", 53 "Atomics.h",
72 "AutoReset.h", 54 "AutoReset.h",
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 if (is_win) { 366 if (is_win) {
385 cflags = [ "/wd4068" ] # Unknown pragma. 367 cflags = [ "/wd4068" ] # Unknown pragma.
386 } 368 }
387 369
388 configs += [ 370 configs += [
389 "//third_party/WebKit/Source:config", 371 "//third_party/WebKit/Source:config",
390 "//third_party/WebKit/Source:blink_pch", 372 "//third_party/WebKit/Source:blink_pch",
391 ] 373 ]
392 374
393 deps = [ 375 deps = [
394 ":platform_wtf", 376 ":wtf",
395 "//base", 377 "//base",
396 "//base/test:test_support", 378 "//base/test:test_support",
397 "//testing/gmock", 379 "//testing/gmock",
398 "//testing/gtest", 380 "//testing/gtest",
399 ] 381 ]
400 } 382 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/mojo/String.typemap ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698