• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:= $(call my-dir)
2
3# A2DP plugin
4
5include $(CLEAR_VARS)
6
7LOCAL_SRC_FILES:= \
8	a2dp.c \
9	avdtp.c \
10	control.c \
11	device.c \
12	gateway.c \
13	headset.c \
14	ipc.c \
15	main.c \
16	manager.c \
17	module-bluetooth-sink.c \
18	sink.c \
19	source.c \
20	telephony-dummy.c \
21	unix.c
22
23LOCAL_CFLAGS:= \
24	-DVERSION=\"4.47\" \
25	-DSTORAGEDIR=\"/data/misc/bluetoothd\" \
26	-DCONFIGDIR=\"/etc/bluez\" \
27	-DANDROID \
28	-D__S_IFREG=0100000  # missing from bionic stat.h
29
30LOCAL_C_INCLUDES:= \
31	$(LOCAL_PATH)/../include \
32	$(LOCAL_PATH)/../common \
33	$(LOCAL_PATH)/../gdbus \
34	$(LOCAL_PATH)/../src \
35	$(call include-path-for, glib) \
36	$(call include-path-for, dbus)
37
38LOCAL_SHARED_LIBRARIES := \
39	libbluetooth \
40	libbluetoothd \
41	libdbus
42
43
44LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/bluez-plugin
45LOCAL_UNSTRIPPED_PATH := $(TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED)/bluez-plugin
46LOCAL_MODULE := audio
47
48include $(BUILD_SHARED_LIBRARY)
49
50#
51# liba2dp
52# This is linked to Audioflinger so **LGPL only**
53
54include $(CLEAR_VARS)
55
56LOCAL_SRC_FILES:= \
57	liba2dp.c \
58	ipc.c \
59	../sbc/sbc.c.arm \
60	../sbc/sbc_primitives.c \
61	../sbc/sbc_primitives_neon.c
62
63# to improve SBC performance
64LOCAL_CFLAGS:= -funroll-loops
65
66LOCAL_C_INCLUDES:= \
67	$(LOCAL_PATH)/../sbc \
68
69LOCAL_SHARED_LIBRARIES := \
70	libcutils
71
72LOCAL_MODULE := liba2dp
73
74include $(BUILD_SHARED_LIBRARY)
75