Created
December 24, 2017 22:22
-
-
Save NickNaso/7c512d06eb6bec27fce972df89fbc0ab to your computer and use it in GitHub Desktop.
bcrypt-napi binding.gyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
'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