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/bt_vendor_brcm_a2dp.c \ 24 src/hardware.c \ 25 src/userial_vendor.c \ 26 src/upio.c \ 27 src/conf.c 28 29 LOCAL_C_INCLUDES += \ 30 $(LOCAL_PATH)/include \ 31 $(BDROID_DIR)/hci/include \ 32 $(BDROID_DIR)/include \ 33 $(BDROID_DIR)/stack/include \ 34 $(BDROID_DIR)/gki/ulinux 35 36 LOCAL_C_INCLUDES += $(bdroid_C_INCLUDES) 37 LOCAL_CFLAGS += $(bdroid_CFLAGS) 38 39 LOCAL_SHARED_LIBRARIES := \ 40 libcutils \ 41 liblog 42 43 LOCAL_MODULE := libbt-vendor 44 LOCAL_MODULE_TAGS := optional 45 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 46 LOCAL_MODULE_OWNER := broadcom 47 LOCAL_PROPRIETARY_MODULE := true 48 49 include $(LOCAL_PATH)/vnd_buildcfg.mk 50 51 include $(BUILD_SHARED_LIBRARY) 52 53 ifeq ($(TARGET_PRODUCT), full_maguro) 54 include $(LOCAL_PATH)/conf/samsung/maguro/Android.mk 55 endif 56 ifeq ($(TARGET_PRODUCT), full_crespo) 57 include $(LOCAL_PATH)/conf/samsung/crespo/Android.mk 58 endif 59 ifeq ($(TARGET_PRODUCT), full_crespo4g) 60 include $(LOCAL_PATH)/conf/samsung/crespo4g/Android.mk 61 endif 62 ifeq ($(TARGET_PRODUCT), full_wingray) 63 include $(LOCAL_PATH)/conf/moto/wingray/Android.mk 64 endif 65 ifeq ($(TARGET_PRODUCT), gce_x86_phone) 66 include $(LOCAL_PATH)/conf/google/gce_x86/Android.mk 67 endif 68 69 endif # BOARD_HAVE_BLUETOOTH_BCM 70