| 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 import("//build_overrides/v8.gni") | 7 import("//build_overrides/v8.gni") |
| 8 | 8 |
| 9 declare_args() { | 9 declare_args() { |
| 10 # Indicate if valgrind was fetched as a custom deps to make it available on | 10 # Indicate if valgrind was fetched as a custom deps to make it available on |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 # Use external files for startup data blobs: | 27 # Use external files for startup data blobs: |
| 28 # the JS builtins sources and the start snapshot. | 28 # the JS builtins sources and the start snapshot. |
| 29 v8_use_external_startup_data = "" | 29 v8_use_external_startup_data = "" |
| 30 | 30 |
| 31 # Enable ECMAScript Internationalization API. Enabling this feature will | 31 # Enable ECMAScript Internationalization API. Enabling this feature will |
| 32 # add a dependency on the ICU library. | 32 # add a dependency on the ICU library. |
| 33 v8_enable_i18n_support = true | 33 v8_enable_i18n_support = true |
| 34 | 34 |
| 35 # Enable inspector. See include/v8-inspector.h. | 35 # Enable inspector. See include/v8-inspector.h. |
| 36 v8_enable_inspector = v8_enable_inspector_override | 36 v8_enable_inspector = v8_enable_inspector_override |
| 37 |
| 38 # Enable building V8's fuzzer targets. |
| 39 v8_enable_fuzzers = v8_enable_fuzzers_override |
| 37 } | 40 } |
| 38 | 41 |
| 39 if (v8_use_external_startup_data == "") { | 42 if (v8_use_external_startup_data == "") { |
| 40 # If not specified as a gn arg, use external startup data by default if | 43 # If not specified as a gn arg, use external startup data by default if |
| 41 # a snapshot is used and if we're not on ios. | 44 # a snapshot is used and if we're not on ios. |
| 42 v8_use_external_startup_data = v8_use_snapshot && !is_ios | 45 v8_use_external_startup_data = v8_use_snapshot && !is_ios |
| 43 } | 46 } |
| 44 | 47 |
| 45 if (v8_enable_backtrace == "") { | 48 if (v8_enable_backtrace == "") { |
| 46 v8_enable_backtrace = is_debug && !v8_optimized_debug | 49 v8_enable_backtrace = is_debug && !v8_optimized_debug |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 } | 120 } |
| 118 | 121 |
| 119 template("v8_component") { | 122 template("v8_component") { |
| 120 component(target_name) { | 123 component(target_name) { |
| 121 forward_variables_from(invoker, "*", [ "configs" ]) | 124 forward_variables_from(invoker, "*", [ "configs" ]) |
| 122 configs += invoker.configs | 125 configs += invoker.configs |
| 123 configs -= v8_remove_configs | 126 configs -= v8_remove_configs |
| 124 configs += v8_add_configs | 127 configs += v8_add_configs |
| 125 } | 128 } |
| 126 } | 129 } |
| OLD | NEW |