+BACKEND_NAME = "key-file"
+
AM_CPPFLAGS = \
-I$(top_srcdir)/folks \
-include $(CONFIG_HEADER) \
-DPACKAGE_DATADIR=\"$(pkgdatadir)\" \
- -DG_LOG_DOMAIN=\"key-file\" \
+ -DBACKEND_NAME=\"$(BACKEND_NAME)\" \
+ -DG_LOG_DOMAIN=\"$(BACKEND_NAME)\" \
$(NULL)
backenddir = $(BACKEND_DIR)/key-file
using Folks;
using Folks.Backends.Kf;
+extern const string BACKEND_NAME;
+
/**
* A backend which loads {@link Persona}s from a simple key file in
* (XDG_DATA_HOME/folks/) and presents them through a single
/**
* {@inheritDoc}
*/
- public override string name { get { return "key-file"; } }
+ public override string name { get { return BACKEND_NAME; } }
/**
* {@inheritDoc}
/**
* {@inheritDoc}
*/
- public override string type_id { get { return "key-file"; } }
+ public override string type_id { get { return BACKEND_NAME; } }
/**
* Whether this PersonaStore can add {@link Folks.Persona}s.
-I$(top_srcdir)/backends/telepathy/lib \
-include $(CONFIG_HEADER) \
-DPACKAGE_DATADIR=\"$(pkgdatadir)\" \
- -DG_LOG_DOMAIN=\"telepathy\" \
+ -DBACKEND_NAME=\"$(BACKEND_NAME)\" \
+ -DG_LOG_DOMAIN=\"$(BACKEND_NAME)\" \
$(NULL)
VALAFLAGS += \
libfolks_backend_telepathy_la_vala.stamp \
$(NULL)
+-include backend.mk
-include $(top_srcdir)/git.mk
--- /dev/null
+BACKEND_NAME = telepathy
-I$(top_srcdir)/folks \
-include $(CONFIG_HEADER) \
-DPACKAGE_DATADIR=\"$(pkgdatadir)\" \
- -DG_LOG_DOMAIN=\"telepathy\" \
+ -DBACKEND_NAME=\"$(BACKEND_NAME)\" \
+ -DG_LOG_DOMAIN=\"$(BACKEND_NAME)\" \
$(NULL)
VAPIGENFLAGS += \
# a Vala library during distcheck otherwise
noinst_HEADERS = $(tp_lowlevel_headers)
+-include ../backend.mk
-include $(top_srcdir)/git.mk
using TelepathyGLib;
using Folks;
+extern const string BACKEND_NAME;
+
/**
* A persona store which is associated with a single Telepathy account. It will
* create {@link Persona}s for each of the contacts in the published, stored or
GLib.List<Persona>? added, GLib.List<Persona>? removed);
internal signal void group_removed (string group, GLib.Error? error);
-
/**
* The Telepathy account this store is based upon.
*/
*
* See {@link Folks.PersonaStore.type_id}.
*/
- public override string type_id { get { return "telepathy"; } }
+ public override string type_id { get { return BACKEND_NAME; } }
/**
* Whether this PersonaStore can add {@link Folks.Persona}s.
using Folks;
using Folks.Backends.Tp;
+extern const string BACKEND_NAME;
+
/**
* A backend which connects to the Telepathy accounts service and creates a
* {@link PersonaStore} for each valid account known to Telepathy.
/**
* {@inheritDoc}
*/
- public override string name { get { return "telepathy"; } }
+ public override string name { get { return BACKEND_NAME; } }
/**
* {@inheritDoc}