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