aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-11 02:12:03 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-11 02:12:03 +0000
commitd417f75a8cbdc3bf89daa5a824a8fa3765af4658 (patch)
tree51ee08f81f2b59fe4e5ff8dadc484a681ea9e175
parentc4f579ad5046e0d5d84321d248a46f0d2d308cbf (diff)
parenteb895b155899758d02ba0647f05cc87885af039e (diff)
downloadhalf-android14-qpr2-s1-release.tar.gz
Change-Id: I462d00d085badfcad8fb336c00ae27c62957636e
-rw-r--r--Android.bp2
-rw-r--r--cargo2android.json16
-rw-r--r--cargo_embargo.json22
3 files changed, 23 insertions, 17 deletions
diff --git a/Android.bp b/Android.bp
index eabdcd9..a18e36c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --config cargo2android.json.
+// This file is generated by cargo_embargo.
// Do not modify this file as changes will be overridden on upgrade.
package {
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index 1f63124..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "device": true,
- "run": true,
- "variants": [
- {
- },
- {
- "alloc": true,
- "features": "alloc",
- "force-rlib": true,
- "no-host": true,
- "suffix": "_nostd",
- "no-std": true
- }
- ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..3d17d7f
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,22 @@
+{
+ "run_cargo": false,
+ "variants": [
+ {},
+ {
+ "features": [
+ "alloc"
+ ],
+ "module_name_overrides": {
+ "libhalf": "libhalf_nostd"
+ },
+ "package": {
+ "half": {
+ "alloc": true,
+ "force_rlib": true,
+ "host_supported": false,
+ "no_std": true
+ }
+ }
+ }
+ ]
+}