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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/wtf/BUILD.gn
diff --git a/third_party/WebKit/Source/wtf/BUILD.gn b/third_party/WebKit/Source/wtf/BUILD.gn
index eed1c3187c2d8eb80a73bac2d9cb71822f0c5156..44973f230ec60d41fb68671da81fc3a7cb56fa00 100644
--- a/third_party/WebKit/Source/wtf/BUILD.gn
+++ b/third_party/WebKit/Source/wtf/BUILD.gn
@@ -13,31 +13,7 @@ visibility = [
]
config("wtf_config") {
- if (is_win) {
- defines = [
- "__STD_C",
- "_CRT_SECURE_NO_DEPRECATE",
- "_SCL_SECURE_NO_DEPRECATE",
- ]
- include_dirs = [ "os-win32" ]
-
- cflags = [
- # Don't complain about calling specific versions of templatized
- # functions (e.g. in RefPtrHashMap.h).
- "/wd4344",
-
- # dtoa, icu, etc. like doing assignment within conditional.
- "/wd4706",
- ]
-
- if (is_component_build) {
- # Chromium windows multi-dll build enables C++ exceptions and this causes
- # wtf to generate 4291 warning due to operator new/delete
- # implementations. Disable the warning for chromium windows multi-dll
- # build.
- cflags += [ "/wd4291" ]
- }
- }
+ configs = [ "//third_party/WebKit/Source/platform/wtf:wtf_config" ]
}
component("wtf") {
@@ -62,7 +38,6 @@ component("wtf") {
"Compiler.h",
"ConditionalDestructor.h",
"ContainerAnnotations.h",
- "CryptographicallyRandomNumber.cpp",
"CryptographicallyRandomNumber.h",
"CurrentTime.cpp",
"CurrentTime.h",
@@ -258,6 +233,7 @@ component("wtf") {
public_deps = [
"//base",
+ "//third_party/WebKit/Source/platform/wtf:platform_wtf",
"//third_party/icu",
]

Powered by Google App Engine
This is Rietveld 408576698