aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2022-05-23 11:24:15 +0000
committerAndrew Scull <ascull@google.com>2022-05-23 12:28:26 +0000
commit5c8e10da30159587fa6289fdc72e5d179b187508 (patch)
tree6fb3e7502878d43f400282247425f2ba70e8e233
parenta063310d99662e54ee2c5338b0f1a63aebd929b5 (diff)
downloadforeign-types-5c8e10da30159587fa6289fdc72e5d179b187508.tar.gz
Allow the virtualization APEX to use the crate
Bug: 233582804 Test: atest AuthFsHostTest Change-Id: Idcbe33d7cbf4053a31886180f2168dfb1ec79b0d
-rw-r--r--Android.bp8
-rw-r--r--cargo2android.json9
2 files changed, 14 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index 31c4920..6c343d1 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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
+}