Mercurial > pidgin
annotate src/protocols/toc/Makefile.mingw @ 5786:f8bee920b14e
[gaim-migrate @ 6211]
Matthew Hall (mthz) writes:
" In server.c, "plugin_event(event_buddy_idle, gc,
b->name);" gets fired to the plugins BEFORE the call to
"gaim_blist_update_buddy_idle(b, idle);" is made a few
lines later to update the the buddy struct's idle
member. So, if a plugin catches event_buddy_idle and
attempts to figure out the buddy's idle time, it will
not be correct (in some cases when one first signs on,
it will even be completely blank, as it is still
zeroed). As far as I can tell, there is nothing wrong
with reversing the order of the calls. Attached to
this is a patch for the latest CVS... as of 4-9-03 Noon."
because he put the patch in the bugs tracker, it took me this long to find
it. patches should be in the patch tracker.
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Sat, 07 Jun 2003 03:42:16 +0000 |
| parents | fd3880c03f0d |
| children | bb7723f0b4b9 |
| rev | line source |
|---|---|
| 3630 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of libtoc | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
| 11 INCLUDE_DIR := . | |
| 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
| 13 GAIM_TOP := ../../.. | |
| 14 TOC_ROOT := . | |
| 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 | |
| 17 ## | |
| 18 ## VARIABLE DEFINITIONS | |
| 19 ## | |
| 20 | |
| 21 TARGET = libtoc | |
| 22 | |
| 23 # Compiler Options | |
| 24 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
25 CFLAGS = |
| 3630 | 26 |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
27 DEFINES = |
| 3630 | 28 |
| 29 # Static or Plugin... | |
| 30 ifeq ($(TYPE),STATIC) | |
| 31 DEFINES += -DSTATIC | |
| 32 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
| 33 else | |
| 34 ifeq ($(TYPE),PLUGIN) | |
| 35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 36 endif | |
| 37 endif | |
| 38 | |
| 39 | |
| 40 ## | |
| 41 ## INCLUDE MAKEFILES | |
| 42 ## | |
| 43 | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
44 include $(GAIM_TOP)/src/win32/global.mak |
| 3630 | 45 |
| 46 ## | |
| 47 ## INCLUDE PATHS | |
| 48 ## | |
| 49 | |
| 50 INCLUDE_PATHS += -I$(TOC_ROOT) \ | |
| 51 -I$(GTK_TOP)/include \ | |
| 52 -I$(GTK_TOP)/include/gtk-2.0 \ | |
| 53 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 54 -I$(GTK_TOP)/include/pango-1.0 \ | |
| 55 -I$(GTK_TOP)/include/atk-1.0 \ | |
| 56 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 57 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
| 58 -I$(GAIM_TOP)/src \ | |
| 59 -I$(GAIM_TOP)/src/win32 \ | |
| 60 -I$(GAIM_TOP) | |
| 61 | |
| 62 | |
| 63 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
| 64 -L$(GAIM_TOP)/src | |
| 65 | |
| 66 | |
| 67 ## | |
| 68 ## SOURCES, OBJECTS | |
| 69 ## | |
| 70 | |
| 71 C_SRC = toc.c | |
| 72 | |
| 73 | |
| 74 OBJECTS = $(C_SRC:%.c=%.o) | |
| 75 | |
| 76 | |
| 77 ## | |
| 78 ## LIBRARIES | |
| 79 ## | |
| 80 | |
| 81 LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgmodule-2.0 -lgobject-2.0 -lws2_32 -lintl -lgaim | |
| 82 | |
| 83 # -liberty | |
| 84 | |
| 85 | |
| 86 ## | |
| 87 ## RULES | |
| 88 ## | |
| 89 | |
| 90 # How to make a C file | |
| 91 | |
| 92 %.o: %.c | |
| 93 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
| 94 | |
| 95 ## | |
| 96 ## TARGET DEFINITIONS | |
| 97 ## | |
| 98 | |
| 99 .PHONY: all clean | |
| 100 | |
| 101 all: $(TARGET).dll | |
| 102 | |
| 103 install: | |
| 104 cp $(TOC_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
| 105 | |
| 106 | |
| 107 ## | |
| 108 ## BUILD Dependencies | |
| 109 ## | |
| 110 | |
| 111 $(GAIM_TOP)/src/gaim.lib: | |
| 112 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
| 113 | |
| 114 ## | |
| 115 ## BUILD DLL | |
| 116 ## | |
| 117 | |
| 118 $(TARGET).def: $(OBJECTS) | |
| 119 dlltool --dllname $(TARGET).dll -z $(TARGET).def \ | |
| 120 $(OBJECTS) | |
| 121 | |
| 122 $(TARGET).base: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
123 $(CC) -mdll -o junk.tmp -Wl,--base-file,$@ $(OBJECTS) $(LIB_PATHS) $(LIBS) |
| 3630 | 124 rm -rf junk.tmp |
| 125 | |
| 126 $(TARGET).exp: $(TARGET).def $(TARGET).base | |
| 127 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
| 128 --output-exp $(TARGET).exp --def $(TARGET).def | |
| 129 rm -rf $(TARGET).base | |
| 130 | |
| 131 $(TARGET).dll: $(OBJECTS) $(TARGET).exp $(GAIM_TOP)/src/gaim.lib | |
| 132 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib | |
|
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
133 $(CC) -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS) |
| 3630 | 134 rm -rf $(TARGET).exp |
| 135 | |
| 136 | |
| 137 ## | |
| 138 ## CLEAN RULES | |
| 139 ## | |
| 140 | |
| 141 clean: | |
| 142 rm -rf *.o | |
| 143 rm -rf $(TARGET).dll | |
| 144 rm -rf $(TARGET).lib | |
| 145 rm -rf $(TARGET).def |
