TooTallNate/node-gyp — pull request #541 by agnat (2014-11-30 12:07:38+00:00)
Title: Add target name preprocessor define

Adds the name of the current target as a preprocessor define. Uses the automatic variable `_target_name` in combination with late variable expansion.

It originates in joyent/node#8802 but has other applications, too. Think logging. It's a little service to downstream add-ons to keep things DRY.