summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-12-10 21:56:44 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-12-10 22:01:03 +0100
commit7004597f9f294b2ef981662517d8499bcc996e48 (patch)
tree9df64e3affb518a4ab00c57d168b017be208dd5b
parent93a2c454bcc5ce055ebe9bcc7c8ef8fbfbada954 (diff)
downloadbluez-7004597f9f294b2ef981662517d8499bcc996e48.tar.gz
build: Add support for building Phonebook Access profile
-rw-r--r--Makefile.obexd15
-rw-r--r--configure.ac10
2 files changed, 23 insertions, 2 deletions
diff --git a/Makefile.obexd b/Makefile.obexd
index eacf7302e..ebdb1568b 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -27,6 +27,17 @@ obexd_builtin_sources += obexd/plugins/opp.c
obexd_builtin_modules += ftp
obexd_builtin_sources += obexd/plugins/ftp.c obexd/plugins/ftp.h
+obexd_builtin_modules += irmc
+obexd_builtin_sources += obexd/plugins/irmc.c
+
+if OBEX
+obexd_builtin_modules += pbap
+obexd_builtin_sources += obexd/plugins/pbap.c \
+ obexd/plugins/vcard.h obexd/plugins/vcard.c \
+ obexd/plugins/phonebook.h \
+ obexd/plugins/phonebook-dummy.c
+endif
+
libexec_PROGRAMS += obexd/src/obexd
@@ -43,11 +54,11 @@ obexd_src_obexd_SOURCES = $(gdbus_sources) $(btio_sources) $(gobex_sources) \
obexd/src/server.h obexd/src/server.c
obexd_src_obexd_LDADD = lib/libbluetooth-private.la \
- @DBUS_LIBS@ @GLIB_LIBS@ -ldl
+ @ICAL_LIBS@ @DBUS_LIBS@ @GLIB_LIBS@ -ldl
obexd_src_obexd_LDFLAGS = -Wl,--export-dynamic
-obexd_src_obexd_CFLAGS = @GLIB_CFLAGS@ @DBUS_CFLAGS@ \
+obexd_src_obexd_CFLAGS = @GLIB_CFLAGS@ @DBUS_CFLAGS@ @ICAL_CFLAGS@ \
-DOBEX_PLUGIN_BUILTIN \
-DPLUGINDIR=\""$(obex_plugindir)"\" \
-fPIC -D_FILE_OFFSET_BITS=64
diff --git a/configure.ac b/configure.ac
index 9811cb855..01bd249a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -153,6 +153,16 @@ AM_CONDITIONAL(HID2HCI, test "${enable_udev}" != "no" &&
test "${enable_usb}" != "no")
AM_CONDITIONAL(CUPS, test "${enable_tools}" = "yes")
+AC_ARG_ENABLE(obex, AC_HELP_STRING([--disable-obex],
+ [disable OBEX profile support]), [enable_obex=${enableval}])
+if (test "${enable_obex}" != "no"); then
+ PKG_CHECK_MODULES(ICAL, libical, dummy=yes,
+ AC_MSG_ERROR(libical is required))
+fi
+AC_SUBST(ICAL_CFLAGS)
+AC_SUBST(ICAL_LIBS)
+AM_CONDITIONAL(OBEX, test "${enable_obex}" != "no")
+
AC_ARG_ENABLE(datafiles, AC_HELP_STRING([--disable-datafiles],
[do not install configuration and data files]),
[enable_datafiles=${enableval}])