| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/jumbo.gni") | 6 import("//build/config/jumbo.gni") |
| 7 import("//build/split_static_library.gni") | 7 import("//build/split_static_library.gni") |
| 8 import("//third_party/WebKit/Source/config.gni") | 8 import("//third_party/WebKit/Source/config.gni") |
| 9 | 9 |
| 10 blink_core_output_dir = "$root_gen_dir/blink/core" | 10 blink_core_output_dir = "$root_gen_dir/blink/core" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 # Take everything else not handled above from the invoker. | 111 # Take everything else not handled above from the invoker. |
| 112 forward_variables_from(invoker, | 112 forward_variables_from(invoker, |
| 113 "*", | 113 "*", |
| 114 [ | 114 [ |
| 115 "deps", | 115 "deps", |
| 116 "public_deps", | 116 "public_deps", |
| 117 "split_count", | 117 "split_count", |
| 118 ]) | 118 ]) |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 |
| 122 template("blink_unit_test_source_set") { |
| 123 jumbo_target(target_name) { |
| 124 target_type = "source_set" |
| 125 forward_variables_from(invoker, "*") |
| 126 } |
| 127 } |
| 128 |
| 121 set_defaults("blink_core_sources") { | 129 set_defaults("blink_core_sources") { |
| 122 # This sets the default list of configs when the blink_core_sources target | 130 # This sets the default list of configs when the blink_core_sources target |
| 123 # is defined. The default_compiler_configs comes from BUILDCONFIG.gn and | 131 # is defined. The default_compiler_configs comes from BUILDCONFIG.gn and |
| 124 # is the list normally applied to static libraries and source sets. | 132 # is the list normally applied to static libraries and source sets. |
| 125 configs = default_compiler_configs - core_config_remove + core_config_add | 133 configs = default_compiler_configs - core_config_remove + core_config_add |
| 126 | 134 |
| 127 # Compile each of the core sources targets with (core) precompiled header | 135 # Compile each of the core sources targets with (core) precompiled header |
| 128 # support, for lower Windows build times. | 136 # support, for lower Windows build times. |
| 129 configs += [ "//third_party/WebKit/Source/core:blink_core_pch" ] | 137 configs += [ "//third_party/WebKit/Source/core:blink_core_pch" ] |
| 130 } | 138 } |
| 139 |
| 140 set_defaults("blink_unit_test_source_set") { |
| 141 configs = default_compiler_configs |
| 142 } |
| OLD | NEW |