blob: ad67eb9017593e200d261e8630748f33058475c5 [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
# Setup bdroid local make variables for handling configuration
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
BDROID_DIR:= system/bt
LOCAL_CFLAGS += $(bdroid_CFLAGS)
LOCAL_SRC_FILES := \
main.c
LOCAL_SHARED_LIBRARIES := \
libdl \
libcutils
LOCAL_CFLAGS := -Wno-unused-parameter
LOCAL_C_INCLUDES += \
$(BDROID_DIR)/hci/include \
$(BDROID_DIR)/stack/include \
$(BDROID_DIR)/osi/include \
$(LOCAL_PATH)/../helium \
$(LOCAL_PATH)/../fm_hci
LOCAL_MODULE := fmhal_service
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)