From 83b9f44b76a75388fdde06bd2d31044491d988e0 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 26 Jan 2018 10:35:26 +0800 Subject: [PATCH] build: update node.gyp to reference gypfiles/v8.gyp Refs: https://github.com/v8/v8/commit/f9934aa9cf77b76c5fa78137e32939f30d9e2f81 Fixes: https://github.com/nodejs/node-v8/issues/36 --- Makefile | 2 +- common.gypi | 4 ++-- node.gypi | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 89739f3eade..b072e4f3664 100644 --- a/Makefile +++ b/Makefile @@ -96,7 +96,7 @@ $(NODE_G_EXE): config.gypi out/Makefile out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp \ deps/zlib/zlib.gyp deps/v8/gypfiles/toolchain.gypi \ - deps/v8/gypfiles/features.gypi deps/v8/src/v8.gyp node.gyp \ + deps/v8/gypfiles/features.gypi deps/v8/gypfiles/v8.gyp node.gyp \ config.gypi $(PYTHON) tools/gyp_node.py -f make diff --git a/common.gypi b/common.gypi index 70ae59f359e..2d2619dc760 100644 --- a/common.gypi +++ b/common.gypi @@ -49,10 +49,10 @@ 'conditions': [ ['GENERATOR=="ninja"', { 'obj_dir': '<(PRODUCT_DIR)/obj', - 'v8_base': '<(PRODUCT_DIR)/obj/deps/v8/src/libv8_base.a', + 'v8_base': '<(PRODUCT_DIR)/obj/deps/v8/gypfiles/libv8_base.a', }, { 'obj_dir%': '<(PRODUCT_DIR)/obj.target', - 'v8_base%': '<(PRODUCT_DIR)/obj.target/deps/v8/src/libv8_base.a', + 'v8_base%': '<(PRODUCT_DIR)/obj.target/deps/v8/gypfiles/libv8_base.a', }], ['OS == "win"', { 'os_posix': 0, diff --git a/node.gypi b/node.gypi index ac043dac242..198425d2bde 100644 --- a/node.gypi +++ b/node.gypi @@ -56,12 +56,12 @@ }], [ 'node_enable_d8=="true"', { - 'dependencies': [ 'deps/v8/src/d8.gyp:d8' ], + 'dependencies': [ 'deps/v8/gypfiles/d8.gyp:d8' ], }], [ 'node_use_bundled_v8=="true"', { 'dependencies': [ - 'deps/v8/src/v8.gyp:v8', - 'deps/v8/src/v8.gyp:v8_libplatform' + 'deps/v8/gypfiles/v8.gyp:v8', + 'deps/v8/gypfiles/v8.gyp:v8_libplatform' ], }], [ 'node_use_v8_platform=="true"', { @@ -104,14 +104,14 @@ target_arch=="ia32" or target_arch=="x32")', { 'defines': [ 'NODE_ENABLE_VTUNE_PROFILING' ], 'dependencies': [ - 'deps/v8/src/third_party/vtune/v8vtune.gyp:v8_vtune' + 'deps/v8/gypfiles/v8vtune.gyp:v8_vtune' ], }], [ 'node_no_browser_globals=="true"', { 'defines': [ 'NODE_NO_BROWSER_GLOBALS' ], } ], [ 'node_use_bundled_v8=="true" and v8_postmortem_support=="true"', { - 'dependencies': [ 'deps/v8/src/v8.gyp:postmortem-metadata' ], + 'dependencies': [ 'deps/v8/gypfiles/v8.gyp:postmortem-metadata' ], 'conditions': [ # -force_load is not applicable for the static library [ 'force_load=="true"', {