blob: 18c89fc9662c768de7d6623d4059c8bc7f449e0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
LOCAL_PATH:= $(call my-dir)
include $(LOCAL_PATH)/../include/buildcfg.mk
#
# Bluetooth HW module
#
include $(CLEAR_VARS)
# HAL layer
LOCAL_SRC_FILES:= \
../btif/src/bluetooth.c
# platform specific
LOCAL_SRC_FILES+= \
bte_main.c \
bte_init.c \
bte_version.c \
bte_logmsg.c \
bte_conf.c
# BTIF
LOCAL_SRC_FILES += \
../btif/src/btif_core.c \
../btif/src/btif_dm.c \
../btif/src/btif_storage.c \
../btif/src/btif_util.c \
../btif/src/btif_sm.c \
../btif/src/btif_hf.c \
../btif/src/btif_av.c \
../btif/src/btif_rc.c \
../btif/src/btif_media_task.c \
../btif/src/btif_hh.c
# callouts
LOCAL_SRC_FILES+= \
../btif/co/bta_sys_co.c \
../btif/co/bta_fs_co.c \
../btif/co/bta_ag_co.c \
../btif/co/bta_dm_co.c \
../btif/co/bta_av_co.c \
../btif/co/bta_hh_co.c
# sbc encoder
LOCAL_SRC_FILES+= \
../embdrv/sbc/encoder/srce/sbc_analysis.c \
../embdrv/sbc/encoder/srce/sbc_dct.c \
../embdrv/sbc/encoder/srce/sbc_dct_coeffs.c \
../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_mono.c \
../embdrv/sbc/encoder/srce/sbc_enc_bit_alloc_ste.c \
../embdrv/sbc/encoder/srce/sbc_enc_coeffs.c \
../embdrv/sbc/encoder/srce/sbc_encoder.c \
../embdrv/sbc/encoder/srce/sbc_packing.c \
# candidates for vendor lib (keep here for now)
LOCAL_SRC_FILES+= \
../udrv/ulinux/unv_linux.c\
../udrv/ulinux/uipc.c
LOCAL_C_INCLUDES+= . \
$(LOCAL_PATH)/../bta/include \
$(LOCAL_PATH)/../bta/sys \
$(LOCAL_PATH)/../bta/dm \
$(LOCAL_PATH)/../gki/common \
$(LOCAL_PATH)/../gki/ulinux \
$(LOCAL_PATH)/../include \
$(LOCAL_PATH)/../stack/include \
$(LOCAL_PATH)/../stack/l2cap \
$(LOCAL_PATH)/../stack/a2dp \
$(LOCAL_PATH)/../stack/btm \
$(LOCAL_PATH)/../stack/avdt \
$(LOCAL_PATH)/../hcis \
$(LOCAL_PATH)/../hcis/include \
$(LOCAL_PATH)/../hcis/patchram \
$(LOCAL_PATH)/../udrv/include \
$(LOCAL_PATH)/../btif/include \
$(LOCAL_PATH)/../btif/co \
$(LOCAL_PATH)/../vendor/libvendor/include\
$(LOCAL_PATH)/../brcm/include \
$(LOCAL_PATH)/../embdrv/sbc/encoder/include \
$(LOCAL_PATH)/../audio_a2dp_hw
LOCAL_CFLAGS += -DBUILDCFG -Werror
ifeq ($(TARGET_PRODUCT), full_crespo)
LOCAL_CFLAGS += -DTARGET_CRESPO
else
LOCAL_CFLAGS += -DTARGET_MAGURO
endif
# Fix this
#ifeq ($(TARGET_VARIANT), eng)
# LOCAL_CFLAGS += -O2 # and other production release flags
#else
# LOCAL_CFLAGS +=
#endif
LOCAL_SHARED_LIBRARIES := \
libcutils \
libpower \
libbt-vendor
#LOCAL_WHOLE_STATIC_LIBRARIES := libbt-brcm_gki libbt-brcm_stack libbt-brcm_bta
LOCAL_STATIC_LIBRARIES := libbt-brcm_gki libbt-brcm_bta libbt-brcm_stack
LOCAL_MODULE := bluetooth.default
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
|