The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_SRC_FILES := \ |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 6 | 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 Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 12 | |
| 13 | ifeq ($(BLUETOOTH_HCI_USE_MCT),true) |
| 14 | |
| 15 | LOCAL_CFLAGS := -DHCI_USE_MCT |
| 16 | |
| 17 | LOCAL_SRC_FILES += \ |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 18 | src/hci_mct.c \ |
| 19 | src/userial_mct.c |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 20 | |
| 21 | else |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 22 | LOCAL_SRC_FILES += \ |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 23 | src/hci_h4.c \ |
| 24 | src/userial.c |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 25 | endif |
| 26 | |
Sharvil Nanavati | 795bceb | 2014-04-05 00:44:19 -0700 | [diff] [blame] | 27 | LOCAL_CFLAGS += -std=c99 |
| 28 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 29 | LOCAL_C_INCLUDES += \ |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 30 | $(LOCAL_PATH)/include \ |
| 31 | $(LOCAL_PATH)/../utils/include |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 32 | |
| 33 | LOCAL_MODULE := libbt-hci |
| 34 | LOCAL_MODULE_TAGS := optional |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 35 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 36 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 37 | include $(BUILD_STATIC_LIBRARY) |