Index: third_party/WebKit/Source/core/dom/BUILD.gn |
diff --git a/third_party/WebKit/Source/core/dom/BUILD.gn b/third_party/WebKit/Source/core/dom/BUILD.gn |
index 45e2c3812ab97d4317c42a41ebbb74ddcf71dc17..cc3034194bf3e36ea8282bcec61f2d51c9245be2 100644 |
--- a/third_party/WebKit/Source/core/dom/BUILD.gn |
+++ b/third_party/WebKit/Source/core/dom/BUILD.gn |
@@ -2,10 +2,15 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/split_static_library.gni") |
import("//third_party/WebKit/Source/core/core.gni") |
-blink_core_sources("dom") { |
- split_count = 5 |
+target(core_link_large_target_type, "dom") { |
+ visibility = [ "//third_party/WebKit/Source/core/*" ] |
+ |
+ if (core_link_large_target_type == "split_static_library") { |
+ split_count = 5 |
+ } |
sources = [ |
"AXObjectCache.cpp", |
@@ -387,8 +392,14 @@ |
"shadow/SlotScopedTraversal.h", |
] |
+ configs -= core_config_remove |
+ configs += core_config_add |
configs += [ |
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
"//build/config/compiler:no_size_t_to_int_warning", |
] |
+ |
+ deps = [ |
+ "//third_party/WebKit/Source/core:prerequisites", |
+ ] |
} |