| OLD | NEW |
| 1 # Copyright 2016 the V8 project authors. All rights reserved. | 1 # Copyright 2016 the V8 project 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/sanitizers/sanitizers.gni") | 5 import("//build/config/sanitizers/sanitizers.gni") |
| 6 import("//build/config/v8_target_cpu.gni") | 6 import("//build/config/v8_target_cpu.gni") |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 # Includes files needed for correctness fuzzing. | 9 # Includes files needed for correctness fuzzing. |
| 10 v8_correctness_fuzzer = false | 10 v8_correctness_fuzzer = false |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 # subdirectories. | 59 # subdirectories. |
| 60 v8_path_prefix = get_path_info("../", "abspath") | 60 v8_path_prefix = get_path_info("../", "abspath") |
| 61 | 61 |
| 62 v8_inspector_js_protocol = v8_path_prefix + "/src/inspector/js_protocol.json" | 62 v8_inspector_js_protocol = v8_path_prefix + "/src/inspector/js_protocol.json" |
| 63 | 63 |
| 64 ############################################################################### | 64 ############################################################################### |
| 65 # Templates | 65 # Templates |
| 66 # | 66 # |
| 67 | 67 |
| 68 # Common configs to remove or add in all v8 targets. | 68 # Common configs to remove or add in all v8 targets. |
| 69 v8_remove_configs = [ "//build/config/compiler:chromium_code" ] | 69 v8_remove_configs = [] |
| 70 v8_add_configs = [ | 70 v8_add_configs = [ |
| 71 "//build/config/compiler:no_chromium_code", | |
| 72 v8_path_prefix + ":features", | 71 v8_path_prefix + ":features", |
| 73 v8_path_prefix + ":toolchain", | 72 v8_path_prefix + ":toolchain", |
| 74 ] | 73 ] |
| 75 | 74 |
| 76 if (is_debug && !v8_optimized_debug) { | 75 if (is_debug && !v8_optimized_debug) { |
| 77 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] | 76 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] |
| 78 v8_add_configs += [ "//build/config/compiler:no_optimize" ] | 77 v8_add_configs += [ "//build/config/compiler:no_optimize" ] |
| 79 } else { | 78 } else { |
| 80 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] | 79 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] |
| 81 | 80 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 } | 142 } |
| 144 | 143 |
| 145 template("v8_component") { | 144 template("v8_component") { |
| 146 component(target_name) { | 145 component(target_name) { |
| 147 forward_variables_from(invoker, "*", [ "configs" ]) | 146 forward_variables_from(invoker, "*", [ "configs" ]) |
| 148 configs += invoker.configs | 147 configs += invoker.configs |
| 149 configs -= v8_remove_configs | 148 configs -= v8_remove_configs |
| 150 configs += v8_add_configs | 149 configs += v8_add_configs |
| 151 } | 150 } |
| 152 } | 151 } |
| OLD | NEW |