diff options
author | Andrew Walbran <qwandor@google.com> | 2023-11-09 16:25:29 +0000 |
---|---|---|
committer | Andrew Walbran <qwandor@google.com> | 2023-11-09 16:25:29 +0000 |
commit | 22f4e7a52af4ce1eef247f8ebf52fe926c115edc (patch) | |
tree | 51ee08f81f2b59fe4e5ff8dadc484a681ea9e175 | |
parent | 355523cd878b4d3130bdb72ad2849d8d6b13ffe0 (diff) | |
download | half-22f4e7a52af4ce1eef247f8ebf52fe926c115edc.tar.gz |
Migrate to cargo_embargo.
Bug: 293289578
Test: Ran cargo_embargo, compared Android.bp
Change-Id: I1030a82c848042587e06a45ed82b17bbb183e851
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | cargo2android.json | 16 | ||||
-rw-r--r-- | cargo_embargo.json | 22 |
3 files changed, 23 insertions, 17 deletions
@@ -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 + } + } + } + ] +} |