blob: d0013d232cf5cfdea06f130761ff982bc8c08428 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
core.c \
descriptor.c \
io.c \
sync.c \
os/linux_usbfs.c \
os/threads_posix.c \
os/poll_posix.c \
hotplug.c
LOCAL_C_INCLUDES += \
external/libusbx/ \
external/libusbx/libusb/ \
external/libusbx/libusb/os
LOCAL_CFLAGS := -D_SHARED_LIBRARY_
LOCAL_MODULE_TAGS:= optional
LOCAL_MODULE:= libusbx
#include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
core.c \
descriptor.c \
io.c \
sync.c \
hotplug.c
LOCAL_C_INCLUDES += \
external/libusbx/ \
external/libusbx/libusb/ \
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 os/linux_netlink.c
LOCAL_CFLAGS += -DHAVE_LINUX_NETLINK_H
endif
ifeq ($(HOST_OS),darwin)
LOCAL_SRC_FILES += os/darwin_usb.c os/threads_posix.c os/poll_posix.c
endif
ifeq ($(HOST_OS),windows)
LOCAL_SRC_FILES += os/windows_usb.c os/threads_windows.c os/poll_windows.c
endif
LOCAL_MODULE_TAGS:= optional
LOCAL_MODULE:= libusbx
include $(BUILD_HOST_STATIC_LIBRARY)
|