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

Unified Diff: base/BUILD.gn

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 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 b50a8c05b7d51770fc0cae151814d0f062b3cffa..d9c88dc1c3796784ff2265159860eebf8401534c 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")
@@ -100,7 +101,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
@@ -1146,6 +1153,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",
@@ -1154,6 +1167,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",
@@ -1175,6 +1191,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