enlight / dbgmits

NodeJS module that provides the ability to control GDB and LLDB debuggers via GDB/MI.
MIT License
6 stars 3 forks source link

Remove dependency on Node.js headers from tests #2

Open enlight opened 9 years ago

enlight commented 9 years ago

node-gyp is currently used to build the test target executable, that executable has no dependencies, but node-gyp is actually meant for building native Node.js modules so it expects to have access to the Node.js headers. The only file node-gyp actually needs from Node.js is common.gypi, much of which sets things up for building native Node.js modules - stuff that is irrelevant for building the test target executable.

To remove the need to install the Node.js headers extract the useful bits from common.gypi into an identically named file and put it in this repository, then use the nodedir setting with node-gyp configure to point node-gyp to the directory containing the slimmed down common.gypi.