Home | History | Annotate | Download | only in libbt
      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_CFLAGS += \
     22         -Wall \
     23         -Werror \
     24         -Wno-switch \
     25         -Wno-unused-function \
     26         -Wno-unused-parameter \
     27         -Wno-unused-variable \
     28 
     29 LOCAL_SRC_FILES := \
     30         src/bt_vendor_brcm.c \
     31         src/hardware.c \
     32         src/userial_vendor.c \
     33         src/upio.c \
     34         src/conf.c
     35 
     36 LOCAL_C_INCLUDES += \
     37         $(LOCAL_PATH)/include \
     38         $(BDROID_DIR)/hci/include \
     39         $(BDROID_DIR)/include \
     40         $(BDROID_DIR)/device/include \
     41         $(BDROID_DIR)
     42 
     43 LOCAL_C_INCLUDES += $(bdroid_C_INCLUDES)
     44 LOCAL_CFLAGS += $(bdroid_CFLAGS)
     45 
     46 LOCAL_HEADER_LIBRARIES := libutils_headers
     47 
     48 ifneq ($(BOARD_HAVE_BLUETOOTH_BCM_A2DP_OFFLOAD),)
     49   LOCAL_STATIC_LIBRARIES := libbt-brcm_a2dp
     50 endif
     51 
     52 LOCAL_SHARED_LIBRARIES := \
     53         libcutils \
     54         liblog
     55 
     56 LOCAL_MODULE := libbt-vendor
     57 LOCAL_MODULE_TAGS := optional
     58 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
     59 LOCAL_MODULE_OWNER := broadcom
     60 LOCAL_PROPRIETARY_MODULE := true
     61 
     62 include $(LOCAL_PATH)/vnd_buildcfg.mk
     63 
     64 include $(BUILD_SHARED_LIBRARY)
     65 
     66 ifeq ($(TARGET_PRODUCT), full_maguro)
     67     include $(LOCAL_PATH)/conf/samsung/maguro/Android.mk
     68 endif
     69 ifeq ($(TARGET_PRODUCT), full_crespo)
     70     include $(LOCAL_PATH)/conf/samsung/crespo/Android.mk
     71 endif
     72 ifeq ($(TARGET_PRODUCT), full_crespo4g)
     73     include $(LOCAL_PATH)/conf/samsung/crespo4g/Android.mk
     74 endif
     75 ifeq ($(TARGET_PRODUCT), full_wingray)
     76     include $(LOCAL_PATH)/conf/moto/wingray/Android.mk
     77 endif
     78 
     79 endif # BOARD_HAVE_BLUETOOTH_BCM
     80