summaryrefslogtreecommitdiffstats
path: root/third_party/libevent/Android.mk
blob: 00bdf6b6600045f871f28ad71b61da73bce073cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
####################################
# Build libevent as separate library

include $(CLEAR_VARS)

LOCAL_MODULE:= libevent
LOCAL_MODULE_TAGS:= optional

LOCAL_SRC_FILES := \
    third_party/libevent/event.c \
    third_party/libevent/evutil.c \
    third_party/libevent/epoll.c \
    third_party/libevent/log.c \
    third_party/libevent/poll.c \
    third_party/libevent/select.c \
    third_party/libevent/signal.c

LOCAL_C_INCLUDES := \
    $(LOCAL_PATH)/third_party/libevent \
    $(LOCAL_PATH)/third_party/libevent/android

LOCAL_CFLAGS := -DHAVE_CONFIG_H -DANDROID -fvisibility=hidden
ifeq ($(TARGET_SIMULATOR),true)
LOCAL_CFLAGS += -D_EVENT_HAVE_FD_MASK=1
endif

include $(BUILD_STATIC_LIBRARY)