Created
May 13, 2012 17:01
-
-
Save ncb000gt/2689293 to your computer and use it in GitHub Desktop.
bcrypt gyp integration
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
{ | |
'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