The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
Pavlin Radoslavov | 0b60bb0 | 2016-02-11 19:44:47 -0800 | [diff] [blame] | 3 | # HCI static library for target |
| 4 | # ======================================================== |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | LOCAL_SRC_FILES := \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 8 | src/btsnoop.c \ |
Andre Eisenbach | 1bd7605 | 2014-12-05 09:40:20 -0800 | [diff] [blame] | 9 | src/btsnoop_mem.c \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 10 | src/btsnoop_net.c \ |
Zach Johnson | bf8193b | 2014-09-08 09:56:35 -0700 | [diff] [blame] | 11 | src/buffer_allocator.c \ |
Mudumba Ananth | 6afb248 | 2015-03-25 05:20:02 -0700 | [diff] [blame] | 12 | src/hci_audio.c \ |
Zach Johnson | b7ddf13 | 2014-08-20 23:12:33 -0700 | [diff] [blame] | 13 | src/hci_hal.c \ |
| 14 | src/hci_hal_h4.c \ |
| 15 | src/hci_hal_mct.c \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 16 | src/hci_inject.c \ |
| 17 | src/hci_layer.c \ |
Zach Johnson | bf8193b | 2014-09-08 09:56:35 -0700 | [diff] [blame] | 18 | src/hci_packet_factory.c \ |
| 19 | src/hci_packet_parser.c \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 20 | src/low_power_manager.c \ |
| 21 | src/packet_fragmenter.c \ |
| 22 | src/vendor.c |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 23 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 24 | LOCAL_C_INCLUDES += \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 25 | $(LOCAL_PATH)/include \ |
Chris Manton | 79ecab5 | 2014-10-31 14:54:51 -0700 | [diff] [blame] | 26 | $(LOCAL_PATH)/.. \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 27 | $(LOCAL_PATH)/../include \ |
Zach Johnson | 9891f32 | 2014-09-22 22:11:55 -0700 | [diff] [blame] | 28 | $(LOCAL_PATH)/../btcore/include \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 29 | $(LOCAL_PATH)/../stack/include \ |
| 30 | $(LOCAL_PATH)/../utils/include \ |
Abhijit Adsule | 47b4310 | 2015-05-19 02:44:26 -0500 | [diff] [blame] | 31 | $(LOCAL_PATH)/../bta/include \ |
Pavlin Radoslavov | 0b60bb0 | 2016-02-11 19:44:47 -0800 | [diff] [blame] | 32 | $(bluetooth_C_INCLUDES) |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 33 | |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 34 | LOCAL_MODULE := libbt-hci |
The Android Open Source Project | 5738f83 | 2012-12-12 16:00:35 -0800 | [diff] [blame] | 35 | |
Pavlin Radoslavov | 0b60bb0 | 2016-02-11 19:44:47 -0800 | [diff] [blame] | 36 | ifeq ($(BLUETOOTH_HCI_USE_MCT),true) |
| 37 | LOCAL_CFLAGS += -DHCI_USE_MCT |
| 38 | endif |
| 39 | LOCAL_CFLAGS += $(bluetooth_CFLAGS) |
| 40 | LOCAL_CONLYFLAGS += $(bluetooth_CONLYFLAGS) |
| 41 | LOCAL_CPPFLAGS += $(bluetooth_CPPFLAGS) |
| 42 | |
Chris Manton | e01b112 | 2014-05-07 16:21:00 -0700 | [diff] [blame] | 43 | include $(BUILD_STATIC_LIBRARY) |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 44 | |
Pavlin Radoslavov | 0b60bb0 | 2016-02-11 19:44:47 -0800 | [diff] [blame] | 45 | # HCI unit tests for target |
| 46 | # ======================================================== |
Evgenii Stepanov | 1ab6fd7 | 2015-06-11 15:34:12 -0700 | [diff] [blame] | 47 | ifeq (,$(strip $(SANITIZE_TARGET))) |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 48 | include $(CLEAR_VARS) |
| 49 | |
| 50 | LOCAL_C_INCLUDES := \ |
| 51 | $(LOCAL_PATH)/include \ |
Chris Manton | 79ecab5 | 2014-10-31 14:54:51 -0700 | [diff] [blame] | 52 | $(LOCAL_PATH)/.. \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 53 | $(LOCAL_PATH)/../include \ |
Zach Johnson | 9891f32 | 2014-09-22 22:11:55 -0700 | [diff] [blame] | 54 | $(LOCAL_PATH)/../btcore/include \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 55 | $(LOCAL_PATH)/../osi/test \ |
| 56 | $(LOCAL_PATH)/../stack/include \ |
| 57 | $(LOCAL_PATH)/../utils/include \ |
Pavlin Radoslavov | 0b60bb0 | 2016-02-11 19:44:47 -0800 | [diff] [blame] | 58 | $(bluetooth_C_INCLUDES) |
Zach Johnson | 218f375 | 2014-09-03 14:36:44 -0700 | [diff] [blame] | 59 | |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 60 | LOCAL_SRC_FILES := \ |
Zach Johnson | ee2aa45 | 2014-08-26 20:16:03 -0700 | [diff] [blame] | 61 | ../osi/test/AllocationTestHarness.cpp \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 62 | ../osi/test/AlarmTestHarness.cpp \ |
| 63 | ./test/hci_hal_h4_test.cpp \ |
Zach Johnson | b7ddf13 | 2014-08-20 23:12:33 -0700 | [diff] [blame] | 64 | ./test/hci_hal_mct_test.cpp \ |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 65 | ./test/hci_layer_test.cpp \ |
| 66 | ./test/low_power_manager_test.cpp \ |
Dan Willemsen | d1fad88 | 2016-01-25 19:48:44 -0800 | [diff] [blame] | 67 | ./test/packet_fragmenter_test.cpp |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 68 | |
Sharvil Nanavati | 6168357 | 2014-12-29 00:56:46 -0800 | [diff] [blame] | 69 | LOCAL_MODULE := net_test_hci |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 70 | LOCAL_MODULE_TAGS := tests |
Marie Janssen | aa11644 | 2016-01-15 16:14:14 -0800 | [diff] [blame] | 71 | LOCAL_SHARED_LIBRARIES := liblog libdl libprotobuf-cpp-full |
| 72 | LOCAL_STATIC_LIBRARIES := libbt-hci libosi libcutils libbtcore libbt-protos |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 73 | |
Pavlin Radoslavov | 0b60bb0 | 2016-02-11 19:44:47 -0800 | [diff] [blame] | 74 | LOCAL_CFLAGS += $(bluetooth_CFLAGS) |
| 75 | LOCAL_CONLYFLAGS += $(bluetooth_CONLYFLAGS) |
| 76 | LOCAL_CPPFLAGS += $(bluetooth_CPPFLAGS) |
| 77 | |
Zach Johnson | fbbd42b | 2014-08-15 17:00:17 -0700 | [diff] [blame] | 78 | include $(BUILD_NATIVE_TEST) |
Evgenii Stepanov | 1ab6fd7 | 2015-06-11 15:34:12 -0700 | [diff] [blame] | 79 | endif # SANITIZE_TARGET |