Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binding.gyp could be an Important Files member #19

Open
rimmartin opened this issue Mar 21, 2014 · 2 comments
Open

binding.gyp could be an Important Files member #19

rimmartin opened this issue Mar 21, 2014 · 2 comments

Comments

@rimmartin
Copy link

Hi, this project is coming along nicely

For use native developers the binding.gyp file is important. It looks like it is json with a gyp convention: http://code.google.com/p/gyp/wiki/InputFormatReference

If you wanted to include it, is there a particular json API you prefer?

It would be useful to a node run from inside of netbeans; it locates the library paths and would be a great help to us poor native developers.

@timboudreau
Copy link
Owner

Sounds good.

The module uses Jackson, if that's what you're asking about, for JSON.

What would need to change about the way Node is run to support it? I haven't done native development with Node, so I haven't run into the issues you're having, but I'd definitely like to make the experience as good as possible.

@rimmartin
Copy link
Author

Ah Jackson; will look at it.

A binding example is at https://github.com/erossignon/node-occ/blob/master/binding.gyp
For the build, gyp could be called and let it do that work. Now during a netbeans run the
"library_dirs": [
"/usr/local/lib"
],
section (another section for MSVC) would be useful for gathering and adding runtime paths to the LD_LIBRARY_PATH for linux, the DYLD_LIBRARY_PATH for mac and the PATH for windows dll's. Then the javascript side can be run and examined in netbeans; be a big help. Currently I'm closing and opening netbeans trying to get the right paths per project for finding native dependencies. What may be uncertain is version changes to the gyp binding format. The link above shows what is expected in the Dependencies Settings.

Under the build/Release folder I see *.node files that have been generated/compiled; being no node expert I'm uncertain how these are used during runtime.

For native development the C/C++ nb modules are available to work along side nb-nodejs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants