1LOCAL_PATH := $(call my-dir) 2 3ifneq ($(BOARD_HAVE_BLUETOOTH_BCM),) 4 5include $(CLEAR_VARS) 6 7ifneq ($(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR),) 8 bdroid_C_INCLUDES := $(BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR) 9 bdroid_CFLAGS += -DHAS_BDROID_BUILDCFG 10else 11 bdroid_C_INCLUDES := 12 bdroid_CFLAGS += -DHAS_NO_BDROID_BUILDCFG 13endif 14 15BDROID_DIR := $(TOP_DIR)system/bt 16 17ifeq ($(strip $(USE_BLUETOOTH_BCM4343)),true) 18LOCAL_CFLAGS += -DUSE_BLUETOOTH_BCM4343 19endif 20 21LOCAL_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 29LOCAL_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 36LOCAL_C_INCLUDES += $(bdroid_C_INCLUDES) 37LOCAL_CFLAGS += $(bdroid_CFLAGS) 38 39LOCAL_SHARED_LIBRARIES := \ 40 libcutils \ 41 liblog 42 43LOCAL_MODULE := libbt-vendor 44LOCAL_MODULE_TAGS := optional 45LOCAL_MODULE_CLASS := SHARED_LIBRARIES 46LOCAL_MODULE_OWNER := broadcom 47LOCAL_PROPRIETARY_MODULE := true 48 49include $(LOCAL_PATH)/vnd_buildcfg.mk 50 51include $(BUILD_SHARED_LIBRARY) 52 53ifeq ($(TARGET_PRODUCT), full_maguro) 54 include $(LOCAL_PATH)/conf/samsung/maguro/Android.mk 55endif 56ifeq ($(TARGET_PRODUCT), full_crespo) 57 include $(LOCAL_PATH)/conf/samsung/crespo/Android.mk 58endif 59ifeq ($(TARGET_PRODUCT), full_crespo4g) 60 include $(LOCAL_PATH)/conf/samsung/crespo4g/Android.mk 61endif 62ifeq ($(TARGET_PRODUCT), full_wingray) 63 include $(LOCAL_PATH)/conf/moto/wingray/Android.mk 64endif 65ifeq ($(TARGET_PRODUCT), gce_x86_phone) 66 include $(LOCAL_PATH)/conf/google/gce_x86/Android.mk 67endif 68 69endif # BOARD_HAVE_BLUETOOTH_BCM 70