1LOCAL_PATH := $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_SRC_FILES := \ 6 src/btsnoop.c \ 7 src/btsnoop_mem.c \ 8 src/btsnoop_net.c \ 9 src/buffer_allocator.c \ 10 src/hci_audio.c \ 11 src/hci_hal.c \ 12 src/hci_hal_h4.c \ 13 src/hci_hal_mct.c \ 14 src/hci_inject.c \ 15 src/hci_layer.c \ 16 src/hci_packet_factory.c \ 17 src/hci_packet_parser.c \ 18 src/low_power_manager.c \ 19 src/packet_fragmenter.c \ 20 src/vendor.c 21 22ifeq ($(BLUETOOTH_HCI_USE_MCT),true) 23LOCAL_CFLAGS += -DHCI_USE_MCT 24endif 25 26LOCAL_CFLAGS += -std=c99 $(bdroid_CFLAGS) 27 28LOCAL_C_INCLUDES += \ 29 $(LOCAL_PATH)/include \ 30 $(LOCAL_PATH)/.. \ 31 $(LOCAL_PATH)/../include \ 32 $(LOCAL_PATH)/../btcore/include \ 33 $(LOCAL_PATH)/../gki/common \ 34 $(LOCAL_PATH)/../gki/ulinux \ 35 $(LOCAL_PATH)/../osi/include \ 36 $(LOCAL_PATH)/../stack/include \ 37 $(LOCAL_PATH)/../utils/include \ 38 $(bdroid_C_INCLUDES) 39 40LOCAL_MODULE := libbt-hci 41LOCAL_MODULE_TAGS := optional 42LOCAL_MODULE_CLASS := STATIC_LIBRARIES 43 44include $(BUILD_STATIC_LIBRARY) 45 46##################################################### 47include $(CLEAR_VARS) 48 49LOCAL_C_INCLUDES := \ 50 $(LOCAL_PATH)/include \ 51 $(LOCAL_PATH)/.. \ 52 $(LOCAL_PATH)/../include \ 53 $(LOCAL_PATH)/../btcore/include \ 54 $(LOCAL_PATH)/../gki/common \ 55 $(LOCAL_PATH)/../gki/ulinux \ 56 $(LOCAL_PATH)/../osi/include \ 57 $(LOCAL_PATH)/../osi/test \ 58 $(LOCAL_PATH)/../stack/include \ 59 $(LOCAL_PATH)/../utils/include \ 60 $(bdroid_C_INCLUDES) 61 62 63LOCAL_SRC_FILES := \ 64 ../osi/test/AllocationTestHarness.cpp \ 65 ../osi/test/AlarmTestHarness.cpp \ 66 ./test/hci_hal_h4_test.cpp \ 67 ./test/hci_hal_mct_test.cpp \ 68 ./test/hci_layer_test.cpp \ 69 ./test/low_power_manager_test.cpp \ 70 ./test/packet_fragmenter_test.cpp \ 71 $(bdroid_C_INCLUDES) 72 73 74LOCAL_CFLAGS := -Wall -Werror $(bdroid_CFLAGS) 75LOCAL_MODULE := net_test_hci 76LOCAL_MODULE_TAGS := tests 77LOCAL_SHARED_LIBRARIES := liblog libdl 78LOCAL_STATIC_LIBRARIES := libbt-hci libosi libcutils libbtcore 79 80include $(BUILD_NATIVE_TEST) 81