diff options
author | Andrew Scull <ascull@google.com> | 2022-05-23 11:24:15 +0000 |
---|---|---|
committer | Andrew Scull <ascull@google.com> | 2022-05-23 12:28:26 +0000 |
commit | 5c8e10da30159587fa6289fdc72e5d179b187508 (patch) | |
tree | 6fb3e7502878d43f400282247425f2ba70e8e233 | |
parent | a063310d99662e54ee2c5338b0f1a63aebd929b5 (diff) | |
download | foreign-types-5c8e10da30159587fa6289fdc72e5d179b187508.tar.gz |
Allow the virtualization APEX to use the crate
Bug: 233582804
Test: atest AuthFsHostTest
Change-Id: Idcbe33d7cbf4053a31886180f2168dfb1ec79b0d
-rw-r--r-- | Android.bp | 8 | ||||
-rw-r--r-- | cargo2android.json | 9 |
2 files changed, 14 insertions, 3 deletions
@@ -1,8 +1,6 @@ -// This file is generated by cargo2android.py --run --device --force-rlib. +// This file is generated by cargo2android.py --config cargo2android.json. // Do not modify this file as changes will be overridden on upgrade. - - package { default_applicable_licenses: ["external_rust_crates_foreign-types_license"], } @@ -50,4 +48,8 @@ rust_library_rlib { rustlibs: [ "libforeign_types_shared", ], + apex_available: [ + "//apex_available:platform", + "com.android.virt", + ], } diff --git a/cargo2android.json b/cargo2android.json new file mode 100644 index 0000000..dbbd0bb --- /dev/null +++ b/cargo2android.json @@ -0,0 +1,9 @@ +{ + "apex-available": [ + "//apex_available:platform", + "com.android.virt" + ], + "device": true, + "force-rlib": true, + "run": true +} |