-
Notifications
You must be signed in to change notification settings - Fork 97
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
Bundle libexpat, build it with gyp, and statically link it to node-expat #48
Conversation
We're going to make it work even better, and this didn't work anymore anyways...
It turns out that the config is idential for all platforms+arch combos I tried. I'm 95% confident that this is safe.
We're bundling statically now so this is no longer a burden on users.
Sweet |
Great stuff - I can confirm it builds on windows over here :) A little heads up: the .sln files (binding.sln and libexpat.sln), that are generated during building seem to be tripping up the automatic deployments to node.js on Azure ("unable to determine which solution file to build"). I'm not sure how behavior will be once this gets into the main branch, as their system seems to read only from the main NPM repository, but it might be an issue on that platform. I tried to adapt the gyp files to delete them, but my gyp-fu is weak and I can't figure out how to run a cleanup action... Looking forward to seeing this hit the main branch. |
Will I have to do a node-expat release everytime there's a new libexpat version? Why not use the OS' package management? |
How often does that happen? I bet node-expat releases are more frequent than libexpat anways ;)
It's not as portable (what if they don't have the right version installed?), and doesn't work on Windows. I urge you to read: http://n8.io/converting-a-c-library-to-gyp/, but in this case I already did the dirty work for you. |
LOL, libexpat hasn't had new releases since 5 June 2007. I wouldn't mind doing this for node-expat, but for packages that change pretty often it's kind of annoying to be updating them every time. Camilo Aguilar On Tuesday, October 2, 2012 at 5:18 PM, Nathan Rajlich wrote:
|
Don't have time to do complete test, but at least node-expat can compile for no problem. I'll close the issue for now. |
Hey @astro!
So I got sweet one for ya :) I've updated the build system once again to bundle libexpat and use gyp to build it and link it to node-expat. This have several advantages, but predominantly it will be a lot easier for Windows users to install, and for Unix users as well since they won't have to install expat themselves. This also follows how node core does it and is how we are wanting modules to migrate to slowly.
All tests are passing on all platforms I tested (even ARM!). Cheers!