OSDN Git Service

eclair snapshot
[android-x86/external-bluetooth-bluez.git] / src / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 #
4 # libbluetoothd
5 #
6
7 include $(CLEAR_VARS)
8
9 LOCAL_SRC_FILES:= \
10         adapter.c \
11         agent.c \
12         dbus-common.c \
13         dbus-hci.c \
14         device.c \
15         error.c \
16         main.c \
17         manager.c \
18         plugin.c \
19         rfkill.c \
20         sdpd-request.c \
21         sdpd-service.c \
22         sdpd-server.c \
23         sdpd-database.c \
24         security.c \
25         storage.c
26
27 LOCAL_CFLAGS:= \
28         -DVERSION=\"4.47\" \
29         -DSTORAGEDIR=\"/data/misc/bluetoothd\" \
30         -DCONFIGDIR=\"/etc/bluez\" \
31         -DSERVICEDIR=\"/system/bin\" \
32         -DPLUGINDIR=\"/system/lib/bluez-plugin\" \
33         -DANDROID_SET_AID_AND_CAP \
34         -DANDROID_EXPAND_NAME
35
36 LOCAL_C_INCLUDES:= \
37         $(LOCAL_PATH)/../include \
38         $(LOCAL_PATH)/../common \
39         $(LOCAL_PATH)/../gdbus \
40         $(LOCAL_PATH)/../plugins \
41         $(call include-path-for, glib) \
42         $(call include-path-for, glib)/glib \
43         $(call include-path-for, dbus)
44
45 LOCAL_SHARED_LIBRARIES := \
46         libdl \
47         libbluetooth \
48         libdbus \
49         libcutils
50
51 LOCAL_STATIC_LIBRARIES := \
52         libglib_static \
53         libbluez-common-static \
54         libbuiltinplugin \
55         libgdbus_static
56
57 LOCAL_MODULE:=libbluetoothd
58
59 include $(BUILD_SHARED_LIBRARY)
60
61 #
62 # bluetoothd
63 #
64
65 include $(CLEAR_VARS)
66
67 LOCAL_SHARED_LIBRARIES := \
68         libbluetoothd
69
70 LOCAL_MODULE:=bluetoothd
71
72 include $(BUILD_EXECUTABLE)