TJ, Please send stuff like this as a pull request to joyent/node on github.
(Also, see the CONTRIBUTING.md file, if you haven't already. There's a CLA, some conventions, etc.) On Wed, Feb 13, 2013 at 5:53 AM, TJ <nod...@iam.tj> wrote: > Out-of-tree builds (on Linux at least) now seem to be effortless. I've spent > some time fixing up assumptions > in the test suite so that generated files and directories are in the build > tree. > > In particular, for the test suite, two new paths are now available: > > common.buildDir > common.srcDir > > Anything to be generated should join to .buildDir which, for in-tree builds, > will be the same as .srcDir. > > A new Makefile target 'test-nested-index' takes care of copying a few static > test files into the build > tree if necessary and is depended upon by other targets as needed. > > Combined, these patches add support for automatic detection of out-of-tree > build > conditions. To use it simply create the out-of-tree build directory, make it > the > current working directory, and call the project's configure script using a > relative > path. E.g: > > $ pwd > /projects/test/dep/node > $ mkdir -p /projects/test/build/dep/node > $ cd ../../build/dep/node > $ ../../../dep/node/configure > > The Gyp and Make configs will be written to the current working directory > along > with the top-level Makefile. Other files will be written into appropriate > sub-directories under the ./out/ directory. > > $ ls > config.gypi config.mk Makefile out > > $ ls out/ > deps node_dtrace_header.target.mk node_dtrace_ustack.target.mk > node_js2c.host.mk node_systemtap_header.target.mk > Makefile node_dtrace_provider.target.mk node_etw.target.mk > node_perfctr.target.mk node.target.mk > > ---- > The following changes since commit 3f7e88a852afe54253eb93ddcb0fdf3a88b9f4ec: > > buffer: accept negative indices in Buffer#slice() (2013-02-12 17:09:19 > -0800) > > are available in the git repository at: > > git://github.com/iam-TJ/node.git out-of-tree-builds-auto-v4 > > for you to fetch changes up to 29d1cc220796cd9b11410134c00ff2abd0d15319: > > test: fix tests that assume they will operate in the source-tree for > automatic out-of-tree-builds (2013-02-13 13:28:53 +0000) > > ---------------------------------------------------------------- > TJ (9): > Gyp: Generator: make: Add support for out-of-tree builds > Build: Add automatic out-of-tree build support > configure: Add automatic out-of-tree build support > Makefile: Add automatic out-of-tree build support > node.gyp: When including config.gypi use path relative to build > directory, not source. > Makefile: add target to support automatic out-of-tree builds for the > unit test suite > test: Add logic to module 'common' to differentiate between source and > build trees. > test: ensure test paths exist so that automatic out-of-tree builds do > not fail > test: fix tests that assume they will operate in the source-tree for > automatic out-of-tree-builds > > Makefile | 119 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------ > configure | 11 +++++++++-- > node.gyp | 2 +- > test/common.js | 31 +++++++++++++++++++++++++++--- > test/simple/test-cli-eval.js | 3 ++- > test/simple/test-executable-path.js | 8 ++++---- > test/simple/test-fs-realpath.js | 19 ++++++++++++------- > test/simple/test-process-config.js | 2 +- > tools/gyp/pylib/gyp/generator/make.py | 18 +++++++++++++++--- > tools/gyp_node | 12 ++++++++---- > 10 files changed, 143 insertions(+), 82 deletions(-) > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nodejs+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.