aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2021-11-01 16:00:54 +0900
committerJiyong Park <jiyong@google.com>2021-11-01 16:00:54 +0900
commit5bd3cf749653f6427b61ff0c72433b66d31b20b3 (patch)
treee5c19e6dedead598cb804e2c65a0766aefec6dbd
parenta3ca9c32f9a15e34c3b426c9b9c6ff8a98af2ea4 (diff)
downloadrand_chacha-5bd3cf749653f6427b61ff0c72433b66d31b20b3.tar.gz
Update Android.bp with cargo2android.json
The rust library is available to the virt APEX. Bug: 204072128 Test: m crosvm Change-Id: I9c125046993e1063c8f66c430fc95787a88fbd03
-rw-r--r--Android.bp6
-rw-r--r--cargo2android.json10
2 files changed, 15 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 4e0002c..c1ac7ac 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --device --run --dependencies --tests.
+// This file is generated by cargo2android.py --config cargo2android.json.
// Do not modify this file as changes will be overridden on upgrade.
package {
@@ -54,6 +54,10 @@ rust_library {
"libppv_lite86",
"librand_core",
],
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
rust_defaults {
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..72ca2d4
--- /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
+}