VAPIGEN = $(shell pkg-config vala-1.0 --variable="vapigen")
AM_CPPFLAGS = \
- $(LIBFOLKS_CFLAGS) \
-I$(top_srcdir)/folks \
-include $(CONFIG_HEADER) \
-DPACKAGE_DATADIR=\"$(pkgdatadir)\" \
$(NULL)
libtp_lowlevel_la_CPPFLAGS = \
- $(LIBTP_LOWLEVEL_CFLAGS) \
+ $(GLIB_CFLAGS) \
+ $(GEE_CFLAGS) \
+ $(TP_GLIB_CFLAGS) \
+ $(AM_CPPFLAGS) \
$(NULL)
# the -shared and -rpath arguments are to force it to be compiled to a .so,
# vala-gen-introspect)
libtp_lowlevel_la_LDFLAGS = \
-shared -rpath $(libdir) \
- $(LIBTP_LOWLEVEL_LIBS) \
+ $(GLIB_LIBS) \
+ $(TP_GLIB_LIBS) \
$(NULL)
tp-lowlevel.gi: $(libtp-lowlevel_la_SOURCES) libtp-lowlevel.la
$(VGI_V)$(GEN_INTROSPECT) --namespace=Folks tp-lowlevel.h \
$(shell pkg-config telepathy-glib --cflags) \
+ $(GLIB_CFLAGS) $(DBUS_GLIB_CFLAGS) $(GEE_CFLAGS) \
+ $(TP_VALA_CFLAGS) -I$(top_srcdir)/folks \
.libs/libtp-lowlevel.so > tp-lowlevel.gi
tp-lowlevel.vapi: tp-lowlevel.gi tp-lowlevel.metadata
$(NULL)
libfolks_telepathy_la_CPPFLAGS = \
- $(LIBFOLKS_TELEPATHY_CFLAGS) \
+ $(GLIB_CFLAGS) \
+ $(DBUS_GLIB_CFLAGS) \
+ $(GEE_CFLAGS) \
+ $(TP_VALA_CFLAGS) \
$(AM_CPPFLAGS) \
$(NULL)
libfolks_telepathy_la_LIBADD = \
- $(LIBFOLKS_TELEPATHY_LIBS) \
- $(LIBFOLKS_LIBS) \
+ $(GLIB_LIBS) \
+ $(DBUS_GLIB_LIBS) \
+ $(GEE_LIBS) \
+ $(TP_VALA_LIBS) \
$(NULL)
folks_telepathy_includedir = $(includedir)/folks
$(NULL)
libfolks_backend_telepathy_la_CPPFLAGS = \
- $(LIBFOLKS_BACKEND_TELEPATHY_CFLAGS) \
+ $(GLIB_CFLAGS) \
+ $(DBUS_GLIB_CFLAGS) \
+ $(GEE_CFLAGS) \
+ $(TP_VALA_CFLAGS) \
$(AM_CPPFLAGS) \
$(NULL)
libfolks_backend_telepathy_la_LIBADD = \
- $(LIBFOLKS_BACKEND_TELEPATHY_LIBS) \
- $(LIBFOLKS_LIBS) \
+ $(GLIB_LIBS) \
+ $(DBUS_GLIB_LIBS) \
+ $(GEE_LIBS) \
+ $(TP_VALA_LIBS) \
-L$(abs_top_srcdir)/backends/telepathy/.libs \
-lfolks-telepathy \
$(NULL)
AC_SUBST(LDFLAGS)
GTK_DOC_CHECK([1.10])
+# -----------------------------------------------------------
+# Dependencies
+# -----------------------------------------------------------
GLIB_REQUIRED=2.12.0
TP_GLIB_REQUIRED=0.11.4.1
TP_VALA_REQUIRED=0.11.4.1
-PKG_CHECK_MODULES(LIBFOLKS,
+PKG_CHECK_MODULES(GLIB,
glib-2.0 >= $GLIB_REQUIRED
- gobject-2.0 >= $GLIB_REQUIRED
- dbus-glib-1
- gee-1.0
- telepathy-vala >= $TP_VALA_REQUIRED
- )
-AC_SUBST(LIBFOLKS_CFLAGS)
-AC_SUBST(LIBFOLKS_LIBS)
+ gobject-2.0 >= $GLIB_REQUIRED)
+AC_SUBST(GLIB_CFLAGS)
+AC_SUBST(GLIB_LIBS)
+
+PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1)
+AC_SUBST(DBUS_GLIB_CFLAGS)
+AC_SUBST(DBUS_GLIB_LIBS)
+
+PKG_CHECK_MODULES(GEE, gee-1.0)
+AC_SUBST(GEE_CFLAGS)
+AC_SUBST(GEE_LIBS)
+
+PKG_CHECK_MODULES(TP_VALA, telepathy-vala >= $TP_VALA_REQUIRED)
+AC_SUBST(TP_VALA_CFLAGS)
+AC_SUBST(TP_VALA_LIBS)
+
+PKG_CHECK_MODULES(TP_GLIB, telepathy-glib >= $TP_GLIB_REQUIRED)
+AC_SUBST(TP_GLIB_CFLAGS)
+AC_SUBST(TP_GLIB_LIBS)
# -----------------------------------------------------------
# Documentation
[AC_MSG_ERROR([valadoc not found])])])
# -----------------------------------------------------------
-# Telepathy backend
-# -----------------------------------------------------------
-PKG_CHECK_MODULES(LIBFOLKS_TELEPATHY,
- glib-2.0 >= $GLIB_REQUIRED
- gobject-2.0 >= $GLIB_REQUIRED
- dbus-glib-1
- gee-1.0
- telepathy-vala >= $TP_VALA_REQUIRED
- )
-AC_SUBST(LIBFOLKS_TELEPATHY_CFLAGS)
-AC_SUBST(LIBFOLKS_TELEPATHY_LIBS)
-
-PKG_CHECK_MODULES(LIBFOLKS_BACKEND_TELEPATHY,
- glib-2.0 >= $GLIB_REQUIRED
- gobject-2.0 >= $GLIB_REQUIRED
- dbus-glib-1
- gee-1.0
- telepathy-vala >= $TP_VALA_REQUIRED
- )
-AC_SUBST(LIBFOLKS_BACKEND_TELEPATHY_CFLAGS)
-AC_SUBST(LIBFOLKS_BACKEND_TELEPATHY_LIBS)
-
-PKG_CHECK_MODULES(LIBTP_LOWLEVEL,
- glib-2.0 >= $GLIB_REQUIRED
- gobject-2.0 >= $GLIB_REQUIRED
- telepathy-glib >= $TP_GLIB_REQUIRED
- )
-AC_SUBST(LIBTP_LOWLEVEL_CFLAGS)
-AC_SUBST(LIBTP_LOWLEVEL_LIBS)
-
-# -----------------------------------------------------------
# Error flags
# -----------------------------------------------------------
AS_COMPILER_FLAG(-Wall, ERROR_CFLAGS="-Wall", ERROR_CFLAGS="")