aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.bp2
-rw-r--r--android_impl.bp12
-rw-r--r--cargo2android.json3
3 files changed, 15 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index 81c9175..b6b435b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -71,7 +71,7 @@ rust_library {
"liblog",
],
}
- }
+ },
}
rust_library_rlib {
diff --git a/android_impl.bp b/android_impl.bp
new file mode 100644
index 0000000..77d8833
--- /dev/null
+++ b/android_impl.bp
@@ -0,0 +1,12 @@
+target: {
+ android: {
+ cfgs: ["default_log_impl"],
+ rustlibs: [
+ "libandroid_log_sys",
+ "libonce_cell",
+ ],
+ shared_libs: [
+ "liblog",
+ ],
+ }
+} \ No newline at end of file
diff --git a/cargo2android.json b/cargo2android.json
index 474419b..2e29872 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -6,7 +6,8 @@
"variants": [
{
"features": "std",
- "suffix": "_rust"
+ "suffix": "_rust",
+ "add-module-block": "android_impl.bp"
},
{
"force-rlib": true,