Skip to content

Instantly share code, notes, and snippets.

@nanlabsweb
Created March 13, 2018 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanlabsweb/ebbc7d0c2dd5249b5f833e8a2b845f5d to your computer and use it in GitHub Desktop.
Save nanlabsweb/ebbc7d0c2dd5249b5f833e8a2b845f5d to your computer and use it in GitHub Desktop.
JS native extensions - config file
{
"targets": [
{
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"include_dirs" : [
"<!@(node -p \"require('node-addon-api').include\")"
],
"target_name": "hello_world",
"sources": [ "hello_world.cc" ],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment