Feat: Android support#158
Conversation
|
This looks nice, can you rebase this? |
55272e4 to
378a3bc
Compare
|
Changelog:
|
a2c959f to
0f3252f
Compare
|
I reduced a lot the code and i think this is the concise version to support android |
|
|
alexanderwiederin
left a comment
There was a problem hiding this comment.
From what I understand the ubuntu boost packages don't ship with the cmake config that core needs when cross-compiling.
Am I right that you got it working on nix locally? If so, can we stick with with only supporting the nix build for android?
Edit: see the comment below |
|
Correction, I changed my mind... The idea is that the |
479401e to
30f44a8
Compare
|
Okay the android build being exclusive for nix made things easier for this PR, the changes on build.rs are minimal... I included some inline doc comments so the reviewer can follow why each line were added. I added a section on the readme explaining the android build but its not that explanatory in a level that one can learn how to build this lib to android, do you guys think thats needed ? I can extend the docs to include instructions for one to reproduce it on a downstream |
There was a problem hiding this comment.
Great to see this working.
If we land the hand-written bindings PR (#163) first, the changes in build.rs should become simpler. I would suggest we wait for it.
|
@jaoleal I'm interested in getting this change through. Can you rebase it and address Alex' comments? |
Yes, sorry for taking long... I was waiting for the bindgen pr to be merged so we had sure what that would imply here without rebasing on a pr |
This commit presents the minimal work needed for this crate to be able to be compiled for android, this is minimal to avoid bloating too much the build process, which would make it hard to review and maintain. The rest of the work will be done on nix side, which provides better ergonomics for such job.
Adds android outputs for flake.nix, providing building support for new three targets. (aarch64-linux-android, x86_64-linux-android, armv7-linux-android)
This pr contain 3 commits:
This is just a PoC, the main commit is the third one and the CI job containing the android building at that point should run fine.
For more context read #156