Skip to content

Instantly share code, notes, and snippets.

@Nathaniel100
Created June 15, 2016 08:37
Show Gist options
  • Save Nathaniel100/b338c8b3564418c97291c43c5d1774e7 to your computer and use it in GitHub Desktop.
Save Nathaniel100/b338c8b3564418c97291c43c5d1774e7 to your computer and use it in GitHub Desktop.
Build libevent as seperate library, Android JNI
####################################
# 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
include $(BUILD_STATIC_LIBRARY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment