1 LOCAL_PATH := $(call my-dir) 2 3 ifneq ($(BOARD_HAVE_BLUETOOTH_BCM),) 4 5 include $(CLEAR_VARS) 6 7 ifneq ($(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR),) 8 bdroid_C_INCLUDES := $(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR) 9 bdroid_CFLAGS += -DHAS_BDROID_BUILDCFG 10 else 11 bdroid_C_INCLUDES := 12 bdroid_CFLAGS += -DHAS_NO_BDROID_BUILDCFG 13 endif 14 15 BDROID_DIR := $(TOP_DIR)system/bt 16 17 ifeq ($(strip $(USE_BLUETOOTH_BCM4343)),true) 18 LOCAL_CFLAGS += -DUSE_BLUETOOTH_BCM4343 19 endif 20 21 LOCAL_SRC_FILES := \ 22 src/bt_vendor_brcm.c \ 23 src/hardware.c \ 24 src/userial_vendor.c \ 25 src/upio.c \ 26 src/conf.c 27 28 LOCAL_C_INCLUDES += \ 29 $(LOCAL_PATH)/include \ 30 $(BDROID_DIR)/hci/include \ 31 $(BDROID_DIR)/include \ 32 $(BDROID_DIR)/device/include \ 33 $(BDROID_DIR) 34 35 LOCAL_C_INCLUDES += $(bdroid_C_INCLUDES) 36 LOCAL_CFLAGS += $(bdroid_CFLAGS) 37 38 ifneq ($(BOARD_HAVE_BLUETOOTH_BCM_A2DP_OFFLOAD),) 39 LOCAL_STATIC_LIBRARIES := libbt-brcm_a2dp 40 endif 41 42 LOCAL_SHARED_LIBRARIES := \ 43 libcutils \ 44 liblog 45 46 LOCAL_MODULE := libbt-vendor 47 LOCAL_MODULE_TAGS := optional 48 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 49 LOCAL_MODULE_OWNER := broadcom 50 LOCAL_PROPRIETARY_MODULE := true 51 52 include $(LOCAL_PATH)/vnd_buildcfg.mk 53 54 include $(BUILD_SHARED_LIBRARY) 55 56 ifeq ($(TARGET_PRODUCT), full_maguro) 57 include $(LOCAL_PATH)/conf/samsung/maguro/Android.mk 58 endif 59 ifeq ($(TARGET_PRODUCT), full_crespo) 60 include $(LOCAL_PATH)/conf/samsung/crespo/Android.mk 61 endif 62 ifeq ($(TARGET_PRODUCT), full_crespo4g) 63 include $(LOCAL_PATH)/conf/samsung/crespo4g/Android.mk 64 endif 65 ifeq ($(TARGET_PRODUCT), full_wingray) 66 include $(LOCAL_PATH)/conf/moto/wingray/Android.mk 67 endif 68 ifeq ($(TARGET_PRODUCT), gce_x86_phone) 69 include $(LOCAL_PATH)/conf/google/gce_x86/Android.mk 70 endif 71 72 endif # BOARD_HAVE_BLUETOOTH_BCM 73