Skip to content

Instantly share code, notes, and snippets.

@ncb000gt
Created May 13, 2012 17:01
Show Gist options
  • Save ncb000gt/2689293 to your computer and use it in GitHub Desktop.
Save ncb000gt/2689293 to your computer and use it in GitHub Desktop.
bcrypt gyp integration
{
'variables': {
'ARCH': 'x64'
},
'targets': [
{
'target_name': 'bcrypt_lib',
'include_dirs': [
'<(node_root_dir)/deps/uv/include',
'<(node_root_dir)/deps/v8/include',
'<(node_root_dir)/deps/openssl/openssl/include',
'<(node_root_dir)/deps/openssl/config/k8'
],
'conditions': [
[ 'OS=="win"', {
'defines': [
'uint=unsigned int',
# we need to use node's preferred "win32" rather than gyp's preferred "win"
'PLATFORM="win32"',
],
'libraries': [
'-l<(node_root_dir)/<(ARCH)/node.lib',
'-l<(node_root_dir)/<(ARCH)/openssl.lib',
]
}
]
],
'sources': [
'src/blowfish.cc',
'src/bcrypt.cc',
'src/bcrypt_node.cc'
],
}
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment