2013-10-04 19:48:43 +08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
# Retrieve BlueZ version from configure.ac file
|
|
|
|
BLUEZ_VERSION := $(shell grep ^AC_INIT $(LOCAL_PATH)/../configure.ac | cpp -P -D'AC_INIT(_,v)=v')
|
2013-10-04 19:48:45 +08:00
|
|
|
|
|
|
|
# Specify pathmap for glib
|
|
|
|
pathmap_INCL += glib:external/bluetooth/glib
|
|
|
|
|
|
|
|
#
|
|
|
|
# Android BlueZ daemon (bluetoothd)
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
main.c \
|
2013-10-04 19:48:47 +08:00
|
|
|
log.c \
|
2013-10-18 18:08:25 +08:00
|
|
|
adapter.c \
|
2013-10-16 22:36:29 +08:00
|
|
|
../src/shared/mgmt.c \
|
|
|
|
../src/shared/util.c \
|
2013-10-16 22:36:31 +08:00
|
|
|
../src/sdpd-database.c \
|
|
|
|
../src/sdpd-service.c \
|
|
|
|
../src/sdpd-request.c \
|
|
|
|
../src/sdpd-server.c \
|
|
|
|
../lib/sdp.c \
|
|
|
|
../lib/bluetooth.c \
|
|
|
|
../lib/hci.c \
|
2013-10-04 19:48:45 +08:00
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
$(call include-path-for, glib) \
|
|
|
|
$(call include-path-for, glib)/glib \
|
2013-10-16 22:36:29 +08:00
|
|
|
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
|
|
$(LOCAL_PATH)/../ \
|
2013-10-04 19:48:47 +08:00
|
|
|
$(LOCAL_PATH)/../src \
|
2013-10-16 22:36:31 +08:00
|
|
|
$(LOCAL_PATH)/../lib \
|
2013-10-04 19:48:45 +08:00
|
|
|
|
|
|
|
LOCAL_CFLAGS := -DVERSION=\"$(BLUEZ_VERSION)\"
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libglib \
|
|
|
|
|
|
|
|
LOCAL_MODULE := bluetoothd
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
2013-10-11 18:02:00 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# bluetooth.default.so HAL
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2013-10-22 02:56:41 +08:00
|
|
|
hal-ipc.c \
|
2013-10-18 18:08:27 +08:00
|
|
|
hal-bluetooth.c \
|
2013-10-18 18:08:28 +08:00
|
|
|
hal-sock.c \
|
2013-10-18 18:47:58 +08:00
|
|
|
hal-hidhost.c \
|
2013-10-17 16:26:46 +08:00
|
|
|
hal-pan.c \
|
2013-10-21 18:27:21 +08:00
|
|
|
hal-av.c \
|
2013-10-11 18:02:00 +08:00
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
|
|
|
|
|
|
|
LOCAL_MODULE := bluetooth.default
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2013-10-16 22:00:08 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# haltest
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
client/haltest.c \
|
|
|
|
client/pollhandler.c \
|
2013-10-16 22:00:09 +08:00
|
|
|
client/terminal.c \
|
2013-10-16 22:00:10 +08:00
|
|
|
client/history.c \
|
2013-10-16 22:00:11 +08:00
|
|
|
client/textconv.c \
|
2013-10-18 21:15:58 +08:00
|
|
|
client/tabcompletion.c \
|
2013-10-16 22:00:12 +08:00
|
|
|
client/if-bt.c \
|
2013-10-16 22:00:08 +08:00
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := libhardware
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_MODULE := haltest
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|