On 30/06/13 19:16, Tom Hughes wrote:
I'm trying to package the mapnik module, but the latest version
dependency on the mapnik-vector-tile module, which turns out to be a
rather odd beast...
Basically mapnik-vector-tile has a src directory, containing some .hpp
files, and a proto directory with a protobuf definition file. When make
is run the protobuf definition is compiled to a .h and .cc pair in the
loadable by node in any way.
What then happens is that the mapnik module pulls in the cpp file as
part of the so it builds - the binding.gyp in mapnik actually includes
node_modules/mapnik-vector-tile/src/vector_tile.pb.cc in it's source
Any suggestions on how to package this? Should I just package the
dependent module and have it install the src directory so that the
mapnik module can use it when building?
Well, since nobody has replied yet..
Initial reaction is just to package as usual. Contents are similar to a
regular -devel package, but since it's a module from the npm registry it
probably should be packaged just like any other module from the npm