addon: add module_root_dir gyp variable
authorNathan Rajlich <nathan@tootallnate.net>
Mon, 5 Mar 2012 20:38:31 +0000 (12:38 -0800)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 5 Mar 2012 21:39:12 +0000 (22:39 +0100)
commit1520c7bf5b4586c00ceef95ef9c52adb3ee86217
tree892fde1e4210396e771ea7b23aa58d7b5c68927d
parente10bd5177f99ae029d08077ff77c50444697e25c
addon: add module_root_dir gyp variable

For native modules to use in their gyp files.

It gives the absolute path to the root of the module directory, i.e. where your
main binding.gyp file is located.

This seems helpful for some modules where the build system is more advanced and
using absolute paths is a requirement.
tools/gyp_addon