node-spatialite
node-spatialite copied to clipboard
Distribute binaries
The native code for GEOS & Spatialite takes ages to build :sleeping:
node-pre-gyp makes it relatively straightforward to package binaries, which could make it easier for users on standard-ish platforms to get started with node-spatialite. node-sqlite3 uses it too.
Any thoughts on this?
I would like to fix this, but it's a ton of work...
Basically when I originally created this project I put in a ton of effort to gyp-ify the entire SpatiaLite project. It was a lot of work to unroll the make-based projects into gyp files. It's not a very maintainable approach because none of the dependencies use gyp as their build system. It's not a huge deal except GEOS is a fairly complex C++ project with a non-trivial build configuration.
I think the best approach would be to build the entire SpatiaLite project using it's native build system and modify as few files as possible to get the final binaries necessary to distribute with this package. This package is unique because node-spatialite
doesn't actually have any "node binaries". node-pre-gyp is mostly intended for actually building native node modules. This isn't technically even a node module, it's just straight-up mod_spatialite
loaded at runtime using the sqlite3
module's extension API. So all we need in this repo is SpatiaLite binaries.