joyent/node — pull request #2833 by TooTallNate (2012-02-26 21:54:05+00:00)
Title: Make add addon-related files generate in the "out" dir

This fixes two "problems" with the addon build system:

1. Files generated from `gyp_addon` were polluting the cwd (usually the root) of the native module, leading to [`.gitignore` files with a lot of unnecessary entries](https://github.com/TooTallNate/node-time/commit/62bbfe6d08ce6dbcb113a89649a5e8610444e919). Now all these files get generated in the `out` dir, just like how node does it in the `configure` script, and only `out` needs to be ignored.

2. On Windows, builds into `./out/Release` instead of `./Release` and `./out/Debug` instead of `./Debug`. This makes the resulting build location of the addon .node file consistent across platforms, and renders [this commit](https://github.com/TooTallNate/node/commit/63e9ad29b9dbf822f60b10eedc03fcce8880f637) from #2828 useless.

Cheers!