Question

Node-gyp is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. I am trying to get my node program to run some C++ I've written. Node-gyp seems to make this process easier as in this example, which I was able to run by doing node-gyp configure followed by node-gyp build and then running with node test.js

I'm still having trouble understanding how to set up the binding.cc and binding.gyp files. Does anyone know whats going on or know of any good guides/documentation?

Was it helpful?

Solution

Addons documentation page and node-addon-examples linked from that page should be a good start. Also watch this slides on basics of binary modules (it uses older node-waf as a build tool though)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top