build: Add skeleton for BlueZ Android

Retrieve Bluetooth version from configure.ac.
This commit is contained in:
Frederic Danis 2013-10-04 14:48:43 +03:00 committed by Johan Hedberg
parent ab185a47d0
commit cd402b079e
5 changed files with 14 additions and 1 deletions

View File

@ -179,6 +179,7 @@ test_scripts =
include Makefile.tools
include Makefile.obexd
include Makefile.android
if HID2HCI
rulesdir = @UDEV_DIR@/rules.d
@ -293,7 +294,8 @@ pkgconfig_DATA = lib/bluez.pc
endif
DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles --enable-library \
--disable-systemd --disable-udev
--disable-systemd --disable-udev \
--enable-android
DISTCLEANFILES = $(pkgconfig_DATA)

1
Makefile.android Normal file
View File

@ -0,0 +1 @@
EXTRA_DIST += android/Android.mk

4
android/Android.mk Normal file
View File

@ -0,0 +1,4 @@
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')

View File

@ -12,4 +12,5 @@ fi
--sysconfdir=/etc \
--localstatedir=/var \
--enable-experimental \
--enable-android \
--disable-datafiles $*

View File

@ -242,4 +242,9 @@ AC_DEFINE_UNQUOTED(CONFIGDIR, "${configdir}",
[Directory for the configuration files])
AC_SUBST(CONFIGDIR, "${configdir}")
AC_ARG_ENABLE(android, AC_HELP_STRING([--enable-android],
[enable BlueZ for Android]),
[enable_android=${enableval}])
AM_CONDITIONAL(ANDROID, test "${enable_android}" = "yes")
AC_OUTPUT(Makefile src/bluetoothd.8 lib/bluez.pc)