Skip to content

Commit

Permalink
build,deps: fix V8 snapshot gyp dependencies
Browse files Browse the repository at this point in the history
PR-URL: #25852
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
  • Loading branch information
refack authored and targos committed Mar 14, 2019
1 parent 2f477bd commit ff5d632
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 187 deletions.
78 changes: 2 additions & 76 deletions deps/v8/gypfiles/v8.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/builtin-definitions-from-dsl.h',
],
},
'includes': ['toolchain.gypi', 'features.gypi'],
'includes': ['toolchain.gypi', 'features.gypi', 'v8_external_snapshot.gypi'],
'targets': [
{
'target_name': 'v8',
Expand Down Expand Up @@ -541,6 +541,7 @@
'dependencies': ['js2c#host'],
}, {
'toolsets': ['target'],
'dependencies': ['js2c#target'],
}],
['component=="shared_library"', {
'defines': [
Expand Down Expand Up @@ -2506,78 +2507,6 @@
],
},
}, # v8_libsampler
{
'target_name': 'natives_blob',
'type': 'none',
'conditions': [
['want_separate_host_toolset==1', {
'toolsets': ['host', 'target'],
}, {
'toolsets': ['target'],
}],
[ 'v8_use_external_startup_data==1', {
'conditions': [
['want_separate_host_toolset==1', {
'dependencies': ['js2c#host'],
}],
],
'actions': [
{
'action_name': 'js2c_extras_bin',
'inputs': [
'../tools/js2c.py',
'<@(v8_extra_library_files)',
],
'outputs': ['<@(libraries_extras_bin_file)'],
'action': [
'python',
'../tools/js2c.py',
'<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
'EXTRAS',
'<@(v8_extra_library_files)',
'--startup_blob', '<@(libraries_extras_bin_file)',
'--nojs',
],
},
{
'action_name': 'concatenate_natives_blob',
'inputs': [
'../tools/concatenate-files.py',
'<(SHARED_INTERMEDIATE_DIR)/libraries-extras.bin',
],
'conditions': [
['want_separate_host_toolset==1', {
'target_conditions': [
['_toolset=="host"', {
'outputs': [
'<(PRODUCT_DIR)/natives_blob_host.bin',
],
'action': [
'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob_host.bin'
],
}, {
'outputs': [
'<(PRODUCT_DIR)/natives_blob.bin',
],
'action': [
'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
],
}],
],
}, {
'outputs': [
'<(PRODUCT_DIR)/natives_blob.bin',
],
'action': [
'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
],
}],
],
},
],
}],
]
}, # natives_blob
{
'target_name': 'js2c',
'type': 'none',
Expand Down Expand Up @@ -2830,8 +2759,5 @@
},
],
}, # generate_bytecode_builtins_list
{
'includes': [ 'v8_external_snapshot.gypi' ],
}, # v8_external_snapshot
],
}
Loading

0 comments on commit ff5d632

Please sign in to comment.