aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-10-08 21:14:04 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-10-08 21:14:04 +0000
commita4e6687c4c278b191a13266de4471330dd505a32 (patch)
tree42ccb5fba1a1253b0d2f8c570e13a0d6f0e3dc9a
parent3d5bb8fc62ea8824eb11bc4d917746b65751b3ce (diff)
parent8c6b565ab4a828f97ab879eecf4a5b4a53b00b1e (diff)
downloadhalf-a4e6687c4c278b191a13266de4471330dd505a32.tar.gz
-rw-r--r--Android.bp8
-rw-r--r--cargo2android.json8
2 files changed, 15 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index efec440..205751e 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 --config cargo2android.json.
// Do not modify this file as changes will be overridden on upgrade.
package {
@@ -41,6 +41,12 @@ rust_library {
name: "libhalf",
host_supported: true,
crate_name: "half",
+ cargo_env_compat: true,
+ cargo_pkg_version: "1.7.1",
srcs: ["src/lib.rs"],
edition: "2018",
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..5ce6188
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,8 @@
+{
+ "apex-available": [
+ "//apex_available:platform",
+ "com.android.virt"
+ ],
+ "device": true,
+ "run": true
+ } \ No newline at end of file