Hey!

On Wed, Apr 8, 2015 at 12:41 AM, Light, John J <john.j.light at intel.com> 
wrote:
> If it isn't obvious, I will say that C++ is entirely implemented on the C 
> API, so there's nothing C++ can do that C API can't.  (That is, there's no 
> back door.)

Oh, that's excellent! That gets around the whole
needing-to-depend-on-boost thing.

Encouraged by all this, I'd like to proceed as follows:

In the npm world, when you run npm install <package_name>, it is
expected that, afterwards, you can immediately start using it. So,
ideally, I'd like to avoid having to tell people to separately install
iotivity and then run npm install with CFLAGS and LDFLAGS environment
variables and instead build the C portion of iotivity as part of the
node addon build.

Is there an easy way of doing this? Does the C API depend on nothing
more than the C library?

Could I make it as simple as telling node to simply compile a bunch of
C files along with the bindings C++ file, and link it all into one
object?

I'm going to spend some time trying to come up with answers to these
questions, but if you have some pointers that will make it easier for
me, I'd surely appreciate them :)

TIA,



Gabriel

Reply via email to