-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
85 lines (67 loc) · 2.08 KB
/
Android.mk
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
LOCAL_PATH := $(call my-dir)
ifneq ($(BOARD_HAVE_BLUETOOTH_BCM),)
include $(CLEAR_VARS)
ifneq ($(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR),)
bdroid_C_INCLUDES := $(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR)
bdroid_CFLAGS += -DHAS_BDROID_BUILDCFG
else
bdroid_C_INCLUDES :=
bdroid_CFLAGS += -DHAS_NO_BDROID_BUILDCFG
endif
BDROID_DIR := $(TOP_DIR)system/bt
ifeq ($(strip $(USE_BLUETOOTH_BCM4343)),true)
LOCAL_CFLAGS += -DUSE_BLUETOOTH_BCM4343
endif
ifeq ($(BOARD_HAVE_BCM_FM), true)
LOCAL_CFLAGS += -DBLUEDROID_ENABLE_V4L2
endif
LOCAL_SRC_FILES := \
src/bt_vendor_brcm.c \
src/hardware.c \
src/userial_vendor.c \
src/upio.c \
src/conf.c
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
$(BDROID_DIR)/hci/include \
$(BDROID_DIR)/include \
$(BDROID_DIR)/device/include \
$(BDROID_DIR)
LOCAL_C_INCLUDES += $(bdroid_C_INCLUDES)
LOCAL_CFLAGS += $(bdroid_CFLAGS)
ifneq ($(BOARD_HAVE_BLUETOOTH_BCM_A2DP_OFFLOAD),)
LOCAL_STATIC_LIBRARIES := libbt-brcm_a2dp
endif
LOCAL_SHARED_LIBRARIES := \
libcutils \
liblog
LOCAL_MODULE := libbt-vendor
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_OWNER := broadcom
LOCAL_PROPRIETARY_MODULE := true
ifeq ($(BOARD_HAVE_SAMSUNG_BLUETOOTH),true)
LOCAL_CFLAGS += -DSAMSUNG_BLUETOOTH
LOCAL_C_INCLUDES += hardware/samsung/macloader/include
endif
ifeq ($(BCM_BLUETOOTH_MANTA_BUG), true)
LOCAL_CFLAGS += -DMANTA_BUG
endif
include $(LOCAL_PATH)/vnd_buildcfg.mk
include $(BUILD_SHARED_LIBRARY)
ifeq ($(TARGET_PRODUCT), full_maguro)
include $(LOCAL_PATH)/conf/samsung/maguro/Android.mk
endif
ifeq ($(TARGET_PRODUCT), full_crespo)
include $(LOCAL_PATH)/conf/samsung/crespo/Android.mk
endif
ifeq ($(TARGET_PRODUCT), full_crespo4g)
include $(LOCAL_PATH)/conf/samsung/crespo4g/Android.mk
endif
ifeq ($(TARGET_PRODUCT), full_wingray)
include $(LOCAL_PATH)/conf/moto/wingray/Android.mk
endif
ifeq ($(TARGET_PRODUCT), gce_x86_phone)
include $(LOCAL_PATH)/conf/google/gce_x86/Android.mk
endif
endif # BOARD_HAVE_BLUETOOTH_BCM