What is the external library / addon in question?

If the library is simple enough, the best way is to write a .gyp file
for it and do it the "gyp way". I would highly encourage you to
attempt to do that. An example of this is node-sqlite3's sqlite3.gyp
file: 
https://github.com/developmentseed/node-sqlite3/blob/7d763404079c47319f870ea1d11636517f1f0821/deps/sqlite3/sqlite3.gyp#L40-68

However, sometimes that's not an option, maybe because the library's
configuration is too complicated or whatever, and the only solution
I've come up with is rather nasty. See node-ffi:
https://github.com/rbranson/node-ffi/blob/master/binding.gyp#L45-66

On Mon, Aug 20, 2012 at 12:56 PM, rhasson <[email protected]> wrote:
> I'm building a native-addon and I'm using an external dependency that when
> compiles outputs an object file (.o).  I want my project to compile, then
> compile the external dependency (via makefile not gyp) and then link the
> resulting objects together to create my addon.
>
> Is there a way to do that?
>
> Thanks,
> Roy
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to