Home | History | Annotate | Download | only in tools
      1 BUILD_EXTRA_BT_TOOLS:=false
      2 
      3 LOCAL_PATH:= $(call my-dir)
      4 
      5 #
      6 # bttest
      7 #
      8 
      9 include $(CLEAR_VARS)
     10 
     11 LOCAL_SRC_FILES := bttest.c
     12 
     13 LOCAL_C_INCLUDES := \
     14     $(LOCAL_PATH)/../bluedroid/include \
     15 	system/bluetooth/bluez-clean-headers
     16 
     17 LOCAL_SHARED_LIBRARIES := libbluedroid
     18 
     19 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     20 LOCAL_MODULE_TAGS := eng
     21 LOCAL_MODULE := bttest
     22 
     23 include $(BUILD_EXECUTABLE)
     24 
     25 ifeq ($(BUILD_EXTRA_BT_TOOLS),true)
     26 
     27 #
     28 # socktest
     29 #
     30 
     31 include $(CLEAR_VARS)
     32 
     33 LOCAL_SRC_FILES := socktest.c
     34 
     35 LOCAL_C_INCLUDES := \
     36 	$(LOCAL_PATH)/../bluedroid/include \
     37 	$(LOCAL_PATH)/../bluez-clean-headers
     38 
     39 LOCAL_SHARED_LIBRARIES := libbluedroid
     40 
     41 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     42 LOCAL_MODULE_TAGS := eng
     43 LOCAL_MODULE := socktest
     44 
     45 include $(BUILD_EXECUTABLE)
     46 
     47 #
     48 # asocket_test
     49 #
     50 
     51 include $(CLEAR_VARS)
     52 
     53 LOCAL_SRC_FILES := asocket_test.c
     54 
     55 LOCAL_C_INCLUDES := \
     56 	$(LOCAL_PATH)/../bluez-clean-headers
     57 
     58 LOCAL_SHARED_LIBRARIES := libcutils
     59 
     60 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     61 LOCAL_MODULE_TAGS := eng
     62 LOCAL_MODULE := asocket_test
     63 
     64 include $(BUILD_EXECUTABLE)
     65 
     66 #
     67 # sock_shutdown_test
     68 #
     69 
     70 include $(CLEAR_VARS)
     71 
     72 LOCAL_SRC_FILES := sock_shutdown_test.c
     73 
     74 LOCAL_C_INCLUDES := \
     75 	$(LOCAL_PATH)/../bluez-clean-headers
     76 
     77 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     78 LOCAL_MODULE_TAGS := eng
     79 LOCAL_MODULE := sock_shutdown_test
     80 
     81 include $(BUILD_EXECUTABLE)
     82 
     83 #
     84 # sock_shutdown_bug_l2cap
     85 #
     86 
     87 include $(CLEAR_VARS)
     88 
     89 LOCAL_SRC_FILES := sock_shutdown_bug_l2cap.c
     90 
     91 LOCAL_C_INCLUDES := \
     92 	$(LOCAL_PATH)/../bluez-clean-headers
     93 
     94 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     95 LOCAL_MODULE_TAGS := eng
     96 LOCAL_MODULE := sock_shutdown_bug_l2cap
     97 
     98 LOCAL_SHARED_LIBRARIES := libbluetooth
     99 
    100 include $(BUILD_EXECUTABLE)
    101 
    102 #
    103 # sock_shutdown_bug_rfcomm
    104 #
    105 
    106 include $(CLEAR_VARS)
    107 
    108 LOCAL_SRC_FILES := sock_shutdown_bug_rfcomm.c
    109 
    110 LOCAL_C_INCLUDES := \
    111 	$(LOCAL_PATH)/../bluez-clean-headers
    112 
    113 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
    114 LOCAL_MODULE_TAGS := eng
    115 LOCAL_MODULE := sock_shutdown_bug_rfcomm
    116 
    117 LOCAL_SHARED_LIBRARIES := libbluetooth
    118 
    119 include $(BUILD_EXECUTABLE)
    120 
    121 #
    122 # sock_shutdown_bug_tcp
    123 #
    124 
    125 include $(CLEAR_VARS)
    126 
    127 LOCAL_SRC_FILES := sock_shutdown_bug_tcp.c
    128 
    129 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
    130 LOCAL_MODULE_TAGS := eng
    131 LOCAL_MODULE := sock_shutdown_bug_tcp
    132 
    133 LOCAL_SHARED_LIBRARIES := libbluetooth
    134 
    135 include $(BUILD_EXECUTABLE)
    136 #
    137 # pipetest
    138 #
    139 
    140 include $(CLEAR_VARS)
    141 
    142 LOCAL_SRC_FILES := pipetest.c
    143 
    144 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
    145 LOCAL_MODULE_TAGS := eng
    146 LOCAL_MODULE := pipetest
    147 
    148 include $(BUILD_EXECUTABLE)
    149 
    150 endif
    151