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 := \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 6 | src/btsnoop.c \ |
Andre Eisenbach | 89f5e41 | 2014-12-05 09:40:20 -0800 | [diff] [blame] | 7 | src/btsnoop_mem.c \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 8 | src/btsnoop_net.c \ |
Zach Johnson | bf8193b | 2014-09-08 09:56:35 -0700 | [diff] [blame] | 9 | src/buffer_allocator.c \ |
Mudumba Ananth | 6afb248 | 2015-03-25 05:20:02 -0700 | [diff] [blame] | 10 | src/hci_audio.c \ |
Zach Johnson | b7ddf13 | 2014-08-20 23:12:33 -0700 | [diff] [blame] | 11 | src/hci_hal.c \ |
| 12 | src/hci_hal_h4.c \ |
| 13 | src/hci_hal_mct.c \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 14 | src/hci_inject.c \ |
| 15 | src/hci_layer.c \ |
Zach Johnson | bf8193b | 2014-09-08 09:56:35 -0700 | [diff] [blame] | 16 | src/hci_packet_factory.c \ |
| 17 | src/hci_packet_parser.c \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 18 | src/low_power_manager.c \ |
| 19 | src/packet_fragmenter.c \ |
| 20 | src/vendor.c |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 21 | |
| 22 | ifeq ($(BLUETOOTH_HCI_USE_MCT),true) |
Kévin PETIT | 22c6e50 | 2014-02-12 17:24:01 +0000 | [diff] [blame] | 23 | LOCAL_CFLAGS += -DHCI_USE_MCT |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 24 | endif |
| 25 | |
Srinu Jella | 13f3c2e | 2015-09-21 19:29:50 +0530 | [diff] [blame] | 26 | ifeq ($(QCOM_BT_USE_SMD_TTY),true) |
| 27 | LOCAL_CFLAGS += -DQCOM_WCN_SSR |
| 28 | endif |
| 29 | |
Mallikarjuna GB | 57989bb | 2014-11-14 19:46:19 +0530 | [diff] [blame] | 30 | ifeq ($(TARGET_BUILD_VARIANT), userdebug) |
| 31 | LOCAL_CFLAGS += -DBTSNOOP_DEFAULT=TRUE |
| 32 | endif |
| 33 | |
Sharvil Nanavati | 4f9d7bd | 2014-05-03 17:32:05 -0700 | [diff] [blame] | 34 | LOCAL_CFLAGS += -std=c99 $(bdroid_CFLAGS) |
Sharvil Nanavati | 5b6b25d | 2014-04-05 00:44:19 -0700 | [diff] [blame] | 35 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 36 | LOCAL_C_INCLUDES += \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 37 | $(LOCAL_PATH)/include \ |
Chris Manton | 79ecab5 | 2014-10-31 14:54:51 -0700 | [diff] [blame] | 38 | $(LOCAL_PATH)/.. \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 39 | $(LOCAL_PATH)/../include \ |
Zach Johnson | 9891f32 | 2014-09-22 22:11:55 -0700 | [diff] [blame] | 40 | $(LOCAL_PATH)/../btcore/include \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 41 | $(LOCAL_PATH)/../gki/common \ |
| 42 | $(LOCAL_PATH)/../gki/ulinux \ |
| 43 | $(LOCAL_PATH)/../osi/include \ |
| 44 | $(LOCAL_PATH)/../stack/include \ |
| 45 | $(LOCAL_PATH)/../utils/include \ |
| 46 | $(bdroid_C_INCLUDES) |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 47 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 48 | LOCAL_MODULE := libbt-hci |
| 49 | LOCAL_MODULE_TAGS := optional |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 50 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 51 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 52 | include $(BUILD_STATIC_LIBRARY) |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 53 | |
| 54 | ##################################################### |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 55 | include $(CLEAR_VARS) |
| 56 | |
| 57 | LOCAL_C_INCLUDES := \ |
| 58 | $(LOCAL_PATH)/include \ |
Chris Manton | 79ecab5 | 2014-10-31 14:54:51 -0700 | [diff] [blame] | 59 | $(LOCAL_PATH)/.. \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 60 | $(LOCAL_PATH)/../include \ |
Zach Johnson | 9891f32 | 2014-09-22 22:11:55 -0700 | [diff] [blame] | 61 | $(LOCAL_PATH)/../btcore/include \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 62 | $(LOCAL_PATH)/../gki/common \ |
| 63 | $(LOCAL_PATH)/../gki/ulinux \ |
| 64 | $(LOCAL_PATH)/../osi/include \ |
| 65 | $(LOCAL_PATH)/../osi/test \ |
| 66 | $(LOCAL_PATH)/../stack/include \ |
| 67 | $(LOCAL_PATH)/../utils/include \ |
| 68 | $(bdroid_C_INCLUDES) |
| 69 | |
Zach Johnson | 218f375 | 2014-09-03 14:36:44 -0700 | [diff] [blame] | 70 | |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 71 | LOCAL_SRC_FILES := \ |
Zach Johnson | ee2aa45 | 2014-08-26 20:16:03 -0700 | [diff] [blame] | 72 | ../osi/test/AllocationTestHarness.cpp \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 73 | ../osi/test/AlarmTestHarness.cpp \ |
| 74 | ./test/hci_hal_h4_test.cpp \ |
Zach Johnson | b7ddf13 | 2014-08-20 23:12:33 -0700 | [diff] [blame] | 75 | ./test/hci_hal_mct_test.cpp \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 76 | ./test/hci_layer_test.cpp \ |
| 77 | ./test/low_power_manager_test.cpp \ |
Zach Johnson | 218f375 | 2014-09-03 14:36:44 -0700 | [diff] [blame] | 78 | ./test/packet_fragmenter_test.cpp \ |
| 79 | $(bdroid_C_INCLUDES) |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 80 | |
Zach Johnson | b7ddf13 | 2014-08-20 23:12:33 -0700 | [diff] [blame] | 81 | |
Zach Johnson | 218f375 | 2014-09-03 14:36:44 -0700 | [diff] [blame] | 82 | LOCAL_CFLAGS := -Wall -Werror $(bdroid_CFLAGS) |
Sharvil Nanavati | 6168357 | 2014-12-29 00:56:46 -0800 | [diff] [blame] | 83 | LOCAL_MODULE := net_test_hci |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 84 | LOCAL_MODULE_TAGS := tests |
| 85 | LOCAL_SHARED_LIBRARIES := liblog libdl |
Zach Johnson | 093948a | 2014-09-23 18:30:45 -0700 | [diff] [blame] | 86 | LOCAL_STATIC_LIBRARIES := libbt-hci libosi libcutils libbtcore |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 87 | |
| 88 | include $(BUILD_NATIVE_TEST) |