aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Walbran <qwandor@google.com>2023-10-18 17:56:55 +0100
committerAndrew Walbran <qwandor@google.com>2023-10-18 17:56:55 +0100
commit66e61af4a9dc7ad889c6db56bb9c090c619c1085 (patch)
tree305484646f8121871e680ca684b53dd1e157ccfa
parentc7b1fe3624fed647919eb3c9085511a5f390ec8b (diff)
downloadlitrs-66e61af4a9dc7ad889c6db56bb9c090c619c1085.tar.gz
Migrate to cargo_embargo.
Bug: 293289578 Test: Ran cargo_embargo, compared Android.bp Change-Id: I0aeb2d737398d66da5991098fa9dfde868cc5ce9
-rw-r--r--Android.bp6
-rw-r--r--cargo2android.json4
-rw-r--r--cargo_embargo.json9
3 files changed, 11 insertions, 8 deletions
diff --git a/Android.bp b/Android.bp
index 1cb9448..7e7c1b9 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 {
@@ -48,8 +48,6 @@ rust_library_host {
"default",
"proc-macro2",
],
- rustlibs: [
- "libproc_macro2",
- ],
+ rustlibs: ["libproc_macro2"],
compile_multilib: "first",
}
diff --git a/cargo2android.json b/cargo2android.json
deleted file mode 100644
index 5d719bf..0000000
--- a/cargo2android.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "host-first-multilib": true,
- "run": true
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
new file mode 100644
index 0000000..c68a096
--- /dev/null
+++ b/cargo_embargo.json
@@ -0,0 +1,9 @@
+{
+ "package": {
+ "litrs": {
+ "device_supported": false,
+ "host_first_multilib": true
+ }
+ },
+ "run_cargo": false
+}