diff options
-rw-r--r-- | Android.bp | 5 | ||||
-rw-r--r-- | cargo2android.json | 13 | ||||
-rw-r--r-- | cargo2android_nostd.bp | 15 |
3 files changed, 16 insertions, 17 deletions
@@ -65,11 +65,16 @@ rust_library_rlib { cargo_pkg_version: "1.4.3", srcs: ["src/lib.rs"], edition: "2018", + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], prefer_rlib: true, no_stdlibs: true, stdlibs: [ "libcompiler_builtins.rust_sysroot", "libcore.rust_sysroot", ], + product_available: true, vendor_available: true, } diff --git a/cargo2android.json b/cargo2android.json index e63efdb..1014789 100644 --- a/cargo2android.json +++ b/cargo2android.json @@ -1,7 +1,16 @@ { - "add-toplevel-block": "cargo2android_nostd.bp", "dependencies": true, "device": true, "run": true, - "vendor-available": true + "variants": [ + { + }, + { + "features": "", + "force-rlib": true, + "no-host": true, + "suffix": "_nostd", + "no-std": true + } + ] } diff --git a/cargo2android_nostd.bp b/cargo2android_nostd.bp deleted file mode 100644 index 1db2e43..0000000 --- a/cargo2android_nostd.bp +++ /dev/null @@ -1,15 +0,0 @@ -rust_library_rlib { - name: "libbyteorder_nostd", - crate_name: "byteorder", - cargo_env_compat: true, - cargo_pkg_version: "1.4.3", - srcs: ["src/lib.rs"], - edition: "2018", - prefer_rlib: true, - no_stdlibs: true, - stdlibs: [ - "libcompiler_builtins.rust_sysroot", - "libcore.rust_sysroot", - ], - vendor_available: true, -}
\ No newline at end of file |