| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 
|  | 2 # Use of this source code is governed by a BSD-style license that can be | 
|  | 3 # found in the LICENSE file. | 
|  | 4 | 
|  | 5 import("//build/config/jumbo.gni") | 
|  | 6 import("//build/split_static_library.gni") | 
|  | 7 | 
|  | 8 template("content_source_set") { | 
|  | 9   jumbo_source_set(target_name) { | 
|  | 10     forward_variables_from(invoker, "*") | 
|  | 11   } | 
|  | 12 } | 
|  | 13 | 
|  | 14 template("content_component") { | 
|  | 15   if (is_component_build) { | 
|  | 16     if (defined(invoker.split_count)) { | 
|  | 17       target_type = "split_static_library" | 
|  | 18     } else { | 
|  | 19       target_type = "static_library" | 
|  | 20     } | 
|  | 21   } else { | 
|  | 22     target_type = "source_set" | 
|  | 23     if (defined(invoker.split_count)) { | 
|  | 24       assert(invoker.split_count > 0)  # Avoid not-user variable warning. | 
|  | 25     } | 
|  | 26   } | 
|  | 27   target("jumbo_" + target_type, target_name) { | 
|  | 28     forward_variables_from(invoker, "*") | 
|  | 29   } | 
|  | 30 } | 
|  | 31 | 
|  | 32 set_defaults("content_source_set") { | 
|  | 33   # This sets the default list of configs when the content_source_set target | 
|  | 34   # is defined. The default_compiler_configs comes from BUILDCONFIG.gn and | 
|  | 35   # is the list normally applied to static libraries and source sets. | 
|  | 36   configs = default_compiler_configs | 
|  | 37 } | 
|  | 38 | 
|  | 39 set_defaults("content_component") { | 
|  | 40   # This sets the default list of configs when the content_source_set target | 
|  | 41   # is defined. The default_compiler_configs comes from BUILDCONFIG.gn and | 
|  | 42   # is the list normally applied to static libraries and source sets. | 
|  | 43 | 
|  | 44   ### FIXME: CHECK THAT WE SHOULD NOT USE COMPONENT DEFAULTS | 
|  | 45   configs = default_compiler_configs | 
|  | 46 } | 
| OLD | NEW | 
|---|