DO NOT MERGE: Build static libevent for the target.

libevent is already built as a static library in master since it was
converted to a .bp file. This patch builds it as a static library using
the legacy .mk file in this branch.

Bug: 27178350
Change-Id: Ic677b45a5ba806f688d766265f746be33dde7409

Cherry-pick needed on this branch but not on the downstream ones.
(cherry picked from commit a5dd84c71082d993bd8273d674daf89e4e9853a7)

Change-Id: Ied4bae6a46a48929b142cab8dfbcd325cf09ff18
diff --git a/Android.mk b/Android.mk
index 72eca2b..9b34fd1 100644
--- a/Android.mk
+++ b/Android.mk
@@ -69,6 +69,15 @@
 include $(BUILD_SHARED_LIBRARY)
 
 include $(CLEAR_VARS)
+LOCAL_MODULE := libevent
+LOCAL_ARM_MODE := arm
+LOCAL_CFLAGS := $(libevent_cflags)
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
+LOCAL_SRC_FILES := $(libevent_all_src) $(libevent_linux_src)
+include $(BUILD_STATIC_LIBRARY)
+
+include $(CLEAR_VARS)
 LOCAL_MODULE := libevent-host
 LOCAL_CFLAGS := $(libevent_cflags)
 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include