aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkenshin <foufou33@gmail.com>2014-12-15 14:13:01 -0500
committerkenshin <foufou33@gmail.com>2014-12-15 17:41:56 -0500
commitb0b31904b50218c17dad7b9d893d3b6ab7a26bfa (patch)
tree1ae688bca652398d217c8e4d5f49c4e2e61636c3
parent128f4a25a580449d413085ce95505aeaf6903ca4 (diff)
downloadandroid_external_libusbx-cm-13.0.tar.gz
android_external_libusbx-cm-13.0.tar.bz2
android_external_libusbx-cm-13.0.zip
Change-Id: If8bcf74c828302b4f9bb90b1641579c5fd046c44
-rw-r--r--libusb/Android.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/libusb/Android.mk b/libusb/Android.mk
index dfa4213..d0013d2 100644
--- a/libusb/Android.mk
+++ b/libusb/Android.mk
@@ -34,10 +34,13 @@ LOCAL_SRC_FILES:= \
LOCAL_C_INCLUDES += \
external/libusbx/ \
external/libusbx/libusb/ \
- external/libusbx/libusb/os
+ external/libusbx/libusb/os \
+ external/libnl/include/
+LOCAL_CFLAGS := -D_SHARED_LIBRARY_
ifeq ($(HOST_OS),linux)
- LOCAL_SRC_FILES += os/linux_usbfs.c os/threads_posix.c os/poll_posix.c
+ LOCAL_SRC_FILES += os/linux_usbfs.c os/threads_posix.c os/poll_posix.c os/linux_netlink.c
+ LOCAL_CFLAGS += -DHAVE_LINUX_NETLINK_H
endif
ifeq ($(HOST_OS),darwin)
@@ -49,7 +52,6 @@ ifeq ($(HOST_OS),windows)
endif
-LOCAL_CFLAGS := -D_SHARED_LIBRARY_
LOCAL_MODULE_TAGS:= optional
LOCAL_MODULE:= libusbx
include $(BUILD_HOST_STATIC_LIBRARY)