summaryrefslogtreecommitdiff
path: root/deps/v8/gni
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2017-02-14 11:27:26 +0100
committerMichaël Zasso <targos@protonmail.com>2017-02-22 15:55:42 +0100
commit7a77daf24344db7942e34c962b0f1ee729ab7af5 (patch)
treee7cbe7bf4e2f4b802a8f5bc18336c546cd6a0d7f /deps/v8/gni
parent5f08871ee93ea739148cc49e0f7679e33c70295a (diff)
downloadandroid-node-v8-7a77daf24344db7942e34c962b0f1ee729ab7af5.tar.gz
android-node-v8-7a77daf24344db7942e34c962b0f1ee729ab7af5.tar.bz2
android-node-v8-7a77daf24344db7942e34c962b0f1ee729ab7af5.zip
deps: update V8 to 5.6.326.55
PR-URL: https://github.com/nodejs/node/pull/10992 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/gni')
-rw-r--r--deps/v8/gni/isolate.gni25
-rw-r--r--deps/v8/gni/v8.gni24
2 files changed, 41 insertions, 8 deletions
diff --git a/deps/v8/gni/isolate.gni b/deps/v8/gni/isolate.gni
index 93c828d2cd..1cc3a38770 100644
--- a/deps/v8/gni/isolate.gni
+++ b/deps/v8/gni/isolate.gni
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//build/config/sanitizers/sanitizers.gni")
+import("//build_overrides/v8.gni")
import("//third_party/icu/config.gni")
import("v8.gni")
@@ -12,11 +13,21 @@ declare_args() {
}
template("v8_isolate_run") {
+ forward_variables_from(invoker,
+ "*",
+ [
+ "deps",
+ "isolate",
+ ])
+
# Remember target name as within the action scope the target name will be
# different.
name = target_name
- if (name != "" && invoker.isolate != "" && invoker.deps != [] &&
- v8_test_isolation_mode != "noop") {
+
+ assert(defined(invoker.deps))
+ assert(defined(invoker.isolate))
+
+ if (name != "" && v8_test_isolation_mode != "noop") {
action(name + "_run") {
testonly = true
@@ -86,6 +97,11 @@ template("v8_isolate_run") {
} else {
icu_use_data_file_flag = "0"
}
+ if (v8_enable_inspector_override) {
+ enable_inspector = "1"
+ } else {
+ enable_inspector = "0"
+ }
if (v8_use_external_startup_data) {
use_external_startup_data = "1"
} else {
@@ -107,7 +123,6 @@ template("v8_isolate_run") {
gcmole = "0"
}
-
# Note, all paths will be rebased in isolate_driver.py to be relative to
# the isolate file.
args = [
@@ -142,6 +157,8 @@ template("v8_isolate_run") {
"--config-variable",
"icu_use_data_file_flag=$icu_use_data_file_flag",
"--config-variable",
+ "is_gn=1",
+ "--config-variable",
"msan=$msan",
"--config-variable",
"tsan=$tsan",
@@ -154,6 +171,8 @@ template("v8_isolate_run") {
"--config-variable",
"target_arch=$target_arch",
"--config-variable",
+ "v8_enable_inspector=$enable_inspector",
+ "--config-variable",
"v8_use_external_startup_data=$use_external_startup_data",
"--config-variable",
"v8_use_snapshot=$use_snapshot",
diff --git a/deps/v8/gni/v8.gni b/deps/v8/gni/v8.gni
index 7ff7f6fb89..3759572b93 100644
--- a/deps/v8/gni/v8.gni
+++ b/deps/v8/gni/v8.gni
@@ -26,6 +26,10 @@ declare_args() {
# Use external files for startup data blobs:
# the JS builtins sources and the start snapshot.
v8_use_external_startup_data = ""
+
+ # Enable ECMAScript Internationalization API. Enabling this feature will
+ # add a dependency on the ICU library.
+ v8_enable_i18n_support = true
}
if (v8_use_external_startup_data == "") {
@@ -38,15 +42,17 @@ if (v8_enable_backtrace == "") {
v8_enable_backtrace = is_debug && !v8_optimized_debug
}
-###############################################################################
-# Templates
-#
-
# Points to // in v8 stand-alone or to //v8/ in chromium. We need absolute
# paths for all configs in templates as they are shared in different
# subdirectories.
v8_path_prefix = get_path_info("../", "abspath")
+v8_inspector_js_protocol = v8_path_prefix + "/src/inspector/js_protocol.json"
+
+###############################################################################
+# Templates
+#
+
# Common configs to remove or add in all v8 targets.
v8_remove_configs = [ "//build/config/compiler:chromium_code" ]
v8_add_configs = [
@@ -87,7 +93,15 @@ template("v8_source_set") {
template("v8_executable") {
executable(target_name) {
- forward_variables_from(invoker, "*", [ "configs" ])
+ forward_variables_from(invoker,
+ "*",
+ [
+ "configs",
+ "remove_configs",
+ ])
+ if (defined(invoker.remove_configs)) {
+ configs -= invoker.remove_configs
+ }
configs += invoker.configs
configs -= v8_remove_configs
configs += v8_add_configs