aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-08-01 12:33:12 -0700
committerAlex Deymo <deymo@google.com>2016-08-12 18:37:49 +0000
commit96109b593a61709259971af33efba001e7e04427 (patch)
treeca68e6783bacd61453e12ef07c8437a0b5252837
parent5fb7f7dc8f4d16e320da6ed2a10aff8c56b49a28 (diff)
downloadlibevent-nougat-mr2-pixel-release.tar.gz
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
-rw-r--r--Android.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 72eca2b..9b34fd1 100644
--- a/Android.mk
+++ b/Android.mk
@@ -69,6 +69,15 @@ LOCAL_SRC_FILES := $(libevent_all_src) $(libevent_linux_src)
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