aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-12-15 16:02:15 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-12-15 16:02:15 +0000
commitd4da537e475522875134a4831f06aa7bdb4772cb (patch)
tree42f3e36df36464bdd7d7fcba2e800e7997ef11e6
parentfba8c92034dd7dde7a6401b6a275b46e5a2791e9 (diff)
parent7754bf823d2e125fb521f6dc6fea610efcf8934b (diff)
downloadgdbstub-d4da537e475522875134a4831f06aa7bdb4772cb.tar.gz
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: 7754bf823d
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/gdbstub/+/1912523 Change-Id: I01a440ef2495b2f85eef12ce71355681680e44db
-rw-r--r--Android.bp13
-rw-r--r--TEST_MAPPING4
-rw-r--r--cargo2android.json5
3 files changed, 10 insertions, 12 deletions
diff --git a/Android.bp b/Android.bp
index b9af58b..6155ca7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --dependencies --no-subdir.
+// This file is generated by cargo2android.py --config cargo2android.json.
// Do not modify this file as changes will be overridden on upgrade.
package {
@@ -22,6 +22,8 @@ rust_library {
name: "libgdbstub",
host_supported: true,
crate_name: "gdbstub",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.5.0",
srcs: ["src/lib.rs"],
edition: "2018",
features: [
@@ -37,12 +39,3 @@ rust_library {
],
proc_macros: ["libpaste"],
}
-
-// dependent_library ["feature_list"]
-// autocfg-1.0.1
-// cfg-if-0.1.10
-// cfg-if-1.0.0
-// log-0.4.14 "std"
-// managed-0.8.0 "alloc"
-// num-traits-0.2.14
-// paste-1.0.5
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 1e91e7e..c09ff4c 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -1,8 +1,8 @@
// Generated by update_crate_tests.py for tests that depend on this crate.
{
- "presubmit": [
+ "imports": [
{
- "name": "gdbstub_arch_device_test_src_lib"
+ "path": "external/rust/crates/gdbstub_arch"
}
]
}
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..84da6ae
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,5 @@
+{
+ "device": true,
+ "no-subdir": true,
+ "run": true
+} \ No newline at end of file