Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting NODE_GYP_DIR for addon.gypi to setting absolute path for src/… #637

Merged
merged 1 commit into from
May 31, 2015

Conversation

lygstate
Copy link
Contributor

…win_delay_load_hook.c,

and fixes of the long relative path issue on Win32.
Fixes of #636

@@ -20,6 +21,7 @@ var log = require('npmlog')
var prog = gyp()
var completed = false
prog.parseArgv(process.argv)
process.env['NODE_GYP_DIR'] = path.resolve(__dirname, '..');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should set this as a variable in config.gypi, rather than as an env variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not possible, because NODE_GYP_DIR is calculated.
cause gypi can not retrieve the current directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hope for fast response...

…win_delay_load_hook.c,

and fixes of the long relative path issue on Win32.
Fixes of nodejs#636
@lygstate
Copy link
Contributor Author

Updated.

@TooTallNate
Copy link
Contributor

Much better now! Thanks!

TooTallNate added a commit that referenced this pull request May 31, 2015
Setting NODE_GYP_DIR for addon.gypi to setting absolute path for src/…
@TooTallNate TooTallNate merged commit da23b84 into nodejs:master May 31, 2015
@saper
Copy link
Contributor

saper commented Sep 29, 2015

Unfortunately this breaks MSBuild %(RelativeDir) variable, which suddenly becomes absolute. See #732

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants