Open justinmoon opened 4 months ago
I haven't set up macos for android dev yet, I don't think you can use nixpkgs for this on mac?
I have used https://github.com/tadfisher/android-nixpkgs in the past to install android SDK and everything like that via nix on a Mac.
Not sure if it will be useful or now, but https://github.com/rustshop/flakebox basically extracted Fedimint's cross-compilation setup into a separate project other people can use. It doesn't deal with Android SDK at all, but does do cross-compilation very well. @dpc can answer any questions you have!
It doesn't deal with Android SDK at all,
Correction: It does allow picking and customizing SDK components, AFAIK/AFAIU.
On Thu, Feb 15, 2024 at 05:42:48AM -0800, Justin Moon wrote:
I have used https://github.com/tadfisher/android-nixpkgs in the past to install android SDK and everything like that via nix on a Mac.
nice, someone should update our scripts to use this.
Not sure if it will be useful or now, but https://github.com/rustshop/flakebox basically extracted Fedimint's cross-compilation setup into a separate project other people can use. It doesn't deal with Android SDK at all, but does do cross-compilation very well. @dpc can answer any questions you have!
rust handles everything cross-compilation wise, what's the point of this?
rust handles everything cross-compilation wise, what's the point of this?
C / C++ dependencies is the biggest reason.
doesn't build.rs handle cross compliation? at least thats how I do it with secp and nostrdb
It relies on availability of cross-compiler toolchain, sometimes also already cross-compiled libraries. Flakebox basically brings them in using Nix, pinned to specific versions, and sets up all env variables so it all works smoothly. Plus some other things that are optional.