TooTallNate/node-gyp — pull request #537 by corsix (2014-11-20 18:09:55+00:00)
Title: Avoid copying around node.lib on Windows

Imagine a Jenkins build server, where node-gyp chooses a dev dir of say `C:\Users\jenkins\.node-gyp\0.10.29\`. The build server runs multiple build jobs in parallel, each with disjoint working directories, but sharing global state such as the node-gyp dev dir. Some of these build jobs are using node-gyp to build 32-bit binaries, and some are using node-gyp to build 64-bit binaries. Sometimes the following scenario could previously occur:
1. Job A step 1: Copy `C:\Users\jenkins\.node-gyp\0.10.29\ia32\node.lib` to `C:\Users\jenkins\.node-gyp\0.10.29\Release\node.lib`
2. Job B step 1: Copy `C:\Users\jenkins\.node-gyp\0.10.29\x64\node.lib` to `C:\Users\jenkins\.node-gyp\0.10.29\Release\node.lib`
3. Job B step 2: Successfully build and link a 64-bit binary.
4. Job A step 2: Attempt to build and link a 32-bit binary, but fail because `C:\Users\jenkins\.node-gyp\0.10.29\Release\node.lib` is of the wrong architecture.

This commit avoids the above scenario by making the dev dir immutable, and making the generated vcxproj files refer directly to the node.lib file for the appropriate architecture.

This is rather similar to #443 / #450.