Skip to content

Commit

Permalink
build: fix building with d8
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
targos committed Jul 20, 2019
1 parent b8079f5 commit be32bec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion node.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
'defines': [ '__POSIX__' ],
}],
[ 'node_enable_d8=="true"', {
'dependencies': [ 'deps/v8/gypfiles/d8.gyp:d8' ],
'dependencies': [ 'tools/v8_gypfiles/d8.gyp:d8' ],
}],
[ 'node_use_bundled_v8=="true"', {
'dependencies': [
Expand Down
26 changes: 14 additions & 12 deletions tools/v8_gypfiles/d8.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

{
'variables': {
'V8_ROOT': '../../deps/v8',
'v8_code': 1,
'v8_enable_i18n_support%': 1,
},
Expand All @@ -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', {
Expand All @@ -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': [
Expand Down

0 comments on commit be32bec

Please sign in to comment.