aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2010-03-04 04:30:24 +0800
committerSaleem Abdulrasool <compnerd@compnerd.org>2010-08-25 09:48:10 +0800
commit05166126df1b96b26a7fb2c9eb6c344214878371 (patch)
tree85b51d6bad95076fbf3954d62fd1cd15416ba8ca /src
parent3b8d776ba062864878dc5901f080bccbdd440c7e (diff)
downloadgsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar.gz
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar.bz2
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar.lz
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar.xz
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.tar.zst
gsoc2013-empathy-05166126df1b96b26a7fb2c9eb6c344214878371.zip
allow building empathy without eds
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am6
-rw-r--r--src/empathy-auto-salut-account-helper.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index e21b348bb..c77b63a91 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,7 +2,8 @@ include $(top_srcdir)/tools/flymake.mk
CPPFLAGS_COMMON = \
$(EMPATHY_CFLAGS) \
- $(GTK_CFLAGS) \
+ $(EDS_CFLAGS) \
+ $(GTK_CFLAGS) \
$(ERROR_CFLAGS) \
-I$(top_srcdir) \
-DG_LOG_DOMAIN=\"empathy\" \
@@ -25,7 +26,7 @@ LDADD = \
$(top_builddir)/libempathy/libempathy.la \
$(top_builddir)/extensions/libemp-extensions.la \
$(LIBNOTIFY_LIBS) \
- $(UNIQUE_LIBS) \
+ $(UNIQUE_LIBS) \
$(EMPATHY_LIBS) \
$(GTK_LIBS) \
$(LIBCHAMPLAIN_LIBS) \
@@ -46,6 +47,7 @@ libempathy_accounts_common_la_SOURCES = \
libempathy_accounts_common_la_LIBADD = \
$(top_builddir)/libempathy-gtk/libempathy-gtk.la \
+ $(EDS_LIBS) \
$(LIBNOTIFY_LIBS) \
$(UNIQUE_LIBS) \
$(EMPATHY_LIBS) \
diff --git a/src/empathy-auto-salut-account-helper.c b/src/empathy-auto-salut-account-helper.c
index 23484dd45..57d39879e 100644
--- a/src/empathy-auto-salut-account-helper.c
+++ b/src/empathy-auto-salut-account-helper.c
@@ -26,7 +26,10 @@
#include <telepathy-glib/account-manager.h>
#include <telepathy-glib/util.h>
+
+#if HAVE_EDS
#include <libebook/e-book.h>
+#endif
#include <libempathy/empathy-account-settings.h>
@@ -65,6 +68,7 @@ EmpathyAccountSettings *
create_salut_account_settings (void)
{
EmpathyAccountSettings *settings;
+#if HAVE_EDS
EBook *book;
EContact *contact;
gchar *nickname = NULL;
@@ -73,10 +77,12 @@ create_salut_account_settings (void)
gchar *email = NULL;
gchar *jid = NULL;
GError *error = NULL;
+#endif
settings = empathy_account_settings_new ("salut", "local-xmpp",
_("People nearby"));
+#if HAVE_EDS
/* Get self EContact from EDS */
if (!e_book_get_self (&contact, &book, &error))
{
@@ -117,6 +123,7 @@ create_salut_account_settings (void)
g_free (jid);
g_object_unref (contact);
g_object_unref (book);
+#endif
return settings;
}