add crosvm to com.android.virt
To do so, crosvm and its dependencies have the apex_available property
set to "//apex_available:platform", "com.android.virt" to explicitly
acknowledge the joining.
Bug: 174639241
Test: m com.android.virt
Change-Id: I706eb8f47ad63a41d8ecd3b6696fb4f9070f258f
diff --git a/Android.bp b/Android.bp
index 737bcea..a8f25b5 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --dependencies.
+// This file is generated by cargo2android.py --run --dependencies --device --patch=patches/Android.bp.patch.
rust_library {
name: "libfutures_channel",
@@ -14,7 +14,11 @@
rustlibs: [
"libfutures_core",
],
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
// dependent_library ["feature_list"]
-// futures-core-0.3.7 "alloc,std"
+// futures-core-0.3.8 "alloc,std"
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..56dc707
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,15 @@
+diff --git a/Android.bp b/Android.bp
+index 737bcea..2ccbba4 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -14,6 +14,10 @@ rust_library {
+ rustlibs: [
+ "libfutures_core",
+ ],
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
+ }
+
+ // dependent_library ["feature_list"]