TooTallNate/node-gyp — Issue #29: Windows 64-bit support
Author: TooTallNate
Created: 2012-02-26 22:36:55+00:00
State: open

I got it working the other night with some manual hacking, but now it's time to get it working smoothly.

I used MSVC 2010 Express edition alongside the Windows 7 SDK: http://www.microsoft.com/download/en/details.aspx?displayLang=en&id=8279

We need to download the 64-bit `node.lib` file every time on `install` and store it somewhere like `/x64/node.lib`. This way `--arch` can be supported as expected. This gets a little complicated at build-time since the `addon.gypi` file is looking for `//node.lib`, so during the `build` step on Windows it's gonna have to copy over the proper `node.lib` file into the proper location.

The other kinda hard part is guessing the proper location of the 64-bit msbuild.exe file. Probably just hard-code it for now like the 32-bit version.