Add xmllint host build
So that we can use this instead of the host xmllint binary.
Test: m xmllint
Change-Id: I6181b2e7faaa4dfaab17b136fd7396c6e9d8c136
diff --git a/Android.bp b/Android.bp
index 8d90b03..260edf1 100644
--- a/Android.bp
+++ b/Android.bp
@@ -105,3 +105,15 @@
shared_libs: ["libicuuc"],
export_shared_lib_headers: ["libicuuc"],
}
+
+cc_binary_host {
+ name: "xmllint",
+ srcs: ["xmllint.c"],
+ cflags: [
+ "-DLIBXML_THREAD_ENABLED=1",
+
+ "-Wall",
+ "-Werror",
+ ],
+ shared_libs: ["libxml2"],
+}