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