OSDN Git Service

android-build: Add BlueZ Android daemon
authorFrederic Danis <frederic.danis@linux.intel.com>
Fri, 4 Oct 2013 11:48:45 +0000 (14:48 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Oct 2013 12:24:38 +0000 (15:24 +0300)
Define local mapping to glib path, otherwise this has to be inside central
place in the build repository.

android/Android.mk

index 183f7e2..fc3d6c2 100644 (file)
@@ -2,3 +2,28 @@ LOCAL_PATH := $(call my-dir)
 
 # Retrieve BlueZ version from configure.ac file
 BLUEZ_VERSION := $(shell grep ^AC_INIT $(LOCAL_PATH)/../configure.ac | cpp -P -D'AC_INIT(_,v)=v')
+
+# Specify pathmap for glib
+pathmap_INCL += glib:external/bluetooth/glib
+
+#
+# Android BlueZ daemon (bluetoothd)
+#
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+       main.c \
+
+LOCAL_C_INCLUDES := \
+       $(call include-path-for, glib) \
+       $(call include-path-for, glib)/glib \
+
+LOCAL_CFLAGS := -DVERSION=\"$(BLUEZ_VERSION)\"
+
+LOCAL_SHARED_LIBRARIES := \
+       libglib \
+
+LOCAL_MODULE := bluetoothd
+
+include $(BUILD_EXECUTABLE)