summaryrefslogtreecommitdiffstats
path: root/gki/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'gki/Android.mk')
-rw-r--r--gki/Android.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/gki/Android.mk b/gki/Android.mk
new file mode 100644
index 0000000..0ece25b
--- /dev/null
+++ b/gki/Android.mk
@@ -0,0 +1,35 @@
+ifneq ($(TARGET_SIMULATOR),true)
+
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_C_INCLUDES:= $(LOCAL_PATH)/common \
+ $(LOCAL_PATH)/ulinux \
+ $(LOCAL_PATH)/../include \
+ $(LOCAL_PATH)/../stack/include \
+ $(LOCAL_PATH)/../utils/include \
+ $(bdroid_C_INCLUDES) \
+
+LOCAL_CFLAGS += -Werror $(bdroid_CFLAGS)
+
+ifeq ($(BOARD_HAVE_BLUETOOTH_BCM),true)
+LOCAL_CFLAGS += \
+ -DBOARD_HAVE_BLUETOOTH_BCM
+endif
+
+LOCAL_PRELINK_MODULE:=false
+LOCAL_SRC_FILES:= \
+ ./ulinux/gki_ulinux.c \
+ ./common/gki_debug.c \
+ ./common/gki_time.c \
+ ./common/gki_buffer.c
+
+LOCAL_MODULE := libbt-brcm_gki
+LOCAL_MODULE_TAGS := optional
+LOCAL_SHARED_LIBRARIES := libcutils libc
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
+include $(BUILD_STATIC_LIBRARY)
+
+endif # TARGET_SIMULATOR != true