mapbox / node-cpp-skel

Skeleton for bindings to C++ libraries for Node.js using node-addon-api
Creative Commons Zero v1.0 Universal
72 stars 10 forks source link

External dep example #88

Closed GretaCB closed 6 years ago

GretaCB commented 7 years ago

Demonstrate how to add header-only dependencies from mason.

Next Actions

cc @springmeyer @mapsam

springmeyer commented 7 years ago

👍 I'll note that currently we already demonstrate some of the "how" because we:

What is missing is:

springmeyer commented 6 years ago

protozero is not actually used in the code (so we are missing automatic testing that the build works and an example of #include usage of an external dependency).

Note: to be able to test the mason-js branch, I advised @millzpaugh to add back the protozero include such that it can confirm that the include paths are working. https://github.com/mapbox/node-cpp-skel/commit/6c2033ef6aef15752ab368600f10d3a6dbeb8595#diff-1b31e01fc4cb7e539d3902c07dcbee31R6

This can eventually be replaced by gzip-hpp.

springmeyer commented 6 years ago

Per voice with @GretaCB - I'm going to take this task next (integrating gzip-hpp) since I've got some gzip-hpp API ideas in a gzip-hpp branch that will allow use to integrate gzip-hpp with https://github.com/mapbox/node-cpp-skel/issues/69. So I will put up a first PR and then get review from @GretaCB and @flippmoke. Hold tight.

springmeyer commented 6 years ago

gzip-hpp API ideas in a gzip-hpp branch that will allow use to integrate gzip-hpp with #69

This is at https://github.com/mapbox/gzip-hpp/pull/22

I'm going to take this task next (integrating gzip-hpp)

This is next in Jan using https://github.com/mapbox/gzip-hpp/pull/22

springmeyer commented 6 years ago

With the port to #111, we now have mason involved. I'm no longer seeing a need to integrate gzip-hpp specifically, especially since https://github.com/mapbox/vtcomposite and https://github.com/mapbox/vtquery demonstrate gzip-hpp usage nicely.