MayamaTakeshi / sip-lab

A node module that helps to write SIP functional tests
3 stars 2 forks source link

Prepare distribution of prebuilt addon binary #30

Closed MayamaTakeshi closed 1 year ago

MayamaTakeshi commented 1 year ago

Currently, 'npm i sip-lab' takes a lot of time because we download pjproject, bcg729, spandsp and rapidjson and build the addon. Instead we should prebuilt the addon so that installation will be fast.

See: https://nodeaddons.com/cross-platform-addons-with-node-pre-gyp/ https://github.com/mapbox/node-pre-gyp and: https://github.com/prebuild/node-gyp-build

MayamaTakeshi commented 1 year ago

We used the https://github.com/prebuild/node-gyp-build approach.