aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-04-28 21:19:47 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-28 21:19:47 +0000
commit2b7f7e3719d76dd5c1e9f4f5adefd942fec23403 (patch)
treea37d77a527c577f11a2c00f84694c9fd47b5617b
parent58433b65378bc30d49f3759bde5e0bcdccf9076b (diff)
parent4f4e7e28e7d001d69bce674d96c0e8612267e6c5 (diff)
downloaditoa-2b7f7e3719d76dd5c1e9f4f5adefd942fec23403.tar.gz
Generate apex_available from c2a instead of a patch am: 4f4e7e28e7android-s-beta-4android-s-beta-3android-s-beta-4
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/itoa/+/1689105 Change-Id: Ia8d8712a11e34c50236eeb644e778ad698b15393
-rw-r--r--Android.bp3
-rw-r--r--cargo2android.json9
-rw-r--r--patches/Android.bp.patch13
3 files changed, 11 insertions, 14 deletions
diff --git a/Android.bp b/Android.bp
index a90a620..f49b03d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,5 @@
-// This file is generated by cargo2android.py --run --device --dependencies.
+// 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_itoa_license"],
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..42b7833
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,9 @@
+{
+ "apex-available": [
+ "//apex_available:platform",
+ "com.android.virt"
+ ],
+ "dependencies": true,
+ "device": true,
+ "run": true
+} \ No newline at end of file
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
deleted file mode 100644
index 1394742..0000000
--- a/patches/Android.bp.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/Android.bp b/Android.bp
-index cf4bc93..1e6793a 100644
---- a/Android.bp
-+++ b/Android.bp
-@@ -10,4 +10,8 @@ rust_library {
- "default",
- "std",
- ],
-+ apex_available: [
-+ "//apex_available:platform",
-+ "com.android.virt",
-+ ],
- }