aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Farrell <jamesfarrell@google.com>2023-09-14 03:08:01 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-09-14 03:08:01 +0000
commit4b1202b936103f0dda3a1c66fecce8dee8feb272 (patch)
treeeb20ebb0bdac7317e0bf843f4195707804134613
parent95dda260fce620fbff0ad6ac77bc66f1ffdb5fe5 (diff)
parentf5dd4e4e5bd48cb1f308e2d060320ce583a269c5 (diff)
downloadclap-4b1202b936103f0dda3a1c66fecce8dee8feb272.tar.gz
Cleanup cargo2android configs and patches am: 59a7e23856 am: bd53d43edc am: 55bb541d44 am: f5dd4e4e5b
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/clap/+/2750925 Change-Id: Ibb1048b77693a2438f597fcea4358492d6f06d62 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--3.2.23/Android.bp2
-rw-r--r--3.2.23/cargo2android.json6
-rw-r--r--3.2.23/patches/Android.bp.diff18
-rw-r--r--cargo2android.json5
-rw-r--r--patches/Android.bp.diff22
5 files changed, 16 insertions, 37 deletions
diff --git a/3.2.23/Android.bp b/3.2.23/Android.bp
index db4e9eb..d2a25ae 100644
--- a/3.2.23/Android.bp
+++ b/3.2.23/Android.bp
@@ -58,6 +58,6 @@ rust_library {
"//apex_available:platform",
"//apex_available:anyapex",
],
- vendor_available: true,
product_available: true,
+ vendor_available: true,
}
diff --git a/3.2.23/cargo2android.json b/3.2.23/cargo2android.json
index f99d1f0..71f70c0 100644
--- a/3.2.23/cargo2android.json
+++ b/3.2.23/cargo2android.json
@@ -3,5 +3,9 @@
"device": true,
"features": "std",
"run": true,
- "tests": true
+ "tests": true,
+ "name-suffix": "_3.2.23",
+ "dep-suffixes": {
+ "bitflags": "-1.3.2"
+ }
}
diff --git a/3.2.23/patches/Android.bp.diff b/3.2.23/patches/Android.bp.diff
index b79bef0..c67c004 100644
--- a/3.2.23/patches/Android.bp.diff
+++ b/3.2.23/patches/Android.bp.diff
@@ -2,22 +2,14 @@ diff --git a/3.2.23/Android.bp b/3.2.23/Android.bp
index 0593d09..0e1e5ea 100644
--- a/3.2.23/Android.bp
+++ b/3.2.23/Android.bp
-@@ -4,7 +4,7 @@
-
-
- rust_library {
-- name: "libclap",
-+ name: "libclap_3.2.23",
- host_supported: true,
- crate_name: "clap",
- cargo_env_compat: true,
-@@ -23,21 +23,3 @@ rust_library {
+@@ -23,24 +23,3 @@ rust_library {
"//apex_available:anyapex",
],
}
-
-rust_binary {
-- name: "stdio_fixture",
+- name: "stdio_fixture_3.2.23",
+- // has rustc warnings
- host_supported: true,
- crate_name: "stdio_fixture",
- cargo_env_compat: true,
@@ -26,10 +18,12 @@ index 0593d09..0e1e5ea 100644
- edition: "2021",
- features: ["std"],
- rustlibs: [
-- "libbitflags",
+- "libbitflags-1.3.2",
- "libclap",
- "libclap_lex",
- "libindexmap",
- "libtextwrap",
- ],
+- product_available: true,
+- vendor_available: true,
-}
diff --git a/cargo2android.json b/cargo2android.json
index e49ebf5..150a550 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -2,5 +2,8 @@
"dependencies": true,
"device": true,
"features": "derive,error-context,help,std,usage",
- "run": true
+ "run": true,
+ "dep-suffixes": {
+ "bitflags": "-1.3.2"
+ }
}
diff --git a/patches/Android.bp.diff b/patches/Android.bp.diff
deleted file mode 100644
index a4dc389..0000000
--- a/patches/Android.bp.diff
+++ /dev/null
@@ -1,22 +0,0 @@
-diff --git a/Android.bp b/Android.bp
-index 235586c..1595d5e 100644
---- a/Android.bp
-+++ b/Android.bp
-@@ -53,7 +53,7 @@ rust_library {
- "usage",
- ],
- rustlibs: [
-- "libbitflags",
-+ "libbitflags-1.3.2",
- "libclap_lex",
- "libonce_cell",
- ],
-@@ -82,7 +82,7 @@ rust_binary {
- "usage",
- ],
- rustlibs: [
-- "libbitflags",
-+ "libbitflags-1.3.2",
- "libclap",
- "libclap_lex",
- "libonce_cell",