commit | be3f0d9d1116443698c2e8352b37f510a7718934 | [log] [tgz] |
---|---|---|
author | Shuo Wang Hsu <shuohsu@google.com> | Thu Dec 22 17:57:39 2022 -0800 |
committer | Shuo Wang Hsu <shuohsu@google.com> | Wed Dec 28 15:39:42 2022 -0800 |
tree | 535c98a02da6e14add65c0e267cdb2e6bf4851ce | |
parent | a3871b818340d93f61e6d2385e697193ddae8a76 [diff] |
Support building crate variants. The cargo2android.json config file now supports the key "variants" with a list of entries containing keys and build name suffix. Each entry will produce a different library (or binary). Keys supplied for each variant will overwrite any existing ones specified in the config file. See an example of the protobuf crate on aosp/2368788. Test: None Change-Id: Iaca67c7f22718c27b3cb118d9794f1ff01d31c84