Skip to content

Instantly share code, notes, and snippets.

@NickNaso
Created December 24, 2017 22:22
Show Gist options
  • Save NickNaso/7c512d06eb6bec27fce972df89fbc0ab to your computer and use it in GitHub Desktop.
Save NickNaso/7c512d06eb6bec27fce972df89fbc0ab to your computer and use it in GitHub Desktop.
bcrypt-napi binding.gyp
{
'targets': [
{
'target_name': 'bcrypt_napi',
'sources': [
'src/blowfish.cc',
'src/bcrypt.cc',
'src/bcrypt_node.cc'
],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'include_dirs' : [
"<!@(node -p \"require('node-addon-api').include\")"
],
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
'conditions': [
['OS=="win"', {
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1
}
},
'defines': [
'uint=unsigned int',
]
}],
['OS=="mac"', {
"xcode_settings": {
"CLANG_CXX_LIBRARY": "libc++",
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.7'
}
}]
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment