Diff between 93a2c454bcc5ce055ebe9bcc7c8ef8fbfbada954 and 7004597f9f294b2ef981662517d8499bcc996e48

Changed Files

File Additions Deletions Status
Makefile.obexd +13 -2 modified
configure.ac +10 -0 modified

Full Patch

diff --git a/Makefile.obexd b/Makefile.obexd
index eacf730..ebdb156 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 9811cb8..01bd249 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}])