NodeJS module compilation
If your Node addon uses a 3rd party library that you have to build, there are three ways to do it:
- Create a
Makefile
that launches the compilation of your 3rd party library and your Node addon (using the commands from my other answer), then link your addon with that library using thelibraries
section of the gyp file - this is the easiest choice - Completely convert the 3rd party library to gyp - this is the best choice - I a maintaining a number of Node addons and I have created gyp building systems for them (I see Fortran in your gyp so you probably know about
netcdf
andhdf5
) - but it is quite complex - Convert your Node addon to classical
Makefile
orcmake
- this is by far the hardest and it won't have any immediate benefits - you will have to reimplementnode-gyp
from scratch - something that even Node's core team is reluctant do to