1 LOCAL_PATH:= $(call my-dir) 2 3 # 4 # libbluetoothd 5 # 6 7 include $(CLEAR_VARS) 8 9 LOCAL_SRC_FILES:= \ 10 android_bluez.c \ 11 adapter.c \ 12 agent.c \ 13 btio.c \ 14 dbus-common.c \ 15 dbus-hci.c \ 16 device.c \ 17 error.c \ 18 glib-helper.c \ 19 log.c \ 20 main.c \ 21 manager.c \ 22 oui.c \ 23 plugin.c \ 24 rfkill.c \ 25 sdpd-request.c \ 26 sdpd-service.c \ 27 sdpd-server.c \ 28 sdpd-database.c \ 29 sdp-xml.c \ 30 security.c \ 31 storage.c \ 32 textfile.c 33 34 LOCAL_CFLAGS:= \ 35 -DVERSION=\"4.69\" \ 36 -DSTORAGEDIR=\"/data/misc/bluetoothd\" \ 37 -DCONFIGDIR=\"/etc/bluetooth\" \ 38 -DSERVICEDIR=\"/system/bin\" \ 39 -DPLUGINDIR=\"/system/lib/bluez-plugin\" \ 40 -DANDROID_SET_AID_AND_CAP \ 41 -DANDROID_EXPAND_NAME 42 43 ifeq ($(BOARD_HAVE_BLUETOOTH_BCM),true) 44 LOCAL_CFLAGS += \ 45 -DBOARD_HAVE_BLUETOOTH_BCM 46 endif 47 48 LOCAL_C_INCLUDES:= \ 49 $(LOCAL_PATH)/../lib \ 50 $(LOCAL_PATH)/../gdbus \ 51 $(LOCAL_PATH)/../plugins \ 52 $(call include-path-for, glib) \ 53 $(call include-path-for, glib)/glib \ 54 $(call include-path-for, dbus) 55 56 LOCAL_SHARED_LIBRARIES := \ 57 libdl \ 58 libbluetooth \ 59 libdbus \ 60 libcutils 61 62 LOCAL_STATIC_LIBRARIES := \ 63 libglib_static \ 64 libbuiltinplugin \ 65 libgdbus_static 66 67 LOCAL_MODULE:=libbluetoothd 68 69 include $(BUILD_SHARED_LIBRARY) 70 71 # 72 # bluetoothd 73 # 74 75 include $(CLEAR_VARS) 76 77 LOCAL_SHARED_LIBRARIES := \ 78 libbluetoothd 79 80 LOCAL_MODULE:=bluetoothd 81 82 include $(BUILD_EXECUTABLE) 83