aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-04-27 10:53:04 -0700
committerJoel Galenson <jgalenson@google.com>2021-04-27 10:53:04 -0700
commit6a34237310a3ab9dedc937e33cd8bd77a6a1d3c5 (patch)
treeda2c1c8ccc04febb2db96fb78408a2f1335d4656
parent1cd6c3915aa10a5935647c488750e5c244c9d1ee (diff)
downloadfutures-sink-6a34237310a3ab9dedc937e33cd8bd77a6a1d3c5.tar.gz
Generate apex_available from c2a instead of a patchandroid-s-beta-2android-s-beta-1
Test: Run c2a Test: Build Change-Id: Ifd10bd71e5dbac49ad782d2c9d830f637a11926f
-rw-r--r--Android.bp2
-rw-r--r--cargo2android.json10
-rw-r--r--patches/Android.bp.patch13
3 files changed, 11 insertions, 14 deletions
diff --git a/Android.bp b/Android.bp
index 2c7998f..57724d4 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --dependencies --device --tests --patch=patches/Android.bp.patch.
+// This file is generated by cargo2android.py --config cargo2android.json.
// Do not modify this file as changes will be overridden on upgrade.
package {
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..ac56e26
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,10 @@
+{
+ "apex-available": [
+ "//apex_available:platform",
+ "com.android.virt"
+ ],
+ "dependencies": true,
+ "device": true,
+ "run": true,
+ "tests": true
+} \ No newline at end of file
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
deleted file mode 100644
index 4305fea..0000000
--- a/patches/Android.bp.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/Android.bp b/Android.bp
-index a740016..b16050a 100644
---- a/Android.bp
-+++ b/Android.bp
-@@ -35,4 +35,8 @@ rust_library {
- "default",
- "std",
- ],
-+ apex_available: [
-+ "//apex_available:platform",
-+ "com.android.virt",
-+ ],
- }