build: fix --enable-d8 builds

Add `v8_abseil` as a dependency for `d8` and use scraping to pick up
the list of source files (including the previously missing
`src/d8/d8-test.cc`).

PR-URL: https://github.com/nodejs/node/pull/53106
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
Richard Lau 2024-05-24 18:32:09 +01:00 committed by GitHub
parent 501546e8f3
commit bc13f23f7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,7 @@
'v8.gyp:v8_libbase', 'v8.gyp:v8_libbase',
'v8.gyp:v8_libplatform', 'v8.gyp:v8_libplatform',
'v8.gyp:generate_bytecode_builtins_list', 'v8.gyp:generate_bytecode_builtins_list',
'v8.gyp:v8_abseil',
], ],
# Generated source files need this explicitly: # Generated source files need this explicitly:
'include_dirs+': [ 'include_dirs+': [
@ -28,15 +29,7 @@
'<(SHARED_INTERMEDIATE_DIR)', '<(SHARED_INTERMEDIATE_DIR)',
], ],
'sources': [ 'sources': [
'<(V8_ROOT)/src/d8/async-hooks-wrapper.cc', '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_executable.\\"d8\\".*?sources = ")',
'<(V8_ROOT)/src/d8/async-hooks-wrapper.h',
'<(V8_ROOT)/src/d8/d8-console.cc',
'<(V8_ROOT)/src/d8/d8-console.h',
'<(V8_ROOT)/src/d8/d8-js.cc',
'<(V8_ROOT)/src/d8/d8-platforms.cc',
'<(V8_ROOT)/src/d8/d8-platforms.h',
'<(V8_ROOT)/src/d8/d8.cc',
'<(V8_ROOT)/src/d8/d8.h',
], ],
'conditions': [ 'conditions': [
[ 'want_separate_host_toolset==1', { [ 'want_separate_host_toolset==1', {