Skip to content

Commit

Permalink
fix: pickup py3 support for js2c.py
Browse files Browse the repository at this point in the history
copied from bfbc035

Signed-off-by: Su Baocheng <baocheng.su@siemens.com>
  • Loading branch information
BaochengSu committed Oct 9, 2020
1 parent b4ed0af commit 7b56f61
Show file tree
Hide file tree
Showing 2 changed files with 196 additions and 157 deletions.
10 changes: 5 additions & 5 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,10 @@
'action_name': 'node_js2c',
'process_outputs_as_sources': 1,
'inputs': [
# Put the code first so it's a dependency and can be used for invocation.
'tools/js2c.py',
'<@(library_files)',
'./config.gypi',
'config.gypi',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc',
Expand All @@ -707,10 +709,8 @@
}]
],
'action': [
'python',
'tools/js2c.py',
'<@(_outputs)',
'<@(_inputs)',
'python', '<@(_inputs)',
'--target', '<@(_outputs)',
],
},
],
Expand Down
Loading

0 comments on commit 7b56f61

Please sign in to comment.