mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 08:14:28 +08:00
build: Add skeleton for BlueZ Android
Retrieve Bluetooth version from configure.ac.
This commit is contained in:
parent
ab185a47d0
commit
cd402b079e
@ -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
1
Makefile.android
Normal file
@ -0,0 +1 @@
|
||||
EXTRA_DIST += android/Android.mk
|
4
android/Android.mk
Normal file
4
android/Android.mk
Normal 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')
|
@ -12,4 +12,5 @@ fi
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--enable-experimental \
|
||||
--enable-android \
|
||||
--disable-datafiles $*
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user