Add blueprint build for farmhash
Bug: 63905942
Farmhash is used by the LSH Projection operation in NN API, which is
built via blueprint. Hence the need to build farmhash here using
blueprint.
Test: mm and NN API unit test
Change-Id: I0bf2fb03d72a0558e14b282e6ed4b3cc7c466c47
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..a886a0c
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,17 @@
+cc_library_headers {
+ name: "libtextclassifier_hash_headers",
+ vendor_available: true,
+ export_include_dirs: ["."],
+}
+
+cc_library_shared {
+ name: "libtextclassifier_hash",
+ vendor_available: true,
+ srcs: [
+ "util/hash/farmhash.cc",
+ "util/hash/hash.cc"
+ ],
+ cflags: [
+ "-DNAMESPACE_FOR_HASH_FUNCTIONS=farmhash"
+ ],
+}