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

Unified Diff: base/BUILD.gn

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 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
« no previous file with comments | « no previous file | base/memory/discardable_memory_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/BUILD.gn
diff --git a/base/BUILD.gn b/base/BUILD.gn
index d2352aa25febc0c0029c8df452c782d2fcd22198..331f8811ea9a1a6beaa8a3e8c1dd0cecda52f69b 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -24,6 +24,7 @@ import("//build/config/chromecast_build.gni")
import("//build/config/clang/clang.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/dcheck_always_on.gni")
+import("//build/config/jumbo.gni")
import("//build/config/nacl/config.gni")
import("//build/config/sysroot.gni")
import("//build/config/ui.gni")
@@ -105,7 +106,13 @@ if (is_android) {
# to be linked in where they wouldn't have otherwise. This does not include
# test code (test support and anything in the test directory) which should use
# source_set as is recommended for GN targets).
-component("base") {
+jumbo_component("base") {
+ target_type = "component"
+ if (is_nacl) {
+ # Link errors related to malloc functions if libbase for nacl is
+ # compiled with jumbo.
+ never_build_jumbo = true
+ }
if (is_nacl_nonsfi) {
# TODO(phosek) bug 570839: If field_trial.cc is in a static library,
# nacl_helper_nonsfi doesn't link properly on Linux in debug builds. The
@@ -1135,6 +1142,12 @@ component("base") {
libs = [ "atomic" ]
}
+ jumbo_excluded_sources = [
+ # Works on a header without include guards: base/trace_event_common.h.
+ "trace_event/trace_event_argument.cc",
+ ]
+
+
if (use_allocator_shim) {
sources += [
"allocator/allocator_shim.cc",
@@ -1143,6 +1156,9 @@ component("base") {
"allocator/allocator_shim_override_cpp_symbols.h",
"allocator/allocator_shim_override_libc_symbols.h",
]
+ jumbo_excluded_sources += [
+ "allocator/allocator_shim.cc",
+ ]
if (is_win) {
sources += [
"allocator/allocator_shim_default_dispatch_to_winheap.cc",
@@ -1164,6 +1180,9 @@ component("base") {
"allocator/allocator_shim_override_linker_wrapped_symbols.h",
]
all_dependent_configs += [ "//base/allocator:wrap_malloc_symbols" ]
+ jumbo_excluded_sources += [
+ "allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc",
+ ]
} else if (is_mac) {
sources += [
"allocator/allocator_shim_default_dispatch_to_mac_zoned_malloc.cc",
« no previous file with comments | « no previous file | base/memory/discardable_memory_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698