pidgin: 558f5ed1: Build infrastructure for XMPP Disco plug...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Sun Jun 21 22:55:44 EDT 2009
-----------------------------------------------------------------
Revision: 558f5ed16016e9ba8c7b5ccc6da9afb53de7ce3d
Ancestor: 8740eeac007708126ac1672fb005bea399aa7f33
Author: darkrain42 at pidgin.im
Date: 2009-06-22T02:52:29
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/558f5ed16016e9ba8c7b5ccc6da9afb53de7ce3d
Added files:
pidgin/plugins/disco/Makefile.mingw
Modified files:
pidgin/plugins/Makefile.mingw
pidgin/win32/nsis/pidgin-installer.nsi
ChangeLog:
Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
-------------- next part --------------
============================================================
--- pidgin/plugins/disco/Makefile.mingw 2f059545590af7131757221273cf631cd4f9b484
+++ pidgin/plugins/disco/Makefile.mingw 2f059545590af7131757221273cf631cd4f9b484
@@ -0,0 +1,77 @@
+#
+# Makefile.mingw
+#
+# Description: Makefile for xmppdisco plugin.
+#
+
+PIDGIN_TREE_TOP := ../../..
+include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
+
+TARGET = xmppdisco
+
+##
+## INCLUDE PATHS
+##
+INCLUDE_PATHS += -I. \
+ -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)/include/cairo \
+ -I$(GTK_TOP)/lib/glib-2.0/include \
+ -I$(GTK_TOP)/lib/gtk-2.0/include \
+ -I$(PURPLE_TOP) \
+ -I$(PURPLE_TOP)/win32 \
+ -I$(PIDGIN_TOP) \
+ -I$(PIDGIN_TOP)/win32 \
+ -I$(PIDGIN_TREE_TOP)
+
+LIB_PATHS += -L$(GTK_TOP)/lib \
+ -L$(PURPLE_TOP) \
+ -L$(PIDGIN_TOP)
+
+##
+## SOURCES, OBJECTS
+##
+C_SRC = xmppdisco.c \
+ gtkdisco.c
+
+OBJECTS = $(C_SRC:%.c=%.o)
+
+##
+## LIBRARIES
+##
+LIBS = -lgtk-win32-2.0 \
+ -lglib-2.0 \
+ -lgdk-win32-2.0 \
+ -lgobject-2.0 \
+ -lintl \
+ -lpurple \
+ -lpidgin
+
+include $(PIDGIN_COMMON_RULES)
+
+##
+## TARGET DEFINITIONS
+##
+.PHONY: all install clean
+
+all: $(TARGET).dll
+
+install: $(PIDGIN_INSTALL_PLUGINS_DIR) all
+ cp $(TARGET).dll $(PIDGIN_INSTALL_PLUGINS_DIR)
+
+$(OBJECTS): $(PIDGIN_CONFIG_H)
+
+$(TARGET).dll: $(PURPLE_DLL).a $(PIDGIN_DLL).a $(OBJECTS)
+ $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
+
+##
+## CLEAN RULES
+##
+clean:
+ rm -rf $(OBJECTS)
+ rm -rf $(TARGET).dll
+
+include $(PIDGIN_COMMON_TARGETS)
============================================================
--- pidgin/plugins/Makefile.mingw 8de898bdc673ba8fecfcf0509c29aa50aa775020
+++ pidgin/plugins/Makefile.mingw 77d588ac19757067f777e76a6817ebe80f733403
@@ -7,6 +7,7 @@ include $(PIDGIN_TREE_TOP)/libpurple/win
PIDGIN_TREE_TOP := ../..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
+DISCO_PLUGIN := ./disco
GTKPERL_PLUGIN := ./perl
TICKER_PLUGIN := ./ticker
TRANSPARENCY_PLUGIN := ./win32/transparency
@@ -58,12 +59,14 @@ all: plugins
.PHONY: all clean plugins install
all: plugins
+ $(MAKE) -C $(DISCO_PLUGIN) -f $(MINGW_MAKEFILE)
$(MAKE) -C $(GTKPERL_PLUGIN) -f $(MINGW_MAKEFILE)
$(MAKE) -C $(TICKER_PLUGIN) -f $(MINGW_MAKEFILE)
$(MAKE) -C $(TRANSPARENCY_PLUGIN) -f $(MINGW_MAKEFILE)
$(MAKE) -C $(WINPREFS_PLUGIN) -f $(MINGW_MAKEFILE)
install: all $(PIDGIN_INSTALL_PLUGINS_DIR)
+ $(MAKE) -C $(DISCO_PLUGIN) -f $(MINGW_MAKEFILE) install
$(MAKE) -C $(GTKPERL_PLUGIN) -f $(MINGW_MAKEFILE) install
$(MAKE) -C $(TICKER_PLUGIN) -f $(MINGW_MAKEFILE) install
$(MAKE) -C $(TRANSPARENCY_PLUGIN) -f $(MINGW_MAKEFILE) install
@@ -95,6 +98,7 @@ clean:
##
clean:
rm -f *.o *.dll
+ $(MAKE) -C $(DISCO_PLUGIN) -f $(MINGW_MAKEFILE) clean
$(MAKE) -C $(GTKPERL_PLUGIN) -f $(MINGW_MAKEFILE) clean
$(MAKE) -C $(TICKER_PLUGIN) -f $(MINGW_MAKEFILE) clean
$(MAKE) -C $(TRANSPARENCY_PLUGIN) -f $(MINGW_MAKEFILE) clean
============================================================
--- pidgin/win32/nsis/pidgin-installer.nsi 499d6483585f54192fc8727d52c12df9a9436b77
+++ pidgin/win32/nsis/pidgin-installer.nsi e2ac129b684f3c58ce40dfe9425602a7ba834e3f
@@ -773,6 +773,7 @@ Section Uninstall
Delete "$INSTDIR\plugins\win2ktrans.dll"
Delete "$INSTDIR\plugins\winprefs.dll"
Delete "$INSTDIR\plugins\xmppconsole.dll"
+ Delete "$INSTDIR\plugins\xmppdisco.dll"
RMDir "$INSTDIR\plugins"
RMDir /r "$INSTDIR\sasl2"
Delete "$INSTDIR\sounds\purple\alert.wav"
More information about the Commits
mailing list