summaryrefslogtreecommitdiffstats
path: root/hci/Android.mk
blob: 875197cfaf066d3cb12b4d977e28be6c57bf9f8d (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
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
        src/bt_hci_bdroid.c \
        src/lpm.c \
        src/bt_hw.c \
        src/btsnoop.c \
        src/utils.c

ifeq ($(BLUETOOTH_HCI_USE_MCT),true)

LOCAL_CFLAGS := -DHCI_USE_MCT

LOCAL_SRC_FILES += \
        src/hci_mct.c \
        src/userial_mct.c

else

LOCAL_SRC_FILES += \
        src/hci_h4.c \
        src/userial.c

endif

LOCAL_C_INCLUDES += \
        $(LOCAL_PATH)/include

LOCAL_SHARED_LIBRARIES := \
        libcutils \
        libdl

LOCAL_MODULE := libbt-hci
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := SHARED_LIBRARIES

include $(BUILD_SHARED_LIBRARY)