aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-11-03 06:05:42 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-11-03 06:05:42 +0000
commitb42dd1665e93d360bc8755aab4d306bef0f0e8f4 (patch)
tree2d6bfb6e190e39ffd849e8863bb973c2f9206f80
parenta96ae658c5e9a2925ccabb5843ed29f936dd867e (diff)
parentd68a4dc7957e770c6e253503b3fd0c9b63e7195e (diff)
downloadandroid_log-sys-b42dd1665e93d360bc8755aab4d306bef0f0e8f4.tar.gz
Use cargo2android.py with a patch file. am: 27ce6de4e8 am: 0a29bc79d4 am: 786a8eb175 am: d68a4dc795
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/android_log-sys/+/1483937 Change-Id: If342a927aa592f9ea93d7501c3ec45c75af7b6f9
-rw-r--r--Android.bp4
-rw-r--r--patches/Android.bp.patch13
2 files changed, 15 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index 82472e5..64302ac 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,11 +1,11 @@
-// This file is generated by cargo2android.py --run --dependencies --device --no-host.
+// This file is generated by cargo2android.py --run --dependencies --device --patch=patches/Android.bp.patch.
rust_library {
name: "libandroid_log_sys",
+ host_supported: true,
crate_name: "android_log_sys",
srcs: ["src/lib.rs"],
edition: "2015",
- host_supported: true,
target: {
linux_glibc: {
// liblog is not added as a dependency for linux_glibc target
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..f00ea81
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,13 @@
+--- Android.bp.orig 2020-10-30 16:31:00.469140136 -0700
++++ Android.bp 2020-10-30 16:31:43.436969421 -0700
+@@ -6,4 +6,10 @@
+ crate_name: "android_log_sys",
+ srcs: ["src/lib.rs"],
+ edition: "2015",
++ target: {
++ linux_glibc: {
++ // liblog is not added as a dependency for linux_glibc target
++ enabled: false,
++ },
++ },
+ }