diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2019-07-17 17:55:12 +0200 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-07-19 11:09:51 -0700 |
commit | 21ec137859af19d0676f1a356d6b1381a6e01cc8 (patch) | |
tree | 78c8e0a22b56087d18787e66f1c7f78c5e1238a7 /tools | |
parent | 6aa6716a9159ce8180a42b658afa9bad328e8281 (diff) | |
download | android-node-v8-21ec137859af19d0676f1a356d6b1381a6e01cc8.tar.gz android-node-v8-21ec137859af19d0676f1a356d6b1381a6e01cc8.tar.bz2 android-node-v8-21ec137859af19d0676f1a356d6b1381a6e01cc8.zip |
build: fix building with d8
PR-URL: https://github.com/nodejs/node/pull/28733
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/v8_gypfiles/d8.gyp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/tools/v8_gypfiles/d8.gyp b/tools/v8_gypfiles/d8.gyp index 240df03380..e995c3cf56 100644 --- a/tools/v8_gypfiles/d8.gyp +++ b/tools/v8_gypfiles/d8.gyp @@ -4,6 +4,7 @@ { 'variables': { + 'V8_ROOT': '../../deps/v8', 'v8_code': 1, 'v8_enable_i18n_support%': 1, }, @@ -16,23 +17,24 @@ 'v8.gyp:v8', 'v8.gyp:v8_libbase', 'v8.gyp:v8_libplatform', + 'v8.gyp:generate_bytecode_builtins_list', ], # Generated source files need this explicitly: 'include_dirs+': [ - '..', + '<(V8_ROOT)', '<(DEPTH)', '<(SHARED_INTERMEDIATE_DIR)', ], 'sources': [ - '../src/async-hooks-wrapper.cc', - '../src/async-hooks-wrapper.h', - '../src/d8-console.cc', - '../src/d8-console.h', - '../src/d8-js.cc', - '../src/d8-platforms.cc', - '../src/d8-platforms.h', - '../src/d8.cc', - '../src/d8.h', + '<(V8_ROOT)/src/async-hooks-wrapper.cc', + '<(V8_ROOT)/src/async-hooks-wrapper.h', + '<(V8_ROOT)/src/d8-console.cc', + '<(V8_ROOT)/src/d8-console.h', + '<(V8_ROOT)/src/d8-js.cc', + '<(V8_ROOT)/src/d8-platforms.cc', + '<(V8_ROOT)/src/d8-platforms.h', + '<(V8_ROOT)/src/d8.cc', + '<(V8_ROOT)/src/d8.h', ], 'conditions': [ [ 'want_separate_host_toolset==1', { @@ -44,10 +46,10 @@ ['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \ or OS=="openbsd" or OS=="solaris" or OS=="android" \ or OS=="qnx" or OS=="aix")', { - 'sources': [ '../src/d8-posix.cc', ] + 'sources': [ '<(V8_ROOT)/src/d8-posix.cc', ] }], [ 'OS=="win"', { - 'sources': [ '../src/d8-windows.cc', ] + 'sources': [ '<(V8_ROOT)/src/d8-windows.cc', ] }], [ 'component!="shared_library"', { 'conditions': [ |