chime-call.c chime-call.h chime-call-audio.c \
protobuf/auth_message.pb-c.c protobuf/auth_message.pb-c.h \
protobuf/data_message.pb-c.c protobuf/data_message.pb-c.h \
- protobuf/rt_message.pb-c.c protobuf/rt_message.pb-c.h \
+ protobuf/rt_message.pb-c.c protobuf/rt_message.pb-c.h
+
+if BUILD_FARSTREAM
+libchime_la_SOURCES += \
fs-app-transmitter.c fs-app-transmitter.h \
fs-app-stream-transmitter.c fs-app-stream-transmitter.h
+endif
libchime_la_CFLAGS = $(PURPLE_CFLAGS) $(SOUP_CFLAGS) $(JSON_CFLAGS) $(LIBXML_CFLAGS) $(PROTOBUF_CFLAGS) $(OPUS_CFLAGS) $(FARSTREAM_CFLAGS)
libchime_la_LIBADD = $(PURPLE_LIBS) $(SOUP_LIBS) $(JSON_LIBS) $(LIBXML_LIBS) $(PROTOBUF_LIBS) $(OPUS_LIBS) $(FARSTREAM_LIBS)
if (name && chat->conv)
purple_conversation_set_name(chat->conv, name);
}
-#include <farstream/fs-candidate.h>
static void audio_joined(GObject *source, GAsyncResult *result, gpointer _chat)
{
.actions = chime_purple_plugin_actions,
};
+#ifdef HAVE_FARSTREAM
#include "fs-app-transmitter.h"
#include <farstream/fs-plugin.h>
extern GType fs_app_transmitter_register_type(void *);
+#endif
static void chime_purple_init_plugin(PurplePlugin *plugin)
{
PurpleAccountOption *opt;
GList *opts = NULL;
+#ifdef HAVE_FARSTREAM
fs_plugin_register_static("app", "transmitter", fs_app_transmitter_register_type(NULL));
+#endif
+
opt = purple_account_option_string_new(_("Signin URL"),
"server", NULL);
opts = g_list_append(opts, opt);
fi
AC_SUBST(pixmapdir, ${purple_datadir}/pixmaps/pidgin/protocols)
-PKG_CHECK_MODULES(FARSTREAM, [farstream-0.2])
+PKG_CHECK_MODULES(FARSTREAM, [farstream-0.2 >= 0.2.8],
+ [have_farstream=yes
+ AC_DEFINE(HAVE_FARSTREAM, 1, [Have fs_plugin_register_static])], [have_farstream=no])
+AM_CONDITIONAL(BUILD_FARSTREAM, [ test "$have_farstream" = "yes" ])
+
PKG_CHECK_MODULES(OPUS, [opus])
PKG_CHECK_MODULES(PROTOBUF, [libprotobuf-c])
PKG_CHECK_MODULES(JSON, [json-glib-1.0])