Skip to content

Instantly share code, notes, and snippets.

@ncb000gt
Created May 13, 2012 17:01
Show Gist options
  • Select an option

  • Save ncb000gt/2689293 to your computer and use it in GitHub Desktop.

Select an option

Save ncb000gt/2689293 to your computer and use it in GitHub Desktop.

Revisions

  1. ncb000gt created this gist May 13, 2012.
    35 changes: 35 additions & 0 deletions binding.gyp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    {
    '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'
    ],
    }
    ],
    }