Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
n-api: Make sources conditional on V8 / ChakraCore
Browse files Browse the repository at this point in the history
PR-URL: #238
Reviewed-By: Taylor Woll <taylor.woll@microsoft.com>
Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
  • Loading branch information
jasongin authored and kfarnung committed May 15, 2017
1 parent f8cbdde commit cc20967
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@
'src/handle_wrap.cc',
'src/js_stream.cc',
'src/node.cc',
# 'src/node_api.cc',
'src/node_api_jsrt.cc',
'src/node_buffer.cc',
'src/node_config.cc',
'src/node_constants.cc',
Expand Down Expand Up @@ -266,6 +264,18 @@
# Warn when using deprecated V8 APIs.
'V8_DEPRECATION_WARNINGS=1',
],

'conditions': [
[ 'node_engine=="chakracore"', {
'sources': [
'src/node_api_jsrt.cc',
],
}, {
'sources': [
'src/node_api.cc',
],
}],
],
},
{
'target_name': 'mkssldef',
Expand Down

0 comments on commit cc20967

Please sign in to comment.