Add build file am: c6676c8796 am: 9a3c5dc3c2 am: d7178fbcd5 am: bfedcc2be7
Original change: https://android-review.googlesource.com/c/platform/external/rust/pica/+/2488376
Change-Id: Icba98837cb14105579923e110301c07d2b95a18c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..4eb7c23
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,28 @@
+rust_library_host {
+ name: "libpica",
+ crate_name: "pica",
+ srcs: ["src/lib.rs"],
+ proc_macros: ["libnum_derive"],
+ rustlibs: [
+ "libanyhow",
+ "libbytes",
+ "libglam",
+ "libhex",
+ "libnum_traits",
+ "libthiserror",
+ "libserde",
+ "libtokio",
+ ],
+}
+
+rust_binary_host {
+ name: "pica",
+ srcs: ["src/bin/server/mod.rs"],
+ proc_macros: ["libnum_derive"],
+ rustlibs: [
+ "libanyhow",
+ "libpica",
+ "libclap",
+ "libtokio",
+ ],
+}