diff options
author | Frederic Danis <frederic.danis@linux.intel.com> | 2013-10-04 14:48:43 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-04 15:22:32 +0300 |
commit | cd402b079e8dce4ecdd37217610027202c9d1344 (patch) | |
tree | 32f5224acbe7ee51b8dd72b893f9e381233fc023 | |
parent | ab185a47d0361c191e161e74c0569cd7e34e12cc (diff) | |
download | bluez-cd402b079e8dce4ecdd37217610027202c9d1344.tar.gz |
build: Add skeleton for BlueZ Android
Retrieve Bluetooth version from configure.ac.
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | Makefile.android | 1 | ||||
-rw-r--r-- | android/Android.mk | 4 | ||||
-rwxr-xr-x | bootstrap-configure | 1 | ||||
-rw-r--r-- | configure.ac | 5 |
5 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 4e4b1c56e..51204f474 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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) diff --git a/Makefile.android b/Makefile.android new file mode 100644 index 000000000..56fa9a776 --- /dev/null +++ b/Makefile.android @@ -0,0 +1 @@ +EXTRA_DIST += android/Android.mk diff --git a/android/Android.mk b/android/Android.mk new file mode 100644 index 000000000..183f7e2c0 --- /dev/null +++ b/android/Android.mk @@ -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') diff --git a/bootstrap-configure b/bootstrap-configure index 7a6e7d142..dc3631144 100755 --- a/bootstrap-configure +++ b/bootstrap-configure @@ -12,4 +12,5 @@ fi --sysconfdir=/etc \ --localstatedir=/var \ --enable-experimental \ + --enable-android \ --disable-datafiles $* diff --git a/configure.ac b/configure.ac index 41c293513..7b1f64aa8 100644 --- a/configure.ac +++ b/configure.ac @@ -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) |