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 # Indicate if valgrind was fetched as a custom deps to make it available on | 9 # Indicate if valgrind was fetched as a custom deps to make it available on |
10 # swarming. | 10 # swarming. |
11 v8_has_valgrind = false | 11 v8_has_valgrind = false |
12 | 12 |
13 # Indicate if gcmole was fetched as a hook to make it available on swarming. | 13 # Indicate if gcmole was fetched as a hook to make it available on swarming. |
14 v8_gcmole = false | 14 v8_gcmole = false |
15 | 15 |
16 # Turns on compiler optimizations in V8 in Debug build. | 16 # Turns on compiler optimizations in V8 in Debug build. |
17 v8_optimized_debug = true | 17 v8_optimized_debug = true |
18 | 18 |
19 # Support for backtrace_symbols on linux. | 19 # Support for backtrace_symbols on linux. |
20 v8_enable_backtrace = "" | 20 v8_enable_backtrace = "" |
21 | 21 |
22 # Enable the snapshot feature, for fast context creation. | 22 # Enable the snapshot feature, for fast context creation. |
23 # http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html | 23 # http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html |
24 v8_use_snapshot = true | 24 v8_use_snapshot = true |
25 | 25 |
26 # Use external files for startup data blobs: | 26 # Use external files for startup data blobs: |
27 # the JS builtins sources and the start snapshot. | 27 # the JS builtins sources and the start snapshot. |
28 v8_use_external_startup_data = "" | 28 v8_use_external_startup_data = "" |
| 29 |
| 30 # Enable ECMAScript Internationalization API. Enabling this feature will |
| 31 # add a dependency on the ICU library. |
| 32 v8_enable_i18n_support = true |
29 } | 33 } |
30 | 34 |
31 if (v8_use_external_startup_data == "") { | 35 if (v8_use_external_startup_data == "") { |
32 # If not specified as a gn arg, use external startup data by default if | 36 # If not specified as a gn arg, use external startup data by default if |
33 # a snapshot is used and if we're not on ios. | 37 # a snapshot is used and if we're not on ios. |
34 v8_use_external_startup_data = v8_use_snapshot && !is_ios | 38 v8_use_external_startup_data = v8_use_snapshot && !is_ios |
35 } | 39 } |
36 | 40 |
37 if (v8_enable_backtrace == "") { | 41 if (v8_enable_backtrace == "") { |
38 v8_enable_backtrace = is_debug && !v8_optimized_debug | 42 v8_enable_backtrace = is_debug && !v8_optimized_debug |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 } | 113 } |
110 | 114 |
111 template("v8_component") { | 115 template("v8_component") { |
112 component(target_name) { | 116 component(target_name) { |
113 forward_variables_from(invoker, "*", [ "configs" ]) | 117 forward_variables_from(invoker, "*", [ "configs" ]) |
114 configs += invoker.configs | 118 configs += invoker.configs |
115 configs -= v8_remove_configs | 119 configs -= v8_remove_configs |
116 configs += v8_add_configs | 120 configs += v8_add_configs |
117 } | 121 } |
118 } | 122 } |
OLD | NEW |