android13/hardware/aic/libbt/Android.mk

72 lines
1.7 KiB
Makefile
Executable File

LOCAL_PATH := $(call my-dir)
ifneq ($(BOARD_HAVE_BLUETOOTH_AIC),)
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
TARGET_CHIP_AICBT := aic8800
HAVE_SYSTEM_BT := $(shell test -d $(TOPDIR)system/bt/ && echo true)
ifeq ($(HAVE_SYSTEM_BT),true)
BDROID_DIR := $(TOP_DIR)system/bt
else
BDROID_DIR := $(TOP_DIR)packages/modules/Bluetooth/system/
endif
ifeq ($(strip $(USE_BLUETOOTH_AIC8800)),true)
LOCAL_CFLAGS += -DUSE_BLUETOOTH_AIC8800
endif
LOCAL_CFLAGS += \
-Wall \
-Werror \
-Wno-switch \
-Wno-unused-function \
-Wno-unused-parameter \
-Wno-unused-variable \
LOCAL_SRC_FILES := \
src/bt_vendor_aicbt.c \
src/aic_hardware.c \
src/userial_vendor.c \
src/upio.c \
src/aic_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)
LOCAL_HEADER_LIBRARIES := libutils_headers
ifneq ($(BOARD_HAVE_BLUETOOTH_AICBT_A2DP_OFFLOAD),)
LOCAL_STATIC_LIBRARIES := libbt-aicbt_a2dp
endif
LOCAL_SHARED_LIBRARIES := \
libcutils \
liblog
LOCAL_MODULE := libbt-vendor-aic
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_OWNER := aic
LOCAL_PROPRIETARY_MODULE := true
include $(LOCAL_PATH)/vnd_buildcfg.mk
include $(BUILD_SHARED_LIBRARY)
endif # BOARD_HAVE_BLUETOOTH_AICBT