Mercurial > pidgin
annotate src/protocols/sametime/Makefile.mingw @ 13925:60f39c405dff
[gaim-migrate @ 16442]
It is currently possible for yourself to not show up in your own
buddy list at signon with Jabber. To reproduce:
1. Sign on and add yourself to your buddy list
2. Sign off and exit Gaim
3. Delete your blist.xml
4. Sign on
The same bug would also appear when signing into your Jabber
account using Gaim for the first time.
Normally this works because the Jabber PRPL fakes showing your status
whenever jabber_presence_send() is called. However, the call to
jabber_presence_send() can happen BEFORE we receive the roster from the
server (it usually does, I think) so the PRPL tries to set the status
for yourself, but your GaimBuddy node doesn't exist yet.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Thu, 06 Jul 2006 08:24:26 +0000 |
| parents | 0438f853fc89 |
| children |
| rev | line source |
|---|---|
| 11090 | 1 # |
| 2 # Makefile.mingw | |
| 3 # | |
| 4 # Description: Makefile for win32 (mingw) version of libsametime | |
| 5 # | |
| 6 | |
| 7 # | |
| 8 # PATHS | |
| 9 # | |
| 10 | |
|
12643
29c034547358
[gaim-migrate @ 14980]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12496
diff
changeset
|
11 SAMETIME_ROOT := . |
| 11090 | 12 GTK_TOP := ../../../../win32-dev/gtk_2_0 |
|
12706
d7fa486b06d3
[gaim-migrate @ 15049]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12643
diff
changeset
|
13 MEANWHILE_TOP:= ../../../../win32-dev/meanwhile-1.0.2 |
| 11090 | 14 GAIM_TOP := ../../.. |
| 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
| 16 | |
| 17 ## | |
| 18 ## VARIABLE DEFINITIONS | |
| 19 ## | |
| 20 | |
| 21 TARGET = libsametime | |
| 22 | |
|
12643
29c034547358
[gaim-migrate @ 14980]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12496
diff
changeset
|
23 NEEDED_DLLS = $(MEANWHILE_TOP)/bin/libmeanwhile-1.dll |
|
29c034547358
[gaim-migrate @ 14980]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12496
diff
changeset
|
24 |
| 11090 | 25 # Compiler Options |
| 26 | |
| 27 CFLAGS = | |
| 28 | |
| 29 DEFINES = | |
| 30 | |
| 31 # Static or Plugin... | |
| 32 ifeq ($(TYPE),STATIC) | |
| 33 DEFINES += -DSTATIC | |
| 34 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
|
12643
29c034547358
[gaim-migrate @ 14980]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12496
diff
changeset
|
35 else |
| 11090 | 36 ifeq ($(TYPE),PLUGIN) |
| 37 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
| 38 endif | |
| 39 endif | |
| 40 | |
| 41 | |
| 42 ## | |
| 43 ## INCLUDE MAKEFILES | |
| 44 ## | |
| 45 | |
| 46 include $(GAIM_TOP)/src/win32/global.mak | |
| 47 | |
| 48 ## | |
| 49 ## INCLUDE PATHS | |
| 50 ## | |
| 51 | |
| 52 INCLUDE_PATHS += -I$(SAMETIME_ROOT) \ | |
|
12643
29c034547358
[gaim-migrate @ 14980]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12496
diff
changeset
|
53 -I$(MEANWHILE_TOP)/include/meanwhile \ |
| 11090 | 54 -I$(GTK_TOP)/include \ |
| 55 -I$(GTK_TOP)/include/glib-2.0 \ | |
| 56 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
| 57 -I$(GAIM_TOP)/src \ | |
| 58 -I$(GAIM_TOP)/src/win32 \ | |
|
12643
29c034547358
[gaim-migrate @ 14980]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12496
diff
changeset
|
59 -I$(GAIM_TOP) |
| 11090 | 60 |
| 61 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
|
12643
29c034547358
[gaim-migrate @ 14980]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12496
diff
changeset
|
62 -L$(MEANWHILE_TOP)/lib \ |
| 11090 | 63 -L$(GAIM_TOP)/src |
| 64 | |
| 65 | |
| 66 ## | |
| 67 ## SOURCES, OBJECTS | |
| 68 ## | |
| 69 | |
|
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12268
diff
changeset
|
70 C_SRC = sametime.c |
| 11090 | 71 |
| 72 OBJECTS = $(C_SRC:%.c=%.o) | |
| 73 | |
| 74 | |
| 75 ## | |
| 76 ## LIBRARIES | |
| 77 ## | |
| 78 | |
|
12268
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
79 LIBS = \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
80 -lglib-2.0 \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
81 -lintl \ |
|
deb955f7ebb7
[gaim-migrate @ 14570]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11091
diff
changeset
|
82 -lws2_32 \ |
|
12643
29c034547358
[gaim-migrate @ 14980]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12496
diff
changeset
|
83 -lmeanwhile \ |
|
12496
f9d0ab1474ac
[gaim-migrate @ 14808]
Christopher O'Brien <siege@pidgin.im>
parents:
12268
diff
changeset
|
84 -lgaim \ |
| 11090 | 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: | |
|
11091
5e29428077fc
[gaim-migrate @ 13112]
Gary Kramlich <grim@reaperworld.com>
parents:
11090
diff
changeset
|
104 cp $(SAMETIME_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) |
|
12643
29c034547358
[gaim-migrate @ 14980]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12496
diff
changeset
|
105 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
| 11090 | 106 |
| 107 | |
| 108 ## | |
| 109 ## BUILD Dependencies | |
| 110 ## | |
| 111 | |
|
12707
0438f853fc89
[gaim-migrate @ 15050]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12706
diff
changeset
|
112 $(GAIM_TOP)/src/gaim.lib: |
|
0438f853fc89
[gaim-migrate @ 15050]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12706
diff
changeset
|
113 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib |
| 11090 | 114 |
| 115 ## | |
| 116 ## BUILD DLL | |
| 117 ## | |
| 118 | |
|
12707
0438f853fc89
[gaim-migrate @ 15050]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12706
diff
changeset
|
119 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
|
0438f853fc89
[gaim-migrate @ 15050]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12706
diff
changeset
|
120 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
| 11090 | 121 |
| 122 ## | |
| 123 ## CLEAN RULES | |
| 124 ## | |
| 125 | |
| 126 clean: | |
| 127 rm -rf *.o | |
| 128 rm -rf $(TARGET).dll | |
|
12707
0438f853fc89
[gaim-migrate @ 15050]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12706
diff
changeset
|
129 rm -rf $(TARGET).lib |
