changeset 8489:b06dcc915c45

[gaim-migrate @ 9224] I guess I might as well add these files now, while I'm sending pointless emails. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 23 Mar 2004 04:10:53 +0000
parents c6dd51ece325
children 69c898ff9d11
files src/protocols/rendezvous/.cvsignore src/protocols/rendezvous/Makefile.am src/protocols/rendezvous/Makefile.mingw src/protocols/rendezvous/rendezvous.c
diffstat 4 files changed, 178 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/protocols/rendezvous/.cvsignore	Tue Mar 23 04:10:53 2004 +0000
@@ -0,0 +1,9 @@
+Makefile.in
+Makefile
+.deps
+.libs
+librendezvous.la
+rendezvous.lo
+librendezvous.def
+librendezvous.dll
+librendezvous.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/protocols/rendezvous/Makefile.am	Tue Mar 23 04:10:53 2004 +0000
@@ -0,0 +1,33 @@
+EXTRA_DIST = \
+		Makefile.mingw
+
+pkgdir = $(libdir)/gaim
+
+RENDEZVOUSSOURCES = \
+	mdns.c \
+	rendezvous.c
+
+AM_CFLAGS = $(st)
+
+librendezvous_la_LDFLAGS = -module -avoid-version
+
+if STATIC_RENDEZVOUS
+
+st = -DGAIM_STATIC_PRPL
+noinst_LIBRARIES     = librendezvous.a
+librendezvous_a_SOURCES = $(RENDEZVOUSSOURCES)
+librendezvous_a_CFLAGS  = $(AM_CFLAGS)
+
+else
+
+st =
+pkg_LTLIBRARIES       = librendezvous.la
+librendezvous_la_SOURCES = $(RENDEZVOUSSOURCES)
+
+endif
+
+
+AM_CPPFLAGS = \
+	-I$(top_srcdir)/src \
+	$(GLIB_CFLAGS) \
+	$(DEBUG_CFLAGS)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/protocols/rendezvous/Makefile.mingw	Tue Mar 23 04:10:53 2004 +0000
@@ -0,0 +1,134 @@
+#
+# Makefile.mingw
+#
+# Description: Makefile for win32 (mingw) version of librendezvous
+#
+
+#
+# PATHS
+#
+
+INCLUDE_DIR :=		.
+GTK_TOP :=		../../../../win32-dev/gtk_2_0
+GAIM_TOP :=		../../..
+RENDEZVOUS_ROOT :=		.
+GAIM_INSTALL_DIR :=	$(GAIM_TOP)/win32-install-dir
+
+##
+## VARIABLE DEFINITIONS
+##
+
+TARGET = librendezvous
+
+# Compiler Options
+
+CFLAGS =
+
+DEFINES =
+
+# Static or Plugin... 
+ifeq ($(TYPE),STATIC)
+  DEFINES += -DSTATIC
+  DLL_INSTALL_DIR =	$(GAIM_INSTALL_DIR)
+else
+ifeq ($(TYPE),PLUGIN)
+  DLL_INSTALL_DIR =	$(GAIM_INSTALL_DIR)/plugins
+endif
+endif
+
+
+##
+## INCLUDE  MAKEFILES
+##
+
+include $(GAIM_TOP)/src/win32/global.mak
+
+##
+## INCLUDE PATHS
+##
+
+INCLUDE_PATHS +=	-I$(RENDEZVOUS_ROOT) \
+			-I$(GTK_TOP)/include \
+			-I$(GTK_TOP)/include/gtk-2.0 \
+			-I$(GTK_TOP)/include/glib-2.0 \
+			-I$(GTK_TOP)/include/pango-1.0 \
+			-I$(GTK_TOP)/include/atk-1.0 \
+			-I$(GTK_TOP)/lib/glib-2.0/include \
+			-I$(GTK_TOP)/lib/gtk-2.0/include \
+			-I$(GAIM_TOP)/src \
+			-I$(GAIM_TOP)/src/win32 \
+			-I$(GAIM_TOP)
+
+
+LIB_PATHS =		-L$(GTK_TOP)/lib \
+			-L$(GAIM_TOP)/src
+
+
+##
+##  SOURCES, OBJECTS
+##
+
+C_SRC =			mdns.c \
+				rendezvous.c
+
+
+OBJECTS = $(C_SRC:%.c=%.o)
+
+
+##
+## LIBRARIES
+##
+
+LIBS =			-lgtk-win32-2.0 \
+			-lglib-2.0 \
+			-lgdk-win32-2.0 \
+			-lgmodule-2.0 \
+			-lgobject-2.0 \
+			-lws2_32 \
+			-lintl \
+			-lgaim
+
+
+##
+## RULES
+##
+
+# How to make a C file
+
+%.o: %.c
+	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
+
+##
+## TARGET DEFINITIONS
+##
+
+.PHONY: all clean
+
+all: $(TARGET).dll
+
+install:
+	cp $(RENDEZVOUS_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR)
+
+
+##
+## BUILD Dependencies
+##
+
+$(GAIM_TOP)/src/gaim.lib:
+	$(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib
+
+##
+## BUILD DLL
+##
+
+$(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib
+	$(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll
+
+##
+## CLEAN RULES
+##
+
+clean:
+	rm -rf *.o
+	rm -rf $(TARGET).dll
+	rm -rf $(TARGET).lib
--- a/src/protocols/rendezvous/rendezvous.c	Tue Mar 23 03:51:35 2004 +0000
+++ b/src/protocols/rendezvous/rendezvous.c	Tue Mar 23 04:10:53 2004 +0000
@@ -310,9 +310,9 @@
 
 	if (rb->msg != NULL) {
 		if (rb->status == UC_UNAVAILABLE)
-			g_string_append_printf(ret, _("<b>Away Message</b>: %s\n"), rb->msg);
+			g_string_append_printf(ret, _("<b>Away</b>: %s\n"), rb->msg);
 		else
-			g_string_append_printf(ret, _("<b>Available Message</b>: %s\n"), rb->msg);
+			g_string_append_printf(ret, _("<b>Available</b>: %s\n"), rb->msg);
 	}
 
 	/* XXX - Fix blist.c so we can prepend the \n's rather than appending them */