| 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") | |
| 8 | 7 |
| 9 declare_args() { | 8 declare_args() { |
| 10 # Includes files needed for correctness fuzzing. | 9 # Includes files needed for correctness fuzzing. |
| 11 v8_correctness_fuzzer = false | 10 v8_correctness_fuzzer = false |
| 12 | 11 |
| 13 # Indicate if valgrind was fetched as a custom deps to make it available on | 12 # Indicate if valgrind was fetched as a custom deps to make it available on |
| 14 # swarming. | 13 # swarming. |
| 15 v8_has_valgrind = false | 14 v8_has_valgrind = false |
| 16 | 15 |
| 17 # Indicate if gcmole was fetched as a hook to make it available on swarming. | 16 # Indicate if gcmole was fetched as a hook to make it available on swarming. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 28 v8_use_snapshot = true | 27 v8_use_snapshot = true |
| 29 | 28 |
| 30 # Use external files for startup data blobs: | 29 # Use external files for startup data blobs: |
| 31 # the JS builtins sources and the start snapshot. | 30 # the JS builtins sources and the start snapshot. |
| 32 v8_use_external_startup_data = "" | 31 v8_use_external_startup_data = "" |
| 33 | 32 |
| 34 # Enable ECMAScript Internationalization API. Enabling this feature will | 33 # Enable ECMAScript Internationalization API. Enabling this feature will |
| 35 # add a dependency on the ICU library. | 34 # add a dependency on the ICU library. |
| 36 v8_enable_i18n_support = true | 35 v8_enable_i18n_support = true |
| 37 | 36 |
| 38 # TODO(brettw) http://crbug.com/684096 Remove the define condition and the | 37 # Enable inspector. See include/v8-inspector.h. |
| 39 # v8_enable_inspector_override variable when the build_override conversion is | 38 v8_enable_inspector = true |
| 40 # complete. This value should just default to true. | |
| 41 if (defined(v8_enable_inspector_override)) { | |
| 42 # Enable inspector. See include/v8-inspector.h. | |
| 43 v8_enable_inspector = v8_enable_inspector_override | |
| 44 } else { | |
| 45 # Enable inspector. See include/v8-inspector.h. | |
| 46 v8_enable_inspector = true | |
| 47 } | |
| 48 | 39 |
| 49 # Use static libraries instead of source_sets. | 40 # Use static libraries instead of source_sets. |
| 50 v8_static_library = false | 41 v8_static_library = false |
| 51 } | 42 } |
| 52 | 43 |
| 53 if (v8_use_external_startup_data == "") { | 44 if (v8_use_external_startup_data == "") { |
| 54 # If not specified as a gn arg, use external startup data by default if | 45 # If not specified as a gn arg, use external startup data by default if |
| 55 # a snapshot is used and if we're not on ios. | 46 # a snapshot is used and if we're not on ios. |
| 56 v8_use_external_startup_data = v8_use_snapshot && !is_ios | 47 v8_use_external_startup_data = v8_use_snapshot && !is_ios |
| 57 } | 48 } |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } | 131 } |
| 141 | 132 |
| 142 template("v8_component") { | 133 template("v8_component") { |
| 143 component(target_name) { | 134 component(target_name) { |
| 144 forward_variables_from(invoker, "*", [ "configs" ]) | 135 forward_variables_from(invoker, "*", [ "configs" ]) |
| 145 configs += invoker.configs | 136 configs += invoker.configs |
| 146 configs -= v8_remove_configs | 137 configs -= v8_remove_configs |
| 147 configs += v8_add_configs | 138 configs += v8_add_configs |
| 148 } | 139 } |
| 149 } | 140 } |
| OLD | NEW |