Allow minijail to be built as an Android Rust library am: a111f545ed am: 5e4bdfb4b6 am: 5680073158
Change-Id: I7e953a2ba92c2f03e306ad3368f226e35cb5d8e9
diff --git a/Android.bp b/Android.bp
index 2555c44..687a366 100644
--- a/Android.bp
+++ b/Android.bp
@@ -414,3 +414,20 @@
static_libs: ["libminijail_generated"],
shared_libs: minijailCommonLibraries + ["libminijail"],
}
+
+// Generated by cargo2android.
+rust_library_host_rlib {
+ name: "libminijail_sys",
+ crate_name: "minijail_sys",
+ srcs: ["lib.rs"],
+ edition: "2018",
+ rlibs: [
+ "liblibc",
+ ],
+ static_libs: [
+ "libminijail",
+ ],
+ shared_libs: [
+ "libcap",
+ ],
+}