blob: 504a2728118402a7cf4c5204da91c781ee6f431f [file] [log] [blame]
LOCAL_PATH:= $(call my-dir)
#
# libbluetoothd
#
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
adapter.c \
agent.c \
dbus-common.c \
dbus-hci.c \
device.c \
error.c \
main.c \
manager.c \
plugin.c \
rfkill.c \
sdpd-request.c \
sdpd-service.c \
sdpd-server.c \
sdpd-database.c \
security.c \
storage.c
LOCAL_CFLAGS:= \
-DVERSION=\"4.47\" \
-DSTORAGEDIR=\"/data/misc/bluetoothd\" \
-DCONFIGDIR=\"/etc/bluetooth\" \
-DSERVICEDIR=\"/system/bin\" \
-DPLUGINDIR=\"/system/lib/bluez-plugin\" \
-DANDROID_SET_AID_AND_CAP \
-DANDROID_EXPAND_NAME
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/../include \
$(LOCAL_PATH)/../common \
$(LOCAL_PATH)/../gdbus \
$(LOCAL_PATH)/../plugins \
$(call include-path-for, glib) \
$(call include-path-for, glib)/glib \
$(call include-path-for, dbus)
LOCAL_SHARED_LIBRARIES := \
libdl \
libbluetooth \
libdbus \
libcutils
LOCAL_STATIC_LIBRARIES := \
libglib_static \
libbluez-common-static \
libbuiltinplugin \
libgdbus_static
LOCAL_MODULE:=libbluetoothd
include $(BUILD_SHARED_LIBRARY)
#
# bluetoothd
#
include $(CLEAR_VARS)
LOCAL_SHARED_LIBRARIES := \
libbluetoothd
LOCAL_MODULE:=bluetoothd
include $(BUILD_EXECUTABLE)