aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge E. Moreira <jemoreira@google.com>2021-04-26 23:11:47 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-26 23:11:47 +0000
commit71bc75fce8a4f207241637fab2f3fb398c3873ae (patch)
tree3ed4f71564f78fb702412335da032629712bf1f3
parent6706c243b258d6aae1bacfaafc16804041e3f564 (diff)
parentd4865997bc50dd58de789c40637ebb1e9ab2999e (diff)
downloadsmallvec-71bc75fce8a4f207241637fab2f3fb398c3873ae.tar.gz
Configure apex so crosvm can depend on this crate am: 784e24eb3f am: d4865997bc
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/smallvec/+/1684666 Change-Id: I6a5c96c70ab38e37d5e13431ee86e6168ed28471
-rw-r--r--Android.bp7
-rw-r--r--patches/Android.bp.patch13
2 files changed, 19 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index e99d7e0..cdf2b8d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,5 @@
-// This file is generated by cargo2android.py --device --run --dependencies.
+// This file is generated by cargo2android.py --device --run --dependencies --patch=patches/Android.bp.patch.
+// Do not modify this file as changes will be overridden on upgrade.
package {
default_applicable_licenses: ["external_rust_crates_smallvec_license"],
@@ -42,4 +43,8 @@ rust_library {
crate_name: "smallvec",
srcs: ["src/lib.rs"],
edition: "2018",
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..5943f32
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,13 @@
+diff --git a/Android.bp b/Android.bp
+index e99d7e0..12fdabd 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -42,4 +42,8 @@ rust_library {
+ crate_name: "smallvec",
+ srcs: ["src/lib.rs"],
+ edition: "2018",
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
+ }