Add build file am: c6676c8796 am: 9a3c5dc3c2 am: d7178fbcd5
Original change: https://android-review.googlesource.com/c/platform/external/rust/pica/+/2488376
Change-Id: I3e960acbabe1694c06f797426f0c95f974a3081b
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",
+ ],
+}