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

Unified Diff: content/content.gni

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 | « content/common/sandbox_linux/bpf_gpu_policy_linux.cc ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/content.gni
diff --git a/content/content.gni b/content/content.gni
new file mode 100644
index 0000000000000000000000000000000000000000..8c604ff5731f2568973866aadc2a40fdb74d75a3
--- /dev/null
+++ b/content/content.gni
@@ -0,0 +1,46 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/jumbo.gni")
+import("//build/split_static_library.gni")
+
+template("content_source_set") {
+ jumbo_source_set(target_name) {
+ forward_variables_from(invoker, "*")
+ }
+}
+
+template("content_component") {
+ if (is_component_build) {
+ if (defined(invoker.split_count)) {
+ target_type = "split_static_library"
+ } else {
+ target_type = "static_library"
+ }
+ } else {
+ target_type = "source_set"
+ if (defined(invoker.split_count)) {
+ assert(invoker.split_count > 0) # Avoid not-user variable warning.
+ }
+ }
+ target("jumbo_" + target_type, target_name) {
+ forward_variables_from(invoker, "*")
+ }
+}
+
+set_defaults("content_source_set") {
+ # This sets the default list of configs when the content_source_set target
+ # is defined. The default_compiler_configs comes from BUILDCONFIG.gn and
+ # is the list normally applied to static libraries and source sets.
+ configs = default_compiler_configs
+}
+
+set_defaults("content_component") {
+ # This sets the default list of configs when the content_source_set target
+ # is defined. The default_compiler_configs comes from BUILDCONFIG.gn and
+ # is the list normally applied to static libraries and source sets.
+
+ ### FIXME: CHECK THAT WE SHOULD NOT USE COMPONENT DEFAULTS
+ configs = default_compiler_configs
+}
« no previous file with comments | « content/common/sandbox_linux/bpf_gpu_policy_linux.cc ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698