-
Notifications
You must be signed in to change notification settings - Fork 2
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
Publish to crates.io #1
Comments
The method that might prove most effective is bundling the sources like the Checkout https://github.com/jgallagher/rusqlite#notes-on-building-rusqlite-and-libsqlite3-sys |
Thanks, looks really similar, will take a closer look. |
Fyi gcc got renamed to cc few days ago when it hit version 1.0.0 |
I think that bullet3d is a bit too complicated to dealing with it throw cc crate. I am considering participating in cargo-native as an option (https://paper.dropbox.com/doc/Declarative-native-dependencies-iLRUq6Zt2tPtLWE9IyLqS). Like check what people will do and try to fit bulletrs to this somehow. |
Well, I built the hugest build.rs ever :) It was built with semi-automated parse of cmake output. Seriously considering to describe that process and propose to cargo-native as a way to create There is only one platform-dependant string now - I have no experience with build.rs files of that scale, so any comments and test reports are highly welcome. |
That build file is probably cleaner than most large CMake files I've seen :/ |
Removed all UI and Networking from bullet for windows build not-fl3/bullet3@not-fl3:789258448fb95ebdb08a41c0db0efa63a711b877...rustbindings I had 2 alternatives of that build.rs approach.
cmake-rs force users to have cmake on their machines. And it is probably well. But the problem here is bullet's CMake file. For both windows and linux it should be deeply modified :( For windows specifically - bullet is supposed to be built with Visual Studio. And pros of cmake-rs - easy to maintan and update bullet. binary object file - may be the best thing for users - if I'll provide it for all of the platforms. And may be convinient for me - it is possible to set up travis to build it somehow. But also requires a lot of work on Windows to build that file. And build.rs approach. I thought that its possible to autogenerate build.rs file from make's output, but actually it is not - too much platform-specific things. So it will be hard to update to new bullet's versions. And with "ccache" development iteration cycle is pretty fast - comparable to cmake's. |
Next step to crates.io - CI #3 |
Tested on MacOS. "Direct" only build, like on windows, works fine. |
Please do! Would be very helpful. |
Some time passed since I made this and in the hindsight I think that making build.rs from the cmake output was not so good idea. |
Need to figure out the correct way to produce library from Bullet3 and the best way to distribute it with that crate.
Add entire bullet source to crate dependencies? Put only binaries somewhere? Make a link to the libs in readme?
The text was updated successfully, but these errors were encountered: