mozilla / rust-android-gradle

Apache License 2.0
1.03k stars 67 forks source link

Multiple libs support ? #19

Open martinbonnin opened 4 years ago

martinbonnin commented 4 years ago

Is it possible to build multiple rust libs ? Something like:

cargo {
   "lib1" {
     module  = "../lib1"
     targets = ["arm", "x86"] 
   }
   "lib2" {
     module  = "../lib2"
     targets = ["arm", "x86"] 
   }
}
ncalexan commented 4 years ago

Is it possible to build multiple rust libs ? Something like:

At this time, no. But that's really only because when I wrote the plugin it was a pain to handle arbitrary sub-configuration blocks; Gradle makes 1 layer of configuration pleasant and 2 or more layers of configuration frustrating.

I'd happily review a well thought out proposal focusing on how to smoothly upgrade existing consumers and and a patch sketching out how to handle the "global"-ish bits, like which target directory, etc.

chengchangwu commented 3 years ago

Maybe just build a cargo workspace?