Add libc (rust) build file.
Bug: 140201589
Test: m libc_rust
Change-Id: If84c2c3d9ff2da0c470429803fbabe84a7f650e8
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..8315359
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,20 @@
+rust_library_rlib {
+ name: "libc_rust",
+ crate_name: "libc",
+ edition: "2015",
+ stem: "liblibc",
+ srcs: ["src/lib.rs"],
+ host_supported: true,
+
+ features: [
+ "std",
+ "default",
+ ],
+ flags: [
+ "--cfg libc_priv_mod_use",
+ "--cfg libc_union",
+ "--cfg libc_const_size_of",
+ "--cfg libc_align",
+ "--cfg libc_core_cvoid",
+ ],
+}