node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

node-gyp hard-codes --generator_output to 'build' in PWD directory

Open dnwe opened this issue 12 years ago • 4 comments

Currently the output of node-gyp is hard-coded to be placed in $PWD/build (in configure.js output_dir = path.resolve('build') (for Windows) and just output_dir = 'build' for unix)

It would be useful if we could specify a custom output directory as a command-line option to node-gyp either via a node-gyp specific option node-gyp configure --build_dir=/tmp/somedir or by allowing us to pass-through our own generator_output parameter to pygyp: node-gyp configure -- --generator_output=/tmp/somedir

dnwe avatar Aug 06 '14 10:08 dnwe

+1

kjwenger avatar Dec 23 '15 12:12 kjwenger

+1! Common guys, isn't this a pretty basic request for a build system? (its almost 2017)

phtaylor avatar Dec 14 '16 15:12 phtaylor

2018 checking in. I need to move this location thanks to an issue when dealing with asar package structure.

RebelSyntax avatar Jul 03 '18 18:07 RebelSyntax

Duplicate of #263, closing in favor of that issue (which has a WIP pull request attached to it)

maclover7 avatar Jul 31 '18 19:07 maclover7