blob: 7f6113aa55c453a473202f5079d951959fc0f604 [file] [log] [blame]
The Android Open Source Project5738f832012-12-12 16:00:35 -08001LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES := \
Chris Mantone01b1122014-05-07 16:21:00 -07006 src/bt_hci_bdroid.c \
7 src/bt_hw.c \
8 src/btsnoop.c \
9 src/btsnoop_net.c \
10 src/lpm.c \
11 src/utils.c
The Android Open Source Project5738f832012-12-12 16:00:35 -080012
13ifeq ($(BLUETOOTH_HCI_USE_MCT),true)
14
15LOCAL_CFLAGS := -DHCI_USE_MCT
16
17LOCAL_SRC_FILES += \
Chris Mantone01b1122014-05-07 16:21:00 -070018 src/hci_mct.c \
19 src/userial_mct.c
The Android Open Source Project5738f832012-12-12 16:00:35 -080020
21else
The Android Open Source Project5738f832012-12-12 16:00:35 -080022LOCAL_SRC_FILES += \
Chris Mantone01b1122014-05-07 16:21:00 -070023 src/hci_h4.c \
24 src/userial.c
The Android Open Source Project5738f832012-12-12 16:00:35 -080025endif
26
Sharvil Nanavati795bceb2014-04-05 00:44:19 -070027LOCAL_CFLAGS += -std=c99
28
The Android Open Source Project5738f832012-12-12 16:00:35 -080029LOCAL_C_INCLUDES += \
Chris Mantone01b1122014-05-07 16:21:00 -070030 $(LOCAL_PATH)/include \
31 $(LOCAL_PATH)/../utils/include
The Android Open Source Project5738f832012-12-12 16:00:35 -080032
33LOCAL_MODULE := libbt-hci
34LOCAL_MODULE_TAGS := optional
Chris Mantone01b1122014-05-07 16:21:00 -070035LOCAL_MODULE_CLASS := STATIC_LIBRARIES
The Android Open Source Project5738f832012-12-12 16:00:35 -080036
Chris Mantone01b1122014-05-07 16:21:00 -070037include $(BUILD_STATIC_LIBRARY)